TRIMUI SMART

如何透過MicroSD進入fel模式


參考資訊:
1. Allwinner-V3s-BROM

BROM

;; Vector table
ffff0000:    ea000008     b    reset         ; reset
ffff0004:    ea000006     b    unimplemented ; _undefined_instruction
ffff0008:    ea000005     b    unimplemented ; _software_interrupt
ffff000c:    ea000004     b    unimplemented ; _prefetch_abort
ffff0010:    ea000003     b    unimplemented ; _data_abort
ffff0014:    ea000002     b    unimplemented ; _not_used
ffff0018:    ea000011     b    irq           ; _irq
ffff001c:    ea000000     b    unimplemented ; _fiq
ffff0020:    ea000013     b    fel_setup     ; FEL

unimplemented:
ffff0024:    eafffffe     b    unimplemented ; loop forever

P.S. fel = 0xffff0020

main.s

    .global _start
    
    .arm
    .text
_start:
    .long 0xea000016
    .byte 'e', 'G', 'O', 'N', '.', 'B', 'T', '0'
    .long 0, __spl_size
    .byte 'S', 'P', 'L', 2
    .long 0, 0
    .long 0, 0, 0, 0, 0, 0, 0, 0
    .long 0, 0, 0, 0, 0, 0, 0, 0
     
_vector:
    b reset
    b .
    b .
    b .
    b .
    b .
    b .
    b .
     
reset:
    b 0xffff0020
    .end

編譯並燒錄到MicroSD後,插入開機就會直接進入fel模式,這樣就可以很方便使用xfel下載到RAM執行


返回上一頁