找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6411|回复: 6

RT-N16编译OP时出错,提示说:fread failure or file "*" too large

[复制链接]
发表于 2014-8-23 12:27 | 显示全部楼层 |阅读模式
RT-N16是32M的Flash,所以我在编译就多添加了一些东西,就是在make menuconfig中前面打了 "*”,然而在编译时提示说:
fread failure or file "/media/vol_data/OpenWRT/trunk/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-brcm47xx_generic/root.squashfs" too large
这个root.squashfs文件我查看了一下,才10.1M的样子,离我32M还差的远,,而RTN16原厂的RT-N16_3.0.0.4_374_5517-g302e4dc.trx却有24.4M,why?
...
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments, no xattrs
        duplicates are removed
Filesystem size 10427.40 Kbytes (10.18 Mbytes)
        30.45% of uncompressed filesystem size (34248.37 Kbytes)
Inode table size 20390 bytes (19.91 Kbytes)
        24.80% of uncompressed inode table size (82223 bytes)
Directory table size 24010 bytes (23.45 Kbytes)
        45.65% of uncompressed directory table size (52593 bytes)
Number of duplicate files found 37
Number of inodes 2488
Number of files 2037
Number of fragments 70
Number of symbolic links  298
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 152
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
/media/vol_data/OpenWRT/trunk/staging_dir/host/bin/trx -o /media/vol_data/OpenWRT/trunk/bin/brcm47xx/openwrt-brcm47xx-generic-squashfs.trx -f /media/vol_data/OpenWRT/trunk/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-brcm47xx_generic/loader.gz -f /media/vol_data/OpenWRT/trunk/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-brcm47xx_generic/vmlinux.lzma -a 1024 -f /media/vol_data/OpenWRT/trunk/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-brcm47xx_generic/root.squashfs  -a 0x10000 -A /media/vol_data/OpenWRT/trunk/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-brcm47xx_generic/fs_mark
mjn3's trx replacement - v0.81.1
fread failure or file "/media/vol_data/OpenWRT/trunk/build_dir/target-mipsel_mips32_uClibc-0.9.33.2/linux-brcm47xx_generic/root.squashfs" too large
make[5]: *** [install] Error 1
make[5]: Leaving directory `/media/vol_data/OpenWRT/trunk/target/linux/brcm47xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/media/vol_data/OpenWRT/trunk/target/linux/brcm47xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/media/vol_data/OpenWRT/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/media/vol_data/OpenWRT/trunk'
make[1]: *** [/media/vol_data/OpenWRT/trunk/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/media/vol_data/OpenWRT/trunk'
make: *** [world] Error 2


文件大小:
-rw-r--r--  1 ayang ayang 10677660 2014-08-23 11:52 root.squashfs

求各位看看,附件中有l编译的全log信息。



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2014-8-23 12:39 | 显示全部楼层

经过不停的google,发现:
https://dev.openwrt.org/ticket/2626

I got it. I changed the value TRX_MAX_LEN in the file ".../trunk/tools/firmware-utils/src/trx.c" in line 63 "#define TRX_MAX_LEN 0x5A0000" to a somthing higher value and then it worked ! So ticket can be closed.

Unfortunately some devices can't support a larger trx image size than 0x5A0000, this limit has to remain at the current value. As noted above it can be changed manually if a larger size is desired and the board supports it.

因为很多设备不支持大于5M的,所以就定义了一个宏,"#define TRX_MAX_LEN 0x5A0000" 来限制。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-8-23 12:40 | 显示全部楼层
我的设备是RTN16,Flash有32M,我把它修改成15M,或者20M,不知会怎样?

试试,,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-8-23 12:59 | 显示全部楼层
nofateyang 发表于 2014-8-23 12:40
我的设备是RTN16,Flash有32M,我把它修改成15M,或者20M,不知会怎样?

试试,,

I got it. I changed the value TRX_MAX_LEN in the file ".../trunk/tools/firmware-utils/src/trx.c" in line 63 "#define TRX_MAX_LEN 0x5A0000" to a somthing higher value and then it worked ! So ticket can be closed.

Unfortunately some devices can't support a larger trx image size than 0x5A0000, this limit has to remain at the current value. As noted above it can be changed manually if a larger size is desired and the board supports it.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-8-23 13:44 | 显示全部楼层
修改/(build_dir)/tools/firmware-utils/src/trx.c文件中的“#define TRX_MAX_LEN        0x720000”,将“0x720000”改大即可。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-8-23 13:46 | 显示全部楼层
N16使用openwrt的话,无线驱动不怎么好,其他还行。

点评

刚入门,第一次玩这些,好多都不懂,就tao了一个二手的回来玩玩,以后还请多多指点,先谢谢。  详情 回复 发表于 2014-8-24 11:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-8-24 11:29 | 显示全部楼层
trob 发表于 2014-8-23 13:46
N16使用openwrt的话,无线驱动不怎么好,其他还行。

刚入门,第一次玩这些,好多都不懂,就tao了一个二手的回来玩玩,以后还请多多指点,先谢谢。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 17:42

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表