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.

[参考译文] Linux/TMS320DM355:从 DM35x_FlashAndBootUtils_1_50.tar 构建 UBL 时出现问题

Guru**** 2551110 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/615222/linux-tms320dm355-problem-building-ubl-from-dm35x_flashandbootutils_1_50-tar

器件型号:TMS320DM355

工具/软件:Linux

在 Ubuntu 下运行-使用能够构建和执行内核的开发系统

在 UBL 构建上的链接器有一些问题(我真正需要 的是 NAND。 bin 文件)

制造
使-C 构建类型=nand
make[1]:输入目录'/home/dsmith/Desktop/flash/DM35x/GNU/ubl/build
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.bL_NAND ./../../../Common/ubl/src/ubl.c -o UBL_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.bL_NAND ./../../../Common/arch/arm926ejs/src/boot.c -o boot_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.bL_NAND ./../../../Common/arch/arm926ejs/src/selfcopy.c -o selfcopy_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.bL_NAND ./../../../Common/ubl/src/uartboot.c -o uartboot_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.b_NAND ./../../Common/src/device.c -o device_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.b_NAND ./../../../Common/gnu/src/debug.c -o debug_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.b_NAND ./../../../Common/gnu/src/uart.c -o UART_NAND.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.bL_NAND ./../../../Common/src/util.c -o util_nand.o
‘:/../../../Common/src/util.c:73:14:‘s:本地 CalcBitWiseParity’声明为“tatic”,但从未定义[-Wunuse-function]
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I.-I./../../../Common/gnu/include -I.bL_NAND ./../../../Common/drivers/src/nand.c -o nand_nand.o
./../../../Common/drivers/src/nand.c:在函数‘local_flashGetDetails’中:
./../../../Common/drivers/src/nand.c:1194:3:警告:取消引用类型已打孔的指针将破坏严格别名规则[-Wstrict-aliasing]
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I./../../../Common/gnu/include -I.-I.bL_NAND ./../../../Common/ubl/src/nandboot.c -o nandboot_nand.o
arm-linux-gnueabi-gcc -c -os -Wall -ffreestanding -I./../../Common/include -I./../../../Common/include -I./../../../Common/arch/arm926ejs/include -I./../../../Common/ubl/include -I./../../../Common/drivers/include -I./../../../Common/gnu/include -I.-I.bL_NAND ./../../Common/src/device_nand.c -o device_nand_nand.o
‘D/../../Common/src/device_nand.c:在函数“evice_NAND_ECC_ENABLE”中:
‘d/../../Common/src/device_nand.c:211:11:警告:变量‘虚拟’设置但未使用[-Wunuse-but -set-variable ]
‘D/../../Common/src/device_nand.c:在函数“evice_NAND_ECC_DISABLE”中:
‘d/../../Common/src/device_nand.c:226:11:警告:变量‘虚拟’设置但未使用[-Wunuse-but -set-variable ]
arm-linux-gnueabi-gcc -WL、-T./UBL.lds -nostdlib UBL_nand.o boot_nand.o selfcopy_nand_.o uartboot_nand.o device_nand.o debug_nand.o UART_nand.o UART_nand.o Uartn_n_nand -nbl 和-35n_n_and n_boot_nbl 和-n_n_n_and.o 器件
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:加载于[00000000、00000023]的.not.GNU.build-id 段与加载于[00000000、000000df]的.self 段重叠
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:在[00002be4、00002d03]加载的.text.startup 段与在[00002be4、00002f9f]加载的.rodata 段重叠
collect2:错误:LD 返回1退出状态
Makefile:90:目标'UBL_DM35x_nand'的配方失败
maked[1]:***[UBL_DM35x_nand]错误1.

有什么想法吗?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    问题迎刃而解

    添加了: *(.text.*)^M

    更改为:UBL.lds

    text:at ( LOADADDR(.boot)+ SIZEOF (.boot))^M
    {^M
    *(.text.*)^M
    *(.text)^M
    。 =对齐(4);^M
    }^M
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的 David:

    感谢您分享解决方案。

    此致、
    帕维尔