On Fri, Dec 02, 2022 at 10:42:08AM +0100, Johannes Kastl wrote:
> On 01.12.22 at 13:32 Michal Suchánek wrote:
> > On Thu, Dec 01, 2022 at 01:07:20PM +0100, Johannes Kastl wrote:
> 
> > > Unfortunately sometimes grub just drops into a shell and I need to enter
> > > "reboot" for the device to reboot and boot again...
> > 
> > That's probably because it fails to load the config that tells it to
> > reboot.
> 
> That was my guess, too...
> 
> > There is another config built into the grub image that tells it where to
> > load the config from, and you probably need a reboot at the end of that
> > as well.
> 
> I take it that would mean building the grub2 package and tweaking the
> settings somewhere?

There is some grub2-mkimage or something to do that, you don't need to
rebuild the package. Looking at how it is done during build might be
helpful for producing similar results, though.

> 
> > If you add that debugging grub not finding a config will be difficult
> > but it should always reboot then.
> 
> Sounds like it is not worth the hassle to support the board. Even if grub2
> can be modified to never hang AND u-boot can be configured to reboot instead
> of waiting forever, I may still end up with a device that will just boot
> forever and will not be usable in a normal way.

On one hand I would see it that way. On the other it exposes in the
extreme the problems you would run into when trying to make a system
reliably boot always, and the work you do here may be useful to others
in other situations if you document it. YMMV

Thanks

Michal

Reply via email to