OpenWrt Forum Archive

Topic: make fails

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi,
i have a D-Link DIR-300 and i want to build a openwrt., but it fails. I use Linux Mint 14.
i make it with this command

make V=s

And this are the last line of the output in the terminal:

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
mkimage -A mips -O linux -T kernel -C lzma -a 0x80000000 -e 0x80000000 -n "MIPS OpenWrt Linux-3.7.4" -d /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-air3gii.bin.lzma /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-air3gii.uImage
Image Name:   MIPS OpenWrt Linux-3.7.4
Created:      Sat Jan 26 12:29:57 2013
Image Type:   MIPS Linux Kernel Image (lzma compressed)
Data Size:    932896 Bytes = 911.03 kB = 0.89 MB
Load Address: 80000000
Entry Point:  80000000
if [ `stat -c%s "/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-air3gii.uImage"` -gt 917504 ]; then echo "Warning: /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-air3gii.uImage is too big"; else if [ `stat -c%s /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs` -gt 2949120 ]; then echo "Warning: /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs is too big"; else ( dd if=/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-air3gii.uImage bs=917504 conv=sync; dd if=/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs ) > /home/newone/openwrt/trunk/bin/ramips/openwrt-ramips-rt305x-air3gii-squashfs-sysupgrade.bin; fi; fi
Warning: /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-air3gii.uImage is too big
cp /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g
/home/newone/openwrt/trunk/staging_dir/host/bin/patch-cmdline /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g 'board=ALL0239-3G console=ttyS1,57600 mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware)'
/home/newone/openwrt/trunk/staging_dir/host/bin/lzma e /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g -lc1 -lp2 -pb2 /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
if [ `stat -c%s "/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma"` -gt `expr 917504 - 64` ]; then echo "Warning: /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma is too big"; else if [ `stat -c%s "/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs"` -gt 7143424 ]; then echo "Warning: /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs is too big"; else ( dd if=/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma bs=`expr 917504 - 64` conv=sync ; dd if=/home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs ) > /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma.combined ; fi ; fi
Warning: /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma is too big
mkimage -A mips -O linux -T kernel -C lzma -a 0x80000000 -e 0x80000000 -n "MIPS OpenWrt Linux-3.7.4" -d /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma.combined /home/newone/openwrt/trunk/bin/ramips/openwrt-ramips-rt305x-all0239-3g-squashfs-sysupgrade.bin
mkimage: Can't open /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma.combined: No such file or directory
make[5]: *** [install] Error 1
make[5]: Leaving directory `/home/newone/openwrt/trunk/target/linux/ramips/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/newone/openwrt/trunk/target/linux/ramips'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/newone/openwrt/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/newone/openwrt/trunk'
make[1]: *** [/home/newone/openwrt/trunk/staging_dir/target-mipsel_r2_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/newone/openwrt/trunk'
make: *** [world] Fehler 2

the output says, that some file is not available, but why? can someone help me?

It failed because the script said file /home/newone/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma is greater than (917504 - 64) - by (932896-(917504 - 64)) bytes.

You seem to be building Barrier Breaker. The 917504 value is present in my 3.3.8 linux makefiles, so it could be as simple as somebody hasn't gotten around to ammending it. You may be able to patch the value but have size issues with your 4MB of flash later on in making the image.

The discussion might have continued from here.