§2023-09-08

It looks like you have to use suggested tool-chain to compile this onw

¶1. Get compild one from surfacePro

(chroot) SurfacePro /usr/src # mkdir u-boot-odroid-hc4 && cd $_
 
(chroot) SurfacePro /usr/src/u-boot-odroid-hc4 # scp alexlai@192.168.48.231:/home/alexlai/build/u-boot-odrid-hc4/sd_fuse/* ./
alexlai@192.168.48.231's password: 
sd_fusing.sh                                                                                                                                                                                                                             100%  517   285.0KB/s   00:00    
u-boot.bin                                                                                                                                                                                                                                100%  855KB  35.9MB/s   00:00    
u-boot.bin.sd.bin                                                                                                                                                                                                                         100%  856KB  49.0MB/s   00:00    
u-boot.bin.usb.bl2                                                                                                                                                                                                                         100%   64KB  18.4MB/s   00:00    
u-boot.bin.usb.tpl

(chroot) SurfacePro /usr/src/u-boot-odroid-hc4 # ls -l
合計 2572
-rwxr-xr-x 1 root root    517 Sep  8 19:26 sd_fusing.sh
-rw-r--r-- 1 root root 875888 Sep  8 19:26 u-boot.bin
-rw-r--r-- 1 root root 876400 Sep  8 19:26 u-boot.bin.sd.bin
-rw-r--r-- 1 root root  65536 Sep  8 19:26 u-boot.bin.usb.bl2
-rw-r--r-- 1 root root 810352 Sep  8 19:26 u-boot.bin.usb.tpl

以下: failed

¶1. git clone https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01

(chroot) SurfacePro /usr/src # git clone https://github.com/hardkernel/u-boot.git -b odroidg12-v2015.01
(chroot) SurfacePro /usr/src # cd u-boot/
(chroot) SurfacePro /usr/src/u-boot # ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make odroidc4_defconfig
  HOSTCC  scripts/basic/fixdep
  GEN     ./Makefile
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
(chroot) SurfacePro /usr/src/u-boot # ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make -j4
make[1]: aarch64-none-elf-gcc: No such file or directory
/bin/sh: 行 1: aarch64-none-elf-gcc: コマンドが見つかりません
dirname: missing operand
Try 'dirname --help' for more information.
  GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
/bin/sh: 行 1: aarch64-none-elf-gcc: コマンドが見つかりません
/bin/sh: 行 1: aarch64-none-elf-gcc: コマンドが見つかりません
make[3]: *** [../scripts/Makefile.autoconf:64: include/autoconf.mk] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [../scripts/Makefile.autoconf:40: include/autoconf.mk.dep] Error 1
make[2]: *** [../Makefile:477: silentoldconfig] Error 1
make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
make: *** [Makefile:147: sub-make] エラー 2