Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:development:boot-sequence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim4:development:boot-sequence [2022/07/08 05:54]
frank
products:sbc:vim4:development:boot-sequence [2022/08/22 03:33] (current)
hyphop old revision restored (2022/08/22 14:54)
Line 1: Line 1:
-====== OS Boot Priority ======+~~tag>VIM4 boot-sequence MCU~~
  
-VIM4 is capable of booting from the following devices:+====== VIM4 OS Boot Priority ======
  
-  * eMMC +VIM4 have possibility boot-up from : ''eMMC'', ''TF Card'', ''SPI-Flash''
-  * TF Card +
-  * SPI Flash+
  
-The OS image can be flased into the ''eMMC'', ''TF Card'' or ''SPI Flash''.+<WRAP info > 
 +We talking there only about 1st stage SoC boot,  
 +next second stage OS loading possible for any other devices like USB storage's, 
 +NVMe etc ... and depends from ''u-boot'' configurations 
 +</WRAP>
  
-The default boot priority is:+===== Default boot priority =====
  
-  - TF Card+  - TF-Card <wrap important>always highest priority</wrap>
   - eMMC   - eMMC
-  - SPI Flash+  - SPI-Flash
  
-You can also swap the boot priority of the ''eMMC'' and ''SPI Flash'' via the [[xxx|KBI(Khadas Boot Instructions)]], but the ''TF Card'' will always take the highest priority.+===== U-Boot shell usage ===== 
 +You can change the boot priority of the ''eMMC'' and ''SPI-Flash'' via the [[products:sbc:vim4:development:kbi|KBI(Khadas Boot Instructions)]] from u-boot shell
  
-  * Setting the priority of ''eMMC'' above ''SPI Flash''+Change boot priority to: ''TF-Card'' => ''eMMC'' => ''SPI-Flash''
  
 ```shell ```shell
Line 23: Line 26:
 ``` ```
  
-Then the boot priority will become: +Change boot priority to''TF-Card'' => ''SPI-Flash'' => ''eMMC''
- +
-  - TF Card +
-  eMMC +
-  - SPI Flash +
- +
-  * Setting the priority of ''SPI Flash'' above ''eMMC''+
  
 ```shell ```shell
Line 35: Line 32:
 ``` ```
  
-Then the boot priority will become:+<WRAP important > 
 +for apply setting for next boot, need reboot device by ''RESET'' button or re-plug power cable or power-off device or [[#hot-apply-setting-changes-via-mcu-reboot|reboot via mcu]] 
 +</WRAP> 
 + 
 + 
 +===== Linux command-line usage ===== 
 + 
 +```sh 
 +i2cset -f -y 6 0x18 0x20 1 # setup default eMMC boot-mode 
 +``` 
 + 
 +```sh 
 +i2cset -f -y 6 0x18 0x20 0 # setup SPI-flash boot-mode 
 +``` 
 + 
 +==== Hot apply setting changes via mcu reboot ==== 
 + 
 +```sh 
 +i2cset -f -y 6 0x18 0x91 1 
 +``` 
 + 
 + 
 +===== OOWOW boot special shortcut ===== 
 + 
 +Hold ''FUNCTION'' and short press ''RESET'' to force boot [[:OOWOW]] service from SPI-flash, and skip other boot sources 
 + 
 +<WRAP important>TF-card slot must be empty.</WRAP> 
  
-  - TF Card 
-  - SPI Flash 
-  - eMMC 
Last modified: 2022/07/08 05:54 by frank