上尉
- 注册时间
- 2008-6-12
- 金币
- 1172 个
- 威望
- 9 个
- 荣誉
- 0 个
累计签到:26 天 连续签到:0 天 [LV.50]初入江湖
|
发表于 2011-12-3 15:18
本帖最后由 qq121047664 于 2011-12-3 15:31 编辑
目前的固件只是精简版暂时只有基本的功能,但可以通安装实现。
首先必须要有TTL刷机线,因为原厂的固件是VxWorks系统必须要刷U-boot才可以引导第三固体,U-boot相当于电脑的BIOS,
最好能够准备SPI编程器(淘宝25元左右),接着就是换内存,目前第三方固件对内存有一定的要求,想稳定运行第三方固件内存至少32M。
没有救砖能力最好不要玩.否则就是砖头一块!
刷机有风险,刷前须谨慎。
还有就是因为刷了U-boot后,暂时无法刷回原厂固件.
300R的TTL接线图,由上到下1 RX,2 TX,3 地。大概是这样。
U-boot
固件
刷机用到的
1、先刷U-boot
原厂固件下,用TTL刷UBOOT的命
1.先把UBOOT文件名改为:'vxWorks.img',与TFTP32软件放在同一目录内.
2.开机后,在TTL终端不停的按 ctrl+c,中断固件的启动.
3.以下就是终端里操作的过程,红字的就是打入的命令.完成后直接断电重启,然后按附2操作.
Press Ctrl+C to stop auto-boot...
Stop auto-boot...
Attaching interface lo0... done
Rx clbufs 512 each of size 1756
eth_rx_netpool_init: allocated, pDmaBuf=0x80eaf110, buffend = 80f8b914
ATHRS27: resetting s27
ATHRS27: s27 reset done
eth_rx_netpool_init: done already!
interrupt: enet1 port1 up
interrupt: LAN Port Interface type is 0x4c04
Attached IPv4 interface to eth unit 0
#
# update boot
TFTP from server 192.168.1.100;
our IP address is 192.168.1.1;
Filename 'vxWorks.img'
Downloading... 131072
**
#
2、刷固件
ar9341>setenv serverip 192.168.1.100; setenv ipaddr 192.168.1.1
ar9341> tftp 0x80800000 openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin
Trying eth0
eth0 link down
FAIL
Trying eth1
enet1 port2 up
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
done
Bytes transferred = 3932160 (3c0000 hex)
ar9341> erase 0x9f020000 +0x3c0000
Erase Flash from 0x9f020000 to 0x9f3dffff in Bank # 1
First 0x2 last 0x3d sector size 0x10000
61
Erased 60 sectors
ar9341> cp.b 0x80800000 0x9f020000 0x3c0000
Copy to Flash... write addr: 9f020000
done
注意:下面这个步骤,如果你是直接从原厂固件按附1换UBOOT过来的,就可以省略了.因为原厂的FLASH里,已经有了ART
ar9341>tftp 0x80800000 ar9341_art.BIN
Trying eth0
eth0 link down
FAIL
Trying eth1
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'ar9341_art.BIN'.
Load address: 0x80800000
Loading: #############
done
Bytes transferred = 65536 (10000 hex)
ar9341> erase 0x9f3f0000 +0x10000
Erase Flash from 0x9f3f0000 to 0xffffffff in Bank # 1
First 0x3f last 0x3f sector size 0x10000
63
Erased 1 sectors
ar9341>
cp.b 0x80800000 0x9f3f0000 0x10000
Copy to Flash... write addr: 9f3f0000
done |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
|