找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8436|回复: 22

[已解决】WR841 V7刷openwrt,配无线中继重启变砖

[复制链接]
发表于 2013-2-15 20:40 | 显示全部楼层 |阅读模式
本帖最后由 花花 于 2013-2-15 23:40 编辑

悲剧,由于一个路由器不能覆盖怎么房间,于是想在做个中继,原固件不知如何中继。于是刷了openwrt,按着网上的方法开始配置中继,可是怎么都不成功。后来突发奇想是不是配置完后需要重启,于是我就重启了,然后悲剧就开始了。重启后有线口插网线亮灯,无线灯不亮,系统灯一直闪烁。我记得正常的时候,启动完成系统灯是常亮的。现在路由器无法访问,ping不通。重新上电也只会出现三次TTL=64然后就是一直不通。用TFTP软件上传固件也上传不上去。现在整了一根串口线,接在串口上面,能看到启动信息,不过启动信息里面夹杂着各种乱码。 进入Uboot好多命令输入后也是乱码。Uboot里面也不能上传固件。这到底是怎么回事啊?

这是PING的结果

下面两张是直接启动的TTL信息里面有很多乱码



下面这两张是启动到uboot后的信息

输入print能正常打印出env信息但是输入erase却显示乱码,就是最后一行的乱码。

求指点,我实在不知道该怎么整了

本帖子中包含更多资源

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

×
发表于 2013-2-15 20:56 | 显示全部楼层
波特率看下
还有有没有去掉电容什么的
 楼主| 发表于 2013-2-15 21:02 | 显示全部楼层
起舞回雪 发表于 2013-2-15 20:56
波特率看下
还有有没有去掉电容什么的

波特率设置的是115200,和env配置信息里面的相同。我还试了其他各种波特率小于115200的根本就接收不到启动信息,全是乱码,大于115200时打开串口出错。我用的是电脑自带的串口。按着网上的方法用两个三极管和几个电阻做了个简单的转换线。电容不知道你是指那里的电容,我没有拆过路由器上的原件。
发表于 2013-2-15 21:12 | 显示全部楼层
花花 发表于 2013-2-15 21:02
波特率设置的是115200,和env配置信息里面的相同。我还试了其他各种波特率小于115200的根本就接收不到启动 ...

好像记得要短接电容还是什么的
 楼主| 发表于 2013-2-15 21:16 | 显示全部楼层
起舞回雪 发表于 2013-2-15 21:12
好像记得要短接电容还是什么的

这个我也不知道啊,能详细点吗!!现在真是头疼啊

点评

具体短接那个 我早就忘记了呢 哈哈  发表于 2013-2-15 21:19
发表于 2013-2-15 21:18 | 显示全部楼层
花花 发表于 2013-2-15 21:16
这个我也不知道啊,能详细点吗!!现在真是头疼啊

恩山搜索下
你看下我的贴那个840  就是恩山找的
不过用编程器简单多了呢
发表于 2013-2-15 21:33 | 显示全部楼层
传闻要拆电容TTL才显示正常的...

点评

谢谢提供传闻,看来这个传闻是真的了  发表于 2013-2-15 22:13
发表于 2013-2-15 21:47 | 显示全部楼层
是短接C296,TTL附近的一个小电容
 楼主| 发表于 2013-2-15 22:10 | 显示全部楼层
zy900114 发表于 2013-2-15 21:47
是短接C296,TTL附近的一个小电容

TTL附近有个C496 还有一个C206  没有C296.不知道是不是短496??
 楼主| 发表于 2013-2-15 22:12 | 显示全部楼层
起舞回雪 发表于 2013-2-15 21:18
恩山搜索下
你看下我的贴那个840  就是恩山找的
不过用编程器简单多了呢

没找到兄弟你的帖子啊,我只看到你发了两个交易贴
发表于 2013-2-15 22:15 | 显示全部楼层
花花 发表于 2013-2-15 22:10
TTL附近有个C496 还有一个C206  没有C296.不知道是不是短496??

对!
 楼主| 发表于 2013-2-15 22:26 | 显示全部楼层
zy900114 发表于 2013-2-15 22:15
对!

论坛果然高手云集,我短接了496,现在确实先死正常了。
请帮我看看启动信息里面有些什么错误,为什么现在就不能正常启动了呢??

下面就是没做任何处理的全部启动信息。。
U-Boot 1.1.4 (Feb  1 2010 - 11:00:47)

AP99 (ar7241 - Virian) U-boot
DRAM:  
sri
ar7240_ddr_initial_config(133): virian ddr1 init
#### TAP VALUE 1 = 0xf, 2 = 0x10 [0x0: 0x1f]
32 MB
id read 0x100000ff
sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:09:0b:ad
eth0 up
Virian MDC CFG Value ==> 4
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...



OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Looking for OpenWrt image... found at 0xbf022000
Decompressing kernel... done!
Starting kernel at 80060000...

[    0.000000] Linux version 3.3.8 (kitt@joseph-ThinkCentre) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Jul 21 04:06:05 CST 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7241 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-WR841N-v7 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 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: 29276k/32768k available (2096k kernel code, 3492k reserved, 398k data, 204k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 17 on device: ath79
[    0.100000] MIPS: machine is TP-LINK TL-WR841N/ND v7
[    0.500000] registering PCI controller with io_map_base unset
[    0.510000] bio: create slab <bio-0> at 0
[    0.520000] PCI host bridge to bus 0000:00
[    0.520000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.530000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.530000] pci 0000:00:00.0: fixup device configuration
[    0.540000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.540000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.550000] Switching to clocksource MIPS
[    0.550000] NET: Registered protocol family 2
[    0.560000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.560000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.570000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.570000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.580000] TCP reno registered
[    0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] NET: Registered protocol family 1
[    0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.620000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.640000] msgmni has been set to 57
[    0.640000] io scheduler noop registered
[    0.640000] io scheduler deadline registered (default)
[    0.650000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.680000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.680000] console [ttyS0] enabled, bootconsole disabled
[    0.680000] console [ttyS0] enabled, bootconsole disabled
[    0.700000] m25p80 spi0.0: found w25q32, expected m25p80
[    0.700000] m25p80 spi0.0: w25q32 (4096 Kbytes)
[    0.710000] 5 tp-link partitions found on MTD device spi0.0
[    0.710000] Creating 5 MTD partitions on "spi0.0":
[    0.720000] 0x000000000000-0x000000020000 : "u-boot"
[    0.730000] 0x000000020000-0x000000100a00 : "kernel"
[    0.730000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.740000] 0x000000100a00-0x0000003f0000 : "rootfs"
[    0.750000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.760000] mtd: partition "rootfs" set to be root filesystem
[    0.770000] mtd: partition "rootfs_data" created automatically, ofs=390000, len=60000
[    0.780000] 0x000000390000-0x0000003f0000 : "rootfs_data"
[    0.790000] 0x0000003f0000-0x000000400000 : "art"
[    0.790000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.820000] ag71xx_mdio: probed
[    0.820000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    1.380000] eth0: Found an AR7240/AR9330 built-in switch
[    2.410000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    2.960000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
字数超限了,砍掉一节放到下一楼
 楼主| 发表于 2013-2-15 22:27 | 显示全部楼层
zy900114 发表于 2013-2-15 22:15
对!

接楼上

[    2.970000] TCP cubic registered
[    2.970000] NET: Registered protocol family 17
[    2.980000] 8021q: 802.1Q VLAN Support v1.8
[    2.990000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    3.000000] Freeing unused kernel memory: 204k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
[    6.710000] eth0: link up (1000Mbps/Full duplex)
- regular preinit -
[    9.420000] Empty flash at 0x00051fbc ends at 0x00052000
[    9.420000] CLEANMARKER node found at 0x00052000, not first node in block (0x00050000)
[    9.430000] Empty flash at 0x0005200c ends at 0x00053000
[    9.440000] CLEANMARKER node found at 0x00053000, not first node in block (0x00050000)
[    9.450000] Empty flash at 0x0005300c ends at 0x00054000
[    9.460000] CLEANMARKER node found at 0x00054000, not first node in block (0x00050000)
[    9.470000] Empty flash at 0x0005400c ends at 0x00055000
[    9.470000] CLEANMARKER node found at 0x00055000, not first node in block (0x00050000)
[    9.480000] Empty flash at 0x000558f4 ends at 0x00056000
[    9.490000] CLEANMARKER node found at 0x00056000, not first node in block (0x00050000)
[    9.500000] CLEANMARKER node found at 0x00057000, not first node in block (0x00050000)
[    9.510000] CLEANMARKER node found at 0x00058000, not first node in block (0x00050000)
[    9.520000] CLEANMARKER node found at 0x00059000, not first node in block (0x00050000)
[    9.530000] CLEANMARKER node found at 0x0005a000, not first node in block (0x00050000)
[    9.540000] CLEANMARKER node found at 0x0005b000, not first node in block (0x00050000)
[    9.550000] CLEANMARKER node found at 0x0005c000, not first node in block (0x00050000)
[    9.560000] CLEANMARKER node found at 0x0005d000, not first node in block (0x00050000)
[    9.570000] CLEANMARKER node found at 0x0005e000, not first node in block (0x00050000)
[    9.580000] CLEANMARKER node found at 0x0005f000, not first node in block (0x00050000)
[    9.590000] JFFS2 error: (416) jffs2_build_inode_pass1: child dir "dropbear" (ino #3) of dir ino #2 appears to be a hard link
[    9.600000] JFFS2 notice: (416) jffs2_build_xattr_subsystem: complete building xattr subsystem, 19 of xdatum (1 unchecked, 18 orphan) and 53 of xref (0 dead, 52 orphan) found.
switching to jffs2
[    9.660000] JFFS2 warning: (425) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.670000] JFFS2 warning: (425) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.680000] iget() failed for ino #3
[    9.680000] JFFS2 warning: (417) jffs2_get_inode_nodes: Eep. No valid nodes for ino #7.
[    9.690000] JFFS2 warning: (417) jffs2_do_read_inode_internal: no data nodes found for ino #7
[    9.700000] Returned error for crccheck of ino #7. Expect badness...
[    9.710000] JFFS2 warning: (426) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.720000] JFFS2 warning: (426) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.730000] iget() failed for ino #3
[    9.740000] JFFS2 warning: (427) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.750000] JFFS2 warning: (427) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.760000] iget() failed for ino #3
[    9.770000] JFFS2 warning: (428) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.770000] JFFS2 warning: (428) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.780000] iget() failed for ino #3
[    9.800000] JFFS2 warning: (429) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.810000] JFFS2 warning: (429) jffs2_do_read_inode_internal: no data nodes found for ino #3

[    9.810000] iget() failed for ino #3
- init -
[    9.830000] JFFS2 warning: (430) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.830000] JFFS2 warning: (430) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.840000] iget() failed for ino #3
[    9.850000] JFFS2 warning: (431) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.860000] JFFS2 warning: (431) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.870000] iget() failed for ino #3
[    9.880000] eth0: link down
[    9.880000] JFFS2 warning: (1) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.890000] JFFS2 warning: (1) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.900000] iget() failed for ino #3
[    9.910000] JFFS2 warning: (1) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.920000] JFFS2 warning: (1) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.920000] iget() failed for ino #3
[    9.930000] JFFS2 warning: (1) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.940000] JFFS2 warning: (1) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.950000] iget() failed for ino #3
[    9.950000] JFFS2 warning: (417) jffs2_get_inode_nodes: Eep. No valid nodes for ino #28.
[    9.960000] JFFS2 warning: (417) jffs2_do_read_inode_internal: no data nodes found for ino #28
[    9.970000] Returned error for crccheck of ino #28. Expect badness...
[    9.980000] JFFS2 warning: (1) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[    9.980000] JFFS2 warning: (1) jffs2_do_read_inode_internal: no data nodes found for ino #3
[    9.990000] iget() failed for ino #3
[   10.000000] JFFS2 warning: (432) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[   10.000000] JFFS2 warning: (432) jffs2_do_read_inode_internal: no data nodes found for ino #3
[   10.010000] iget() failed for ino #3
[   10.020000] JFFS2 warning: (432) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[   10.020000] JFFS2 warning: (432) jffs2_do_read_inode_internal: no data nodes found for ino #3
[   10.030000] iget() failed for ino #3
[   10.040000] JFFS2 warning: (432) jffs2_get_inode_nodes: Eep. No valid nodes for ino #3.
[   10.050000] JFFS2 warning: (432) jffs2_do_read_inode_internal: no data nodes found for ino #3
[   10.050000] iget() failed for ino #3

Please press Ent[   10.060000] JFFS2 warning: (417) jffs2_get_inode_nodes: Eep. No valid nodes for ino #52.
er to activate t[   10.070000] JFFS2 warning: (417) jffs2_do_read_inode_internal: no data nodes found for ino #52
his console. [   10.080000] Returned error for crccheck of ino #52. Expect badness...
[   10.140000] JFFS2 warning: (417) jffs2_get_inode_nodes: Eep. No valid nodes for ino #67.
[   10.140000] JFFS2 warning: (417) jffs2_do_read_inode_internal: no data nodes found for ino #67
[   10.150000] Returned error for crccheck of ino #67. Expect badness...
[   10.210000] JFFS2 warning: (417) jffs2_get_inode_nodes: Eep. No valid nodes for ino #70.
[   10.210000] JFFS2 warning: (417) jffs2_do_read_inode_internal: no data nodes found for ino #70
[   10.220000] Returned error for crccheck of ino #70. Expect badness...
发表于 2013-2-15 22:32 | 显示全部楼层
像是flash有问题,重新刷一遍试试吧
 楼主| 发表于 2013-2-15 22:45 | 显示全部楼层
zy900114 发表于 2013-2-15 22:32
像是flash有问题,重新刷一遍试试吧

我是想重新刷可是uboot和网上那些人说的不一样啊??好多命令没有,update命令没有保存配置的saveenv命令也没有,是怎么回事呢?
ar7240> saveenv
Unknown command 'saveenv' - try 'help'
ar7240> help
reset   - Perform RESET of the CPU
?       - alias for 'help'
base    - print or set address offset
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
erase   - erase FLASH memory
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print online help
loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
ar7240> save
Unknown command 'save' - try 'help'
ar7240> savenv
Unknown command 'savenv' - try 'help'
ar7240> seve
Unknown command 'seve' - try 'help'
ar7240> seveenv
Unknown command 'seveenv' - try 'help'
ar7240> sevenv
Unknown command 'sevenv' - try 'help'
ar7240> version

U-Boot 1.1.4 (Feb  1 2010 - 11:00:47)
ar7240> erase nvram
Usage:
erase   - erase FLASH memory

ar7240> nvram erase
Unknown command 'nvram' - try 'help'
ar7240> erase nvram
Usage:
erase   - erase FLASH memory

ar7240> erase nvram
Usage:
erase   - erase FLASH memory

ar7240> update vxWorks 192.168.1.27 841v7.bin
Unknown command 'update' - try 'help'
ar7240> <INTERRUPT>
ar7240> tftpboot
Unknown command 'tftpboot' - try 'help'
ar7240>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-28 13:28

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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