[PATCH] board: beagleplay: Fix the bootpart to pick from root partition
Robert Nelson
robertcnelson at gmail.com
Sun Jun 16 04:32:27 CEST 2024
On Fri, Jun 14, 2024 at 1:04 AM Dhruva Gole <d-gole at ti.com> wrote:
>
> Robert,
>
> On Jun 13, 2024 at 16:51:24 -0500, Robert Nelson wrote:
> > On Thu, Jun 13, 2024 at 4:47 PM Robert Nelson <robertcnelson at gmail.com> wrote:
> > >
> > > On Thu, Jun 13, 2024 at 3:06 AM Dhruva Gole <d-gole at ti.com> wrote:
> > > >
> > > > The Kernel Image and DTB files are supposed to be picked from the rootfs
> > > > of the SD Card, this fails in legacy boot flow because bootpart is set
> > > > to 1:1. Fix it.
> > >
> > > and where is that rule defined?
> > >
> > > Production boards ship with Kernel Image and DTB's in the 1st fat partition..
> >
> > Besides, u-boot should scan for extlinux.conf on "any" partition.
>
> I can see where you come from, and I agree on the above points when it
> comes to stdboot.
> However when a user wishes to use legacy boot, and in the case there
> isn't extlinux.conf in such a case u-boot will rely on information in
> the env file (please correct me if my understanding is wrong).
>
> The env file says:
> bootdir=/boot
>
> Thus u-boot ends up looking for Image and dtb in /boot/Image under BOOT
> partition, and ultimately fails, because the /boot/Image path is
> generally found inside the root partition ie. 1:2
>
> The idea of this patch is to keep support for such legacy boot alive, if
> you feel there's another way to do this feel free to suggest.
For BeagleBoard.org we never used the legacy boot path on this target
(or BeagleBone-AI64), this was put in place mostly for TI's u-boot
scripts. ;)
Regards,
--
Robert Nelson
https://rcn-ee.com/
More information about the U-Boot
mailing list