实验环境:
DM368 平台 : LW3xx
HOST : ubuntu 10.04.4 64-bit
CROSS_COMPILE : CodeSourcery GNU Toolchain for ARM Processors: q1-203 version
1,下载DaVinci-PSP-SDK-03.21.00.04 Package for AM18x/OMAP-L138/DA850 and DM365/DM368
2,解压后进入目录 DaVinci-PSP-SDK-03.21.00.04/src/boot-strap/flash-utils-03.21.00.04/DM36x/GNU/
3,设置 ARM 交叉编译工具的路径(编译 UBL,CROSSCOMPILE 只能使用 arm-none-linux-gnueabi-gcc)
#export PATH=$PATH:$CROSS_COMPILE_PATH
4,编译 UBL,最好安装一下 mono framework,编译 sfh_DM36x.exe 会用到
#make clean#make
在 ubl 目录下会生成一下的二进制文件
-rwxr-xr-x 1 root root 12892 -05-02 17:38 ubl_DM36x_ARM216_DDR173_OSC19P2_NAND.bin-rwxr-xr-x 1 root root 8184 -05-02 17:38 ubl_DM36x_ARM216_DDR173_OSC19P2_SDMMC.bin-rwxr-xr-x 1 root root 12912 -05-02 17:38 ubl_DM36x_ARM216_DDR173_OSC24_NAND.bin-rwxr-xr-x 1 root root 8208 -05-02 17:38 ubl_DM36x_ARM216_DDR173_OSC24_SDMMC.bin-rwxr-xr-x 1 root root 12896 -05-02 17:38 ubl_DM36x_ARM270_DDR216_OSC27_NAND.bin-rwxr-xr-x 1 root root 8188 -05-02 17:38 ubl_DM36x_ARM270_DDR216_OSC27_SDMMC.bin-rwxr-xr-x 1 root root 12904 -05-02 17:38 ubl_DM36x_ARM297_DDR243_OSC24_NAND.bin-rwxr-xr-x 1 root root 8196 -05-02 17:38 ubl_DM36x_ARM297_DDR243_OSC24_SDMMC.bin-rwxr-xr-x 1 root root 12896 -05-02 17:38 ubl_DM36x_ARM297_DDR270_OSC24_NAND.bin-rwxr-xr-x 1 root root 8188 -05-02 17:38 ubl_DM36x_ARM297_DDR270_OSC24_SDMMC.bin-rwxr-xr-x 1 root root 12884 -05-02 17:38 ubl_DM36x_ARM297_DDR277_OSC27_NAND.bin-rwxr-xr-x 1 root root 8176 -05-02 17:38 ubl_DM36x_ARM297_DDR277_OSC27_SDMMC.bin-rwxr-xr-x 1 root root 12920 -05-02 17:38 ubl_DM36x_ARM432_DDR340_OSC24_NAND.bin-rwxr-xr-x 1 root root 8212 -05-02 17:38 ubl_DM36x_ARM432_DDR340_OSC24_SDMMC.bin-rwxr-xr-x 1 root root 12908 -05-02 17:38 ubl_DM36x_NAND.bin-rwxr-xr-x 1 root root 8200 -05-02 17:38 ubl_DM36x_SDMMC.bin
其中 ubl_DM36x_ARM432_DDR340_OSC24_NAND.bin 和ubl_DM36x_ARM432_DDR340_OSC24_SDMMC.bin 适用于 LW3xx 平台