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

时间: 2024-08-24 22:58:42

openwrt编译 固件太大报错 .bin is too big的相关文章

linux下编译make文件报错“/bin/bash^M: 坏的解释器,使用grep快速定位代码位置

一.linux下编译make文件报错"/bin/bash^M: 坏的解释器 参考文章:http://blog.csdn.net/liuqiyao_01/article/details/41542101#comments 自己测试的结果: [1]使用windows 下的编辑工具 新建文件doc2unix.sh #!/usr/bin/env bash # test PID=$(ps -aef | grep nginx | grep -v grep | grep master |awk '{print

解决 linux下编译make文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题

PS背景:我在公司做sdk 的pc端开发,所以经常会在win下编译通过之后跑到linux下再运行一次已确保能支持多平台. 今儿在win下跑完一程序,然后放到linux下跑的时候,我用指令: [plain] view plain copy sudo ./build.sh 但是却没有任何反应.于是我换了指令,用 [plain] view plain copy chmod u+x build.sh ./build.sh 报错 "build.sh  /bin/bash^M: 坏的解释器:没有那个文件或目

解决 linux下编译make文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题

PS背景:我在公司做sdk 的pc端开发,所以经常会在win下编译通过之后跑到linux下再运行一次已确保能支持多平台. 今儿在win下跑完一程序,然后放到linux下跑的时候,我用指令: sudo ./build.sh 但是却没有任何反应.于是我换了指令,用 chmod u+x build.sh ./build.sh 报错 "build.sh  /bin/bash^M: 坏的解释器:没有那个文件或目录". 以前遇到这个问题,换了几种编译方法就解决了,单这次还是不行,于是又换:bash

OpenWrt编译固件和交叉编译环境搭建

ubuntu环境 ?? 点击openwrt查询自己系统需要安装的那些 比如我的系统是ubuntu 18.04,选择的就是18.04 查询设备CPU信息 ?? 点击openwrt查询自己路由器对应的CPU信息 准备OpenWrt环境 下载openwrt源码 这个过程可能会有点漫长,可以将github上的资源搬到码云,然后从码云下载,据说速度很快,详细的教程百度搜一下就有 git clone https://git.openwrt.org/openwrt/openwrt.git 选择自己需要的分支

node----ajax请求太大报错------解决方法

//----分析主体程序var bodyParser = require('body-parser'); app.use(bodyParser.json({limit: '50mb'})); app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));

sql 使用 in 后数据量太大报错

ibatis配置文件如下: <select id="getPageInfo" parameterClass="map" resultClass="java.util.HashMap"> select b.aab001, c.aab069, a.aac001, a.aac003, a.aac147, a.aac998, a.aac007, b.aac049, b.aae206, b.aae140, a.aic162, a.aac060

OpenWRT 编译教程

1.安装Ubuntu 到 http://www.ubuntu.org.cn/desktop/get-ubuntu/download/ 下载,版本随便,我选的是10.10 32位版.安装过程就不说了,图形化安装,而且是中文版,连安装都搞不定的,可以关闭本页面了.可以安装在虚拟机里,也可以安装在物理机了,官方建议有条件的最好安装在物理机上,大概是说虚拟机有时会有不可预料的情况,但装在虚拟机里的人多得是了.题外话:安装过程中某一步设置用户名密码时,我是选择了自动登录,因为懒得每次都输密码登录,反正只是

Openwrt 编译添加模块 Package

3.  添加模块 一般我们需要建立自己的模块(package),在编译固件时可以选择是否将自己的模块编译到固件中去. 3.1. 建立package 最终helloword文件目录结构为: helloword/ ├──Makefile └── src ├── helloworld.c └── Makefile 在./openwrt/trunk/package/utils/目录下新建helloword文件夹. 然后在helloword文件夹下新建src文件夹. 3.2. 在src目录下编写hello

Openwrt下固件及烧录相关知识

制作编程器固件8M 1.手动制作8M固件 [email protected]:/# cat /proc/mtd dev: size erasesize name mtd0: 00020000 00010000 "u-boot" mtd1: 000e214c 00010000 "kernel" mtd2: 006edeb4 00010000 "rootfs" mtd3: 00450000 00010000 "rootfs_data&quo