Uboot make fail


#1

I encountered uboot making fail problem for Oreo, can someone help me? thanks a lot.
same steps applied for Marshmallow, it’s ok.


#2

----------------------Below is log for Marshmallow-------------------------------------------------
root@ubuntu:~/marshmallow/uboot# make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf

configuration written to .config

root@ubuntu:~/marshmallow/uboot# make CROSS_COMPILE=aarch64-linux-gnu-
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
CHK include/config/uboot.release
Using … as source for U-Boot
GEN ./Makefile
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC tools/gen_eth_addr
HOSTCC tools/mkenvimage.o
HOSTCC tools/os_support.o
HOSTCC tools/lib/crc32.o
HOSTLD tools/mkenvimage
HOSTCC tools/aisimage.o
HOSTCC tools/atmelimage.o
HOSTCC tools/common/bootm.o
HOSTCC tools/default_image.o
HOSTCC tools/lib/fdtdec_common.o
HOSTCC tools/lib/fdtdec.o
HOSTCC tools/fit_common.o
HOSTCC tools/fit_image.o
HOSTCC tools/gpimage.o
HOSTCC tools/gpimage-common.o
HOSTCC tools/common/image-fit.o
HOSTCC tools/image-host.o
HOSTCC tools/common/image.o
HOSTCC tools/imagetool.o
HOSTCC tools/imximage.o
HOSTCC tools/kwbimage.o
HOSTCC tools/lib/md5.o
HOSTCC tools/mxsimage.o
HOSTCC tools/omapimage.o
HOSTCC tools/pblimage.o
HOSTCC tools/pbl_crc32.o
HOSTCC tools/socfpgaimage.o
HOSTCC tools/lib/sha1.o
HOSTCC tools/lib/sha256.o
HOSTCC tools/ublimage.o
HOSTCC tools/lib/libfdt/fdt.o
HOSTCC tools/lib/libfdt/fdt_ro.o
HOSTCC tools/lib/libfdt/fdt_rw.o
HOSTCC tools/lib/libfdt/fdt_strerror.o
HOSTCC tools/lib/libfdt/fdt_wip.o
HOSTCC tools/dumpimage.o
HOSTLD tools/dumpimage
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
HOSTCC tools/proftool
HOSTCC tools/relocate-rela
AS arch/arm/cpu/armv8/exceptions.o
AS arch/arm/cpu/armv8/cache.o
AS arch/arm/cpu/armv8/tlb.o
AS arch/arm/cpu/armv8/transition.o
LD arch/arm/cpu/armv8/built-in.o
AS arch/arm/cpu/armv8/start.o
CC common/main.o
CC common/board_f.o
CC common/cmd_version.o
LD common/built-in.o
CC lib/display_options.o
LD lib/built-in.o
LD u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot.bin
OBJCOPY u-boot.hex
Building board/khadas/kvim/acs.bin
CC acs.c
AS acs_entry.S
PP acs.ld.S
LD /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/acs.elf
OD /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/acs.dump
BIN /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/acs.bin

Built /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/acs.bin successfully

Building board/khadas/kvim/bl21.bin
CC bl21_main.c
CC serial.c
CC timer.c
AS bl21_entrypoint.S
PP bl21.ld.S
LD /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/bl21.elf
OD /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/bl21.dump
BIN /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/bl21.bin

Built /home/george/marshmallow/uboot/build/board/khadas/kvim/firmware/bl21.bin successfully

make[2]: Nothing to be done for ‘all’.
8656+0 records in
8656+0 records out
8656 bytes (8.7 kB, 8.5 KiB) copied, 0.0148989 s, 581 kB/s
8580+0 records in
8580+0 records out
8580 bytes (8.6 kB, 8.4 KiB) copied, 0.0162296 s, 529 kB/s
Amlogic img found, use new FIP structure!
Creating “…/fip/gxl/fip.bin”
Firmware Image Package ToC:

  • SCP Firmware BL3-0: offset=0x4000, size=0xD400
  • EL3 Runtime Firmware BL3-1: offset=0x14000, size=0x15128
  • Non-Trusted Firmware BL3-3: offset=0x2C000, size=0xA4D48

ACS tool process done.
7744+0 records in
7744+0 records out
7744 bytes (7.7 kB, 7.6 KiB) copied, 0.0151383 s, 512 kB/s
6152+0 records in
6152+0 records out
6152 bytes (6.2 kB, 6.0 KiB) copied, 0.00961498 s, 640 kB/s
…/fip/gxl/u-boot.bin build done!

----------------------above is log for Marshmallow-------------------------------------------------

----------------------Below is log for Oreo-------------------------------------------------

root@ubuntu:~/oreo/uboot# make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
GEN ./Makefile

configuration written to .config

root@ubuntu:~/oreo/uboot# make CROSS_COMPILE=aarch64-linux-gnu-
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
CHK include/config/uboot.release
Using … as source for U-Boot
GEN ./Makefile
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.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
AS arch/arm/cpu/armv8/exceptions.o
AS arch/arm/cpu/armv8/cache.o
AS arch/arm/cpu/armv8/tlb.o
AS arch/arm/cpu/armv8/transition.o
LD arch/arm/cpu/armv8/built-in.o
AS arch/arm/cpu/armv8/start.o
CC common/main.o
CC common/board_f.o
CC common/cmd_version.o
LD common/built-in.o
CC drivers/usb/gadget/f_fastboot.o
LD drivers/usb/gadget/built-in.o
CC lib/display_options.o
LD lib/built-in.o
LD u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot.bin
OBJCOPY u-boot.hex
Building board/khadas/kvim/acs.bin
CC acs.c
AS acs_entry.S
PP acs.ld.S
LD /home/george/oreo/uboot/build/board/khadas/kvim/firmware/acs.elf
OD /home/george/oreo/uboot/build/board/khadas/kvim/firmware/acs.dump
BIN /home/george/oreo/uboot/build/board/khadas/kvim/firmware/acs.bin

Built /home/george/oreo/uboot/build/board/khadas/kvim/firmware/acs.bin successfully

Building board/khadas/kvim/bl21.bin
CC bl21_main.c
CC serial.c
CC timer.c
CC aarch32/arm32_aeabi_divmod.c
AS aarch32/bl21_entrypoint.S
AS aarch32/arm32_aeabi_divmod_a32.S
PP bl21.ld.S
LD /home/george/oreo/uboot/build/board/khadas/kvim/firmware/bl21.elf
OD /home/george/oreo/uboot/build/board/khadas/kvim/firmware/bl21.dump
BIN /home/george/oreo/uboot/build/board/khadas/kvim/firmware/bl21.bin

Built /home/george/oreo/uboot/build/board/khadas/kvim/firmware/bl21.bin successfully

CPP task_entry.s
CPP user_task.lds

aarch64-linux-gnu-cpp: error: unrecognized command line option ‘-mthumb’
aarch64-linux-gnu-cpp: error: unrecognized command line option ‘-mno-sched-prolog’
Makefile:111: recipe for target ‘/home/george/oreo/uboot/build/scp_task/user_task.lds’ failed
make[2]: *** [/home/george/oreo/uboot/build/scp_task/user_task.lds] Error 1
/home/george/oreo/uboot/Makefile:914: recipe for target ‘/home/george/oreo/uboot/build/scp_task/bl301.bin’ failed
make[1]: *** [/home/george/oreo/uboot/build/scp_task/bl301.bin] Error 2
Makefile:147: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2
----------------------above is log for Oreo-------------------------------------------------


#3

About how to build Android Oreo for VIM, you can refer to this