Am Donnerstag, den 14.06.2018, 12:34 +0100 schrieb Mr C Camacho:
I'd also suggest using a minimal kernel here, as it would reduce boottime dramatically.
The minimum kernel could also show the current battery charge (on screen or via the lid LEDs) when you're charging in a more advanced state.
It would have multiple uses then - boot menu, battery status information, recovery.
On 14/06/18 12:16, H. Nikolaus Schaller wrote:
BootROM -> MLO -> U-Boot -> Kernel with initramfs -> final Kernel from whichever partition
Can I suggest that we have a tiny stripped down kernel (that doesn't change often - if at all) as the kernel that U-Boot kicks off, and in the initramfs we look for a particular key held down (say the pyra key) and drop into the initrd ram disk using busybox as init (only if the key is held down - could possibly be a boot menu for SD / USB ?), the idea being that this can be used as an emergency rescue environment that is even independent of the main OS on the internal flash.
I've hacked around with the likes of extlinux a kernel and busybox in VM a fair bit and wouldn't mind having a bash at this when I can, but it bares a general discussion so it behaves in the way everyone wants and expects!
Chris