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-RT sdk 9.01版本,在编译kernel的时候出现一个问题:
make ARCH=arm CROSS_COMPILE = arm-none-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE = arm-none-linux-gnueabihf- omap2plus_defconfig
make ARCH=arm CROSS_COMPILE = arm-none-linux-gnueabihf- menuconfig
make ARCH=arm CROSS_COMPILE = arm-none-linux-gnueabihf- am335x-evm.dtb
make ARCH=arm CROSS_COMPILE = arm-none-linux-gnueabihf- -j4 zImage
在最后编译zmage的时候,出现一个错误:
drivers/regulator/lp872x.c: 在函数‘lp872x_hw_enable’中:
drivers/regulator/lp872x.c:722:17: 编译器内部错误: 非法指令
722 | usleep_range(LP8720_ENABLE_DELAY, 1.5 * LP8720_ENABLE_DELAY);
| ^~~~~~~~~~~~
CC net/ethtool/stats.o
0x7652eb64251f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7652eb629d8f __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x7652eb629e3f __libc_start_main_impl
../csu/libc-start.c:392
请提交一份完整的错误报告,
如有可能请附上经预处理后的源文件。
Please include the complete backtrace with any bug report.
参阅 <https://bugs.linaro.org/> 以获取指示。
make[3]: *** [scripts/Makefile.build:250:drivers/regulator/lp872x.o] 错误 1
make[2]: *** [scripts/Makefile.build:502:drivers/regulator] 错误 2
make[1]: *** [scripts/Makefile.build:502:drivers] 错误 2
make[1]: *** 正在等待未完成的任务....
就是这个函数usleep_range(LP8720_ENABLE_DELAY, 1.5 * LP8720_ENABLE_DELAY);为非法指令,这个是什么原因阿?
感谢您对TI产品的关注!由于问题比较复杂,已将您的问题发布在E2E英文技术论坛上,由资深的英文论坛工程师为您提供帮助。 您也可以点击下帖链接了解进展:
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1336287/am3359-kernel-compiling-error
请尝试一下执行make linux
Can we try building kernel by "make linux" from the SDK installation folder?