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.

omapl138解锁问题

Other Parts Discussed in Thread: OMAP-L138

DSP端操作

我们的OMAPL138-E解锁过程如下:

1、  TI官网下载OMAPL138_C6748_Generic_Security-1.0.2-Setup.exe,并安装完成;

2、  在安装目前下进入下面文件夹:

OMAPL138_C6748_Generic_Security\OMAP-L138_Secure_FlashAndBootUtils_trunk\OMAP-L138_Secure\GNU\AISUtils

3、  进入ini_generic文件夹里打开OMAP-L138_generic_secure.ini文件,注释掉了key_hdr_sha256_enc.bin,因为没有此文件。配置我们板子的DDR型号时序,具体ini文件请见附件。

4、  使用SecureHexAIS_OMAP-L138.exe工具产生bin文件,格式如下:

SecureHexAIS_OMAP-L138.exe -ini <ini file>.ini -otype binary -o <binary image>.bin <hello_world>.out

注:.out文件使用OMAPL138_C6748_Generic_Security

\OMAP-L138_Secure_FlashAndBootUtils_trunk\OMAP-L138_Secure\GNU\AISUtils\AISextra中的文件DSP_AISExtra_OMAP-L138.out

5、  使用GenericSecureUartHost.exe工具加载bin文件进行解锁操作就行了。如下所示:

6、  打开CCS,使用JTAG连接omapl138,发现只有DSP核连接上了,能够正常运行用户程序;但ARM9核却连接不上,错误信息如下图所示:

ARM端操作

采用串口烧写工具sfh_OMAP-L138.exe 烧写uboot

1.从开源网站上下载最新的 OMAP-L138_FlashAndBootUtils 。

 这里我们用的是OMAPL138_FlashAndBootUtils_2_40 工具包

2.根据硬件修改相应代码并重新编译。

 目前只修改了OMAP-L138/Common/src/device.c 文件中函数Uint32  DEVICE_ExternalMemInit( )的 5 个 DDR 参数值。

3.按照资料安装配置该工具包的编译环境,编译结果如下图所示:

4.采用编译好的sfh_OMAP-L138.exe 烧写uboot

5. 具体指令:sfh_OMAP-L138 -flash_noubl -targetType OMAPL138 -flashType  NAND -p COM5 u-boot.ais

6. 结果如下图所示,擦除指令也是一样,官方提供的sfh_OMAP-L138.exe工具也试过,结果   一样。

 

 

 

 

OMAP-L138_generic_secure.ini