Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Dual-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu Second Stage Loader.

Similar presentations


Presentation on theme: "1 Dual-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu Second Stage Loader."— Presentation transcript:

1 1 Dual-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu Second Stage Loader ─ for BF561

2 2 ◇ Multi-DXE Loader  Outlines ○ Boot Method ◇ Loader Format ○ Loader ○ Environment National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu ○ Conclusion ○ Further Work ◇ Second Stage Loader

3 3 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu

4 4 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Boot Method Boot Mode

5 5 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu 1.*.doj, 由 Visual DSP++ 編譯 *.s, *.c 產生的 object 檔案 2.*.dxe, 由 Linker 連結產生執行檔 3.*.ldr, 透過 Loader 轉換 dxe 成 ldr 4.*.bin, 由 Blackfin 提供的 cross-compiler 編譯出的二元檔 5.*.hex, 由 Blackfin 提供的轉換程式轉換成 bf561 可 load 檔案 File Format  Boot Method

6 6 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Compiler / Linker / Loader  Boot Method

7 7 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Loader and Flash  Boot Method

8 8 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu

9 9 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Loader File Loader File (*.ldr)

10 10 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu 1.Address(4 bytes) – the block will be booted within mem 2.Count(4 bytes) – number of bytes in the block 3.Flag(2 bytes) – block type and control commands  Loader File 10-byte Header File

11 11 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Loader File Example

12 12 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Loader File Mult-DXE Loader

13 13 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu BF561 4-byte Global header  Loader File

14 14 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Loader File BF561 Mult-DXE Loader

15 15 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Second Stage Loader

16 16 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Second Stage Loader

17 17 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu  Second Stage Loader section ("l2_shared") EX_INTERRUPT_HANDLER(A_ISR) { if(*pFIO0_FLAG_C & 0x0020) //SW 5 is pressed { //(0-> indicates load executable, 1-> DXE number) SECOND_STAGE_LOADER(0, 1); SECOND_STAGE_LOADER(1, 0);//(1-> execute the DXE) } else if(*pFIO0_FLAG_C & 0x0040) //SW 6 is pressed { //load the 2nd DXE in the boot stream SECOND_STAGE_LOADER(0, 2); SECOND_STAGE_LOADER(1, 0);//execute the 2nd DXE } } // end Example

18 18  Work National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu 分工情況

19 19  Conclusion National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu 1.We can use the ldr file for booting from flash 2.To load two executables, SSL must be incorporated.

20 20  Further Work National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu 1.Convert u-boot format(*.bin) to *.dxe format 2.Use SSL to manage two u-boots (one is for coreA and the other is for coreB)

21 21 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu


Download ppt "1 Dual-OS Project National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu Presenter: Tang-Hsun Tu Second Stage Loader."

Similar presentations


Ads by Google