버팔로 WZR-HP-G300NH 유무선 공유기의 시리얼 포트 디버깅
컴퓨터보안/네트웍세상 / 2012. 1. 8. 02:20
http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h
위 링크에 있는 내용대로, 버팔로 WZR-HP-G300NH 유무선 공유기의 시리얼 포트 디버깅에 성공하였습니다.
http://www.devicemart.co.kr/goods/view.php?seq=6185
위 링크의 UART-USB 보드를 구매하였지만, 입력 전압이 틀린 관계로 별수 없이 DC-DC 레귤레이터를 제작하여 연결하였습니다.
5V DC to 3.3V DC 레귤레이터는 LM317T 룰 이용하여 제작하였습니다.
제작방법은 다음 링크를 참조하였습니다.
http://miy-makeityourself.blogspot.com/2010/08/33v-regulated-voltage-supply.html
사진에 보이는 바와 같이, Molex 커넥터를 이용하여, 3단 연결을 해서, 약간 선이 길게 나오기는 했지만, 디버깅은 잘 되는 것 같습니다.
다음은 D-Link DIR-825를 시리얼 디버깅 시도할 차례입니다.
개봉박두~~.
다음은 시리얼 디버깅되는 내용을 캡쳐한 것입니다.
-------------------------------------------------------
BUFFALO U-BOOT Ver 1.07
AP83--539 (ar9100) U-boot 0.0.12
64 MB
Memory Test (address line)
Memory Test start(0x00000000) end(0x04000000) size(67108864)
Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:5
fill Pattern 5555AAAA Writing... Reading...
fill Pattern AAAA5555 Writing... Reading...
fill Pattern 0000FFFF Writing... Reading...
fill Pattern FFFF0000 Writing... Reading...
fill Pattern AAAAAAAA Writing... Reading...
Top of RAM usable for U-Boot at: 84000000
Reserving 275k for U-Boot at: 83fb8000
Reserving 256k for malloc() at: 83f78000
Reserving 44 Bytes for Board Info at: 83f77fd4
Reserving 36 Bytes for Global Data at: 83f77fb0
Reserving 128k for boot params() at: 83f57fb0
Stack Pointer at: 83f57f98
Now running in RAM - U-Boot at: 83fb8000
Dev ID2:2222
Dev ID3:2201
Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.
Flash: 32 MB
In: serial
Out: serial
Err: serial
Memory Test
uboot use 83F57FB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000 Writing... Reading...
Memory Test OK
### buf_ver=[1.07] U-Boot Ver.=[1.07]
### build_date(env)=[Dec 21 2009 - 10:37:11] build_date(bin)=[Dec 21 2009 - 10:37:11]
ag7100_enet_initialize...
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
ID:0x6027, REV:0x6
rtl8366sr_phy_setup ethUnit=0
Realtek 8366SR switch ID 0x8366
Realtek Greeen Ethernet Setup
eth0: 02:aa:bb:cc:dd:1a
eth0 up
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
eth1: 02:aa:bb:cc:dd:1a
eth1 up
eth0 02:AA:BB:CC:DD:1A
, eth1 02:AA:BB:CC:DD:1A
Trying eth0
eth0 is duplex
eth0 link down
FAIL
Trying eth1
eth1 link down
FAIL
tftp server(receive) go, waiting:4[sec]
Trying eth1
eth1 link down
FAIL
Trying eth0
eth0 is duplex
eth0 link down
FAIL
Load address: 0x81f00000
Abort
no file was loaded.
### main_loop entered: bootdelay=4
### main_loop: bootcmd="bootm 0xbe060000"
Hit any key to stop autoboot: 0
ar7100> help
autoscr - run script from memory
? - alias for 'help'
TFTPS - boot image via network as TFTP server
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - invoke DHCP client to obtain IP/boot params
echo - echo args to console
erase - erase FLASH memory
exit - exit script
flinfo - print FLASH memory information
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
imls - list all images found in flash
itest - return true/false on integer compare
ledb - LED test blink
ledoff - LED test off
ledon - LED test on
ledt - LED test toggle
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing)
mtdparts- define flash/nand partitions
mtest - simple RAM test
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
set_inspection - set/unset inspection mode
setenv - set environment variables
sleep - delay execution for some time
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
ar7100> version
U-Boot 1.1.4 for BUFFALO AIRSTATION (Dec 21 2009 - 10:37:11)
ar7100>
위 링크에 있는 내용대로, 버팔로 WZR-HP-G300NH 유무선 공유기의 시리얼 포트 디버깅에 성공하였습니다.
http://www.devicemart.co.kr/goods/view.php?seq=6185
위 링크의 UART-USB 보드를 구매하였지만, 입력 전압이 틀린 관계로 별수 없이 DC-DC 레귤레이터를 제작하여 연결하였습니다.
5V DC to 3.3V DC 레귤레이터는 LM317T 룰 이용하여 제작하였습니다.
제작방법은 다음 링크를 참조하였습니다.
http://miy-makeityourself.blogspot.com/2010/08/33v-regulated-voltage-supply.html
사진에 보이는 바와 같이, Molex 커넥터를 이용하여, 3단 연결을 해서, 약간 선이 길게 나오기는 했지만, 디버깅은 잘 되는 것 같습니다.
다음은 D-Link DIR-825를 시리얼 디버깅 시도할 차례입니다.
개봉박두~~.
다음은 시리얼 디버깅되는 내용을 캡쳐한 것입니다.
-------------------------------------------------------
BUFFALO U-BOOT Ver 1.07
AP83--539 (ar9100) U-boot 0.0.12
64 MB
Memory Test (address line)
Memory Test start(0x00000000) end(0x04000000) size(67108864)
Data line test start:0x00000000 pattern 0x00000001 0x00000003 0x00000007 0x0000000F 0x00000005 0x00000015 0x00000055 0xAAAAAAAA
Address line test start:0x00000000 len:0x4000000 pattern 0xAAAAAAAA 0x55555555
Fill test patnum:5
fill Pattern 5555AAAA Writing... Reading...
fill Pattern AAAA5555 Writing... Reading...
fill Pattern 0000FFFF Writing... Reading...
fill Pattern FFFF0000 Writing... Reading...
fill Pattern AAAAAAAA Writing... Reading...
Top of RAM usable for U-Boot at: 84000000
Reserving 275k for U-Boot at: 83fb8000
Reserving 256k for malloc() at: 83f78000
Reserving 44 Bytes for Board Info at: 83f77fd4
Reserving 36 Bytes for Global Data at: 83f77fb0
Reserving 128k for boot params() at: 83f57fb0
Stack Pointer at: 83f57f98
Now running in RAM - U-Boot at: 83fb8000
Dev ID2:2222
Dev ID3:2201
Name: AMD-SPANSION Flash id: 0x1227E, Size: 33554432 bytes.
Flash: 32 MB
In: serial
Out: serial
Err: serial
Memory Test
uboot use 83F57FB0 - 84000000
Memory Test start(80000000) end(83F00000) size(03F00000)
Pattern 00000000 Writing... Reading...
Memory Test OK
### buf_ver=[1.07] U-Boot Ver.=[1.07]
### build_date(env)=[Dec 21 2009 - 10:37:11] build_date(bin)=[Dec 21 2009 - 10:37:11]
ag7100_enet_initialize...
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
ID:0x6027, REV:0x6
rtl8366sr_phy_setup ethUnit=0
Realtek 8366SR switch ID 0x8366
Realtek Greeen Ethernet Setup
eth0: 02:aa:bb:cc:dd:1a
eth0 up
: cfg1 0xf cfg2 0x7114
RTL8366 series driver, reading model-id...
eth1: 02:aa:bb:cc:dd:1a
eth1 up
eth0 02:AA:BB:CC:DD:1A
, eth1 02:AA:BB:CC:DD:1A
Trying eth0
eth0 is duplex
eth0 link down
FAIL
Trying eth1
eth1 link down
FAIL
tftp server(receive) go, waiting:4[sec]
Trying eth1
eth1 link down
FAIL
Trying eth0
eth0 is duplex
eth0 link down
FAIL
Load address: 0x81f00000
Abort
no file was loaded.
### main_loop entered: bootdelay=4
### main_loop: bootcmd="bootm 0xbe060000"
Hit any key to stop autoboot: 0
ar7100> help
autoscr - run script from memory
? - alias for 'help'
TFTPS - boot image via network as TFTP server
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - invoke DHCP client to obtain IP/boot params
echo - echo args to console
erase - erase FLASH memory
exit - exit script
flinfo - print FLASH memory information
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
imls - list all images found in flash
itest - return true/false on integer compare
ledb - LED test blink
ledoff - LED test off
ledon - LED test on
ledt - LED test toggle
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing)
mtdparts- define flash/nand partitions
mtest - simple RAM test
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
set_inspection - set/unset inspection mode
setenv - set environment variables
sleep - delay execution for some time
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
ar7100> version
U-Boot 1.1.4 for BUFFALO AIRSTATION (Dec 21 2009 - 10:37:11)
ar7100>