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 Booting Priority

VIM4 booting in operating system in eMMC, TF Card, or SPI-Flash

In this page, you will know that Khadas SBC booting-up sequence for other medium like USB storage, NVMe, ect, depends on U-Boot configurations.

Default boot priority

  1. TF-Card top priority.
  2. eMMC
  3. SPI-Flash

U-Boot shell usage

We can swap the “TF-card” for the eMMC or SPI-Flash in U-Boot shell via KBI(Khadas Boot Instructions)

Change booting priority to SPI-Flash: TF-Card ⇒ eMMCSPI-Flash

kvim4# kbi bootmode w emmc

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

kvim4# kbi bootmode w spi

To make the booting priority swap take effect, you can reboot via mcu, or you can reboot the hardware by clicking the RESET button, or plugging the power supply or cable.

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

To reset the booting sequence via MCU

i2cset -f -y 6 0x18 0x91 1

OOWOW booting-up shortcut

Hold FUNCTION and short press RESET to force OOWOW service booting-up from SPI-flash, in this way skip over other boot sources .

You have to remove the microSD card from the slot.

Last modified: 2022/08/13 03:44 by ruby