Am 14.06.2018 um 14:15 schrieb Michael Mrozek EvilDragon@openpandora.org:
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.
That is the target.
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.
Good idea and seems all to be possible if we: * have its separate defconfig to creates a minimal kernel (well 4.5MB -20% doesn't matter much). * include omapdss, mipi, panel, keyboard, led, fuel gauge, charger drivers * compiled into the kernel ("y" not "m") * and a minimal root file system to collect partitions and battery state and print on an text console screen * and wait for the user to request something (boot, install, recovery shell, power down, ...) * rootfs compiled into the kernel as initramfs
I had started such code long time ago for the Letux 400 netbook:
1. shell script showing and managing a boot menu:
http://git.goldelico.com/?p=l400-rootfs.git;a=blob;f=config/root/recover;h=3...
2. script to build a 3MB bootable Debian rootfs which includes the boot menu script:
http://git.goldelico.com/?p=l400-rootfs.git;a=blob_plain;f=config/root/mkmin...
I don't know if Stretch can be stripped down the same way (this was Debian Etch or Squeeze if I remember correctly).
So someone can pick this up. Probably more the idea behind than this code.
BR, Nikolaus