This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

boot.ais 与app.bin 烧写问题

Other Parts Discussed in Thread: TMS320C6748, OMAP-L138

1.依据手册 using the tms320c6748/c6746/c6742 bootloader 中 第六章 6.4 小结(page19 ):NAND FLASH BOOT
从nand flash启动,ais应该被写到 block 1,问题来了--- 芯片是怎么知道的boot是烧写到block 1的呢?是芯片出厂默认的吗,是否可以修改?


2. 使用软件sfh_omapl138.exe 烧写boot.ais 与app.bin
使用命令:
sfh_omapl138.exe  -flash <ubl binary file> <binary app file>

问题来了:
ubl: 是烧写到 flash block 1 ???
APP:是烧写到 flash 的哪里了呢?  

ubl 启动后,又是如何知道 从哪里去读app file的呢?

  • user4838224 说:
    问题来了--- 芯片是怎么知道的boot是烧写到block 1的呢?是芯片出厂默认的吗,是否可以修改?

    是ROM bootloader默认的,目前的版本的芯片可以从Block 0开始,由bootmode设定。

    user4838224 说:
    ubl: 是烧写到 flash block 1 ???

    可以block 1,也可以block 0,取决于boot mode。

    user4838224 说:
    APP:是烧写到 flash 的哪里了呢?  

    由UBL与flash writer互相确定。

    user4838224 说:
    问题来了:
    ubl: 是烧写到 flash block 1 ???
    APP:是烧写到 flash 的哪里了呢?  

    ubl 启动后,又是如何知道 从哪里去读app file的呢?

    UBL其实就是用户代码,APP放哪,由UBL决定,相应的flash writer就写到哪。

  • 你好,我现在不明白的是,我使用

    使用命令:
    sfh_omapl138.exe  -flash <ubl binary file> <binary app file>

    ROM bootloader默认, UBL写到block 1;

    “UBL其实就是用户代码,APP放哪,由UBL决定,相应的flash writer就写到哪” ,如何可以知道 app file 烧写到 flash 的哪个位置呢

  • 一般在Aisgen工具里就可以对DDR, PLL, Pinmux等进行初始化配置,不需要UBL.
  • 你好,我想问一下

    使用命令:

    sfh_omapl138.exe  -flash <ubl binary file> <binary app file>

    ROM bootloader默认, UBL写到block 1;

    “UBL其实就是用户代码,APP放哪,由UBL决定,相应的flash writer就写到哪” ,如何可以知道 app file 烧写到 flash 的具体哪个位置呢

  • OMAP-L138_FlashAndBootUtils_2_40\OMAP-L138\Common\include\device_nand.h里定义的:

    // Defines which NAND blocks are valid for writing the APP data
    #define DEVICE_NAND_UBL_SEARCH_START_BLOCK (6)
    #define DEVICE_NAND_UBL_SEARCH_END_BLOCK (50)