Monday, February 13, 2012, 07:24 AM - OS / Misc
Posted by Administrator
簡潔にDD-WRTの検証内容についてPosted by Administrator
chip | corerev | firmware | |
BUFFARO WHR-G54S | Broadcom5352 | 9 | BrainSlayer V24 preSP2 r18007 |
BUFFARO WBR2-G54 | Broadcom4712 | 7 | BrainSlayer V24 preSP2 r18007 |
FON FON2201 | Atheros AR2315A | - | BrainSlayer V24 preSP2 r17990 |
・WHR-G54S
公式のV24(SP1/preSP2)だと4つ目のVAPを動作させようとするとクラッシュ、文鎮
BrainSlayer r18024だと即座に文鎮
しかし文鎮化しても起動直後192.168.11.1に対してtftpでfirmwareを投げると復旧できる、ワロタ
・WBR2-G54
WHR-G54Sと同様だが、VAPのMACアドレスが全て同じになってしまうのでVAPでWDSできない
これはcore revisionによるものらしい
・FON2201
r17990以降のfirmwareは全て文鎮
しかし下記の手順で復旧できる
1.
mount a serial adapter to the fonera device
(the serial adapter documentation can be found at http://wiki.openwrt.org/toh/fon/fonera#serial.port)
2.
set your terminal client to 9600-8-N-1
3.
enter the RedBoot console by pressing CTRL+C
4.
copy linux.bin to your tftp server directory
5.
configure the RedBoot bootloader IP and TFTP server settings using
ip_address -l [local ip address] -h [remote server address]
6.
flash the unit by entering the following commands
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa83e0000-0xa83f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa83e0000: .
load -r -v -b 0x80041000 linux.bin
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x802e3fff, assumed entry at 0x80041000
RedBoot> fis create linux
... Erase from 0xa8030000-0xa82f0000: ............................................
... Program from 0x80041000-0x80301000 at 0xa8030000: ............................................
... Erase from 0xa83e0000-0xa83f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa83e0000: .
fconfig
enter the bootscript:
fis load -l linux
exec
save the config and do
reset
シリアルアダプタがなくても起動直後に192.168.1.1:9000へtelnetし、CTRL+Cを連打するとCLIに落ちるのでfirmwareの書き換えが普通にできる
しかし起動直後ifupしてから1秒くらいしか接続許可されないので結構シビア
一度CLIに落ちてしまえばfconfig boot_script_timeout 10で時間猶予を設定できる、これは10秒
同様にfconfig gdb_port 23で9000ではなく通常の23で待ち受けるようになる
この辺りのパラメータはfconfig -l -nで見れる
あと言うとめちゃくちゃfirmwareの書き換えが遅い
