码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-04-21 17:29:57      阅读:972      评论:0      收藏:0      [点我收藏+]

标签:directory   error:   target   alt   固件   direct   lin   war   size   

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

标签:directory   error:   target   alt   固件   direct   lin   war   size   

原文地址:http://www.cnblogs.com/A0205/p/6744553.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!