Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
make output u-boot build for usb armory as documented in https://github.com/inversepath/usbarmory/wiki/Preparing-a-bootable-microSD-image
git clone https://github.com/inversepath/u-boot-usbarmory.git
cd u-boot-usbarmory
make distclean
make usbarmory_config
make ARCH=arm
set -e; : ' CHK include/config/uboot.release'; mkdir -p include/config/; echo "2014.07$(/bin/bash /vagrant/u-boot-usbarmory/scripts/setlocalversion /vagrant/u-boot-usbarmory)" < Makefile > 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 \"2014.07-gfdaebbd\"; echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; echo \#define CC_VERSION_STRING \"$(/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc --version | head -n 1)\"; echo \#define LD_VERSION_STRING \"$(/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-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/; (LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"') < /vagrant/u-boot-usbarmory/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/
mkdir -p arch/arm/lib/
make -f scripts/Makefile.build obj=tools
gcc -Wp,-MD,tools/.dumpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include /vagrant/u-boot-usbarmory/include/libfdt_env.h -idirafterinclude -idirafter/vagrant/u-boot-usbarmory/arch/arm/include -I/vagrant/u-boot-usbarmory/lib/libfdt -I/vagrant/u-boot-usbarmory/tools -DCONFIG_SYS_TEXT_BASE=0x77800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/dumpimage.o tools/dumpimage.c
gcc -Wp,-MD,tools/.image-host.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include /vagrant/u-boot-usbarmory/include/libfdt_env.h -idirafterinclude -idirafter/vagrant/u-boot-usbarmory/arch/arm/include -I/vagrant/u-boot-usbarmory/lib/libfdt -I/vagrant/u-boot-usbarmory/tools -DCONFIG_SYS_TEXT_BASE=0x77800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/image-host.o tools/image-host.c
gcc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include /vagrant/u-boot-usbarmory/include/libfdt_env.h -idirafterinclude -idirafter/vagrant/u-boot-usbarmory/arch/arm/include -I/vagrant/u-boot-usbarmory/lib/libfdt -I/vagrant/u-boot-usbarmory/tools -DCONFIG_SYS_TEXT_BASE=0x77800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/mkenvimage.o tools/mkenvimage.c
gcc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -include /vagrant/u-boot-usbarmory/include/libfdt_env.h -idirafterinclude -idirafter/vagrant/u-boot-usbarmory/arch/arm/include -I/vagrant/u-boot-usbarmory/lib/libfdt -I/vagrant/u-boot-usbarmory/tools -DCONFIG_SYS_TEXT_BASE=0x77800000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -c -o tools/mkimage.o tools/mkimage.c
gcc -o tools/mkenvimage tools/mkenvimage.o tools/os_support.o tools/lib/crc32.o
gcc -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/gpimage.o tools/gpimage-common.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/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/dumpimage.o
gcc -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/gpimage.o tools/gpimage-common.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/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/lib/sha1.o tools/lib/sha256.o tools/ublimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/mkimage.o
make -f scripts/Makefile.build obj=arch/arm/cpu
make -f scripts/Makefile.build obj=arch/arm/cpu/armv7
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc -Wp,-MD,arch/arm/cpu/armv7/.start.o.d -nostdinc -isystem /root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/../lib/gcc/arm-none-eabi/4.9.2/include -Iinclude -I/vagrant/u-boot-usbarmory/arch/arm/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x77800000 -D__ASSEMBLY__ -g -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -march=armv7-a -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -c -o arch/arm/cpu/armv7/start.o arch/arm/cpu/armv7/start.S
make -f scripts/Makefile.build obj=arch/arm/cpu/armv7/mx5
make -f scripts/Makefile.build obj=arch/arm/imx-common
make -f scripts/Makefile.build obj=arch/arm/lib
make -f scripts/Makefile.build obj=board/inversepath/usbarmory
make -f scripts/Makefile.build obj=common
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc -Wp,-MD,common/.main.o.d -nostdinc -isystem /root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/../lib/gcc/arm-none-eabi/4.9.2/include -Iinclude -I/vagrant/u-boot-usbarmory/arch/arm/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x77800000 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wno-missing-field-initializers -Wno-unused-value -Wno-format -Wno-sign-compare -Wno-format-zero-length -Wno-uninitialized -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -march=armv7-a -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -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
common/main.c:20:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
void inline __show_boot_progress (int val) {}
^
common/main.c:20:13: warning: no previous declaration for ‘__show_boot_progress’ [-Wmissing-declarations]
void inline __show_boot_progress (int val) {}
^
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc -Wp,-MD,common/.board_f.o.d -nostdinc -isystem /root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/../lib/gcc/arm-none-eabi/4.9.2/include -Iinclude -I/vagrant/u-boot-usbarmory/arch/arm/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x77800000 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wno-missing-field-initializers -Wno-unused-value -Wno-format -Wno-sign-compare -Wno-format-zero-length -Wno-uninitialized -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -march=armv7-a -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(board_f)" -D"KBUILD_MODNAME=KBUILD_STR(board_f)" -c -o common/board_f.o common/board_f.c
In file included from include/post.h:16:0,
from common/board_f.c:38:
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:80:20: warning: no previous declaration for ‘__raw_writesb’ [-Wmissing-declarations]
extern inline void __raw_writesb(unsigned long addr, const void *data,
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:88:20: warning: no previous declaration for ‘__raw_writesw’ [-Wmissing-declarations]
extern inline void __raw_writesw(unsigned long addr, const void *data,
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:96:20: warning: no previous declaration for ‘__raw_writesl’ [-Wmissing-declarations]
extern inline void __raw_writesl(unsigned long addr, const void *data,
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:104:20: warning: no previous declaration for ‘__raw_readsb’ [-Wmissing-declarations]
extern inline void __raw_readsb(unsigned long addr, void *data, int bytelen)
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:111:20: warning: no previous declaration for ‘__raw_readsw’ [-Wmissing-declarations]
extern inline void __raw_readsw(unsigned long addr, void *data, int wordlen)
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:118:20: warning: no previous declaration for ‘__raw_readsl’ [-Wmissing-declarations]
extern inline void __raw_readsl(unsigned long addr, void *data, int longlen)
^
common/board_f.c:81:13: warning: no previous declaration for ‘__coloured_LED_init’ [-Wmissing-declarations]
inline void __coloured_LED_init(void) {}
^
common/board_f.c:84:13: warning: no previous declaration for ‘__red_led_on’ [-Wmissing-declarations]
inline void __red_led_on(void) {}
^
common/board_f.c:86:13: warning: no previous declaration for ‘__red_led_off’ [-Wmissing-declarations]
inline void __red_led_off(void) {}
^
common/board_f.c:88:13: warning: no previous declaration for ‘__green_led_on’ [-Wmissing-declarations]
inline void __green_led_on(void) {}
^
common/board_f.c:90:13: warning: no previous declaration for ‘__green_led_off’ [-Wmissing-declarations]
inline void __green_led_off(void) {}
^
common/board_f.c:92:13: warning: no previous declaration for ‘__yellow_led_on’ [-Wmissing-declarations]
inline void __yellow_led_on(void) {}
^
common/board_f.c:94:13: warning: no previous declaration for ‘__yellow_led_off’ [-Wmissing-declarations]
inline void __yellow_led_off(void) {}
^
common/board_f.c:96:13: warning: no previous declaration for ‘__blue_led_on’ [-Wmissing-declarations]
inline void __blue_led_on(void) {}
^
common/board_f.c:98:13: warning: no previous declaration for ‘__blue_led_off’ [-Wmissing-declarations]
inline void __blue_led_off(void) {}
^
common/board_f.c:133:6: warning: no previous prototype for ‘__board_add_ram_info’ [-Wmissing-prototypes]
void __board_add_ram_info(int use_default)
^
common/board_f.c:222:6: warning: no previous prototype for ‘__dram_init_banksize’ [-Wmissing-prototypes]
void __dram_init_banksize(void)
^
common/board_f.c:359:14: warning: no previous prototype for ‘board_get_usable_ram_top’ [-Wmissing-prototypes]
__weak ulong board_get_usable_ram_top(ulong total_size)
^
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc -Wp,-MD,common/.cmd_version.o.d -nostdinc -isystem /root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/../lib/gcc/arm-none-eabi/4.9.2/include -Iinclude -I/vagrant/u-boot-usbarmory/arch/arm/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x77800000 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wno-missing-field-initializers -Wno-unused-value -Wno-format -Wno-sign-compare -Wno-format-zero-length -Wno-uninitialized -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -march=armv7-a -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(cmd_version)" -D"KBUILD_MODNAME=KBUILD_STR(cmd_version)" -c -o common/cmd_version.o common/cmd_version.c
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-ld.bfd -r -o common/built-in.o common/main.o common/command.o common/exports.o common/hash.o common/cli_hush.o common/cli_simple.o common/cli.o common/cli_readline.o common/s_record.o common/xyzModem.o common/cmd_disk.o common/autoboot.o common/board_f.o common/board_r.o common/cmd_boot.o common/cmd_bootm.o common/bootm.o common/bootm_os.o common/cmd_help.o common/cmd_version.o common/env_attr.o common/env_callback.o common/env_flags.o common/env_mmc.o common/cmd_source.o common/cmd_bdinfo.o common/cmd_console.o common/cmd_echo.o common/cmd_exit.o common/cmd_ext2.o common/cmd_fat.o common/cmd_fdt.o common/fdt_support.o common/cmd_flash.o common/cmd_fuse.o common/cmd_i2c.o common/cmd_itest.o common/cmd_load.o common/cmd_mem.o common/cmd_misc.o common/cmd_mmc.o common/cmd_net.o common/cmd_pcmcia.o common/cmd_test.o common/cmd_usb.o common/usb.o common/usb_hub.o common/usb_storage.o common/cmd_ximg.o common/flash.o common/splash.o common/cmd_nvedit.o common/env_common.o common/console.o common/dlmalloc.o common/image.o common/image-fdt.o common/memsize.o common/stdio.o
make -f scripts/Makefile.build obj=disk
make -f scripts/Makefile.build obj=drivers
make -f scripts/Makefile.build obj=drivers/block
make -f scripts/Makefile.build obj=drivers/crypto
make -f scripts/Makefile.build obj=drivers/dfu
make -f scripts/Makefile.build obj=drivers/hwmon
make -f scripts/Makefile.build obj=drivers/memory
make -f scripts/Makefile.build obj=drivers/misc
make -f scripts/Makefile.build obj=drivers/pcmcia
make -f scripts/Makefile.build obj=drivers/rtc
make -f scripts/Makefile.build obj=drivers/sound
make -f scripts/Makefile.build obj=drivers/tpm
make -f scripts/Makefile.build obj=drivers/twserial
make -f scripts/Makefile.build obj=drivers/video
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/input
make -f scripts/Makefile.build obj=drivers/mmc
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/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/serial
make -f scripts/Makefile.build obj=drivers/spi
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/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/zlib
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc -Wp,-MD,lib/.display_options.o.d -nostdinc -isystem /root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/../lib/gcc/arm-none-eabi/4.9.2/include -Iinclude -I/vagrant/u-boot-usbarmory/arch/arm/include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x77800000 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wno-missing-field-initializers -Wno-unused-value -Wno-format -Wno-sign-compare -Wno-format-zero-length -Wno-uninitialized -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -march=armv7-a -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -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
In file included from lib/display_options.c:12:0:
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:80:20: warning: no previous declaration for ‘__raw_writesb’ [-Wmissing-declarations]
extern inline void __raw_writesb(unsigned long addr, const void *data,
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:88:20: warning: no previous declaration for ‘__raw_writesw’ [-Wmissing-declarations]
extern inline void __raw_writesw(unsigned long addr, const void *data,
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:96:20: warning: no previous declaration for ‘__raw_writesl’ [-Wmissing-declarations]
extern inline void __raw_writesl(unsigned long addr, const void *data,
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:104:20: warning: no previous declaration for ‘__raw_readsb’ [-Wmissing-declarations]
extern inline void __raw_readsb(unsigned long addr, void *data, int bytelen)
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:111:20: warning: no previous declaration for ‘__raw_readsw’ [-Wmissing-declarations]
extern inline void __raw_readsw(unsigned long addr, void *data, int wordlen)
^
/vagrant/u-boot-usbarmory/arch/arm/include/asm/io.h:118:20: warning: no previous declaration for ‘__raw_readsl’ [-Wmissing-declarations]
extern inline void __raw_readsl(unsigned long addr, void *data, int longlen)
^
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-ld.bfd -r -o lib/built-in.o lib/zlib/built-in.o lib/crc7.o lib/crc8.o lib/crc16.o lib/gunzip.o lib/initcall.o lib/lmb.o lib/ldiv.o lib/net_utils.o lib/qsort.o lib/strmhz.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_string.o lib/string.o lib/time.o lib/vsprintf.o
make -f scripts/Makefile.build obj=lib/libfdt
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
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-ld.bfd -pie --gc-sections -Bstatic -Ttext 0x77800000 -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/cpu/armv7/mx5/built-in.o arch/arm/imx-common/built-in.o arch/arm/lib/built-in.o board/inversepath/usbarmory/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/input/built-in.o drivers/mmc/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/fuel_gauge/built-in.o drivers/power/mfd/built-in.o drivers/power/pmic/built-in.o drivers/serial/built-in.o drivers/spi/built-in.o drivers/usb/eth/built-in.o drivers/usb/gadget/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 lib/libfdt/built-in.o net/built-in.o test/built-in.o test/dm/built-in.o --end-group arch/arm/lib/eabi_compat.o -L /root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/../lib/gcc/arm-none-eabi/4.9.2/v7-a -lgcc -Map u-boot.map
/root/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-objcopy -j .text -j .rodata -j .hash -j .data -j .got.plt -j .u_boot_list -j .rel.dyn --gap-fill=0xff -O binary u-boot u-boot.bin
make -f scripts/Makefile.build obj=arch/arm/imx-common u-boot.imx
mkdir -p board/inversepath/usbarmory/
/vagrant/u-boot-usbarmory/tools/mkimage -n board/inversepath/usbarmory/imximage.cfg.cfgtmp -T imximage -e 0x77800000 -d u-boot.bin u-boot.imx
/vagrant/u-boot-usbarmory/tools/mkimage: Can't map u-boot.imx: Invalid argument
make[1]: *** [u-boot.imx] Error 1
make: *** [u-boot.imx] Error 2
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
@abarisani

This comment has been minimized.

Copy link

@abarisani abarisani commented Jan 29, 2015

Please don't compile as root, also may we please have the output of env for the user that is compiling this?

@abarisani

This comment has been minimized.

Copy link

@abarisani abarisani commented Jan 29, 2015

Is this a 64 bit machine? We can't reproduce this on same Debian, same procedure and 32 bit host.

@marsmensch

This comment has been minimized.

Copy link
Owner Author

@marsmensch marsmensch commented Jan 29, 2015

This is a vagrant box running debian 7.8 64bit. Will rebuilt the box now to rule out any weird misconfigurations.

@marsmensch

This comment has been minimized.

Copy link
Owner Author

@marsmensch marsmensch commented Jan 29, 2015

Debian 7.8, 64bit

vagrant@usbarmory:/vagrant/u-boot-usbarmory$ env
rvm_bin_path=/usr/local/rvm/bin
GEM_HOME=/usr/local/rvm/gems/ruby-1.9.3-p547
TERM=xterm-256color
SHELL=/bin/bash
IRBRC=/usr/local/rvm/rubies/ruby-1.9.3-p547/.irbrc
SSH_CLIENT=10.0.2.2 60043 22
OLDPWD=/vagrant
MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-1.9.3-p547
SSH_TTY=/dev/pts/0
USER=vagrant
_system_type=Linux
rvm_path=/usr/local/rvm
rvm_prefix=/usr/local
MAIL=/var/mail/vagrant
PATH=/usr/local/rvm/gems/ruby-1.9.3-p547/bin:/usr/local/rvm/gems/ruby-1.9.3-p547@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p547/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/rvm/bin
PWD=/vagrant/u-boot-usbarmory
LANG=en_US.UTF-8
_system_arch=x86_64
_system_version=7
rvm_version=1.25.28 (stable)
SHLVL=1
HOME=/home/vagrant
LOGNAME=vagrant
TOOLCHAIN_DIR=/home/vagrant
GEM_PATH=/usr/local/rvm/gems/ruby-1.9.3-p547:/usr/local/rvm/gems/ruby-1.9.3-p547@global
SSH_CONNECTION=10.0.2.2 60043 10.0.2.15 22
CROSS_COMPILE=/home/vagrant/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-
RUBY_VERSION=ruby-1.9.3-p547
_system_name=Debian
_=/usr/bin/env
@abarisani

This comment has been minimized.

Copy link

@abarisani abarisani commented Jan 29, 2015

Can you easily test this on a 32bit vagrant installation and see if you get the same? Did you also have issues with kernel compilation or just u-boot?

@marsmensch

This comment has been minimized.

Copy link
Owner Author

@marsmensch marsmensch commented Jan 29, 2015

Test with a 32bit installation, also not working for me:
vagrant@usbarmory:/vagrant/u-boot-usbarmory$ uname -a
Linux usbarmory 3.2.0-4-686-pae #1 SMP Debian 3.2.54-2 i686 GNU/Linux

vagrant@usbarmory:/vagrant/u-boot-usbarmory$ export TOOLCHAIN_DIR=~
vagrant@usbarmory:/vagrant/u-boot-usbarmory$ export CROSS_COMPILE=${TOOLCHAIN_DIR}/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-
vagrant@usbarmory:/vagrant/u-boot-usbarmory$ make distclean
vagrant@usbarmory:/vagrant/u-boot-usbarmory$ make usbarmory_config
Configuring for usbarmory - Board: usbarmory, Options: IMX_CONFIG=board/inversepath/usbarmory/imximage.cfg
vagrant@usbarmory:/vagrant/u-boot-usbarmory$ make ARCH=arm
  GEN     include/autoconf.mk.dep
  GEN     include/autoconf.mk
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/basic/fixdep
  CC      lib/asm-offsets.s
  GEN     include/generated/generic-asm-offsets.h
  CC      arch/arm/lib/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  HOSTCC  tools/gen_eth_addr
  HOSTCC  tools/img2srec
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
  WRAP    tools/common/bootm.c
  HOSTCC  tools/common/bootm.o
  WRAP    tools/common/image-fit.c
  HOSTCC  tools/common/image-fit.o
  WRAP    tools/common/image.c
  HOSTCC  tools/common/image.o
  HOSTCC  tools/default_image.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/fit_common.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/gpimage-common.o
  HOSTCC  tools/gpimage.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/imagetool.o
  HOSTCC  tools/imximage.o
  HOSTCC  tools/kwbimage.o
  WRAP    tools/lib/crc32.c
  HOSTCC  tools/lib/crc32.o
  WRAP    tools/lib/fdtdec.c
  HOSTCC  tools/lib/fdtdec.o
  WRAP    tools/lib/fdtdec_common.c
  HOSTCC  tools/lib/fdtdec_common.o
  WRAP    tools/lib/libfdt/fdt.c
  HOSTCC  tools/lib/libfdt/fdt.o
  WRAP    tools/lib/libfdt/fdt_ro.c
  HOSTCC  tools/lib/libfdt/fdt_ro.o
  WRAP    tools/lib/libfdt/fdt_rw.c
  HOSTCC  tools/lib/libfdt/fdt_rw.o
  WRAP    tools/lib/libfdt/fdt_strerror.c
  HOSTCC  tools/lib/libfdt/fdt_strerror.o
  WRAP    tools/lib/libfdt/fdt_wip.c
  HOSTCC  tools/lib/libfdt/fdt_wip.o
  WRAP    tools/lib/md5.c
  HOSTCC  tools/lib/md5.o
  WRAP    tools/lib/sha1.c
  HOSTCC  tools/lib/sha1.o
  WRAP    tools/lib/sha256.c
  HOSTCC  tools/lib/sha256.o
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/mxsimage.o
  HOSTCC  tools/omapimage.o
  HOSTCC  tools/os_support.o
  HOSTCC  tools/pbl_crc32.o
  HOSTCC  tools/pblimage.o
  HOSTCC  tools/ublimage.o
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTCC  tools/proftool
  LD      arch/arm/cpu/built-in.o
  CC      arch/arm/cpu/armv7/cache_v7.o
  CC      arch/arm/cpu/armv7/cpu.o
  CC      arch/arm/cpu/armv7/syslib.o
  LD      arch/arm/cpu/armv7/built-in.o
  AS      arch/arm/cpu/armv7/start.o
  CC      arch/arm/cpu/armv7/mx5/soc.o
  CC      arch/arm/cpu/armv7/mx5/clock.o
  AS      arch/arm/cpu/armv7/mx5/lowlevel_init.o
  LD      arch/arm/cpu/armv7/mx5/built-in.o
  CC      arch/arm/imx-common/iomux-v3.o
  CC      arch/arm/imx-common/timer.o
  CC      arch/arm/imx-common/cpu.o
  CC      arch/arm/imx-common/speed.o
  CC      arch/arm/imx-common/i2c-mxv7.o
  LD      arch/arm/imx-common/built-in.o
  AS      arch/arm/lib/vectors.o
  AS      arch/arm/lib/crt0.o
  AS      arch/arm/lib/relocate.o
  CC      arch/arm/lib/bootm-fdt.o
  CC      arch/arm/lib/bootm.o
  CC      arch/arm/lib/sections.o
  CC      arch/arm/lib/interrupts.o
  CC      arch/arm/lib/reset.o
  CC      arch/arm/lib/cache.o
  CC      arch/arm/lib/cache-cp15.o
  LD      arch/arm/lib/built-in.o
  AR      arch/arm/lib/lib.a
  CC      arch/arm/lib/eabi_compat.o
  CC      board/inversepath/usbarmory/usbarmory.o
board/inversepath/usbarmory/usbarmory.c: In function ‘board_mmc_getcd’:
board/inversepath/usbarmory/usbarmory.c:108:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
  int ret;
      ^
board/inversepath/usbarmory/usbarmory.c: At top level:
board/inversepath/usbarmory/usbarmory.c:198:13: warning: ‘clock_1GHz’ defined but not used [-Wunused-function]
 static void clock_1GHz(void)
             ^
  LD      board/inversepath/usbarmory/built-in.o
  CC      common/main.o
  CC      common/command.o
  CC      common/exports.o
  CC      common/hash.o
  CC      common/cli_hush.o
  CC      common/cli_simple.o
  CC      common/cli.o
  CC      common/cli_readline.o
  CC      common/s_record.o
  CC      common/xyzModem.o
  CC      common/cmd_disk.o
  CC      common/autoboot.o
  CC      common/board_f.o
  CC      common/board_r.o
  CC      common/cmd_boot.o
  CC      common/cmd_bootm.o
  CC      common/bootm.o
  CC      common/bootm_os.o
  CC      common/cmd_help.o
  CC      common/cmd_version.o
  CC      common/env_attr.o
  CC      common/env_callback.o
  CC      common/env_flags.o
  CC      common/env_mmc.o
  CC      common/cmd_source.o
  CC      common/cmd_bdinfo.o
  CC      common/cmd_console.o
  CC      common/cmd_echo.o
  CC      common/cmd_exit.o
  CC      common/cmd_ext2.o
  CC      common/cmd_fat.o
  CC      common/cmd_fdt.o
  CC      common/fdt_support.o
  CC      common/cmd_flash.o
  CC      common/cmd_fuse.o
  CC      common/cmd_i2c.o
  CC      common/cmd_itest.o
  CC      common/cmd_load.o
  CC      common/cmd_mem.o
  CC      common/cmd_misc.o
  CC      common/cmd_mmc.o
  CC      common/cmd_net.o
  CC      common/cmd_pcmcia.o
  CC      common/cmd_test.o
  CC      common/cmd_usb.o
  CC      common/usb.o
  CC      common/usb_hub.o
  CC      common/usb_storage.o
  CC      common/cmd_ximg.o
  CC      common/flash.o
  CC      common/splash.o
  CC      common/cmd_nvedit.o
  CC      common/env_common.o
  CC      common/console.o
  CC      common/dlmalloc.o
  CC      common/image.o
  CC      common/image-fdt.o
  CC      common/memsize.o
  CC      common/stdio.o
  LD      common/built-in.o
  CC      disk/part.o
  CC      disk/part_dos.o
  LD      disk/built-in.o
  LD      drivers/block/built-in.o
  LD      drivers/crypto/built-in.o
  LD      drivers/dfu/built-in.o
  LD      drivers/hwmon/built-in.o
  LD      drivers/memory/built-in.o
  CC      drivers/misc/fsl_iim.o
  LD      drivers/misc/built-in.o
  CC      drivers/pcmcia/tqm8xx_pcmcia.o
  LD      drivers/pcmcia/built-in.o
  CC      drivers/rtc/date.o
  LD      drivers/rtc/built-in.o
  LD      drivers/sound/built-in.o
  LD      drivers/tpm/built-in.o
  LD      drivers/twserial/built-in.o
  LD      drivers/video/built-in.o
  CC      drivers/watchdog/imx_watchdog.o
  LD      drivers/watchdog/built-in.o
  LD      drivers/built-in.o
  LD      drivers/dma/built-in.o
  CC      drivers/gpio/mxc_gpio.o
  LD      drivers/gpio/built-in.o
  CC      drivers/i2c/i2c_core.o
  CC      drivers/i2c/mxc_i2c.o
  LD      drivers/i2c/built-in.o
  CC      drivers/input/input.o
  LD      drivers/input/built-in.o
  CC      drivers/mmc/fsl_esdhc.o
  CC      drivers/mmc/mmc.o
  CC      drivers/mmc/mmc_write.o
  LD      drivers/mmc/built-in.o
  LD      drivers/mtd/built-in.o
  LD      drivers/mtd/onenand/built-in.o
  LD      drivers/mtd/spi/built-in.o
  LD      drivers/net/built-in.o
  LD      drivers/net/phy/built-in.o
  LD      drivers/pci/built-in.o
  LD      drivers/power/built-in.o
  LD      drivers/power/battery/built-in.o
  LD      drivers/power/fuel_gauge/built-in.o
  LD      drivers/power/mfd/built-in.o
  LD      drivers/power/pmic/built-in.o
  CC      drivers/serial/serial.o
  CC      drivers/serial/serial_mxc.o
  LD      drivers/serial/built-in.o
  CC      drivers/spi/spi.o
  LD      drivers/spi/built-in.o
  LD      drivers/usb/eth/built-in.o
  LD      drivers/usb/gadget/built-in.o
  CC      drivers/usb/host/ehci-hcd.o
  CC      drivers/usb/host/ehci-mx5.o
  LD      drivers/usb/host/built-in.o
  LD      drivers/usb/musb-new/built-in.o
  LD      drivers/usb/musb/built-in.o
  LD      drivers/usb/phy/built-in.o
  LD      drivers/usb/ulpi/built-in.o
  CC      fs/fs.o
  CC      fs/ext4/ext4fs.o
  CC      fs/ext4/ext4_common.o
  CC      fs/ext4/dev.o
  LD      fs/ext4/built-in.o
  CC      fs/fat/fat.o
  CC      fs/fat/file.o
  LD      fs/fat/built-in.o
  LD      fs/built-in.o
  CC      lib/zlib/zlib.o
  LD      lib/zlib/built-in.o
  CC      lib/crc7.o
  CC      lib/crc8.o
  CC      lib/crc16.o
  CC      lib/gunzip.o
  CC      lib/initcall.o
  CC      lib/lmb.o
  CC      lib/ldiv.o
  CC      lib/net_utils.o
  CC      lib/qsort.o
  CC      lib/strmhz.o
  CC      lib/hashtable.o
  CC      lib/errno.o
  CC      lib/display_options.o
  CC      lib/crc32.o
  CC      lib/ctype.o
  CC      lib/div64.o
  CC      lib/hang.o
  CC      lib/linux_string.o
  CC      lib/string.o
  CC      lib/time.o
  CC      lib/vsprintf.o
  LD      lib/built-in.o
  CC      lib/libfdt/fdt.o
  CC      lib/libfdt/fdt_ro.o
  CC      lib/libfdt/fdt_rw.o
  CC      lib/libfdt/fdt_strerror.o
  CC      lib/libfdt/fdt_sw.o
  CC      lib/libfdt/fdt_wip.o
  CC      lib/libfdt/fdt_empty_tree.o
  LD      lib/libfdt/built-in.o
  CC      net/arp.o
  CC      net/bootp.o
  CC      net/eth.o
  CC      net/net.o
  CC      net/nfs.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/hello_world.bin
  LDS     u-boot.lds
  LD      u-boot
  OBJCOPY u-boot.bin
  CFGS    board/inversepath/usbarmory/imximage.cfg.cfgtmp
  MKIMAGE u-boot.imx
/vagrant/u-boot-usbarmory/tools/mkimage: Can't map u-boot.imx: Invalid argument
make[1]: *** [u-boot.imx] Error 1
make: *** [u-boot.imx] Error 2
vagrant@usbarmory:/vagrant/u-boot-usbarmory$ env
TERM=xterm-256color
SHELL=/bin/bash
SSH_CLIENT=10.0.2.2 61656 22
OLDPWD=/vagrant
SSH_TTY=/dev/pts/0
USER=vagrant
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/vagrant
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=/vagrant/u-boot-usbarmory
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/vagrant
LOGNAME=vagrant
TOOLCHAIN_DIR=/home/vagrant
SSH_CONNECTION=10.0.2.2 61656 10.0.2.15 22
CROSS_COMPILE=/home/vagrant/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-
_=/usr/bin/env
vagrant@usbarmory:/vagrant/u-boot-usbarmory$
@andrejro

This comment has been minimized.

Copy link

@andrejro andrejro commented Jan 29, 2015

Looks like you are trying to build from a host shared directory (mmap in mkimage fails). Please, move your
building directory on the VM disk.

@marsmensch

This comment has been minimized.

Copy link
Owner Author

@marsmensch marsmensch commented Jan 30, 2015

@abarisani Kernel does also not compile, this is also 32bit:

  CC [M]  net/ipv4/netfilter/ipt_ECN.o
net/ipv4/netfilter/ipt_ECN.c:29:46: warning: ‘struct ipt_ECN_info’ declared inside parameter list
 set_ect_ip(struct sk_buff *skb, const struct ipt_ECN_info *einfo)
                                              ^
net/ipv4/netfilter/ipt_ECN.c:29:46: warning: its scope is only this definition or declaration, which is probably not what you want
net/ipv4/netfilter/ipt_ECN.c: In function ‘set_ect_ip’:
net/ipv4/netfilter/ipt_ECN.c:33:44: error: dereferencing pointer to incomplete type
  if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) {
                                            ^
net/ipv4/netfilter/ipt_ECN.c:40:21: error: dereferencing pointer to incomplete type
   iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK);
                     ^
net/ipv4/netfilter/ipt_ECN.c: At top level:
net/ipv4/netfilter/ipt_ECN.c:48:47: warning: ‘struct ipt_ECN_info’ declared inside parameter list
 set_ect_tcp(struct sk_buff *skb, const struct ipt_ECN_info *einfo)
                                               ^
net/ipv4/netfilter/ipt_ECN.c: In function ‘set_ect_tcp’:
net/ipv4/netfilter/ipt_ECN.c:58:14: error: dereferencing pointer to incomplete type
  if ((!(einfo->operation & IPT_ECN_OP_SET_ECE) ||
              ^
net/ipv4/netfilter/ipt_ECN.c:58:28: error: ‘IPT_ECN_OP_SET_ECE’ undeclared (first use in this function)
  if ((!(einfo->operation & IPT_ECN_OP_SET_ECE) ||
                            ^
net/ipv4/netfilter/ipt_ECN.c:58:28: note: each undeclared identifier is reported only once for each function it appears in
net/ipv4/netfilter/ipt_ECN.c:59:25: error: dereferencing pointer to incomplete type
       tcph->ece == einfo->proto.tcp.ece) &&
                         ^
net/ipv4/netfilter/ipt_ECN.c:60:14: error: dereferencing pointer to incomplete type
      (!(einfo->operation & IPT_ECN_OP_SET_CWR) ||
              ^
net/ipv4/netfilter/ipt_ECN.c:60:28: error: ‘IPT_ECN_OP_SET_CWR’ undeclared (first use in this function)
      (!(einfo->operation & IPT_ECN_OP_SET_CWR) ||
                            ^
net/ipv4/netfilter/ipt_ECN.c:61:25: error: dereferencing pointer to incomplete type
       tcph->cwr == einfo->proto.tcp.cwr))
                         ^
net/ipv4/netfilter/ipt_ECN.c:69:11: error: dereferencing pointer to incomplete type
  if (einfo->operation & IPT_ECN_OP_SET_ECE)
           ^
net/ipv4/netfilter/ipt_ECN.c:70:20: error: dereferencing pointer to incomplete type
   tcph->ece = einfo->proto.tcp.ece;
                    ^
net/ipv4/netfilter/ipt_ECN.c:71:11: error: dereferencing pointer to incomplete type
  if (einfo->operation & IPT_ECN_OP_SET_CWR)
           ^
net/ipv4/netfilter/ipt_ECN.c:72:20: error: dereferencing pointer to incomplete type
   tcph->cwr = einfo->proto.tcp.cwr;
                    ^
net/ipv4/netfilter/ipt_ECN.c: In function ‘ecn_tg’:
net/ipv4/netfilter/ipt_ECN.c:84:11: error: dereferencing pointer to incomplete type
  if (einfo->operation & IPT_ECN_OP_SET_IP)
           ^
net/ipv4/netfilter/ipt_ECN.c:84:25: error: ‘IPT_ECN_OP_SET_IP’ undeclared (first use in this function)
  if (einfo->operation & IPT_ECN_OP_SET_IP)
                         ^
net/ipv4/netfilter/ipt_ECN.c:85:24: warning: passing argument 2 of ‘set_ect_ip’ from incompatible pointer type
   if (!set_ect_ip(skb, einfo))
                        ^
net/ipv4/netfilter/ipt_ECN.c:29:1: note: expected ‘const struct ipt_ECN_info *’ but argument is of type ‘const struct ipt_ECN_info *’
 set_ect_ip(struct sk_buff *skb, const struct ipt_ECN_info *einfo)
 ^
net/ipv4/netfilter/ipt_ECN.c:88:11: error: dereferencing pointer to incomplete type
  if (einfo->operation & (IPT_ECN_OP_SET_ECE | IPT_ECN_OP_SET_CWR) &&
           ^
net/ipv4/netfilter/ipt_ECN.c:88:26: error: ‘IPT_ECN_OP_SET_ECE’ undeclared (first use in this function)
  if (einfo->operation & (IPT_ECN_OP_SET_ECE | IPT_ECN_OP_SET_CWR) &&
                          ^
net/ipv4/netfilter/ipt_ECN.c:88:47: error: ‘IPT_ECN_OP_SET_CWR’ undeclared (first use in this function)
  if (einfo->operation & (IPT_ECN_OP_SET_ECE | IPT_ECN_OP_SET_CWR) &&
                                               ^
net/ipv4/netfilter/ipt_ECN.c:90:25: warning: passing argument 2 of ‘set_ect_tcp’ from incompatible pointer type
   if (!set_ect_tcp(skb, einfo))
                         ^
net/ipv4/netfilter/ipt_ECN.c:48:1: note: expected ‘const struct ipt_ECN_info *’ but argument is of type ‘const struct ipt_ECN_info *’
 set_ect_tcp(struct sk_buff *skb, const struct ipt_ECN_info *einfo)
 ^
net/ipv4/netfilter/ipt_ECN.c: In function ‘ecn_tg_check’:
net/ipv4/netfilter/ipt_ECN.c:101:11: error: dereferencing pointer to incomplete type
  if (einfo->operation & IPT_ECN_OP_MASK) {
           ^
net/ipv4/netfilter/ipt_ECN.c:101:25: error: ‘IPT_ECN_OP_MASK’ undeclared (first use in this function)
  if (einfo->operation & IPT_ECN_OP_MASK) {
                         ^
In file included from include/linux/kernel.h:13:0,
                 from include/linux/uio.h:12,
                 from include/linux/socket.h:7,
                 from include/uapi/linux/in.h:22,
                 from include/linux/in.h:23,
                 from net/ipv4/netfilter/ipt_ECN.c:10:
net/ipv4/netfilter/ipt_ECN.c:102:50: error: dereferencing pointer to incomplete type
   pr_info("unsupported ECN operation %x\n", einfo->operation);
                                                  ^
include/linux/printk.h:247:34: note: in definition of macro ‘pr_info’
  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                  ^
net/ipv4/netfilter/ipt_ECN.c:105:11: error: dereferencing pointer to incomplete type
  if (einfo->ip_ect & ~IPT_ECN_IP_MASK) {
           ^
In file included from include/linux/kernel.h:13:0,
                 from include/linux/uio.h:12,
                 from include/linux/socket.h:7,
                 from include/uapi/linux/in.h:22,
                 from include/linux/in.h:23,
                 from net/ipv4/netfilter/ipt_ECN.c:10:
net/ipv4/netfilter/ipt_ECN.c:106:54: error: dereferencing pointer to incomplete type
   pr_info("new ECT codepoint %x out of mask\n", einfo->ip_ect);
                                                      ^
include/linux/printk.h:247:34: note: in definition of macro ‘pr_info’
  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                  ^
net/ipv4/netfilter/ipt_ECN.c:109:12: error: dereferencing pointer to incomplete type
  if ((einfo->operation & (IPT_ECN_OP_SET_ECE|IPT_ECN_OP_SET_CWR)) &&
            ^
net/ipv4/netfilter/ipt_ECN.c:109:27: error: ‘IPT_ECN_OP_SET_ECE’ undeclared (first use in this function)
  if ((einfo->operation & (IPT_ECN_OP_SET_ECE|IPT_ECN_OP_SET_CWR)) &&
                           ^
net/ipv4/netfilter/ipt_ECN.c:109:46: error: ‘IPT_ECN_OP_SET_CWR’ undeclared (first use in this function)
  if ((einfo->operation & (IPT_ECN_OP_SET_ECE|IPT_ECN_OP_SET_CWR)) &&
                                              ^
net/ipv4/netfilter/ipt_ECN.c: At top level:
net/ipv4/netfilter/ipt_ECN.c:121:23: error: invalid application of ‘sizeof’ to incomplete type ‘struct ipt_ECN_info’
  .targetsize = sizeof(struct ipt_ECN_info),
                       ^
make[3]: *** [net/ipv4/netfilter/ipt_ECN.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
vagrant@usbarmory:/vagrant/linux-3.18.2$
@marsmensch

This comment has been minimized.

Copy link
Owner Author

@marsmensch marsmensch commented Jan 30, 2015

@andrejro good point, how could i forget! That already happened to me once. Will retry now.

@marsmensch

This comment has been minimized.

Copy link
Owner Author

@marsmensch marsmensch commented Jan 30, 2015

@abarisani @andrejro that was indeed the reason, kernel AND u-boot are buiilding and linking fine now. Next beer is on me!

Sorry for the noise and thank you for the support! Will document my setup on the weekend.

@abarisani

This comment has been minimized.

Copy link

@abarisani abarisani commented Jan 30, 2015

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment