Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2:hardware:boot-sequence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:edge2:hardware:boot-sequence [2022/08/29 02:33]
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 [[#U-Boot-loader]] by ''SD'' => ''eMMC'' => ''SPI-FLash''    * SPL-loader scan special areas for next [[#U-Boot-loader]] by ''SD'' => ''eMMC'' => ''SPI-FLash'' 
  
 +<tabbox common logs>
  
 ```log spl-boot-example.log ```log spl-boot-example.log
Line 35: Line 36:
 ``` ```
  
 +<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: /chosen found, using spl_boot_device()
 +!!! same-as-spl: 
 ++++ /spi@fe2b0000/flash@1: 
 +!!! /mmc@fe2c0000: 
 +!!! /mmc@fe2e0000: 
 +!!! /spi@fe2b0000/flash@1: 
 +Trying to boot from MTD2 :: 0
 +Trying fit image at 0x300 sector
 +...
 +Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
 +...
 +```
 +
 +</tabbox>
  
  
Line 42: 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 
 +</WRAP>
 +
 +OS booting follow by ''distro_bootcmd'' which use ''boot_targets'' priority for scanning bootable OS. Step by step scan all available storage's and partitions for [[#os-boot-configuration-extlinux-config]]
 +
 +```shell
 +kedge2# printenv boot_targets 
 +boot_targets=usb0 mmc1 mmc0 pxe dhcp fail
 +```
 +
  
 WIP: WIP:
 +
 +==== OS boot configuration - extlinux config ====
 +
 +Basic example:
 +
 +```conf extlinux/extlinux.conf 
 +menu background /logo.bmp
 +LABEL Default
 +  LINUX /Image
 +  INITRD /initrd.img
 +  FDTDIR /dtb
 +  APPEND ${bootargs} earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 console=tty0 irqchip.gicv3_pseudo_nmi=0 root=LABEL=ROOTFS rootflags=data=writeback rw rootfstype=ext4
 +timeout  10
 +default Default
 +```
  
 ===== OOWOW mode ===== ===== OOWOW mode =====
  
 +OOWOW mode can be activated by
 +
 +  * special on board short-cuts ''FUNCTION'' + ''RESET''
 +  * under running OS via special [[#MCU-register-for-start-oowow]] - software way    
 WIP: WIP:
 +
  
 ==== OOWOW special mode ==== ==== OOWOW special mode ====
Line 54: Line 108:
  
 ==== OOWOW rescue mode ==== ==== OOWOW rescue mode ====
 +
 +WIP:
 +
 +==== MCU register for start oowow ====
  
 WIP: WIP:
  
Last modified: 2022/08/29 02:33 by hyphop