Quote:
Originally Posted by jlinkels
There is nothing magic about booting which makes it so slow, as soon as the kernel is loaded and running it should be possible to display your messages using the normal screen driver. Would 5 seconds be realistic?
|
I think 5 seconds is more than enough (and I mean from bootloader to the starting of
init). I think the “norm” might be around three seconds (again, from pressing enter on your bootloader to getting your init’s welcome message—e.g., “INIT: version 2.86 booting”). You can shave as much off as possible by compiling most things (even most things “necessary” for your computer) as modules. The only things you really shouldn’t compile as modules are your filesystem driver, the driver for however your block device is interfaced to the hardware (e.g., ide/sata), and of course the driver for ttyUSB.
Once you get to init, you may begin printing custom text to your device (implementing this by patching your init or creating your own pre-init). The majority of “boot time” is actually time spent after init has loaded, so you won’t lose much.