openwrt编译 固件太大报错 .bin is too big
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openwrt编译 固件太大报错 .bin is too big相关的知识,希望对你有一定的参考价值。
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
以上是关于openwrt编译 固件太大报错 .bin is too big的主要内容,如果未能解决你的问题,请参考以下文章