openwrt编译 固件太大报错 .bin is too big

六月ゝ 毕业季﹏ 提交于 2020-01-16 02:06:32

openwrt只选中SSH LUCI 编译 报错 无法生成固件

问题出在:openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin

这个固件也没用 。

修改方法:

进入./target/linux/ramips/image

打开makefile 

找到ex2700_mtd_size=3866624  改为8126464即可。影响未知

 

error log:

if [ `stat -c%s "/home/l/linux/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin"` -gt 3866624 ]; then echo "Warning: /home/l/linux/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin is too big" >&2; else cp -fpR /home/l/linux/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin /home/l/linux/bin/ramips/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin; fi
Warning: /home/l/linux/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin is too big
/home/l/linux/staging_dir/host/bin/mkdniimg -B EX2700 -H 29764623+4+0+32+2x2+0 -v OpenWrt -i /home/l/linux/bin/ramips/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin -o /home/l/linux/bin/ramips/openwrt-ramips-mt7620-ex2700-squashfs-factory.bin
[mkdniimg] *** error: stat failed on /home/l/linux/bin/ramips/openwrt-ramips-mt7620-ex2700-squashfs-sysupgrade.bin
Makefile:1075: recipe for target 'install' failed
make[5]: *** [install] Error 1
make[5]: Leaving directory '/home/l/linux/target/linux/ramips/image'
Makefile:26: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/l/linux/target/linux/ramips'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/l/linux/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/l/linux'
target/Makefile:17: recipe for target '/home/l/linux/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_install' failed
make[1]: *** [/home/l/linux/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/l/linux'
/home/l/linux/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!