§2023-09-08
- source
(chroot) SurfacePro /usr/src/# git clone https://source.denx.de/u-boot/u-boot.git
# mv u-boot das-u-boot
# cd das-u-boot
# # git checkout v2023.07.02 -b test
Switched to a new branch 'test'
# ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make odroid-hc4_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
# ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make
# find . -name u-boot.bin
./u-boot.bin
# ls u-boot*
u-boot u-boot-dtb.bin u-boot-elf.lds u-boot-elf.o u-boot-nodtb.bin u-boot.bin u-boot.cfg u-boot.dtb u-boot.elf u-boot.lds u-boot.map u-boot.srec u-boot.sym
(chroot) SurfacePro /usr/src/das-u-boot #
?? dd if=u-boot.bin of=/dev/sdb conv=fsync,notrunc bs=512 skip=1 seek=1
sudo dd if="$UBOOT" of="$1" conv=fsync,notrunc bs=512 seek=1
- [odroid-hc4 u-boot](https://wiki.odroid.com/odroid-hc4/software/building_u-boot
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