rockchip-linux / u-boot

U-Boot tree for pending commits
123 stars 83 forks source link

u-boot.itb build error #12

Closed vamrs closed 7 years ago

vamrs commented 7 years ago

It seems the MKIMAGEFLAGS for itb image is missing.

*** Your GCC is older than 6.0 and will not be supported starting in v2018.01. 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/fit_image.o HOSTCC tools/image-host.o HOSTCC tools/dumpimage.o HOSTLD tools/dumpimage HOSTCC tools/mkimage.o HOSTLD tools/mkimage CC arch/arm/cpu/armv8/fwcall.o LD arch/arm/cpu/armv8/built-in.o CC cmd/version.o LD cmd/built-in.o CC common/main.o LD common/built-in.o CC drivers/usb/gadget/f_fastboot.o CC drivers/usb/gadget/f_rockusb.o LD drivers/usb/gadget/built-in.o CC lib/efi_loader/helloworld.o LD lib/efi_loader/helloworld.so OBJCOPY lib/efi_loader/helloworld.efi CC lib/smbios.o CC lib/display_options.o LD lib/built-in.o LD u-boot OBJCOPY u-boot-nodtb.bin start=$(aarch64-linux-gnu-nm u-boot | grep rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end make[2]: 'arch/arm/dts/rk3399-evb.dtb' is up to date. MKIMAGE u-boot.itb dtc: option requires an argument -- 'E' Usage: dtc [options]

Options: -[qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv] -q, --quiet Quiet: -q suppress warnings, -qq errors, -qqq all -I, --in-format Input formats are: dts - device tree source text dtb - device tree blob fs - /proc/device-tree style directory -o, --out Output file -O, --out-format Output formats are: dts - device tree source text dtb - device tree blob asm - assembler source -V, --out-version Blob version to produce, defaults to %d (for dtb and asm output) -d, --out-dependency Output dependency file -R, --reserve tMake space for reserve map entries (for dtb and asm output) -S, --space Make the blob at least long (extra space) -p, --pad Add padding to the blob of long (extra space) -b, --boot-cpu Set the physical boot cpu -f, --force Try to produce output even if the input tree has errors -i, --include Add a path to search for include files -s, --sort Sort nodes and properties before outputting (useful for comparing trees) -H, --phandle Valid phandle formats are: legacy - "linux,phandle" properties only epapr - "phandle" properties only both - Both "linux,phandle" and "phandle" properties -W, --warning Enable/disable warnings (prefix with "no-") -E, --error Enable/disable errors (prefix with "no-") -h, --help Print this help and exit -v, --version Print version and exit

Error: unknown option ./tools/mkimage: Can't read u-boot.itb.tmp: Invalid argument Makefile:1019: recipe for target 'u-boot.itb' failed make: *** [u-boot.itb] Error 255

Below is the build output with KBUILD_VERBOSE=1

** Your GCC is older than 6.0 and will not be supported starting in v2018.01. set -e; : ' CHK include/config/uboot.release'; mkdir -p include/config/; echo "2017.07$(/bin/bash ./scripts/setlocalversion .)" < include/config/auto.conf > include/config/uboot.release.tmp; if [ -r include/config/uboot.release ] && cmp -s include/config/uboot.release include/config/uboot.release.tmp; then rm -f include/config/uboot.release.tmp; else : ' UPD include/config/uboot.release'; mv -f include/config/uboot.release.tmp include/config/uboot.release; fi set -e; : ' CHK include/generated/version_autogenerated.h'; mkdir -p include/generated/; (echo #define PLAIN_VERSION \"2017.07-00026-g0012289\"; echo #define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; echo #define CC_VERSION_STRING \"$(LC_ALL=C aarch64-linux-gnu-gcc --version | head -n 1)\"; echo #define LD_VERSION_STRING \"$(LC_ALL=C aarch64-linux-gnu-ld.bfd --version | head -n 1)\"; ) < include/config/uboot.release > include/generated/version_autogenerated.h.tmp; if [ -r include/generated/version_autogenerated.h ] && cmp -s include/generated/version_autogenerated.h include/generated/version_autogenerated.h.tmp; then rm -f include/generated/version_autogenerated.h.tmp; else : ' UPD include/generated/version_autogenerated.h'; mv -f include/generated/version_autogenerated.h.tmp include/generated/version_autogenerated.h; fi set -e; : ' CHK include/generated/timestamp_autogenerated.h'; mkdir -p include/generated/; (if test -n "${SOURCE_DATE_EPOCH}"; then SOURCE_DATE="@${SOURCE_DATE_EPOCH}"; DATE=""; for date in gdate date.gnu date; do ${date} -u -d "${SOURCE_DATE}" >/dev/null 2>&1 && DATE="${date}"; done; if test -n "${DATE}"; then LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TIME "%T"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TZ "%z"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; else return 42; fi; else LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"'; LC_ALL=C date +'#define U_BOOT_TZ "%z"'; LC_ALL=C date +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; fi) < Makefile > include/generated/timestamp_autogenerated.h.tmp; if [ -r include/generated/timestamp_autogenerated.h ] && cmp -s include/generated/timestamp_autogenerated.h include/generated/timestamp_autogenerated.h.tmp; then rm -f include/generated/timestamp_autogenerated.h.tmp; else : ' UPD include/generated/timestamp_autogenerated.h'; mv -f include/generated/timestamp_autogenerated.h.tmp include/generated/timestamp_autogenerated.h; fi make -f ./scripts/Makefile.build obj=scripts/basic rm -f .tmp_quiet_recordmcount make -f ./scripts/Makefile.build obj=. mkdir -p lib/ set -e; : ' CHK include/generated/generic-asm-offsets.h'; mkdir -p include/generated/; (set -e; echo "#ifndef GENERIC_ASM_OFFSETS_H"; echo "#define GENERIC_ASM_OFFSETS_H"; echo "/"; echo " DO NOT MODIFY."; echo " "; echo " This file was generated by Kbuild"; echo " /"; echo ""; sed -ne "s:[[:space:]].ascii[[:space:]]\"(.)\":\1:; /^->/{s:->#(.):/ \1 /:; s:^->([^ ]) [\$#]([-0-9]) (.):#define \1 \2 / \3 /:; s:^->([^ ]) [\$#]([^ ]) (.):#define \1 \2 / \3 /:; s:->::; p;}"; echo ""; echo "#endif" ) < lib/asm-offsets.s > include/generated/generic-asm-offsets.h.tmp; if [ -r include/generated/generic-asm-offsets.h ] && cmp -s include/generated/generic-asm-offsets.h include/generated/generic-asm-offsets.h.tmp; then rm -f include/generated/generic-asm-offsets.h.tmp; else : ' UPD include/generated/generic-asm-offsets.h'; mv -f include/generated/generic-asm-offsets.h.tmp include/generated/generic-asm-offsets.h; fi mkdir -p arch/arm/lib/ set -e; : ' CHK include/generated/asm-offsets.h'; mkdir -p include/generated/; (set -e; echo "#ifndef ASM_OFFSETS_H"; echo "#define ASM_OFFSETS_H"; echo "/"; echo " DO NOT MODIFY."; echo " "; echo " This file was generated by Kbuild"; echo " /"; echo ""; sed -ne "s:[[:space:]].ascii[[:space:]]\"(.)\":\1:; /^->/{s:->#(.):/ \1 /:; s:^->([^ ]) [\$#]([-0-9]) (.):#define \1 \2 / \3 /:; s:^->([^ ]) [\$#]([^ ]) (.):#define \1 \2 / \3 */:; s:->::; p;}"; echo ""; echo "#endif" ) < arch/arm/lib/asm-offsets.s > include/generated/asm-offsets.h.tmp; if [ -r include/generated/asm-offsets.h ] && cmp -s include/generated/asm-offsets.h include/generated/asm-offsets.h.tmp; then rm -f include/generated/asm-offsets.h.tmp; else : ' UPD include/generated/asm-offsets.h'; mv -f include/generated/asm-offsets.h.tmp include/generated/asm-offsets.h; fi make -f ./scripts/Makefile.build obj=scripts make -f ./scripts/Makefile.build obj=tools cc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -DKERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/mkenvimage.o tools/mkenvimage.c cc -o tools/mkenvimage tools/mkenvimage.o tools/os_support.o tools/lib/crc32.o cc -Wp,-MD,tools/.fit_image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -DKERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/fit_image.o tools/fit_image.c cc -Wp,-MD,tools/.image-host.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -DKERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/image-host.o tools/image-host.c cc -Wp,-MD,tools/.dumpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -DKERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/dumpimage.o tools/dumpimage.c cc -o tools/dumpimage tools/aisimage.o tools/atmelimage.o tools/common/bootm.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec_common.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/lpc32xximage.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/vybridimage.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/lib/sha1.o tools/lib/sha256.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_wip.o tools/lib/libfdt/fdt_sw.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_empty_tree.o tools/lib/libfdt/fdt_addresses.o tools/lib/libfdt/fdt_overlay.o tools/lib/libfdt/fdt_region.o tools/gpimage.o tools/gpimage-common.o tools/dumpimage.o cc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -DKERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/mkimage.o tools/mkimage.c cc -o tools/mkimage tools/aisimage.o tools/atmelimage.o tools/common/bootm.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec_common.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/lpc32xximage.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/vybridimage.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/lib/sha1.o tools/lib/sha256.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_wip.o tools/lib/libfdt/fdt_sw.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_empty_tree.o tools/lib/libfdt/fdt_addresses.o tools/lib/libfdt/fdt_overlay.o tools/lib/libfdt/fdt_region.o tools/gpimage.o tools/gpimage-common.o tools/mkimage.o make -f ./scripts/Makefile.build obj=arch/arm/cpu make -f ./scripts/Makefile.build obj=arch/arm/cpu/armv8 aarch64-linux-gnu-gcc -Wp,-MD,arch/arm/cpu/armv8/.fwcall.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(fwcall)" -D"KBUILD_MODNAME=KBUILD_STR(fwcall)" -c -o arch/arm/cpu/armv8/fwcall.o arch/arm/cpu/armv8/fwcall.c aarch64-linux-gnu-ld.bfd -r -o arch/arm/cpu/armv8/built-in.o arch/arm/cpu/armv8/cpu.o arch/arm/cpu/armv8/generic_timer.o arch/arm/cpu/armv8/cache_v8.o arch/arm/cpu/armv8/exceptions.o arch/arm/cpu/armv8/cache.o arch/arm/cpu/armv8/tlb.o arch/arm/cpu/armv8/transition.o arch/arm/cpu/armv8/fwcall.o arch/arm/cpu/armv8/cpu-dt.o make -f ./scripts/Makefile.build obj=arch/arm/lib make -f ./scripts/Makefile.build obj=arch/arm/mach-rockchip make -f ./scripts/Makefile.build obj=arch/arm/mach-rockchip/rk3399 make -f ./scripts/Makefile.build obj=board/rockchip/evb_rk3399 make -f ./scripts/Makefile.build obj=cmd aarch64-linux-gnu-gcc -Wp,-MD,cmd/.version.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(version)" -D"KBUILD_MODNAME=KBUILD_STR(version)" -c -o cmd/version.o cmd/version.c aarch64-linux-gnu-ld.bfd -r -o cmd/built-in.o cmd/boot.o cmd/bootm.o cmd/help.o cmd/version.o cmd/source.o cmd/bdinfo.o cmd/bootefi.o cmd/bootz.o cmd/booti.o cmd/console.o cmd/echo.o cmd/elf.o cmd/exit.o cmd/ext4.o cmd/ext2.o cmd/fat.o cmd/fdt.o cmd/flash.o cmd/fs.o cmd/itest.o cmd/load.o cmd/mem.o cmd/mii.o cmd/mdio.o cmd/misc.o cmd/mmc.o cmd/net.o cmd/part.o cmd/pcmcia.o cmd/pxe.o cmd/rockusb.o cmd/sf.o cmd/time.o cmd/test.o cmd/usb.o cmd/disk.o cmd/fastboot.o cmd/usb_mass_storage.o cmd/ximg.o cmd/gpt.o cmd/nvedit.o make -f ./scripts/Makefile.build obj=common make -f ./scripts/Makefile.build obj=common/init aarch64-linux-gnu-gcc -Wp,-MD,common/.main.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(main)" -D"KBUILD_MODNAME=KBUILD_STR(main)" -c -o common/main.o common/main.c aarch64-linux-gnu-ld.bfd -r -o common/built-in.o common/init/built-in.o common/main.o common/exports.o common/hash.o common/cli_hush.o common/autoboot.o common/board_f.o common/board_r.o common/board_info.o common/bootm.o common/bootm_os.o common/env_attr.o common/env_callback.o common/env_flags.o common/env_mmc.o common/fdt_support.o common/miiphyutil.o common/usb.o common/usb_hub.o common/usb_storage.o common/iomux.o common/edid.o common/splash.o common/menu.o common/cli_readline.o common/cli_simple.o common/env_common.o common/bouncebuf.o common/console.o common/dlmalloc.o common/malloc_simple.o common/image.o common/image-fdt.o common/image-fit.o common/memsize.o common/stdio.o common/image-sparse.o common/fb_mmc.o common/cli.o common/command.o common/s_record.o common/xyzModem.o make -f ./scripts/Makefile.build obj=disk make -f ./scripts/Makefile.build obj=drivers make -f ./scripts/Makefile.build obj=drivers/adc make -f ./scripts/Makefile.build obj=drivers/ata make -f ./scripts/Makefile.build obj=drivers/block make -f ./scripts/Makefile.build obj=drivers/clk make -f ./scripts/Makefile.build obj=drivers/clk/rockchip make -f ./scripts/Makefile.build obj=drivers/clk/tegra make -f ./scripts/Makefile.build obj=drivers/core make -f ./scripts/Makefile.build obj=drivers/crypto make -f ./scripts/Makefile.build obj=drivers/crypto/fsl make -f ./scripts/Makefile.build obj=drivers/crypto/rsa_mod_exp make -f ./scripts/Makefile.build obj=drivers/dfu make -f ./scripts/Makefile.build obj=drivers/firmware make -f ./scripts/Makefile.build obj=drivers/input make -f ./scripts/Makefile.build obj=drivers/mailbox make -f ./scripts/Makefile.build obj=drivers/memory make -f ./scripts/Makefile.build obj=drivers/misc make -f ./scripts/Makefile.build obj=drivers/mmc make -f ./scripts/Makefile.build obj=drivers/pcmcia make -f ./scripts/Makefile.build obj=drivers/phy/marvell make -f ./scripts/Makefile.build obj=drivers/pinctrl make -f ./scripts/Makefile.build obj=drivers/pinctrl/nxp make -f ./scripts/Makefile.build obj=drivers/pinctrl/rockchip make -f ./scripts/Makefile.build obj=drivers/pwm make -f ./scripts/Makefile.build obj=drivers/ram make -f ./scripts/Makefile.build obj=drivers/reset make -f ./scripts/Makefile.build obj=drivers/rtc make -f ./scripts/Makefile.build obj=drivers/scsi make -f ./scripts/Makefile.build obj=drivers/soc make -f ./scripts/Makefile.build obj=drivers/sound make -f ./scripts/Makefile.build obj=drivers/spmi make -f ./scripts/Makefile.build obj=drivers/sysreset make -f ./scripts/Makefile.build obj=drivers/thermal make -f ./scripts/Makefile.build obj=drivers/timer make -f ./scripts/Makefile.build obj=drivers/tpm make -f ./scripts/Makefile.build obj=drivers/video make -f ./scripts/Makefile.build obj=drivers/video/bridge make -f ./scripts/Makefile.build obj=drivers/video/rockchip make -f ./scripts/Makefile.build obj=drivers/video/sunxi make -f ./scripts/Makefile.build obj=drivers/watchdog make -f ./scripts/Makefile.build obj=drivers/dma make -f ./scripts/Makefile.build obj=drivers/gpio make -f ./scripts/Makefile.build obj=drivers/i2c make -f ./scripts/Makefile.build obj=drivers/mtd make -f ./scripts/Makefile.build obj=drivers/mtd/onenand make -f ./scripts/Makefile.build obj=drivers/mtd/spi make -f ./scripts/Makefile.build obj=drivers/net make -f ./scripts/Makefile.build obj=drivers/net/phy make -f ./scripts/Makefile.build obj=drivers/pci make -f ./scripts/Makefile.build obj=drivers/power make -f ./scripts/Makefile.build obj=drivers/power/battery make -f ./scripts/Makefile.build obj=drivers/power/domain make -f ./scripts/Makefile.build obj=drivers/power/fuel_gauge make -f ./scripts/Makefile.build obj=drivers/power/mfd make -f ./scripts/Makefile.build obj=drivers/power/pmic make -f ./scripts/Makefile.build obj=drivers/power/regulator make -f ./scripts/Makefile.build obj=drivers/serial make -f ./scripts/Makefile.build obj=drivers/spi make -f ./scripts/Makefile.build obj=drivers/usb/common make -f ./scripts/Makefile.build obj=drivers/usb/dwc3 make -f ./scripts/Makefile.build obj=drivers/usb/emul make -f ./scripts/Makefile.build obj=drivers/usb/eth make -f ./scripts/Makefile.build obj=drivers/usb/gadget aarch64-linux-gnu-gcc -Wp,-MD,drivers/usb/gadget/.f_fastboot.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(f_fastboot)" -D"KBUILD_MODNAME=KBUILD_STR(f_fastboot)" -c -o drivers/usb/gadget/f_fastboot.o drivers/usb/gadget/f_fastboot.c aarch64-linux-gnu-gcc -Wp,-MD,drivers/usb/gadget/.f_rockusb.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(f_rockusb)" -D"KBUILD_MODNAME=KBUILD_STR(f_rockusb)" -c -o drivers/usb/gadget/f_rockusb.o drivers/usb/gadget/f_rockusb.c aarch64-linux-gnu-ld.bfd -r -o drivers/usb/gadget/built-in.o drivers/usb/gadget/epautoconf.o drivers/usb/gadget/config.o drivers/usb/gadget/usbstring.o drivers/usb/gadget/g_dnl.o drivers/usb/gadget/f_mass_storage.o drivers/usb/gadget/f_fastboot.o drivers/usb/gadget/f_rockusb.o make -f ./scripts/Makefile.build obj=drivers/usb/gadget/udc make -f ./scripts/Makefile.build obj=drivers/usb/host make -f ./scripts/Makefile.build obj=drivers/usb/musb-new make -f ./scripts/Makefile.build obj=drivers/usb/musb make -f ./scripts/Makefile.build obj=drivers/usb/phy make -f ./scripts/Makefile.build obj=drivers/usb/ulpi make -f ./scripts/Makefile.build obj=fs make -f ./scripts/Makefile.build obj=fs/ext4 make -f ./scripts/Makefile.build obj=fs/fat make -f ./scripts/Makefile.build obj=lib make -f ./scripts/Makefile.build obj=lib/efi_loader aarch64-linux-gnu-gcc -Wp,-MD,lib/efi_loader/.helloworld.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -mstrict-align -fno-common -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -fpic -fshort-wchar -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(helloworld)" -D"KBUILD_MODNAME=KBUILD_STR(helloworld)" -c -o lib/efi_loader/helloworld.o lib/efi_loader/helloworld.c aarch64-linux-gnu-ld.bfd -nostdlib -znocombreloc -T ./arch/arm/lib/elf_aarch64_efi.lds -shared -Bsymbolic lib/efi_loader/helloworld.o arch/arm/lib/crt0_aarch64_efi.o arch/arm/lib/reloc_aarch64_efi.o arch/arm/lib/elf_aarch64_efi.lds -o lib/efi_loader/helloworld.so aarch64-linux-gnu-objcopy -j .header -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .reloc -O binary lib/efi_loader/helloworld.so lib/efi_loader/helloworld.efi make -f ./scripts/Makefile.build obj=lib/libfdt make -f ./scripts/Makefile.build obj=lib/zlib aarch64-linux-gnu-gcc -Wp,-MD,lib/.smbios.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(smbios)" -D"KBUILD_MODNAME=KBUILD_STR(smbios)" -c -o lib/smbios.o lib/smbios.c aarch64-linux-gnu-gcc -Wp,-MD,lib/.display_options.o.d -nostdinc -isystem /usr/lib/gcc-cross/aarch64-linux-gnu/5/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -DKERNEL -DUBOOT -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -DARM -fno-pic -mstrict-align -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-common -ffixed-x18 -pipe -march=armv8-a -DLINUX_ARM_ARCH=8 -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(display_options)" -D"KBUILD_MODNAME=KBUILD_STR(display_options)" -c -o lib/display_options.o lib/display_options.c aarch64-linux-gnu-ld.bfd -r -o lib/built-in.o lib/efi_loader/built-in.o lib/zlib/built-in.o lib/libfdt/built-in.o lib/crc7.o lib/crc8.o lib/crc16.o lib/errno_str.o lib/fdtdec_common.o lib/gunzip.o lib/smbios.o lib/initcall.o lib/lmb.o lib/ldiv.o lib/md5.o lib/net_utils.o lib/qsort.o lib/rc4.o lib/list_sort.o lib/sha1.o lib/sha256.o lib/fdtdec.o lib/hashtable.o lib/errno.o lib/display_options.o lib/crc32.o lib/ctype.o lib/div64.o lib/hang.o lib/linux_compat.o lib/linux_string.o lib/membuff.o lib/slre.o lib/string.o lib/tables_csum.o lib/time.o lib/uuid.o lib/rand.o lib/vsprintf.o lib/panic.o lib/strto.o lib/strmhz.o make -f ./scripts/Makefile.build obj=net make -f ./scripts/Makefile.build obj=test make -f ./scripts/Makefile.build obj=test/dm make -f ./scripts/Makefile.build obj=examples make -f ./scripts/Makefile.build obj=examples/standalone aarch64-linux-gnu-ld.bfd -pie --gc-sections -Bstatic --no-dynamic-linker -Ttext 0x00200000 -o u-boot -T u-boot.lds arch/arm/cpu/armv8/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/armv8/built-in.o arch/arm/lib/built-in.o arch/arm/mach-rockchip/built-in.o board/rockchip/evb_rk3399/built-in.o cmd/built-in.o common/built-in.o disk/built-in.o drivers/built-in.o drivers/dma/built-in.o drivers/gpio/built-in.o drivers/i2c/built-in.o drivers/mtd/built-in.o drivers/mtd/onenand/built-in.o drivers/mtd/spi/built-in.o drivers/net/built-in.o drivers/net/phy/built-in.o drivers/pci/built-in.o drivers/power/built-in.o drivers/power/battery/built-in.o drivers/power/domain/built-in.o drivers/power/fuel_gauge/built-in.o drivers/power/mfd/built-in.o drivers/power/pmic/built-in.o drivers/power/regulator/built-in.o drivers/serial/built-in.o drivers/spi/built-in.o drivers/usb/common/built-in.o drivers/usb/dwc3/built-in.o drivers/usb/emul/built-in.o drivers/usb/eth/built-in.o drivers/usb/gadget/built-in.o drivers/usb/gadget/udc/built-in.o drivers/usb/host/built-in.o drivers/usb/musb-new/built-in.o drivers/usb/musb/built-in.o drivers/usb/phy/built-in.o drivers/usb/ulpi/built-in.o fs/built-in.o lib/built-in.o net/built-in.o test/built-in.o test/dm/built-in.o --end-group -L /usr/lib/gcc-cross/aarch64-linux-gnu/5 -lgcc -Map u-boot.map aarch64-linux-gnu-objcopy --gap-fill=0xff -j .text -j .secure_text -j .secure_data -j .rodata -j .data -j .u_boot_list -j .rela.dyn -j .got -j .got.plt -j .dtb.init.rodata -j .efi_runtime -j .efi_runtime_rel -O binary u-boot u-boot-nodtb.bin start=$(aarch64-linux-gnu-nm u-boot | grep rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end make -f ./scripts/Makefile.build obj=dts dtbs make -f ./scripts/Makefile.build obj=arch/arm/dts dtbs make -f ./scripts/Makefile.build obj=arch/arm/dts arch/arm/dts/rk3399-evb.dtb make[2]: 'arch/arm/dts/rk3399-evb.dtb' is up to date. test -e arch/arm/dts/rk3399-evb.dtb || ( \ echo >&2; \ echo >&2 "Device Tree Source is not correctly specified."; \ echo >&2 "Please define 'CONFIG_DEFAULT_DEVICE_TREE'"; \ echo >&2 "or build with 'DEVICE_TREE=' argument"; \ echo >&2; \ /bin/false) ./tools/mkimage -f -E u-boot.itb dtc: option requires an argument -- 'E' Usage: dtc [options]

Options: -[qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv] -q, --quiet Quiet: -q suppress warnings, -qq errors, -qqq all -I, --in-format Input formats are: dts - device tree source text dtb - device tree blob fs - /proc/device-tree style directory -o, --out Output file -O, --out-format Output formats are: dts - device tree source text dtb - device tree blob asm - assembler source -V, --out-version Blob version to produce, defaults to %d (for dtb and asm output) -d, --out-dependency Output dependency file -R, --reserve tMake space for reserve map entries (for dtb and asm output) -S, --space Make the blob at least long (extra space) -p, --pad Add padding to the blob of long (extra space) -b, --boot-cpu Set the physical boot cpu -f, --force Try to produce output even if the input tree has errors -i, --include Add a path to search for include files -s, --sort Sort nodes and properties before outputting (useful for comparing trees) -H, --phandle Valid phandle formats are: legacy - "linux,phandle" properties only epapr - "phandle" properties only both - Both "linux,phandle" and "phandle" properties -W, --warning Enable/disable warnings (prefix with "no-") -E, --error Enable/disable errors (prefix with "no-") -h, --help Print this help and exit -v, --version Print version and exit

Error: unknown option ./tools/mkimage: Can't read u-boot.itb.tmp: Invalid argument Makefile:1019: recipe for target 'u-boot.itb' failed make: *** [u-boot.itb] Error 255

vamrs commented 7 years ago

spotted

./tools/mkimage -f -E u-boot.itb

$(U_BOOT_ITS) is missing

vamrs commented 7 years ago

I think i find the fix.


--- a/configs/evb-rk3399_defconfig
+++ b/configs/evb-rk3399_defconfig
@@ -11,6 +11,7 @@ CONFIG_FIT=y
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_OF_LIBFDT=y
 CONFIG_SPL_ATF_SUPPORT=y
+CONFIG_SPL_FIT_SOURCE="board/rockchip/evb_rk3399/fit_spl_atf.its"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x4000
keveryang commented 7 years ago

Yes, the fix is correct. I'm sorry, I only update the firefly-rk3399 config but forgot evb.