error make u-boot.itb with "./tools/mkimage: invalid offset size u-boot.itb"
robanderson opened this issue · comments
parallels@debian-gnu-linux-vm:/evb_rk3229/u-boot$ export KBUILD_VERBOSE=1/evb_rk3229/u-boot$ clear
parallels@debian-gnu-linux-vm:
parallels@debian-gnu-linux-vm:~/evb_rk3229/u-boot$ make u-boot.itb
set -e; : ' CHK include/config/uboot.release'; mkdir -p include/config/; echo "2019.01$(/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 "2019.01""-00228-gaff66f22d6"; echo #define U_BOOT_VERSION "U-Boot " PLAIN_VERSION; echo #define CC_VERSION_STRING "$(LC_ALL=C arm-linux-gnueabihf-gcc --version | head -n 1)"; echo #define LD_VERSION_STRING "$(LC_ALL=C arm-linux-gnueabihf-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"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_BUILD_DATE 0x%Y%m%d'; 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"'; LC_ALL=C date +'#define U_BOOT_BUILD_DATE 0x%Y%m%d'; 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=scripts/dtc
make -f ./scripts/Makefile.build obj=tools
cc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_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 -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -DMKIMAGE_DTC=""dtc"" -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 -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_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 -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_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/imx8image.o tools/imx8mimage.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/stm32image.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/lib/crc16.o tools/lib/sha1.o tools/lib/sha256.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/zynqmpbif.o tools/libfdt/fdt.o tools/libfdt/fdt_wip.o tools/libfdt/fdt_sw.o tools/libfdt/fdt_rw.o tools/libfdt/fdt_strerror.o tools/libfdt/fdt_empty_tree.o tools/libfdt/fdt_addresses.o tools/libfdt/fdt_overlay.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_region.o tools/gpimage.o tools/gpimage-common.o tools/mtk_image.o tools/dumpimage.o
cc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_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/imx8image.o tools/imx8mimage.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/stm32image.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/lib/crc16.o tools/lib/sha1.o tools/lib/sha256.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/zynqmpbif.o tools/libfdt/fdt.o tools/libfdt/fdt_wip.o tools/libfdt/fdt_sw.o tools/libfdt/fdt_rw.o tools/libfdt/fdt_strerror.o tools/libfdt/fdt_empty_tree.o tools/libfdt/fdt_addresses.o tools/libfdt/fdt_overlay.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_region.o tools/gpimage.o tools/gpimage-common.o tools/mtk_image.o tools/mkimage.o
make -f ./scripts/Makefile.build obj=arch/arm/cpu
make -f ./scripts/Makefile.build obj=arch/arm/cpu/armv7
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/rk322x
make -f ./scripts/Makefile.build obj=board/rockchip/evb_rk3229
make -f ./scripts/Makefile.build obj=cmd
arm-linux-gnueabihf-gcc -Wp,-MD,cmd/.version.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -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
arm-linux-gnueabihf-ld.bfd -r -o cmd/built-in.o cmd/boot.o cmd/bootm.o cmd/help.o cmd/version.o cmd/blk_common.o cmd/source.o cmd/bdinfo.o cmd/blkcache.o cmd/bootefi.o cmd/bootz.o cmd/console.o cmd/dm.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/pinmux.o cmd/pxe.o cmd/time.o cmd/test.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
arm-linux-gnueabihf-gcc -Wp,-MD,common/.main.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -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
arm-linux-gnueabihf-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/fdt_support.o common/miiphyutil.o common/usb.o common/usb_hub.o common/usb_storage.o common/splash.o common/menu.o common/cli_readline.o common/cli_simple.o common/bouncebuf.o common/console.o common/dlmalloc.o common/malloc_simple.o common/image.o common/image-android.o common/image-fdt.o common/memsize.o common/stdio.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/axi
make -f ./scripts/Makefile.build obj=drivers/block
make -f ./scripts/Makefile.build obj=drivers/board
make -f ./scripts/Makefile.build obj=drivers/clk
make -f ./scripts/Makefile.build obj=drivers/clk/imx
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/fastboot
arm-linux-gnueabihf-gcc -Wp,-MD,drivers/fastboot/.fb_getvar.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(fb_getvar)" -D"KBUILD_MODNAME=KBUILD_STR(fb_getvar)" -c -o drivers/fastboot/fb_getvar.o drivers/fastboot/fb_getvar.c
arm-linux-gnueabihf-ld.bfd -r -o drivers/fastboot/built-in.o drivers/fastboot/fb_common.o drivers/fastboot/fb_getvar.o drivers/fastboot/fb_command.o drivers/fastboot/fb_mmc.o
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
make -f ./scripts/Makefile.build obj=drivers/phy/allwinner
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/broadcom
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/ram/rockchip
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/smem
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/video
make -f ./scripts/Makefile.build obj=drivers/video/bridge
make -f ./scripts/Makefile.build obj=drivers/video/sunxi
make -f ./scripts/Makefile.build obj=drivers/watchdog
arm-linux-gnueabihf-ld.bfd -r -o drivers/built-in.o drivers/clk/built-in.o drivers/core/built-in.o drivers/input/built-in.o drivers/phy/built-in.o drivers/pinctrl/built-in.o drivers/ram/built-in.o drivers/adc/built-in.o drivers/ata/built-in.o drivers/block/built-in.o drivers/board/built-in.o drivers/crypto/built-in.o drivers/fastboot/built-in.o drivers/firmware/built-in.o drivers/misc/built-in.o drivers/mmc/built-in.o drivers/pcmcia/built-in.o drivers/dfu/built-in.o drivers/phy/allwinner/built-in.o drivers/phy/marvell/built-in.o drivers/rtc/built-in.o drivers/scsi/built-in.o drivers/sound/built-in.o drivers/spmi/built-in.o drivers/sysreset/built-in.o drivers/video/built-in.o drivers/watchdog/built-in.o drivers/mailbox/built-in.o drivers/memory/built-in.o drivers/pwm/built-in.o drivers/reset/built-in.o drivers/smem/built-in.o drivers/soc/built-in.o drivers/thermal/built-in.o drivers/axi/built-in.o
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/nand
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/ti
make -f ./scripts/Makefile.build obj=drivers/net/phy
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
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=env
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_driver
make -f ./scripts/Makefile.build obj=lib/efi_loader
arm-linux-gnueabihf-gcc -Wp,-MD,lib/efi_loader/.helloworld.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -mno-unaligned-access -fno-common -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -I./arch/arm/mach-rockchip/include -fpic -fshort-wchar -ffreestanding -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
arm-linux-gnueabihf-gcc -Wp,-MD,lib/efi_loader/.efi_reloc.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -I./arch/arm/mach-rockchip/include -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(efi_reloc)" -D"KBUILD_MODNAME=KBUILD_STR(efi_reloc)" -c -o lib/efi_loader/efi_reloc.o arch/arm/lib/reloc_arm_efi.c
arm-linux-gnueabihf-ld.bfd -nostdlib -znocombreloc -T ./arch/arm/lib/elf_arm_efi.lds -shared -Bsymbolic -s lib/efi_loader/helloworld.o lib/efi_loader/efi_crt0.o lib/efi_loader/efi_reloc.o -o lib/efi_loader/helloworld_efi.so
arm-linux-gnueabihf-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_efi.so lib/efi_loader/helloworld.efi
make -f ./scripts/Makefile.build obj=lib/libfdt
make -f ./scripts/Makefile.build obj=lib/zlib
arm-linux-gnueabihf-gcc -Wp,-MD,lib/.smbios.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -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
arm-linux-gnueabihf-gcc -Wp,-MD,lib/.display_options.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/6/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7 -mtune=generic-armv7-a -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
arm-linux-gnueabihf-ld.bfd -r -o lib/built-in.o lib/efi_driver/built-in.o lib/efi_loader/built-in.o lib/charset.o lib/crc7.o lib/crc8.o lib/crc16.o lib/errno_str.o lib/smbios.o lib/image-sparse.o lib/initcall.o lib/ldiv.o lib/net_utils.o lib/rc4.o lib/list_sort.o lib/zlib/built-in.o lib/gunzip.o lib/libfdt/built-in.o lib/fdtdec_common.o lib/fdtdec.o lib/qsort.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/lmb.o lib/membuff.o lib/slre.o lib/string.o lib/tables_csum.o lib/time.o lib/hexdump.o lib/uuid.o lib/rand.o lib/panic.o lib/vsprintf.o lib/strto.o lib/strmhz.o
make -f ./scripts/Makefile.build obj=net
make -f ./scripts/Makefile.build obj=examples
make -f ./scripts/Makefile.build obj=examples/standalone
arm-linux-gnueabihf-ld.bfd -pie --gc-sections -Bstatic --no-dynamic-linker -Ttext 0x60000000 -o u-boot -T u-boot.lds arch/arm/cpu/armv7/start.o --start-group arch/arm/cpu/built-in.o arch/arm/cpu/armv7/built-in.o arch/arm/lib/built-in.o arch/arm/mach-rockchip/built-in.o board/rockchip/evb_rk3229/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/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 env/built-in.o fs/built-in.o lib/built-in.o net/built-in.o --end-group arch/arm/lib/eabi_compat.o arch/arm/lib/lib.a -Map u-boot.map; true
arm-linux-gnueabihf-objcopy --gap-fill=0xff -j .text -j .secure_text -j .secure_data -j .rodata -j .hash -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn -j .binman_sym_table -j .text_rest -j .dtb.init.rodata -j .efi_runtime -j .efi_runtime_rel -O binary u-boot u-boot-nodtb.bin
make -f ./scripts/Makefile.build obj=dts dtbs
./tools/mkimage -f -E -p u-boot.itb >/dev/null && cat /dev/null
./tools/mkimage: invalid offset size u-boot.itb
I added CONFIG_FIT=y to "evb-rk3229_defconfig". which got me a little further along.
There seemed to be a similar error logged under evb-rk3399 on October 2017
spotted
./tools/mkimage -f -E u-boot.itb
$(U_BOOT_ITS) is missing
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
./tools/mkimage -f -E -p 0x0 u-boot.itb >/dev/null && cat /dev/null
dtc: option requires an argument -- 'E'
Usage: dtc [options]
Options: -[qI: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 17 (for dtb and asm output)
-d, --out-dependency
Output dependency file
-R, --reserve
Make 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 open u-boot.itb.tmp: No such file or directory
have you resovled this problem yet ?
My error is:
./tools/mkimage -f auto -A arm -T firmware -C none -O u-boot -a 0x00200000 -e 0 -n "U-Boot 2017.09""-02557-g524f264-dirty for evb_rk3399 board" -E -b arch/arm/dts/rk3399-evb.dtb -d u-boot-nodtb.bin u-boot.img fflag = 1 1imagefile = u-boot.img 5imagefile = u-boot.img ./tools/mkimage: Can't read u-boot.img.tmp: Invalid argument Makefile:1032: recipe for target 'u-boot.img' failed
Well, I've found a little hack just to keep it going.
In the tools/fit_image.c
Find the comment containing: dtc -I dts -O dtb -p 500 datafile > tmpfile
Then edit the line below it from "%s %s \"%s\" > \"%s\""
to "%s %s > \"%s\""
and delete the params->datafile argument.