This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:common:development:kbi [2026/02/27 04:31] gray old revision restored (2026/02/02 00:44) |
products:sbc:common:development:kbi [2026/02/27 04:31] (current) gray old revision restored (2026/02/23 21:44) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== KBI - Khadas Bootloader Instructions ====== | ====== KBI - Khadas Bootloader Instructions ====== | ||
| - | This page introduces KBI. You will learn how to manage the status of a Khadas SBC through KBI. | + | This page introduces |
| <WRAP important > | <WRAP important > | ||
| - | Khadas Bootloader Instructions (KBI) can be used to: | + | Khadas Bootloader Instructions(KBI) can be used to: |
| - | * Manage the programmable MCU. | + | * Manage the programmable MCU |
| - | * Perform | + | * Carry out low level hardware management |
| - | * Enable | + | * Let developers |
| + | </ | ||
| <WRAP info > | <WRAP info > | ||
| - | This page uses VIM2 as an example. | + | This page takes VIM2 as an example. |
| </ | </ | ||
| ===== Uboot usage ===== | ===== Uboot usage ===== | ||
| - | To get started, | + | To get started, |
| ```shell | ```shell | ||
| Line 86: | Line 87: | ||
| ``` | ``` | ||
| - | The ADC value can be used to distinguish between | + | The ADC value can distinguish between hardware modules. |
| ==== Power Off ==== | ==== Power Off ==== | ||
| Line 105: | Line 106: | ||
| ==== LED Control ==== | ==== LED Control ==== | ||
| - | The blue LED has four operating modes: '' | + | Setup the blue LED: |
| - | The MCU, which handles system power management, controls the blue LED. The CPU controls the white LED. | + | The blue LED has 4 working modes: '' |
| - | Therefore, the blue LED continues to function even when the VIM2 is powered off. | + | |
| - | KBI can be used to program | + | The MCU,in charge of system power management, controls |
| + | In this case, the blue LED still work even VIM2 was powered off. | ||
| - | * system off / idle: Power-off status, | + | The KBI can be used to program |
| - | * system on / working: | + | |
| - | Example: | + | * system off / idle: power off status, the CPU is in power-down mode. |
| + | * system on / working: power on status, the CPU is in working mode. | ||
| + | |||
| + | For example: | ||
| To check the blue LED’s setting for '' | To check the blue LED’s setting for '' | ||
| Line 124: | Line 127: | ||
| ``` | ``` | ||
| - | Check the blue LED setting for '' | + | To check the blue LED’s setting for '' |
| ```shell | ```shell | ||
| Line 130: | Line 133: | ||
| led mode: off [systemon] | led mode: off [systemon] | ||
| ``` | ``` | ||
| - | When the VIM2 is powered on, the blue LED is set to '' | + | When VIM2 is powered on,the blue LED is '' |
| - | You can reset it to '' | + | You can also reset it to '' |
| ```shell | ```shell | ||
| kvim2# kbi led systemon w breathe | kvim2# kbi led systemon w breathe | ||
| Line 145: | Line 148: | ||
| ==== Boot Mode ==== | ==== Boot Mode ==== | ||
| - | You can flash images to either | + | You can flash the images to SPI or eMMC storage |
| + | |||
| + | Set the default boot media as the SPI: | ||
| - | Set the default boot media to SPI flash: | ||
| ```shell | ```shell | ||
| kvim2# kbi bootmode w spi | kvim2# kbi bootmode w spi | ||
| ``` | ``` | ||
| - | Set default boot media to eMMC storage: | + | Set default boot media as eMMC storage: |
| ```shell | ```shell | ||
| Line 158: | Line 162: | ||
| ``` | ``` | ||
| - | You can check the current | + | You can take a review on the default boot media by running: |
| ```shell | ```shell | ||
| Line 167: | Line 171: | ||
| ==== Boot Trigger Events ==== | ==== Boot Trigger Events ==== | ||
| - | The VIM2 supports | + | VIM2 supports |
| - | * WOL: Wake-on-Lan | + | * WOL: Wake on Lan |
| * RTC: RTC timer | * RTC: RTC timer | ||
| * IR: IR remote controller | * IR: IR remote controller | ||
| Line 174: | Line 178: | ||
| * Key: Power Key/Button | * Key: Power Key/Button | ||
| * GPIO: External GPIO events | * GPIO: External GPIO events | ||
| - | This means any of the above events can trigger | + | It means any of the above events can trigger VIM2 to power-on after that trigger event has been set to the '' |
| For example: | For example: | ||
| - | * Get the status of the WOL trigger event: | + | * Get the status of the WOL trigger event: |
| - | ```shell | + | |
| kvim2# kbi trigger wol r | kvim2# kbi trigger wol r | ||
| boot wol: disable | boot wol: disable | ||
| ``` | ``` | ||
| - | * WOL is disabled | + | * WOL is disabled |
| - | ```shell | + | |
| kvim2# kbi trigger wol w 1 | kvim2# kbi trigger wol w 1 | ||
| set_wol: 1 | set_wol: 1 | ||
| ``` | ``` | ||
| - | * For security reasons, you may want to disable WOL: reasons. : | + | * In general, you will disable |
| - | ```shell | + | |
| kvim2# kbi trigger wol w 0 | kvim2# kbi trigger wol w 0 | ||
| set_wol: 0 | set_wol: 0 | ||