From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage
Date: Wed, 24 Feb 2016 23:39:29 +0100 [thread overview]
Message-ID: <56CE3121.3020002@lucaceresoli.net> (raw)
In-Reply-To: <87fuwh25nc.fsf@dell.be.48ers.dk>
Hi Peter,
On 24/02/2016 21:51, Peter Korsgaard wrote:
>>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
>
> > Signed-off-by: Luca Ceresoli <luca@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
next prev parent reply other threads:[~2016-02-24 22:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
2016-02-23 0:24 ` [Buildroot] [PATCH 1/9] olimex/a20_olinuxino: update readme.txt with lime2 info Luca Ceresoli
2016-02-24 20:40 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 2/9] olimex_a20_olinuxino_micro: bump linux to 4.4.2 Luca Ceresoli
2016-02-24 20:42 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 3/9] olimex_a20_olinuxino_micro: bump u-boot to 2016.01 Luca Ceresoli
2016-02-24 20:43 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 4/9] olimex_a20_olinuxino_micro: initialize the network with DHCP Luca Ceresoli
2016-02-24 20:43 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 5/9] olimex_a20_olinuxino_micro: remove redundant defconfig lines Luca Ceresoli
2016-02-24 20:47 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage Luca Ceresoli
2016-02-24 20:51 ` Peter Korsgaard
2016-02-24 22:39 ` Luca Ceresoli [this message]
2016-02-24 22:42 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 7/9] olimex_a20_olinuxino_lime: " Luca Ceresoli
2016-02-24 17:41 ` François Perrad
2016-02-23 0:24 ` [Buildroot] [PATCH 8/9] olimex_a20_olinuxino_lime2: " Luca Ceresoli
2016-02-23 0:24 ` [Buildroot] [PATCH 9/9] olimex_a20_olinuxino_*: remove old SD writing instructions Luca Ceresoli
2016-02-23 17:59 ` [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates François Perrad
2016-02-24 22:46 ` Peter Korsgaard
2016-02-24 22:45 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56CE3121.3020002@lucaceresoli.net \
--to=luca@lucaceresoli.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.