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
Next revision Both sides next revision
products:sbc:vim4:development:boot-sequence [2022/07/26 02:29]
hyphop [VIM4 OS Boot Priority]
products:sbc:vim4:development:boot-sequence [2022/08/22 00:00]
ruby [Default option]
Line 1: Line 1:
 +~~tag>VIM4 boot-sequence MCU~~
 +
 ====== VIM4 OS Boot Priority ====== ====== VIM4 OS Boot Priority ======
  
-VIM4 is capable of booting from the following devices: ''eMMC'',  ''TF Card'', ''SPI Flash''+VIM4 is capable of boot-up from: ''eMMC'', ''TF Card'', ''SPI-Flash''
  
 <WRAP info > <WRAP info >
-We talking there only about 1st stage SOC boot, next second stage os loading possible for any other diveices like USB storagesNVME etc ...  +This page mainly introduces about the first-stage SoC boot. The second-stage OS flashing is possible for USB storage and NVMewhich depends on ''u-boot'' configurations
 </WRAP> </WRAP>
  
-/* not sure its needed ? +===== Default option =====
-The OS image can be flased into the ''eMMC'', ''TF Card'' or ''SPI Flash''+
-*/+
  
-===== Default boot priority ===== +  - TF-Card <wrap important> top priority </wrap>
- +
-  - TF Card+
   - eMMC   - eMMC
-  - SPI Flash+  - SPI-Flash
  
 +===== U-boot shell usage =====
 +We can swap the boot priority of the ''eMMC'' and ''SPI-Flash'' via the [[products:sbc:vim4:development:kbi|KBI(Khadas Boot Instructions)]] from u-boot shell
 +
 +Change boot priority to: ''TF-Card => eMMC => SPI-Flash''
 +
 +```shell
 +kvim4# kbi bootmode w emmc
 +```
 +
 +Change boot priority to: ''TF-Card => SPI-Flash => eMMC''
 +
 +```shell
 +kvim4# kbi bootmode w spi
 +```
  
 <WRAP important > <WRAP important >
-''TF Card'' will always take the highest priority. +To make the booting priority swap take effect, you can [[#hot-apply-setting-changes-via-mcu-reboot|reboot via mcu]], or you can reboot the hardware by clicking the Reset button, or plugging the power supply or cable.
 </WRAP> </WRAP>
  
  
-You can also swap the boot priority of the ''eMMC'' and ''SPI Flash'' via the [[products:sbc:vim4:development:kbi|KBI(Khadas Boot Instructions)]], but the ''TF Card'' will always take the highest priority.+===== Linux command-line usage =====
  
-  * Setting the priority of ''eMMC'' above ''SPI Flash''+```sh 
 +i2cset -f -y 6 0x18 0x20 1 # setup default eMMC boot-mode 
 +```
  
-```shell +```sh 
-kvim4kbi bootmode w emmc+i2cset -f -y 6 0x18 0x20 0 setup SPI-flash boot-mode
 ``` ```
  
-Then the boot priority will become:+==== Hot apply setting changes via mcu reboot ====
  
-  - TF Card +```sh 
-  eMMC +i2cset -f -y 6 0x18 0x91 1 
-  - SPI Flash+```
  
-  * Setting the priority of ''SPI Flash'' above ''eMMC'' 
  
-```shell +===== OOWOW boot special shortcut ===== 
-kvim4# kbi bootmode w spi + 
-```+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>
  
-Then the boot priority will become: 
  
-  - TF Card 
-  - SPI Flash 
-  - eMMC 
Last modified: 2022/08/22 03:33 by hyphop