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
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
DRAM: 2 GiB
Panel: N/A (-1)
MMC: NEXELL DWMMC: 0, NEXELL DWMMC: 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!

dmitry

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests