From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ceresoli Date: Wed, 24 Feb 2016 23:39:29 +0100 Subject: [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage In-Reply-To: <87fuwh25nc.fsf@dell.be.48ers.dk> References: <1456187073-2876-1-git-send-email-luca@lucaceresoli.net> <1456187073-2876-7-git-send-email-luca@lucaceresoli.net> <87fuwh25nc.fsf@dell.be.48ers.dk> Message-ID: <56CE3121.3020002@lucaceresoli.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Peter, On 24/02/2016 21:51, Peter Korsgaard wrote: >>>>>> "Luca" == Luca Ceresoli writes: > > > Signed-off-by: Luca Ceresoli > > --- > > 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