Power & Source of Big Ideas

[Uboot] Compile Uboot for Aarch64 Error

Moderator: FATechsupport

Follow by step at: http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T3#Compile_U-Boot_2
Compile Uboot
1. git clone https://github.com/friendlyarm/u-boot.git
2. cd u-boot
3. git checkout nanopi2-v2016.01
4. make make s5p6818_nanopi3_defconfig
5. make CROSS_COMPILE=aarch64-linux-
Get error seeing the logs:

Code: Select all

┌─ huyle@huyle: ~/nanopc/u-boot
└> make CROSS_COMPILE=aarch64-linux-
  CHK     include/config/uboot.release
  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/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/dumpimage
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkimage
  CC      common/main.o
  CC      common/board_f.o
  CC      common/cmd_version.o
  LD      common/built-in.o
  CC      drivers/video/cfb_console.o
drivers/video/cfb_console.c: In function ‘video_init’:
drivers/video/cfb_console.c:2084:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  video_fb_address = (void *) VIDEO_FB_ADRS;
                     ^
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
  CC      drivers/usb/gadget/f_fastboot.o
  LD      drivers/usb/gadget/built-in.o
  DTC     arch/arm/dts/s5p6818-drone.dtb
/bin/sh: 1: dtc: not found
scripts/Makefile.lib:296: recipe for target 'arch/arm/dts/s5p6818-drone.dtb' failed
make[2]: *** [arch/arm/dts/s5p6818-drone.dtb] Error 127
dts/Makefile:36: recipe for target 'arch-dtbs' failed
make[1]: *** [arch-dtbs] Error 2
Makefile:1249: recipe for target 'dts' failed
make: *** [dts] Error 2
┌─ huyle@huyle: ~/nanopc/u-boot
Need the Device Tree.
Fixed with:

Code: Select all

sudo apt-get install device-tree-compiler


--HuyLe

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 102 on Mon Oct 08, 2018 12:42 pm

Users browsing this forum: No registered users and 1 guest