~~tag>VIM-5 boot-sequence MCU~~ ====== VIM 5 OS Boot Priority ====== VIM 5 have possibility boot-up from : ''eMMC'', ''TF Card'', ''SPI-Flash'' 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 ===== Default boot priority ===== - eMMC - SPI-Flash - **MUST press FUNC to boot from SPI Flash in default boot mode** - TF Card - **MUST press quick press FUNC 3 times to boot from TF Card in default boot mode** ===== U-Boot shell usage ===== You can change the boot priority of the ''eMMC'' and ''SPI-Flash'' via the [[products:sbc:vim-5:development:kbi|KBI(Khadas Boot Instructions)]] from u-boot shell Change boot priority to: ''eMMC'' => ''SPI-Flash'' ```shell kvim-5# kbi bootmode w emmc ``` Change boot priority to: ''SPI-Flash'' => ''eMMC'' ```shell kvim-5# kbi bootmode w spi ``` 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]] ===== Linux command-line usage ===== ```shell i2cset -f -y 0 0x18 0x20 1 # setup default eMMC boot-mode ``` ```shell i2cset -f -y 0 0x18 0x20 0 # setup SPI-flash boot-mode ``` ==== Hot apply setting changes via mcu reboot ==== ```shell i2cset -f -y 0 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 TF-card slot must be empty.