Miyoo
BROM Boot Header
參考資訊:
1. eGON
格式如下:
Bytes | Content |
---|---|
4 | Instruction |
8 | Magic "eGON.BT0" |
4 | Checksum |
4 | Length |
4 | SPL Signature |
4 | FEL Script Address |
4 | FEL uEnv Length |
4 | DT Name Offset |
4 | Reserved |
4 | Boot Media |
4+ | String Pool |
XBoot範例:
.global _start _start: ; Boot head information for BROM ; 0x40 - boot params ; 0x58 - fel boot type ; 0x5c - dram size .long 0xea000016 .byte 'e', 'G', 'O', 'N', '.', 'B', 'T', '0' .long __spl_checksum .long __spl_size .byte 'S', 'P', 'L', 2 .long 0 .long 0 .long 0, 0, 0, 0, 0, 0, 0, 0 .long 0, 0, 0, 0, 0, 0, 0, 0 _vector: b reset ldr pc, _undefined_instruction ldr pc, _software_interrupt ldr pc, _prefetch_abort ldr pc, _data_abort ldr pc, _not_used ldr pc, _irq ldr pc, _fiq