Re: u-boot search order (Re: flash-kernel and dtb)
- To: Robert Nelson <robertcnelson@gmail.com>
- Cc: Vagrant Cascadian <vagrant@debian.org>, Debian Arm List <debian-arm@lists.debian.org>, Steve Langasek <vorlon@debian.org>
- Subject: Re: u-boot search order (Re: flash-kernel and dtb)
- From: Ian Campbell <ijc@hellion.org.uk>
- Date: Tue, 01 Jul 2014 07:53:33 +0100
- Message-id: <[🔎] 1404197613.1829.103.camel@dagon.hellion.org.uk>
- In-reply-to: <CAOCHtYjZyB-VrfsPhxGihvhcxET0Qr5zhuc7S1gVbG3xUGTc5A@mail.gmail.com>
- References: <1494430.N1blFA4iv8@blackbox> <1565440.atSyjzgELU@blackbox> <20140615191403.GE3119@siren> <45273093.beuzIZpsnX@blackbox> <20140619145825.GA2924@siren> <20140621043405.GA31466@virgil.dodds.net> <20140621050757.GQ2924@siren> <1404161958.1829.102.camel@dagon.hellion.org.uk> <CAOCHtYjZyB-VrfsPhxGihvhcxET0Qr5zhuc7S1gVbG3xUGTc5A@mail.gmail.com>
On Mon, 2014-06-30 at 16:09 -0500, Robert Nelson wrote:
> On Mon, Jun 30, 2014 at 3:59 PM, Ian Campbell <ijc@hellion.org.uk> wrote:
> > On Fri, 2014-06-20 at 22:07 -0700, Vagrant Cascadian wrote:
> >> > So the unambiguously preferable search order is "/boot /"; in some cases
> >> > this will give an extra directory lookup,
> >>
> >> Well, four extra directory lookups (boot.scr, uEnv.txt, zImage, uImage)...
> >> though it could probably be written to be more intelligent when checking /boot,
> >> first checking if /boot is present at all before attempting to load files from
> >> it.
> >
> > Does u-boot have an equivalent of test -d/-e?
>
> It was added in v2014.03's cycle:
>
> http://git.denx.de/?p=u-boot.git;a=commit;h=e5e897c01b1cd496187ca56a38ff5559d27f951c
Thanks.
I think that means we can't rely on it in the general case where we
support the factory firmware but we could rely on it in specific cases
where Debian ships/requires a specific u-boot.
Ian.
Reply to: