This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:vim1s:hardware:vim1s-boot-flow [2023/03/06 22:17] hyphop [VIM1S Boot flow] |
products:sbc:vim1s:hardware:vim1s-boot-flow [2023/06/05 07:56] hyphop [OOWOW boot led indication] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~tag> vim1s boot~~ | ||
- | |||
~~tag> VIM1S boot~~ | ~~tag> VIM1S boot~~ | ||
Line 19: | Line 17: | ||
WIP: | WIP: | ||
- | * '' | + | * '' |
* '' | * '' | ||
More detail: [[./ | More detail: [[./ | ||
- | + | ||
+ | |||
+ | ====== OOWOW boot led indication ====== | ||
+ | |||
+ | OOWOW boot makes a red LED indication on the first boot seconds, it's looks like a short RED blinking 1-3 sec in success, | ||
+ | |||
+ | <WRAP important > | ||
+ | Red blink or permanent red LED means OOWOW failed | ||
+ | </ | ||
+ | |||
+ | <WRAP tip > | ||
+ | This indication common for VIM4, Edge2 and VIM1S | ||
+ | </ | ||
+ | |||
+ | |||
+ | ```shell Preparing for oowow | ||
+ | # red led hb mode | ||
+ | i2c mw 0x18 0x89 3 | ||
+ | ``` | ||
+ | |||
+ | ```shell try to start | ||
+ | # red led off | ||
+ | i2c mw 0x18 0x89 0 | ||
+ | ``` | ||
+ | |||
+ | ```shell oowow fail | ||
+ | # red led on mode | ||
+ | i2c mw 0x18 0x89 1 | ||
+ | ``` | ||
+ | |||
+ | === dev-info === | ||
+ | |||
+ | WIP: special pre-boot led indication | ||
+ | |||
+ | ```shell ~/ | ||
+ | #define CONFIG_PREBOOT | ||
+ | "run mcu_fan; " \ | ||
+ | "run mcu_oowow_mode_chk; | ||
+ | "run led_mcu_on; " \ | ||
+ | "run bcb_cmd; " \ | ||
+ | "run upgrade_check;" | ||
+ | "run init_display;" | ||
+ | "run storeargs;" | ||
+ | "run led_mcu_off; | ||
+ | "run upgrade_key;" | ||
+ | "run switch_bootmode; | ||
+ | "run mcu_fan_off; | ||
+ | #else | ||
+ | ``` | ||
+ | |||
+ | ```shell uboot led | ||
+ | kvim1s# printenv led_mcu_on | ||
+ | led_mcu_on=kbi led systemon w on | ||
+ | kvim1s# printenv led_mcu_off | ||
+ | led_mcu_off=kbi led systemon w off | ||
+ | ``` | ||
+ | |||
+ | |||
+ | ====== OOWOW mode ====== | ||
+ | |||
+ | Exclusive special service mode: activated [[# | ||
+ | |||
+ | <WRAP important > | ||
+ | Ignore all boot sources like: '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | Boot fail service mode activated automatically as rescue mode for: | ||
+ | * internal eMMC storage is empty | ||
+ | * cant find any boot-able OS sources | ||
+ | * boot-up from other sources fail | ||
+ | |||
+ | <WRAP important > | ||
+ | Try at 1st boot from sources all sources: '' | ||
+ | </ | ||
+ | |||
+ | |||
====== Boot modes oowow shell usage ====== | ====== Boot modes oowow shell usage ====== | ||
Line 46: | Line 120: | ||
==== Set oowow mode ==== | ==== Set oowow mode ==== | ||
+ | |||
+ | Setup, check, or clean next OOWOW bootup... | ||
```shell | ```shell | ||
Line 65: | Line 141: | ||
disabled | disabled | ||
- | ~# i2cset -f -y 2 0x18 0x92 1 | + | ~# i2cset -f -y 1 0x18 0x92 1 |
- | ~# i2cget -f -y 2 0x18 0x92 | + | ~# i2cget -f -y 1 0x18 0x92 |
0x01 | 0x01 | ||
Line 79: | Line 155: | ||
~# mcu_reboot | ~# mcu_reboot | ||
- | ~# i2cset -f -y 2 0x18 0x91 2 | + | ~# i2cset -f -y 1 0x18 0x91 2 |
``` | ``` | ||
Line 88: | Line 164: | ||
```shell boot_targets | ```shell boot_targets | ||
- | kedge2# printenv boot_targets | + | kvim1s# printenv boot_targets |
- | boot_targets=usb0 | + | boot_targets=wow usb0 mmc0 mmc1 storeboot rescue fail pxe dhcp |
``` | ``` | ||
Line 97: | Line 174: | ||
```shell boot_targets | ```shell boot_targets | ||
- | kedge2# printenv boot_targets | + | kvim1s# printenv boot_targets |
- | boot_targets=usb0 | + | boot_targets=usb0 mmc0 mmc1 storeboot rescue fail pxe dhcp |
``` | ``` | ||
- | ===== SPI Flash partitions table ===== | + | ===== MMC/SD boot areas ===== |
+ | |||
+ | ```txt MMC/SD boot areas | ||
+ | |||
+ | 1STBLOB 0x00000200 | ||
+ | BL2E 0x0002a200 | ||
+ | BL2X 0x0003d200 | ||
+ | DDRFIP | ||
+ | DEVFIP | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ===== SPI-Flash boot areas ===== | ||
+ | |||
+ | |||
+ | ```txt SPI-Flash boot areas | ||
+ | |||
+ | 1STBLOB 0x00000000 | ||
+ | BL2E 0x00054000 | ||
+ | BL2X 0x0007a000 | ||
+ | DDRFIP | ||
+ | DEVFIP | ||
- | WIP: | ||
- | ```txt MTD parts | ||
``` | ``` | ||