[Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage

Luca Ceresoli luca at lucaceresoli.net
Wed Feb 24 22:39:29 UTC 2016


Hi Peter,

On 24/02/2016 21:51, Peter Korsgaard wrote:
>>>>>> "Luca" == Luca Ceresoli <luca at lucaceresoli.net> writes:
> 
>  > Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
>  > ---
>  >  board/olimex/a20_olinuxino/genimage.cfg      | 16 ++++++++++++++++
>  >  board/olimex/a20_olinuxino/post-image.sh     | 16 ++++++++++++++++
>  >  board/olimex/a20_olinuxino/readme.txt        | 17 +++++++++++++++--
>  >  configs/olimex_a20_olinuxino_micro_defconfig |  2 ++
>  >  4 files changed, 49 insertions(+), 2 deletions(-)
>  >  create mode 100644 board/olimex/a20_olinuxino/genimage.cfg
>  >  create mode 100755 board/olimex/a20_olinuxino/post-image.sh
> 
>  > diff --git a/board/olimex/a20_olinuxino/genimage.cfg b/board/olimex/a20_olinuxino/genimage.cfg
>  > new file mode 100644
>  > index 000000000000..8ea24ccab8f3
>  > --- /dev/null
>  > +++ b/board/olimex/a20_olinuxino/genimage.cfg
>  > @@ -0,0 +1,16 @@
>  > +image sdcard.img {
>  > +	hdimage {
>  > +	}
>  > +
>  > +	partition u-boot {
>  > +		in-partition-table = "no"
>  > +		image = "u-boot-sunxi-with-spl.bin"
>  > +		offset = 8192
>  > +	}
>  > +
>  > +	partition rootfs {
>  > +		partition-type = 0x83
>  > +		image = "rootfs.ext4"
>  > +		size = 512M
>  > +	}
>  > +}
> 
> What about the dtb file? The other Allwinner based boards store this in
> a first vfat partition.

U-Boot grabs it from the /boot directory on the ext4 partition:

$ cat board/olimex/a20_olinuxino/boot.cmd
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
ext4load mmc 0 0x49000000 /boot/${fdtfile}
ext4load mmc 0 0x46000000 /boot/zImage
env set fdt_high ffffffff
bootz 0x46000000 - 0x49000000
$

This behaviour has always been in place for the A20 OLinuXino series.
This patch does not change how these boards boot, it just automates
the manual writing instructions with genimage.

-- 
Luca


More information about the buildroot mailing list