Other Parts Discussed in Thread: LP8720
Hello Champs,
System information:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
/.bashrc文件末尾新添加
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/qt4/x86_64-linux-gnu/
export PATH=/home/xxx/ti_sdk9.01/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH
export PATH=~/ti_sdk9.01/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin:$PATH
With the latest linux-RT sdk version 9.01, there was a problem compiling the 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
When the zmage was finally compiled, an error occurred:
Drivers/regulator/lp872x.c: In function'lp872x_hw_enable':
Drivers/regulator/lp872x.c:722:17: Compiler internal error: Illegal directive
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 submit a complete error report.
Attach preprocessed source files, if possible.
Please include the complete backtrace with any bug report.
Refer to <https://bugs.linaro.org/> for instructions.
Make[3]: *** [Scripts/Makefile.build:250: Drivers/regulator/lp872x.o] error 1
Make[2]: *** [Scripts/Makefile.build:502: Drivers/regulator] Error 2
Make[1]: *** [Scripts/Makefile.build:502: Drivers] Error 2
Make[1]: *** Waiting for outstanding tasks....
This is the function usleep_range (LP8720_ENABLE_DELAY, 1.5 * LP8720_ENABLE_DELAY); for illegal instructions, what is the reason for this?
Customer didn't do any modification. He downloaded sdk first and then compiled it. If there is no problem, he will start to modify it according to his design. Now the problem is that when compile directly, as described, this error occurs, He doesn't know where the problem is. The previous u-boot compilation also had a problem, unsigned long d = 1e9 Also the compiler internal error: illegal instruction, this should be the compiler does not support 1e9, so he changed to unsigned long d = 1000000000; and then compile again without problem. Now he hasn't found the reason for this.
Thanks
Regards
Shine