sudo apt-get install gcc-aarch64-linux-gnu
export ARCH=arm64
export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
make distclean
make jetson-tx1_defconfig
make
but I got errors:
HOSTCC tools/proftool
make: sdl-config: Command not found
CC arch/sandbox/cpu/cpu.o
arch/sandbox/cpu/cpu.c: In function ‘sandbox_read_fdt_from_file’:
arch/sandbox/cpu/cpu.c:110:3: warning: implicit declaration of function ‘fdt_create_empty_tree’ [-Wimplicit-function-declaration]
err = fdt_create_empty_tree(blob, 256);
I was trying to build L4T 24.1 uboot, I got errors by following L4T 24.1 “Downloading and Building U-Boot” documentation:
. Set the build environment:
$ export ARCH=arm
$ export CROSS_COMPILE=<your_toolchain_location>
4. Build U-Boot by executing:
$ make distclean
$ make <target_board>_defconfig
$ make
I did not get error when using 64 bit configurations:
Hello, yahoo2016:
Please check your board name.
For example, my board is p2371-2180, so the configuration command for u-boot should be:
make p2371-2180_defconfig
(you can find the corresponding file in configs)
the u-boot build command:
make -f Makefile ARCH=arm CROSS_COMPILE=xxx USE_PRIVATE_LIBGCC=yes
(note the cross tool chain must use 64-bit target.
If you still meet errors, please paste the log here.
HOSTCC tools/dumpimage.o
HOSTLD tools/dumpimage
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
CC arch/arm/cpu/armv8/generic_timer.o
cc1: warning: unknown register name: x18
{standard input}: Assembler messages:
{standard input}:33: Error: selected processor does not support requested special purpose register – mrs r0,cntfrq_el0' {standard input}:63: Error: selected processor does not support requested special purpose register -- mrs r0,cntpct_el0’
scripts/Makefile.build:276: recipe for target ‘arch/arm/cpu/armv8/generic_timer.o’ failed
make[1]: *** [arch/arm/cpu/armv8/generic_timer.o] Error 1
Makefile:1159: recipe for target ‘arch/arm/cpu/armv8’ failed
make: *** [arch/arm/cpu/armv8] Error 2
. Set the build environment:
$ export ARCH=arm
$ export CROSS_COMPILE=<your_toolchain_location>
4. Build U-Boot by executing:
$ make distclean
$ make <target_board>_defconfig
$ make