From: Chin Liang See <clsee@altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] arm: socfpga: Enable load zImage and Linux DTB from USB
Date: Tue, 1 Dec 2015 23:00:33 +0800 [thread overview]
Message-ID: <1448982033.2062.12.camel@altera.com> (raw)
In-Reply-To: <87io4nxtv1.fsf@aikidev.net>
Hi Vagrant,
On Fri, 2015-11-27 at 08:57 -0800, Vagrant Cascadian wrote:
> On 2015-11-27, Marek Vasut wrote:
> > On Friday, November 27, 2015 at 01:23:34 PM, Chin Liang See wrote:
> > > On Fri, 2015-11-27 at 11:36 +0100, Marek Vasut wrote:
> > > > On Friday, November 27, 2015 at 03:36:42 AM, Chin Liang See
> > > > wrote:
> > > > > Adding new environment usbload which will load zImage and
> > > > > Linux DTB from USB mass storage through FAT file system.
> ...
> > > > The distro_bootcmd can do this and even let's you boot
> > > > debian/fedora
> > > > on such
> > > > a machine in a standardized way. Should we switch to
> > > > distro_bootcmd
> > > > instead
> > > > of adding new ad-hoc stuff ?
> > >
> > > It seems to me that we need to add script into the fs to get that
> > > work,
> > > right?
>
> Yes and no. Currently Debian uses a bootscript generated with
> flash-kernel, such as:
>
> https://anonscm.debian.org/cgit/d-i/flash-kernel.git/tree/bootscrip
> t/all/bootscr.uboot-generic
>
> But you can also use a syslinux formatted plain text file, such as
> extlinux.conf or pxelinux.conf/default, described in
> u-boot/doc/README.distro. They look something like this:
>
> label Boot
> kernel /boot/vmlinuz
> append ro root=/dev/sda2 console=ttyS0,115200n8
> fdtdir /boot/dtbs/
> initrd /boot/initrd.img
>
> The (only) reason debian hasn't yet switched to syslinux-style config
> files is that is that the console settings vary wildly by board, and
> the
> "chosen" console property isn't yet consistantly supported on all
> boards
> and kernel versions in use. That may change soon.
>
> But the distro_bootcmd support supports both syslinux-style files and
> bootscripts out-of-the-box. Because of the standardization, for any
> board you would hope to see working out of the box on Debian(and I
> suspect Fedora as well), supporting distro_bootcmd in u-boot upstream
> would be ideal.
>
>
> live well,
> vagrant
Thanks for the pointers and this looks great. I can imagine how this
cool feature easing user when come to update the boot device and boot
file name without the need to update the U-Boot source.
To take this advantage socfpga, ubifs support for NOR and NAND boot
need to be happened first :)
Thanks
Chin Liang
next prev parent reply other threads:[~2015-12-01 15:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 2:36 [U-Boot] [PATCH v2] arm: socfpga: Enable load zImage and Linux DTB from USB Chin Liang See
2015-11-27 3:18 ` Stefan Roese
2015-11-27 10:36 ` Marek Vasut
2015-11-27 12:23 ` Chin Liang See
2015-11-27 12:29 ` Marek Vasut
2015-11-27 16:57 ` Vagrant Cascadian
2015-12-01 15:00 ` Chin Liang See [this message]
2015-12-01 15:12 ` Marek Vasut
2015-12-01 15:34 ` Chin Liang See
2015-12-01 15:38 ` Marek Vasut
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=1448982033.2062.12.camel@altera.com \
--to=clsee@altera.com \
--cc=u-boot@lists.denx.de \
/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.