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.
Hi Expert
In order to update my linux based on ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001,I had to rebuild U-boot.
1, source linux-devkit/environment-setup
2,make CROSS_COMPILE=arm-oe-linux-gnueabi- ARCH=arm O=am335x_evm_boot am335x_evm_defconfig,
but there have something wrong as below,
make[1]: 进入目录“/home/iot/ti-sdk/board-support/ti-u-boot-2023.04+gitAUTOINC+d74d0993e2-gd74d0993e2/am335x_evm_boot”
HOSTCC scripts/basic/fixdep
In file included from /home/iot/ti-sdk/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/gnu/stubs.h:23,
from /home/iot/ti-sdk/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/features.h:514,
from /home/iot/ti-sdk/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/sys/types.h:25,
from ../scripts/basic/fixdep.c:92:
/home/iot/ti-sdk/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/gnu/stubs-32.h:7:11: fatal error: gnu/stubs-soft.h: 没有那个文件或目录
7 | # include <gnu/stubs-soft.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:95:scripts/basic/fixdep] 错误 1
make[1]: *** [/home/iot/ti-sdk/board-support/ti-u-boot-2023.04+gitAUTOINC+d74d0993e2-gd74d0993e2/Makefile:492:scripts_basic] 错误 2
make[1]: 离开目录“/home/iot/ti-sdk/board-support/ti-u-boot-2023.04+gitAUTOINC+d74d0993e2-gd74d0993e2/am335x_evm_boot”
make: *** [Makefile:177:sub-make] 错误 2
I have searched for a lot of information but couldn't find the corresponding answer. Therefore, I am seeking help。
best regard
Qinlong
您好,
gnu/stubs-soft.h报错,请参考这个帖子内的方法
其他类似的编译问题,请参考
AM3352: Build U-boot error - Processors forum - Processors - TI E2E support forums
Alice您好!
我执行了 ouch /home/iot/ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001/linux-devkit/sysroots/armv7at2hf-neon-oe-linux-gnueabi/usr/include/gnu/stubs-soft.h
出现了新的错误,具体如下。
make CROSS_COMPILE=arm-oe-linux-gnueabi- ARCH=arm O=am335x_evm_boot am335x_evm_defconfig
make[1]: 进入目录“/home/iot/ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001/board-support/ti-u-boot-2023.04+gitAUTOINC+d74d0993e2-gd74d0993e2/am335x_evm_boot”
HOSTCC scripts/basic/fixdep
fixdep: read: Success
make[2]: *** [scripts/Makefile.host:95:scripts/basic/fixdep] 错误 2
make[2]: *** 正在删除文件“scripts/basic/fixdep”
make[1]: *** [/home/iot/ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001/board-support/ti-u-boot-2023.04+gitAUTOINC+d74d0993e2-gd74d0993e2/Makefile:492:scripts_basic] 错误 2
make[1]: 离开目录“/home/iot/ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001/board-support/ti-u-boot-2023.04+gitAUTOINC+d74d0993e2-gd74d0993e2/am335x_evm_boot”
make: *** [Makefile:177:sub-make] 错误 2
还请能指明错误的原因,谢谢!
Qin Long
Alice您好!
这个问题已经解决,我仔细比较了environment-setup和environment-setup-armv7at2hf-neon-oe-linux-gnueabi,发现environment-setup-armv7at2hf-neon-oe-linux-gnueabi里面的gcc含有“-march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard”参数,而environment-setup里面虽然定义了CFLAGS,该变量含有“-march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard”参数,但是gcc里面没有使用CFLAGS,所以我直接使用 source environment-setup-armv7at2hf-neon-oe-linux-gnueabi就没有问题了。
谢谢!