Page 1 of 1

[Uboot] Compile Uboot for Aarch64 Error

Posted: Thu Aug 16, 2018 7:09 am
by huyle
Follow by step at:
Compile Uboot
1. git clone
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

Re: [Uboot] Compile Uboot for Aarch64 Error

Posted: Thu Aug 16, 2018 7:24 am
by huyle
Need the Device Tree.
Fixed with:

Code: Select all

sudo apt-get install device-tree-compiler


Re: [Uboot] Compile Uboot for Aarch64 Error

Posted: Tue Jan 29, 2019 11:10 am
by dmitryz
Good day, HuyLe ,

could you, please. advise what to do after compilation?
There is a bunch of file : fip-nonsecure.img, fip-nonsecure.bin, u-boot.bin etc .

On NanoPC-T3 I have:
Model: FriendlyElec boards based on Nexell s5p6818
Board: NanoPC-T3
Panel: N/A (-1)
HDMI: display.0, preset 0 (1280 * 720)
HDMI: phy ready...
LCD: [HDMI] dp.0.1 1280x720 32bpp FB:0x46000000
In: serial
Out: serial
Err: serial

Hit any key to stop autoboot: 0
nanopi3# ver

U-Boot 2016.01-00021-g32c3ef9 (Nov 22 2017 - 15:16:22 +0800)
aarch64-linux-gcc (ctng-1.23.0-150g-FA) 6.4.0
GNU ld (ctng-1.23.0-150g-FA) 2.28

And then I do on NanoPCt3: usb start, fastboot 1
After on host side i try to check with fastboot devices and see something like "???????" .
What should i say to fastboot on host side ?

Thanks in advance!