[LEDE-DEV] uImage too big for Netgear R7800
Ben Greear
greearb at candelatech.com
Wed Oct 26 16:33:28 PDT 2016
I updated and re-built my image for r7800, and now it breaks because of uImage being too big.
I am using a config that adds some more packages, and CT firmware, and so forth.
First, is anyone else able to build this?
And second, what controls the size of uImage? Is it packages selected, firmware
images selected, etc?
rm -f /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/root-ipq806x/init
make -C /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27 HOSTCFLAGS="-O2
-I/home/greearb/git/lede-r7800/staging_dir/host/include -I/home/greearb/git/lede-r7800/staging_dir/host/usr/include -Wall -Wmissing-prototypes
-Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST=""
KBUILD_BUILD_TIMESTAMP="Wed Oct 26 23:13:23 2016" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/greearb/git/lede-r7800/staging_dir/host/lib"
CONFIG_SHELL="bash" V='' CC="arm-openwrt-linux-muslgnueabi-gcc" zImage Image dtbs modules
make[5]: Entering directory '/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27'
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[6]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/Image is ready
XZKERN arch/arm/boot/compressed/piggy.xzkern
AS arch/arm/boot/compressed/piggy.xzkern.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[5]: Nothing to be done for 'Image'.
Building modules, stage 2.
MODPOST 811 modules
make[5]: Leaving directory '/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27'
cmp -s /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/vmlinux
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/vmlinux.debug || { arm-openwrt-linux-muslgnueabi-objcopy
-O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/vmlinux
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/vmlinux; arm-openwrt-linux-muslgnueabi-objcopy -R
.reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/vmlinux
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/vmlinux.elf; cp -fpR
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/vmlinux
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/vmlinux.debug; cp -fpR
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/arch/arm/boot//zImage
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/zImage; cp -fpR
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/arch/arm/boot//Image
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/Image; }
touch /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/.image
make -C image compile install TARGET_BUILD=
make[5]: Entering directory '/home/greearb/git/lede-r7800/target/linux/ipq806x/image'
make[5]: Nothing to be done for 'compile'.
mkdir -p /home/greearb/git/lede-r7800/bin/targets/ipq806x/generic
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp
cp -fpR /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/vmlinux
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/lede-ipq806x-vmlinux.elf
mkimage -A arm -O linux -T filesystem -C none -a 0x42208000 -e 0x42208000 -n 'ARM OpenWrt fakeroot' -s
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/root.dummy-uImage.tmp
Image Name: ARM OpenWrt fakeroot
Created: Wed Oct 26 23:13:23 2016
Image Type: ARM Linux Filesystem Image (uncompressed)
Data Size: 0 Bytes = 0.00 kB = 0.00 MB
Load Address: 42208000
Entry Point: 42208000
echo -ne '\xff' > /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/root.dummy
cat /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/root.dummy
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/root.dummy-uImage.tmp >
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/root.dummy
cp -fpR /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/lede-ipq806x-vmlinux.elf
/home/greearb/git/lede-r7800/bin/targets/ipq806x/generic
/home/greearb/git/lede-r7800/staging_dir/host/bin/mksquashfs4
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/root-ipq806x
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/root.squashfs -nopad -noappend -root-owned -comp xz
-Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -Xbcj arm -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 1 -fixed-time 1477523603
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/root-ipq806x/dev".
Ignoring, exclude it (-e/-ef) to override.
[===============================================================================================================\] 834/834 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 3215.06 Kbytes (3.14 Mbytes)
34.36% of uncompressed filesystem size (9357.09 Kbytes)
Inode table size 8262 bytes (8.07 Kbytes)
21.97% of uncompressed inode table size (37601 bytes)
Directory table size 11370 bytes (11.10 Kbytes)
49.08% of uncompressed directory table size (23166 bytes)
Number of duplicate files found 6
Number of inodes 1132
Number of files 826
Number of fragments 26
Number of symbolic links 199
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 106
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
/home/greearb/git/lede-r7800/staging_dir/host/bin/mkfs.ubifs -m 2048 -e 124KiB -c 4096 -U -F --space-fixup --force-compr=zlib --squash-uids -o
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/root.ubifs -d
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/root-ipq806x
rm -f /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
cp /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/zImage
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
arm-openwrt-linux-muslgnueabi-cpp -nostdinc -x assembler-with-cpp
-I/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/arch/arm/boot/dts
-I/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/arch/arm/boot/dts/include -undef -D__DTS__
-o /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.dtb.tmp
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/arch/arm/boot/dts/qcom-ipq8065-r7800.dts
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/scripts/dtc/dtc -O dtb
-i/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/linux-4.4.27/arch/arm/boot/dts/ -o
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.dtb
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.dtb.tmp
Warning (reg_format): "reg" property in /soc/rpm at 108000/rpm_clocks/cxo has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/rpm at 108000/rpm_clocks/pxo has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/rpm at 108000/rpm_clocks/ebi1 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/rpm at 108000/rpm_clocks/apps-fabric has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/rpm at 108000/rpm_clocks/nss-fabric0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/rpm at 108000/rpm_clocks/nss-fabric1 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/rpm at 108000/rpm_clocks/cxo
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/rpm at 108000/rpm_clocks/cxo
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/rpm at 108000/rpm_clocks/pxo
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/rpm at 108000/rpm_clocks/pxo
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/rpm at 108000/rpm_clocks/ebi1
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/rpm at 108000/rpm_clocks/ebi1
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/rpm at 108000/rpm_clocks/apps-fabric
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/rpm at 108000/rpm_clocks/apps-fabric
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/rpm at 108000/rpm_clocks/nss-fabric0
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/rpm at 108000/rpm_clocks/nss-fabric0
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/rpm at 108000/rpm_clocks/nss-fabric1
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/rpm at 108000/rpm_clocks/nss-fabric1
rm -f /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.dtb.tmp
cat /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.dtb >>
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
dd if=/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
of=/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.new bs=$((2097152-2*64-1)) conv=sync
1+1 records in
2+0 records out
4194046 bytes (4.2 MB) copied, 0.00219929 s, 1.9 GB/s
mv /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.new
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
mkimage -A arm -O linux -T kernel -C none -a 0x42208000 -e 0x42208000 -n 'ARM LEDE Linux-4.4.27' -d
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage.new
Image Name: ARM LEDE Linux-4.4.27
Created: Wed Oct 26 23:13:23 2016
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4194046 Bytes = 4095.75 kB = 4.00 MB
Load Address: 42208000
Entry Point: 42208000
cat /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/root.dummy >>
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage
WARNING: Image file /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage is too big
[ -f /home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/R7800-uImage -a -f
/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/root.squashfs ]
Makefile:230: recipe for target
'/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/lede-ipq806x-R7800-squashfs-factory.img' failed
make[5]: ***
[/home/greearb/git/lede-r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/linux-ipq806x/tmp/lede-ipq806x-R7800-squashfs-factory.img] Error 1
make[5]: Leaving directory '/home/greearb/git/lede-r7800/target/linux/ipq806x/image'
Makefile:26: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/greearb/git/lede-r7800/target/linux/ipq806x'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/greearb/git/lede-r7800/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/greearb/git/lede-r7800'
target/Makefile:17: recipe for target '/home/greearb/git/lede-r7800/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/stamp/.target_install' failed
make[1]: *** [/home/greearb/git/lede-r7800/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.15_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/greearb/git/lede-r7800'
/home/greearb/git/lede-r7800/include/toplevel.mk:194: recipe for target 'world' failed
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Lede-dev
mailing list