Part Number:PROCESSOR-SDK-AM335X
Tool/software: Linux
Hello everybody.
I'm trying to recompile u-boot included in TI Processor SDK v. 5.03 Linux RT.
While I can compile correctly the Linux kernel, I get an error during the compilation of U-Boot.
I post the console output.
Thanks for any help
Roberto
signal@TI-SDK-64bit:~/TI_SDK/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/board-support/u-boot-2018.01+gitAUTOINC+313dcd69c2-g57f10f0441$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- DEVICE_TREE=am335x-signal-diva O=signal_diva
make[1]: ingresso nella directory "/mnt/sdb/TI_SDK/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/board-support/u-boot-2018.01+gitAUTOINC+313dcd69c2-g57f10f0441/signal_diva"
CHK include/config/uboot.release
Using .. as source for U-Boot
GEN ./Makefile
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CHK include/generated/generic-asm-offsets.h
CHK include/generated/asm-offsets.h
HOSTCC tools/mkenvimage.o
HOSTLD tools/mkenvimage
HOSTCC tools/fit_image.o
HOSTCC tools/image-host.o
HOSTCC tools/dumpimage.o
HOSTLD tools/dumpimage
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
CC arch/arm/cpu/armv8/cpu.o
cc1: warning: unknown register name: x18
In file included from ../arch/arm/include/asm/bitops.h:18:0,
from ../include/linux/bitops.h:131,
from ../include/common.h:25,
from ../arch/arm/cpu/armv8/cpu.c:14:
../include/asm-generic/bitops/__ffs.h: In function ‘__ffs’:
../include/asm-generic/bitops/__ffs.h:19:8: warning: right shift count >= width of type [-Wshift-count-overflow]
word >>= 32;
^~~
In file included from ../arch/arm/include/asm/bitops.h:179:0,
from ../include/linux/bitops.h:131,
from ../include/common.h:25,
from ../arch/arm/cpu/armv8/cpu.c:14:
../include/asm-generic/bitops/__fls.h: In function ‘__fls’:
../include/asm-generic/bitops/__fls.h:17:21: warning: left shift count >= width of type [-Wshift-count-overflow]
if (!(word & (~0ul << 32))) {
^~
../include/asm-generic/bitops/__fls.h:19:8: warning: left shift count >= width of type [-Wshift-count-overflow]
word <<= 32;
^~~
../include/asm-generic/bitops/__fls.h:22:21: warning: left shift count >= width of type [-Wshift-count-overflow]
if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
^~
../include/asm-generic/bitops/__fls.h:26:21: warning: left shift count >= width of type [-Wshift-count-overflow]
if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
^~
../include/asm-generic/bitops/__fls.h:30:21: warning: left shift count >= width of type [-Wshift-count-overflow]
if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
^~
../include/asm-generic/bitops/__fls.h:34:21: warning: left shift count >= width of type [-Wshift-count-overflow]
if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
^~
../include/asm-generic/bitops/__fls.h:38:21: warning: left shift count >= width of type [-Wshift-count-overflow]
if (!(word & (~0ul << (BITS_PER_LONG-1))))
^~
{standard input}: Assembler messages:
{standard input}:36: Error: unexpected character `n' in type specifier
{standard input}:36: Error: bad instruction `b.ne 1b'
../scripts/Makefile.build:280: recipe for target 'arch/arm/cpu/armv8/cpu.o' failed
make[2]: *** [arch/arm/cpu/armv8/cpu.o] Error 1
/mnt/sdb/TI_SDK/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/board-support/u-boot-2018.01+gitAUTOINC+313dcd69c2-g57f10f0441/Makefile:1283: recipe for target 'arch/arm/cpu/armv8' failed
make[1]: *** [arch/arm/cpu/armv8] Error 2
make[1]: uscita dalla directory "/mnt/sdb/TI_SDK/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/board-support/u-boot-2018.01+gitAUTOINC+313dcd69c2-g57f10f0441/signal_diva"
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2