[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: U-boot menu support in Debian



On Sun, Jan 15, 2017 at 12:03:05PM -0800, Vagrant Cascadian wrote:
> On 2017-01-05, Riku Voipio wrote:
> > I only recently noticed that Debian doesn't seem use U-boot
> > support for extlinux style boot menus. This makes jumping
> > between kernel versions frustrating.
> >
> > I've taken the old syslinux support for menu generation and
> > re-purposed it for u-boot:
> >
> > 	https://github.com/suihkulokki/u-boot-update
> 
> Thanks for working on this!
> 
> This would also be good to do for debian-installer images (one concern
> was how widespread support for the "chosen" console was, as there was no
> way to pass the console via extlinux.conf in a platform agnostic way).

I see the console from dtb worksforme, and adding it to missing DTB's should
be easy.
 
> > Note location is temporary, I don't know if this is
> > preferrable as independent package, part of flash-kernel
> > or even u-boot package itself.
 
> Indeed. On the one hand, it'd be nice to keep it outside of
> flash-kernel, so as not to require flash-kernel and it's dependencies.

Rethinking, the only link I get for flash-kernel, is the dtb name / device
model name map which could be used to set the FDT setting.
 
> I could include it in the u-boot-tools package, but I'd want it to
> default to doing nothing out of the box, if someone is relying on a boot
> script this could break their boot configuration. It could also be
> implemented as a separate package and enabled by default; probably too
> late for stretch, though.

I guess I'll push it to it's own package, since not all u-boot-tools
may want a menu.

> I've submitted a pull request that fixes an issue with falling back to
> using "fdtdir" and make the "fdtdir" configurable via a variable to
> improve compatibility with flash-kernel or when /boot is on a separate
> partition:
> 
>   https://github.com/suihkulokki/u-boot-update/pull/1

Thanks, applied.
 
> My workaround was to use flash-kernel to copy the dtb into /boot (which
> I had to do anyways, since /boot was on a separate partition), and
> configure /boot/dtbs/$VERSION in my patches above.

Yeah, separate /boot doesn't work with DTBs out of box. 

Riku


Reply to: