从原厂系统刷DD-WRT,用了几个礼拜,感觉有时候莫名掉线,所以就想刷其它了,试过水星,迅捷,OPEN-WRT,都不怎么样,最后准备刷回原厂的时候手贱点错了,然后。。。。就没有然后了。第一个灯和最后一个灯闪烁,欲哭无泪。。然后就有接下来的救砖行动了,今天在公司把usb转ttl的材料准备好了,到家开搞。
自制神器,RS232转ttl 芯片是TI的 MAX3232
USB转RS232
3.3给小板供电
GND 躺着焊的
TX 和RX c278要短接,不然出来的是乱码。
接好线的样子,乱的一毛。
带屏蔽罩还不错。
背面覆铜面积还可以。
刷好开机的样子。
web界面,正在更新最新固件,暂时就用原厂的
各种固件都可以刷,要的请留言,接下来TTL输出,我自己写的注释方便大家看。
tl-AP93 (ar7240) U-boot
DRAM:
sri
#### TAP VALUE 1 = 7, 2 = 7
32 MB
id read 0x100000ff
flash size 4194304, 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
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:09:0b:ad
eth0 up
No valid address in Flash. Using fixed address
: 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 在这里要输入tpl中断,不然一直重启。
ar7240> setenv serverip192.168.1.100; setenv ipaddr 192.168.1.1 下载命令和地址,网卡ip要设死。
ar7240> tftp 0x80000000 wr941nv4.bin tftp命令 ,要打开tftp 软件后面的是固件名称。
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'wr941nv4.bin'.
Load address: 0x80000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############################################T T T T T T T T T T
Retry count exceeded; starting again
eth0 link down
Using eth1 device 这里不知道为什么 失败了一次
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'wr941nv4.bin'.
Load address: 0x80000000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
done
Bytes transferred = 3932160 (3c0000 hex)成功了 显示大小
ar7240> erase 0x9f020000 +0x3c0000 烧写命令
First 0x2 last 0x3d sector size 0x10000
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
Erased 60 sectors
ar7240> cp.b 0x80000000 0x9f020000 0x3c0000 写入flash
Copy to Flash... write addr: 9f020000
done完成重启。
ar7240>
U-Boot 1.1.4 (Apr 12 2013 - 19:34:20)
AP93 (ar7240) U-boot
DRAM:
sri
#### TAP VALUE 1 = 7, 2 = 7
32 MB
id read 0x100000ff
flash size 4194304, 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
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:09:0b:ad
eth0 up
No valid address in Flash. Using fixed address
: 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 ...
Booting AR7240(Python)...
Linux version 2.6.15--LSDK-7.3.0.300 gcc version 3.4.4 #1 Mon May 31 09:58:33 CST 2010
flash_size passed from bootloader = 4
CPU revision is: 00019374
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs init=/sbin/init mtdparts=ar7100-nor0:128k(u-boot),1024k(kernel),2816k(rootfs),64k(config),64k(art) mem=32M
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 200.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 30532k/32768k available (1382k kernel code, 2220k reserved, 293k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
Returning IRQ 48
AR7240 GPIOC major 0
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
HDLC line discipline: version $Revision: #1 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 8192K size 1024 blocksize
PPP generic driver version 2.4.2
NET: Registered protocol family 24
cmdlinepart partition parsing not available
Searching for RedBoot partition table
5 RedBoot partitions found on MTD device ar7240-nor0
Creating 5 MTD partitions on "ar7240-nor0":
0x00000000-0x00020000 : "boot"
0x00020000-0x00120000 : "kernel"
0x00120000-0x003e0000 : "rootfs"
0x003e0000-0x003f0000 : "config"
0x003f0000-0x00400000 : "art"
->Oops: flash id 0xef4016 .
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
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>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
init started: BusyBox v1.01 (2010.05.31-02:04+0000) multi-call binary
Algorithmics/MIPS FPU Emulator v1.5
ip_conntrack version 2.4 (256 buckets, 5120 max) - 244 bytes per conntrack
insmod: cannot open module `/lib/modules/2.6.15/kernel/flashid.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.15/kernel/harmony.ko': No such file or directory
Now flash open!
Now flash open!
Now flash open!
Now flash open!
Now flash open!
Erase from 0X3E0000 to 0X3EC0B4:.
Program from 0X3E0000 to 0X3EC0B4:
write successfully
Now flash open!
Erase from 0X3E0000 to 0X3EC0B4:.
Program from 0X3E0000 to 0X3EC0B4:
write successfully
(none) mips #1 Mon May 31 09:58:33 CST 2010 (none)
(none) login: sys_mode=0 mac:81070000 ag7240_macs[0]:00000000 ag7240_macs[1]:81070000
2
sys_mode=0 mac:81c10000 ag7240_macs[0]:81c10000 ag7240_macs[1]:81070000
1
+++ pvid_bitmap initial
sys_mode 0 PHY4 auto-negotiation enable
Attention: PHY4 Class A setting in debug 5 register which is not described in DS
phy_setup ethUnit:0 phyUnit:4
Port 4, Neg Success
ATHRS26: resetting s26
ATHRS26: s26 reset done
sys_mode 0 PHY0 auto-negotiation enable
Attention: PHY 0 Class A setting in debug 5 register which is not described in DS
sys_mode 0 PHY1 auto-negotiation enable
Attention: PHY 1 Class A setting in debug 5 register which is not described in DS
sys_mode 0 PHY2 auto-negotiation enable
Attention: PHY 2 Class A setting in debug 5 register which is not described in DS
sys_mode 0 PHY3 auto-negotiation enable
Attention: PHY 3 Class A setting in debug 5 register which is not described in DS
++++ athrs26_igmp_setup once
vtable vid: 0x00000002, bitmap 0x00000003
vtable vid: 0x00000004, bitmap 0x00000005
vtable vid: 0x00000006, bitmap 0x00000007
vtable vid: 0x00000008, bitmap 0x00000009
vtable vid: 0x0000000a, bitmap 0x0000000b
vtable vid: 0x0000000c, bitmap 0x0000000d
vtable vid: 0x0000000e, bitmap 0x0000000f
vtable vid: 0x00000010, bitmap 0x00000011
vtable vid: 0x00000012, bitmap 0x00000013
vtable vid: 0x00000014, bitmap 0x00000015
vtable vid: 0x00000016, bitmap 0x00000017
vtable vid: 0x00000018, bitmap 0x00000019
vtable vid: 0x0000001a, bitmap 0x0000001b
vtable vid: 0x0000001c, bitmap 0x0000001d
vtable vid: 0x0000001e, bitmap 0x0000001f
vtable vid: 0x00000020, bitmap 0x00000021
++ PVID: 0x0000001a, bitmap: 0x0000001f
++ PVID: 0x0000001a, bitmap: 0x0000001f
++ PVID: 0x0000001c, bitmap: 0x0000001f
++ PVID: 0x0000001e, bitmap: 0x0000001f
++ PVID: 0x00000020, bitmap: 0x0000001f
phy_setup ethUnit:1 phyUnit:0
phy_setup ethUnit:1 phyUnit:1
phy_setup ethUnit:1 phyUnit:2
phy_setup ethUnit:1 phyUnit:3
Port 0, Neg Success
Port 1, Neg Success
Port 2, Neg Success
Port 3, Neg Success
device eth0 entered promiscuous mode
phy_setup ethUnit:1 phyUnit:0
phy_setup ethUnit:1 phyUnit:1
phy_setup ethUnit:1 phyUnit:2
phy_setup ethUnit:1 phyUnit:3
Port 0, Neg Success
Port 1, Neg Success
Port 2, Neg Success
Port 3, Neg Success
++++ phy_up is 1, fdx is 1, speed is 1
AG7240: enet unit:1 phy:3 is up...Mii 100Mbps full duplex
AG7240: enet unit 1 phy 3 mode 0x4c04
br0: port 1(eth0) entering learning state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.17.1 (AR5416, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
wlan: 0.8.4.2 (Atheros/multi-bss)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_pci: 0.9.4.5 (Atheros/multi-bss)
wifi0: Atheros 9280: mem=0x10000000, irq=48 hw_base=0xb0000000
wlan_me: Version 0.1
Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved
wlan: mac acl policy registered
TP_Flags:6****
ap_start_405:Test by Songwei!
全完成,大家给点分多多支持。有同样问题的欢迎讨论,另外感谢骚版加分。。。。
[ 此帖被lin370982873在2015-11-24 15:55重新编辑 ]