[PATCH v2] boot: android: fix booting without a ramdisk

Simon Glass sjg at chromium.org
Thu Aug 1 16:42:13 CEST 2024


Hi Michael,

On Wed, 31 Jul 2024 at 09:33, Michael Walle <mwalle at kernel.org> wrote:
>
> Hi,
>
> > > > -                     if (ret)
> > > > +                     if (ret == -ENOENT)
> > > > +                             return -ENOPKG;
> >
> > We normally use -ENOENT for this sort of thing.
>
> That's the way select_ramdisk() is documented. It was actually
> introduced by yourself in commit e4c928792e93 ("image: Split up
> boot_get_ramdisk()") :)

Hmm, OK. Perhaps I was worried about conflicting with a file-not-found
error in bootstd. Anyway, let's stick with ENOPKG.

Regards,
Simon


More information about the U-Boot mailing list