找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5638|回复: 3

编译3420的8M openwrt报错

[复制链接]
发表于 2011-11-6 21:50 | 显示全部楼层 |阅读模式
如果不改8M Flash的配置 就没问题改成8M的Flash编译出来的固件就报错:
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4000: 0x8433 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4004: 0x73a3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4008: 0x7346 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d400c: 0x04d9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4010: 0xbcaf instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4014: 0x8326 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4018: 0xb957 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d401c: 0x2ac9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4020: 0xd39c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d4024: 0xabbd instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5000: 0x20a5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5004: 0x3ac9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5008: 0x902b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d500c: 0x1080 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5010: 0xc783 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5014: 0xa7e7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5018: 0x9bcd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d501c: 0x1f58 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5020: 0x24c5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d5024: 0xa7c7 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6000: 0x3042 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6004: 0xee56 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6008: 0xb75a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d600c: 0x3248 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6010: 0x8fd2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6014: 0xfd5f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6018: 0xba62 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d601c: 0x9250 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6020: 0x91f5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d6024: 0x954e instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000d6558
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7000: 0x42ce instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7004: 0x89ca instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7008: 0xa501 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d700c: 0x4357 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7010: 0x913f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7014: 0x867e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7018: 0xbd99 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d701c: 0x85dc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7020: 0xed45 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d7024: 0x6708 instead

改8M只 改了这个几个地方:
在路径 /trunk/tools/firmware-utils/src/mktplinkfw.c  这个文件里边有个“fw max len”请改成7c0000 (这一步把固件最大限制改成8M),如果是16mflash,请改成fc0000(最大限制改成16m)。
在路径 /trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3x20.c 这个文件里边的
rootfs size 从0x290000改成0x690000,art offset 从0x3f0000改成0x7f0000,firmware size从0x3d0000改成0x7d0000(以上是8m的)。



刚刚接触 请明白的指点一下 谢谢先!
我的恩山、我的无线 The best wifi forum is right here.
发表于 2012-5-20 22:13 | 显示全部楼层
同问,另外,楼主注意到开始的分区信息了吗?怎么改了没起作用?
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=E00000, len=FFFFFFFFFF5F0000
0x000000e00000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: MTD device is not NAND it's type 3
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x6873 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x5503 instead
。。。。
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x0001ed08
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x1ec9 instead
。。。。
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006000c: 0xc01c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060010: 0x8b8b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060014: 0x8b17 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060018: 0x5ba1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006001c: 0x4011 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060020: 0xcddc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060024: 0x0c82 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070000: 0x850a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070004: 0x8350 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070008: 0x2671 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007000c: 0x6fa8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070010: 0xae9c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070014: 0x3617 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070018: 0x826d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0007001c: 0x1aed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070020: 0x3f16 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00070024: 0x8b53 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x00076d34
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0x248b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080004: 0x0b38 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080008: 0x984f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008000c: 0x3cae instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080010: 0x9696 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080014: 0x8c87 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080018: 0x5a47 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0008001c: 0x59cb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080020: 0x581e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080024: 0x068f instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00090000: 0xac42 instead
。。。。
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0x61a9 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0000: 0xcfb9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0004: 0x49d7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d0008: 0x575a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000d000c: 0x9160 instead
。。。。。。
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280024: 0xf766 instead
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 41
VFS: Cannot open root device "<NULL>" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00             128 mtdblock0 (driver?)
1f01            1280 mtdblock1 (driver?)
1f02            2624 mtdblock2 (driver?)
1f03         4184000 mtdblock3 (driver?)
1f04              64 mtdblock4 (driver?)
1f05            3904 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-5-21 11:35 | 显示全部楼层
楼主,在trunk31835版怎么没有这个路径:
/trunk/target/linux/ar71xx/files/arch/mips/ar71xx/
/trunk/target/linux/ar71xx/files/arch/mips/下只有ath79和include两个目录

那rootfs之类的到哪里去改?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-6-8 22:51 | 显示全部楼层
现在已经不需要修改machxxx文件了,只需要修改trunk/tools/firmware-utils/src/mktplinkfw.c,找到3420V1这一行,修改layoutid为“8M“即可,代码上面有8M的分区格式。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 18:34

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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