Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim4:development:boot-sequence

This is an old revision of the document!


VIM4 OS Boot Priority

VIM4 is capable of booting from the following devices: eMMC, TF Card, SPI Flash

We talking there only about 1st stage SOC boot, next second stage os loading possible for any other diveices like USB storages, NVME etc … and depends from u-boot

Default boot priority

  1. TF-Card TF-card will always take the highest priority.
  2. eMMC
  3. SPI-Flash

U-boot shell usage

We can swap the boot priority of the eMMC and SPI Flash via the KBI(Khadas Boot Instructions) from u-boot shell

Change boot priority to: TF-Card ⇒ eMMCSPI-Flash

kvim4# kbi bootmode w emmc

Change boot priority to: TF-Card ⇒ SPI-Flash ⇒ eMMC

kvim4# kbi bootmode w spi

Linux command-line usage

i2cset -f -y 6 0x18 0x20 1 # setup default eMMC boot-mode
i2cset -f -y 6 0x18 0x20 0 # setup SPI-flash boot-mode

Hot apply change setting via mcu reboot

i2cset -f -y 6 0x18 0x91 1
Last modified: 2022/07/26 02:50 by hyphop