OpenWrt Forum Archive

Topic: seems like a bug

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

build passed. now it is target install.

seems like image is too big, and that is why *.combined is not created. but it used later...

if [ `stat -c%s "/home/axet/source/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/axet/source/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/axet/source/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs"` -gt 7143424 ]; then echo "Warning: /home/axet/source/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs is too big"; else ( dd if=/home/axet/source/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/axet/source/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/root.squashfs ) > /home/axet/source/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/axet/source/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.3" -d /home/axet/source/openwrt/trunk/build_dir/target-mipsel_r2_uClibc-0.9.33.2/linux-ramips_rt305x/vmlinux-all0239-3g.bin.lzma.combined /home/axet/source/openwrt/trunk/bin/ramips/openwrt-ramips-rt305x-all0239-3g-squashfs-sysupgrade.bin
mkimage: Can't open /home/axet/source/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

cd ./openwrt/trunk/target/linux/ramips/image

this sould be a fix

Index: target/linux/ramips/image/Makefile
===================================================================
--- target/linux/ramips/image/Makefile    (revision 35311)
+++ target/linux/ramips/image/Makefile    (working copy)
@@ -66,9 +66,8 @@
        echo "Warning: $(KDIR)/vmlinux-$(2).bin.lzma is too big"; \
    else if [ `stat -c%s "$(KDIR)/root.$(1)"` -gt $(5) ]; then \
        echo "Warning: $(KDIR)/root.$(1) is too big"; \
-    else \
-        ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=`expr $(4) - 64` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.lzma.combined ; \
    fi ; fi
+    ( dd if=$(KDIR)/vmlinux-$(2).bin.lzma bs=`expr $(4) - 64` conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(KDIR)/vmlinux-$(2).bin.lzma.combined;
    $(call MkImage,lzma,$(KDIR)/vmlinux-$(2).bin.lzma.combined,$(call sysupname,$(1),$(2)),$(6))
endef

(Last edited by axet on 24 Jan 2013, 12:03)

who can review this patch and push it to the repo?

The discussion might have continued from here.