View: 12956|Reply: 3

Boot directly to linux kernel without u-boot.

[Copy link]

5

threads

13

posts

38

credits

Novice

Rank: 1

credits
38
Published in 2019-3-6 10:05:26 | Show all floors |Read mode
Edited by lectric_univers at 2019-3-7 00:51

I've been reading up on this technique. But I'm not finding enough information for me to completely understand how to do this. But that doesn't stop me from pursuing this. The advantages are faster boot times, less code to maintain, and simpler setup if it can be done. Also power savings since if the boot is fast enough there's no need for sleep/hibernate/etc modes to conserve power. The board can just be shut off and restarted. The boot will be faster than waking up from sleep/hibernate.



One paper got boot times to be around 0.5 seconds to boot/reboot.


Anyone tried?

Links: (Happy Reading!)





0

threads

6

posts

30

credits

Administrator

Rank: 9Rank: 9Rank: 9

credits
30
Published in 2019-12-30 22:14:30 | Show all floors
1. Booting directly into Linux would be at least difficult if its possible at all.
The Standard boot prcess of a Allwinner based Board is BROM  -> SPL ( Uboot ) -> Kernel -> rootfs

The first Bootloader ( Bootrom or short BROM ) looks for the second stage bootloader which is then executet inside of the internal ram of the SOC. The second Stage Bootloader initializes the DDR RAM and other Hardware components an the loads the Kernel into ram.

27

threads

58

posts

2233

credits

Gold member

Rank: 6Rank: 6

credits
2233
Published in 2020-1-9 02:33:19 | Show all floors
The Boot process -> https://linux-sunxi.org/Boot_Process
U-Boot is a prerequiste.

You can check with the debug UART if U-Boot is waiting seconds for keyboard input. When you remove this option, then the boot process will be quikcer.

0

threads

1

posts

8

credits

Novice

Rank: 1

credits
8
Published in 2020-7-6 16:01:15 | Show all floors
U-Boot adds two capabilities to the boot process that the Xilinx FSBL does not have. (1) It reads files used at boot time from the SD Card instead of requiring them to be included in the boot.bin, and (2) it has a command line, in case you want to modify boot parameters at boot time.

If you do not need either of those capabilities, then booting Linux directly from FSBL saves some time during boot and reduces the number of chip/board specific files that need to be maintained.

shareit apk vidmate apk pc
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list