5 ms·
Booting to Arch Linux and being accessible on WiFi in ~5 seconds Booting to my custom init process, initializing the system and running my UI app in ~1 second
by mkesper 6y ago
Booting to Arch Linux and being accessible on WiFi in ~5 seconds
Booting to my custom init process, initializing the system and running my UI app in ~1 second
Try that with any other smartphone...
- megous 6y agoYeah, I've improved it a bit with UI in the bootloader (still fits in 32KiB sram, even with GUI) + flickerless/seamless display pipeline passover to the kernel in the meantime too. :) I've also experimented with booting to electron and having the whole phone UI written in it... https://www.youtube.com/watch?v=Ce9vZj1r_-E https://www.youtube.com/watch?v=Ce9vZj1r_-E
- black_puppydog 6y agoshouldn't electron UI then eat up much of the battery gains made from the modem code?
- megous 6y agoProbably not. Electron just sits there doing not much other than 2-3% CPU load from updating the information in the header each second. https://megous.com/dl/tmp/a1017dd38ca6ce10.png https://megous.com/dl/tmp/a1017dd38ca6ce10.png Batter gains in standby are something else. Main CPU is off, and no processes are thus running, so it doesn't matter what SW you have, for those gains.
- deleted 6y ago[deleted]
- seba_dos1 6y ago"Any other" is rather too strong, as same could be (and was) done on devices like Openmoko phones, Nokia N900, GTA04 and now on the Librem 5 as well. But yeah, this category of smartphones definitely is something special :)
- megous 6y agoI'd be interested in seeing Librem booting that quickly. Any videos? :)
- seba_dos1 6y agoI'm not so sure about booting into custom init in <= 1sec since nobody really looked into optimizing the boot process that much yet, but Arch in 5 secs should be easily achievable since booting Jumpdrive on Librem 5 with regular u-boot takes about 5-6 seconds already with no effort put into booting speed whatsoever. Just getting rid of initrd would already shave quite a lot of time. Librem 5 has a slightly faster CPU, more than twice as fast RAM and pretty much the same eMMC speed as the PinePhone. Boot times should generally be similar, with Librem 5 slightly winning, and that matches my observations so far with similar distros running on both devices. No videos yet though, I may record some in the future :)