Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 4067|Reply: 3

Boot directly to linux kernel without u-boot.

[Copy link]

5

Threads

13

Posts

38

Credits

Novice

Rank: 1

Credits
38
Post time 2019-3-6 10:05:26 | Show all posts |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
Post time 2019-12-30 22:14:30 | Show all posts
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

64

Posts

1093

Credits

Gold member

Rank: 6Rank: 6

Credits
1093
Post time 2020-1-9 02:33:19 | Show all posts
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

2

Posts

8

Credits

Novice

Rank: 1

Credits
8
Post time 2020-7-6 16:01:15 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-9-21 04:50 GMT+8 , Processed in 0.031314 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list