找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8863|回复: 8

MW4530慎刷OpenWrt固件

[复制链接]
昨天刚到4530,刷写了4310的openwrt固件,结果发现无法启动
后又合成了4310,4300的编程器固件写入,均能正常启动
仔细分析op日志,发现是4530用了m25Q64闪存,而官方openwrt是没有这个驱动的
西面附上ttl,红色部分即为出错信息,暂时没编译环境
有兴趣的可以试下修改
drivers/mtd/devices/m25p80.c
增加箭头所示内容重新编译
        { "en25p64", 0x1c2017, 0, 64 * 1024, 128, },
-->   { "en25q64", 0x1c3017, 0, 64 * 1024, 128, },
[    0.000000] Linux version 3.3.8 (ps@ps-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sun Jul 8 10:22:08 CST 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    0.000000] Clocks: CPU:560.000MHz, DDR:480.000MHz, AHB:240.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=TL-WDR4300 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 126752k/131072k available (2094k kernel code, 4320k reserved, 392k data, 200k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.080000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
[    0.090000] MIPS: machine is TP-LINK TL-WDR4300
[    0.090000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.310000] PCI host bridge to bus 0000:00
[    0.310000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x17ffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.320000] pci 0000:00:00.0: invalid calibration data
[    0.330000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    0.330000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    0.340000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.340000] Switching to clocksource MIPS
[    0.350000] NET: Registered protocol family 2
[    0.350000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.350000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.360000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.360000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.370000] TCP reno registered
[    0.370000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.380000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.380000] NET: Registered protocol family 1
[    0.400000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.410000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.420000] msgmni has been set to 247
[    0.420000] io scheduler noop registered
[    0.430000] io scheduler deadline registered (default)
[    0.430000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
-?r¢2????êserial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.460000] console [ttyS0] enabled, bootconsole disabled
[    0.460000] console [ttyS0] enabled, bootconsole disabled
[    0.480000] m25p80 spi0.0: unrecognized JEDEC id 1c3017
[    0.610000] ag71xx_mdio: probed
[    0.620000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.190000] eth0: Atheros AR8327 switch driver attached.
[    1.340000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    1.360000] TCP westwood registered
[    1.360000] NET: Registered protocol family 17
[    1.360000] 8021q: 802.1Q VLAN Support v1.8
[    1.370000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[    1.380000] Please append a correct "root=" boot option; here are the available partitions:
[    1.380000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
不识别芯片不足以导致系统启动不了吧
回复

使用道具 举报

支持一下。根目录在哪里啊drivers/mtd/devices/m25p80.c
回复

使用道具 举报


好不容易找到目录了。
回复

使用道具 举报

laoyangjp 发表于 2012-8-25 11:32
好不容易找到目录了。

目录都找不到还怎么编译呀?
回复

使用道具 举报

估计ls那个是去找路由器的目录。我今晚回去试试编译一个固件出来。
回复

使用道具 举报

没太搞懂,继续思考。
回复

使用道具 举报

看不懂,天书啊,纯顶
回复

使用道具 举报

怎樣找这个目錄修改??
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-5-18 00:51

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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