[Buildroot] [PATCH 2/2] board: add support for Chromebook Snow

Alex Suykov alex.suykov at gmail.com
Wed Nov 18 03:27:52 UTC 2015


Mon, Nov 16, 2015 at 09:40:30PM +0100, Arnout Vandecappelle wrote:

> > +Create the partitions, marking the kernel partition as bootable.
> > +
> > +	$CGPT add -i 1 -b $start -s $kernelsize \
> > +		-t kernel -l kernel\
> > +		-S 1 -T 1 -P 10 $SD
> > +	$CGPT add -i 2 -b $[start+kernelsize] -s $rootfssize \
> > +		-t data -l rootfs $SD
> 
>  Wouldn't it be possible to do all this in a post-image script that generates an
> SD card image?

Seems to be possible. The resulting image has secondary GPT in the wrong
location, but as long as the primary one is ok it should not cause trouble.

This also adds host-parted dependency, but that would be needed anyway.
I was working with a partitioned card and did not notice it, but cgpt
does not write protective MBR.

Sending v2.



More information about the buildroot mailing list