Miyoo

BROM Boot Header


參考資訊:
1. eGON

格式如下:

BytesContent
4Instruction
8Magic "eGON.BT0"
4Checksum
4Length
4SPL Signature
4FEL Script Address
4FEL uEnv Length
4DT Name Offset
4Reserved
4Boot 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


返回上一頁