VM+ubuntu,編譯huawei EC6109 SDK 報錯"[u-boot.bin] Error 1" ,未找到原因

zhang1701發表於2024-10-30

環境:
ubuntu 14,核心3.13.0-24-generic
原始碼:https://kgithub.com/tegzwn/HiSTBLinuxV100R005C00SPC050

編譯問題如下:
make -C /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/cpu/hi3798mv2x/ u-boot.lds
make[4]: Entering directory /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/cpu/hi3798mv2x' make[4]: Nothing to be done for u-boot.lds'.
make[4]: Leaving directory /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/cpu/hi3798mv2x' arm-histbv320-linux-gcc -E -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -D__KERNEL__ -DTEXT_BASE=0x00c00000 -I/home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/include -I/home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot -fno-builtin -ffreestanding -nostdinc -mfloat-abi=soft -isystem -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -DVERSION=3 -DPATCHLEVEL=3 -DSUBLEVEL=0 -DCONFIG_AUXIMAGE=\"/home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/auxcode_sign.img\" -DVERSION=3 -DPATCHLEVEL=3 -DSUBLEVEL=0 -include /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/include/u-boot/u-boot.lds.h -ansi -D__ASSEMBLY__ -P - </home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/cpu/hi3798mv2x/u-boot.lds >u-boot.lds UNDEF_SYM=arm-histbv320-linux-objdump -x board/hi3798mv2x/libhi3798mv2x.a lib/libgeneric.a lib/lzma/liblzma.a lib/lzo/liblzo.a arch/arm/cpu/hi3798mv2x/libhi3798mv2x.a arch/arm/lib/libarm.a net/libnet.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/hisfv300/libhisfv300.a drivers/net/higmac/libhigmac.a drivers/net/stmmac/libstmmac.a drivers/serial/libserial.a common/libcommon.a | sed -n -e 's/.(_u_boot_cmd.)/-u\1/p'|sort|uniq; cd /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot && arm-histbv320-linux-ld -Bstatic -T u-boot.lds -Ttext 0x00c00000 $UNDEF_SYM arch/arm/cpu/hi3798mv2x/start.o --start-group lib/libgeneric.a lib/lzma/liblzma.a lib/lzo/liblzo.a arch/arm/cpu/hi3798mv2x/libhi3798mv2x.a arch/arm/lib/libarm.a net/libnet.a drivers/mmc/libmmc.a drivers/mtd/libmtd.a drivers/mtd/spi/libspi_flash.a drivers/net/libnet.a drivers/net/phy/libphy.a drivers/net/hisfv300/libhisfv300.a drivers/net/higmac/libhigmac.a drivers/net/stmmac/libstmmac.a drivers/serial/libserial.a common/libcommon.a board/hi3798mv2x/libhi3798mv2x.a --end-group /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/lib/eabi_compat.o -L /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/lib -lgcc -L /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot/arch/arm/lib -lgcc -Map u-boot.map -o u-boot arm-histbv320-linux-objcopy -O srec u-boot u-boot.srec arm-histbv320-linux-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin arm-histbv320-linux-objcopy -j .text -O binary u-boot u-boot.text make[3]: *** [u-boot.bin] Error 1 make[3]: Leaving directory /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot'
make[2]: *** [hi3798mv2x] Error 2
make[2]: Leaving directory /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/out/hi3798mv200/hi3798mv2dmg/obj/source/boot/fastboot' make[1]: *** [fastboot] Error 2 make[1]: Leaving directory /home/andy1224/Downloads/HiSTBLinuxV100R005C00SPC050-master/source/boot'
make: *** [hiboot] Error 2

make target "build" failed !!!(12 seconds)

相關文章