This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge2:hardware:boot-sequence [2022/08/29 02:32] hyphop [SPL loader] |
products:sbc:edge2:hardware:boot-sequence [2022/08/29 03:06] (current) hyphop [SPL loader] |
||
|---|---|---|---|
| Line 13: | Line 13: | ||
| * SPL-loader scan special areas for next [[# | * SPL-loader scan special areas for next [[# | ||
| + | <tabbox common logs> | ||
| - | ```log spl-boot.log | + | ```log spl-boot-example.log |
| U-Boot SPL board init | U-Boot SPL board init | ||
| U-Boot SPL 2017.09 (Aug 26 2022 - 15:50:37) | U-Boot SPL 2017.09 (Aug 26 2022 - 15:50:37) | ||
| - | Failed to set cpub01 | ||
| - | Failed to set cpub23 | ||
| - | I2c2 speed: 100000Hz | ||
| MCU: bootmode: 1, oowow 0 | MCU: bootmode: 1, oowow 0 | ||
| board_boot_order: | board_boot_order: | ||
| Line 28: | Line 26: | ||
| Trying to boot from MMC2 :: 0 | Trying to boot from MMC2 :: 0 | ||
| Card did not respond to voltage select! | Card did not respond to voltage select! | ||
| - | mmc_init: -95, time 12 | ||
| - | spl: mmc init failed with error: -95 | ||
| Trying to boot from MMC1 :: 1 | Trying to boot from MMC1 :: 1 | ||
| Trying fit image at 0x4000 sector | Trying fit image at 0x4000 sector | ||
| Line 37: | Line 33: | ||
| Trying to boot from MTD2 :: 2 | Trying to boot from MTD2 :: 2 | ||
| Trying fit image at 0x300 sector | Trying fit image at 0x300 sector | ||
| + | ... | ||
| ``` | ``` | ||
| + | <tabbox oowow-mode logs > | ||
| + | |||
| + | ```log log spl-boot-oowow-mode-example.log | ||
| + | U-Boot SPL board init | ||
| + | U-Boot SPL 2017.09 (Aug 26 2022 - 15:50:37) | ||
| + | MCU: bootmode: 1, oowow 1 | ||
| + | MCU: oowow 2 | ||
| + | board_boot_order: | ||
| + | !!! same-as-spl: | ||
| + | +++ / | ||
| + | !!! / | ||
| + | !!! / | ||
| + | !!! / | ||
| + | Trying to boot from MTD2 :: 0 | ||
| + | Trying fit image at 0x300 sector | ||
| + | ... | ||
| + | Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000) | ||
| + | ... | ||
| + | ``` | ||
| + | |||
| + | </ | ||
| Line 46: | Line 64: | ||
| ==== U-Boot OS boot sequence ==== | ==== U-Boot OS boot sequence ==== | ||
| + | |||
| + | <WRAP important > | ||
| + | We discribe only about SPI-flash u-boot, for other custom U-boots which can stored at eMMC or SD its will be different | ||
| + | </ | ||
| + | |||
| + | OS booting follow by '' | ||
| + | |||
| + | ```shell | ||
| + | kedge2# printenv boot_targets | ||
| + | boot_targets=usb0 mmc1 mmc0 pxe dhcp fail | ||
| + | ``` | ||
| + | |||
| WIP: | WIP: | ||
| + | |||
| + | ==== OS boot configuration - extlinux config ==== | ||
| + | |||
| + | Basic example: | ||
| + | |||
| + | ```conf extlinux/ | ||
| + | menu background /logo.bmp | ||
| + | LABEL Default | ||
| + | LINUX /Image | ||
| + | INITRD /initrd.img | ||
| + | FDTDIR /dtb | ||
| + | APPEND ${bootargs} earlycon=uart8250, | ||
| + | timeout | ||
| + | default Default | ||
| + | ``` | ||
| ===== OOWOW mode ===== | ===== OOWOW mode ===== | ||
| + | OOWOW mode can be activated by | ||
| + | |||
| + | * special on board short-cuts '' | ||
| + | * under running OS via special [[# | ||
| WIP: | WIP: | ||
| + | |||
| ==== OOWOW special mode ==== | ==== OOWOW special mode ==== | ||
| Line 58: | Line 108: | ||
| ==== OOWOW rescue mode ==== | ==== OOWOW rescue mode ==== | ||
| + | |||
| + | WIP: | ||
| + | |||
| + | ==== MCU register for start oowow ==== | ||
| WIP: | WIP: | ||