1 / 21

Dual-OS Project

Dual-OS Project. Second Stage Loader. ─ for BF561. Presenter: Tang-Hsun Tu. National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu. ◇ Multi-DXE Loader. ◇ Loader Format. ◇ Second Stage Loader. ○ Loader. ○ Environment. ○ Conclusion.

penn
Download Presentation

Dual-OS Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  17. Second Stage Loader Example 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 National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu

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

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

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

  21. ~F&Q~ ~F&Q~ National Taiwan University, Graduate Institute of Networking and Multimedia Tang-Hsun Tu

More Related