Monday, March 31, 2008

Hostapd WPA-PSK message log

# hostapd -dd /etc/sysconfig/hostapd.conf
Configuration file: /etc/sysconfig/hostapd.conf
Line 11: DEPRECATED: 'debug' configuration variable is not used anymore
ctrl_interface_group=0
Configure bridge br0 for EAPOL traffic.
madwifi_set_iface_flags: dev_up=0
madwifi_set_privacy: enabled=0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations
madwifi_set_privacy: enabled=0
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
Using interface ath0 with hwaddr 06:80:92:3a:a3:bb and ssid 'wende'
SSID - hexdump_ascii(len=5):
77 65 6e 64 65 wende
PSK (ASCII passphrase) - hexdump_ascii(len=12):
6d 79 70 61 73 73 70 68 72 61 73 65 mypassphrase
PSK (from passphrase) - hexdump(len=32): 6a 8e 8c 6c 9e df 3f 0d 21 c8 92 c8 36 aa bf 47 0c 34 05 be 32 83 0c c6 05 bf d7 c0 66 f4 3f 60
madwifbr0: port 1(ath0) entering learning state
i_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=3
madwifi_configure_wpa: pairwise key ciphers=0x8
madwifi_configure_wpa: key management algorithms=0x2
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA=0x1
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
madwifi_set_key: alg=CCMP addr=00:00:00:00:00:00 key_idx=1
madwifi_set_privacy: enabled=1
madwifi_set_iface_flags: dev_up=1
ath0: Setup of interface done.
l2_packet_receive - recvfrom: Network is down
Wireless event: cmd=0x8b1a len=14
br0: topology change detected, propagating
br0: port 1(ath0) entering forwarding state
Wireless event: cmd=0x8c03 len=20
New STA
madwifi req WPA IE - hexdump(len=256): dd 16 00 50 f2 01 01 00 00 50 f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
madwifi req RSN IE - hexdump(len=256): 8c 2c 00 00 00 00 00 00 00 00 c0 2d 00 00 00 00 00 0a c0 2c ef 90 00 00 00 01 c7 b3 9d 30 c0 02 8d 24 00 00 00 00 c7 0a 8f e0 00 00 00 38 00 00 00 00 c7 b3 9e 30 c0 2d a3 70 7f e3 f8 d8 00 00 00 00 00 00 00 00 00 02 10 30 c7 b3 9d 40 c0 00 76 3c 00 00 00 00 c0 2c 00 00 c7 b3 9d 50 c0 02 8b a8 00 00 00 00 c0 2c 00 00 c7 b3 9d 60 c0 00 78 68 7f e3 f8 d8 00 00 89 f4 c7 b3 9e 20 c0 00 32 b8 47 f1 75 be 04 d5 b7 78 00 00 00 e3 c7 b3 9e 20 c7 85 27 f0 00 00 00 00 00 00 00 3a 00 00 00 10 c7 b3 9e 4c 00 00 00 20 00 00 00 00 00 00 00 00 ff ff 89 f4 00 00 00 04 88 00 44 e8 c7 b3 9d b8 00 00 00 00 00 00 00 00 c7 b3 9e 20 c7 85 27 f0 c0 03 97 20 c7 b3 9d bc c7 b3 9d d0 00 00 00 00 c7 0b 97 a4 00 00 00 00 c7 b3 9d e0 c0 13 fc 24 c7 b2 e3 60 10 16 83 24 c7 b3 9e 00 c0 13
madwifi_del_key: addr=00:18:e7:1a:e6:da key_idx=0
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:18:e7:1a:e6:da key_idx=0
madwifi_set_sta_authorized: addr=00:18:e7:1a:e6:da authorized=0
WPA: 00:18:e7:1a:e6:da WPA_PTK_GROUP entering state IDLE
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state AUTHENTICATION
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state AUTHENTICATION2
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state INITPSK
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state PTKSTART
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 18 e7 1a e6 da 06 80 92 3a a3 bb 88 8e 02 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 01 7d b3 55 bd 77 43 14 7c 98 c8 6e 37 5c aa 15 8d b7 8d fe 29 0a 00 25 fb 13 07 f4 9e a1 d5 50 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 5 bytes from 00:18:e7:1a:e6:da
IEEE 802.1X: version=1 type=1 length=0
ignoring 1 extra octets after IEEE 802.1X packet
IEEE 802.1X: 123 bytes from 00:18:e7:1a:e6:da
IEEE 802.1X: version=1 type=3 length=119
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=06:80:92:3a:a3:bb A2=00:18:e7:1a:e6:da
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
WPA: Send EAPOL(version=2 secure=0 mic=1 ack=1 install=1 pairwise=8 kde_len=24 keyidx=0 encr=0)
TX EAPOL - hexdump(len=137): 00 18 e7 1a e6 da 06 80 92 3a a3 bb 88 8e 02 03 00 77 fe 01 ca 00 10 00 00 00 00 00 00 00 02 7d b3 55 bd 77 43 14 7c 98 c8 6e 37 5c aa 15 8d b7 8d fe 29 0a 00 25 fb 13 07 f4 9e a1 d5 50 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ef 41 fc 32 41 84 b1 ca 0d 42 02 0d 9a dc ce 61 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 04 01 00 00 50 f2 04 01 00 00 50 f2 02
IEEE 802.1X: 99 bytes from 00:18:e7:1a:e6:da
IEEE 802.1X: version=1 type=3 length=95
WPA: 00:18:e7:1a:e6:da WPA_PTK entering state PTKINITDONE
madwifi_set_key: alg=CCMP addr=00:18:e7:1a:e6:da key_idx=0
madwifi_set_sta_authorized: addr=00:18:e7:1a:e6:da authorized=1
madwifi_sta_clear_stats: addr=00:18:e7:1a:e6:da
WPA: 00:18:e7:1a:e6:da WPA_PTK_GROUP entering state REKEYNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=24): [REMOVED]
TX EAPOL - hexdump(len=137): 00 18 e7 1a e6 da 06 80 92 3a a3 bb 88 8e 02 03 00 77 fe 03 92 00 10 00 00 00 00 00 00 00 03 7d b3 55 bd 77 43 14 7c 98 c8 6e 37 5c aa 15 8d b7 8d fe 29 0a 00 25 fb 13 07 f4 9e a1 d5 50 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ba 32 d2 0c 33 dc cb 10 06 20 67 ec e2 e4 bf 9e 00 18 c3 d1 94 d1 48 dd 01 b0 4a 99 cf e9 59 e4 19 c5 44 82 cc 0d 2f da cb e0
WPA: 00:18:e7:1a:e6:da WPA_PTK_GROUP entering state REKEYNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=24): [REMOVED]
TX EAPOL - hexdump(len=137): 00 18 e7 1a e6 da 06 80 92 3a a3 bb 88 8e 02 03 00 77 fe 03 92 00 10 00 00 00 00 00 00 00 04 7d b3 55 bd 77 43 14 7c 98 c8 6e 37 5c aa 15 8d b7 8d fe 29 0a 00 25 fb 13 07 f4 9e a1 d5 50 37 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b6 56 bb 0a 2b 1e ff 13 87 1c fd 83 fc 9b 76 e3 00 18 c3 d1 94 d1 48 dd 01 b0 4a 99 cf e9 59 e4 19 c5 44 82 cc 0d 2f da cb e0
IEEE 802.1X: 99 bytes from 00:18:e7:1a:e6:da
IEEE 802.1X: version=1 type=3 length=95
WPA: 00:18:e7:1a:e6:da WPA_PTK_GROUP entering state REKEYESTABLISHED
WPA: 00:18:e7:1a:e6:da WPA_PTK_GROUP entering state IDLE

Thursday, March 27, 2008

iptable kernel setup

CONFIG_NF_CONNTRACK_FTP
CONFIG_IP_NF_TARGET_MASQUERADE
CONFIG_NF_NAT
CONFIG_NF_NAT_NEEDED
CONFIG_NETFILTER_XT_MATCH_LIMIT
CONFIG_IP_NF_TARGET_LOG
CONFIG_NETFILTER_XT_MATCH_STATE
CONFIG_NF_CONNTRACK_ENABLED
CONFIG_NF_CONNTRACK

CONFIG_NETFILTER

CONFIG_PACKET
CONFIG_IP_NF_IPTABLES
CONFIG_NF_NAT_IRC
CONFIG_NF_CONNTRACK_IRC


iptables compile

1. check out a iptables from SVN
svn co https://svn.netfilter.org/netfilter/trunk/iptables
2. cd iptables
3. run autogen.sh, here is the content of autogen.sh
#!/bin/bash
autoreconf -fi;
rm -Rf autom4te*.cache;
--------------------------------------
This will generate configure

4. run ./configure with following option, or run_configure with content as below

./configure CC=powerpc-405-linux-gnu-gcc --build=powerpc-405-linux-gnu --target=powerpc-amcc-linux --host=powerpc-amcc-linux --with-kernel=/localhome/wli/linux-2.6.24 --with-ksource=/localhome/wli/linux-2.6.24 --with-gnu-ld

5. run ./made with content as below
#!/bin/bash
if [ -n "$1" ]; then
linux_path=$1
else
linux_path="/localhome/wli/linux-2.6.24"
fi
mv $linux_path/include/linux/errno.h $linux_path/include/linux/errno_org.h
ln -s $linux_path/include/asm-generic/errno.h $linux_path/include/linux/errno.h
make CC=powerpc-405-linux-gnu-gcc KERNEL_DIR=$linux_path KBUILD_OUTPUT=""
mv $linux_path/include/linux/errno_org.h $linux_path/include/linux/errno.h


Tuesday, March 18, 2008

how to compile dnrd package

1. untar dnrd package
tar xvfz dnrd-2.20.3.tar.gz
2. cd dnrd-2.20.3
./configure CC=powerpc-405-linux-gnu-gcc --host=powerpc-amcc-linux --build=powerpc-405-linux-gnu --target=powerpc-amcc-linux
3. run make

How to build AR680 image

1. Untar ar680w package
tar xvfz ar680w_v1.00_gpl.070802.tgz
2. cd ar680
Run ./build_tool_chain
3. Edit setupenv
change arm crosstool path to /localhome/wli/ar680/crosstol/....
4. make
5. make
6. After build sucessfully, here is the message..
WRG-N15 make F/W image (release image)!
boundary: 0x10000 (64K)
output: raw.img
input(0): kernel.img
input(1): rootfs.img
Opening file (0): kernel.img ...
Input File ------ size : 0x000c2084 (794756)
Add IN File ----- size : 0x000c2084 (794756)
Opening file (1): rootfs.img ...
Input File ------ size : 0x001af000 (1765376)
Output File ----- size : 0x000c2084 (794756)
Output Pack To -- size : 0x000d0000 (851968)
Tags Added ------ size : 0x000d0028 (852008)
Add IN File ----- size : 0x0027f028 (2617384)
packimgs exit with code 0.
Create a new image file web.img
image header ----------------------------------------
signature : [wrgn15_airlink_ar680w]
magic : 0x20040220
-----------------------------------------------------
input image file ------------------------------------
file length : 2617384 (0x27f028)
file peek : 5d00008000508a210000000000000062
digest : 8359a62ad10c0c8930c360fa8283f3a9
-----------------------------------------------------
v2 image block header -------------------------------
Little endian image !
magic : 0x20040220
size : 2617384 (0x27f028)
offset : 0 (0x0)
devname : /dev/mtdblock/1
digest : 8359a62ad10c0c8930c360fa8283f3a9
-----------------------------------------------------
-----------------------------------------------------
Image file : ar680w_v1.00_83id.bin
Signature : wrgn15_airlink_ar680w
Build number : 83id
-----------------------------------------------------
-rw-rw-r-- 1 wli wli 2617496 Mar 18 13:44 images/ar680w_v1.00_83id.bin

Friday, March 14, 2008

How to set timezone in busybox

busybox time display utility date, by default use UTC zone. To change time zone to PST.
set TZ=PST8PDT, where PST is a acrynom for Pacific standard time, 8=PST is 8 hours ealier than UTC, PDT=pacific daylight saving time.

To change to mountain time, which is GMT-6. set TZ=MST6MDT.

Another example.
TZ=NST3:30NDT1:30
This means that Newfoundland Standard Time (NST) is 3.5 hours
earlier than Coordinated Universal Time (UTC). Both standard
time and daylight saving time apply to this locale. Newfoundland
Daylight Time is 1.5 hours earlier than Coordinated Universal
Time (UTC).


Wednesday, March 12, 2008

how to setup httpd, CGI script on busybox

1. httpd setup--Hyper Text Transfer Protocol Daemon

Two ways of launching httpd daemon-- with inetd and standalone. To launch httpd in inetd, add a line to the /etc/inetd.conf
http stream tcp nowait root /usr/sbin/httpd httpd -i -h /www

Note: -i switch indicates httpd to be launched by inetd super daemon and -h indicates the http home directory is /www. All the webpages should be under /www. To make http service more secure, we probably should not use root user. Instead we should change root user to apach(or whatever user account). Create the user account apach, here is the line in /etc/passwd
apach:x:48:48:webaccess:/www:/bin/false
and the line in /etc/group
apach:x:48:
and the line in /etc/shadow
apach:x:48:
Change the ownership of /www and /etc/httpd.conf to apach
chown apach:apach /etc/httpd.conf
chown -R apach:apach /www


By default, it will look for /etc/httpd.conf for
setup information Here is a sample httpd.conf

#httpd.conf
A:127.0.0.1
A:172.30. #Allow address from 172.30.0.0/16

D:* # Deny from any other IP connec
tions
/cgi-bin:wli:123456 #require user wli, password on url starting with /cgi-bin

This configuration only allow local host and machines 172.30/16 subnet to have http access. For any script in cgi-bin directory, it requires username wli and password 123456. Password can be encrypted with MD5 hash.

In addition, make sure http is in the /etc/service. It should look like
http 80/tcp # WorldWideWeb H
TTP
http 80/udp # WorldWideWeb HTTP


The above lines open up port 80 for http traffic. That's the default port for http access. We can change toe other port as well if needed.

Create a html test page called index.html and put it in directory /www

When you open up the page(http://172.30.80.24/index.html or simply http://172.30.80.24) f rom any 172.30 subnet machine, it will look like the following

Hello, this is a test page.


2. CGI script setup

CGI script is an executable program. It can be written in any language supported by the server machine. All CGI script will be placed in /www/cgi-bin directory. As configured in httpd.conf. The username and password are required to run the CGI script.

The following is a sample CGI script. Make sure the script has executable permission.

This sample script is a shell script. It will execute env command on server machine and send the result back in html format. Here is the output(http://172.30.80.24/cgi-bin/test).

GATEWAY_INTERFACE=CGI/1.1
REMOTE_USER=wli
USER=root
REMOTE_ADDR=172.30.80.21
QUERY_STRING=
HOME=/
AUTH_TYPE=Basic
HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
SCRIPT_FILENAME=/www/cgi-bin/test.cgi
REQUEST_URI=/cgi-bin/test.cgi
inetd_dummy=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SERVER_SOFTWARE=busybox httpd/1.9.1
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
SERVER_PROTOCOL=HTTP/1.0
PATH_INFO=
SHELL=/bin/sh
REQUEST_METHOD=GET
PWD=/www/cgi-bin
SCRIPT_NAME=/cgi-bin/test.cgi







Friday, March 7, 2008

AR680W uboot env

5VT9000-MPW1# printenv
bootcmd=bootm $(kernel_addr)
bootdelay=0
baudrate=38400
ethaddr=00:46:76:01:10:00
eth1addr=00:46:76:01:10:01
ipaddr=10.20.5.10
serverip=10.20.0.2
gatewayip=10.20.0.1
netmask=255.255.0.0
uboot_addr=1F000000
uboot_size=0x20000
uboot_addr_end=1F01FFFF
uboot_env_size=0x10000
uboot_env_offset=0x3F0000
kernel_addr=1F020000
kernel_size=0x10000
kernel_offset=0x20000
kernel_addr_end=1F11FFFF
rootfs_addr=1F120000
rootfs_size=0x200000
rootfs_offset=0x120000
rootfs_addr_end=1F31FFFF
config_addr=1F320000
config_size=0xd0000
config_offset=0x320000
config_addr_end=1F3EFFFF
firmware_addr=0x1F020000
firmware_addr_end=0x1F3EFFFF
partition=setenv mtd_parts 5VT13XX_mapped_flash:$(flashsize)@0x0(U-Boot)ro,$(uboot_env_size)@$(uboot_env_offset)(u-boot-env),$(kernel_size)@$(kernel_offset)(Kimage),$(rootfs_size)@$(rootfs_offset)(Rimage),$(config_size)@$(config_offset)(Cimage)
tty=ttyS0
inputfreq=300M
rootfs=squashfs
rootdev=/dev/mtdblock3 ro
zip_format=bz2
memtmp_addr=800000
mem_size=16M
rootpath=/opt/montavista/pro/devkit/arm/v4t_le/target/
upsuccess=setenv upfail 0;saveenv
nfsargs=setenv bootargs nfsroot=$(serverip):$(rootpath)
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off
misca=setenv bootargs $(bootargs) root=$(rootdev)
miscb=setenv bootargs $(bootargs) cpufreq=$(inputfreq)
miscc=setenv bootargs $(bootargs) rootfstype=$(rootfs)
miscd=setenv bootargs $(bootargs) mem=$(mem_size)
misce=setenv bootargs $(bootargs) console=$(tty),$(baudrate)
miscf=setenv bootargs $(bootargs) mtdparts=$(mtd_parts)
miscg=setenv bootargs $(bootargs) $(pci_on)
misc=run misca miscb miscc miscd misce miscf miscg
nfsboot=run nfsargs addip misc;bootm $(kernel_addr)
ramboot=run partition misc;bootm $(kernel_addr) $(rootfs_addr)
romboot=run partition misc;bootm $(kernel_addr)
download=tftpboot
uimagename=u-boot.bin
erase_uimage=erase $(uboot_addr) $(uboot_addr_end)
erase_kimage=erase $(kernel_addr) $(kernel_addr_end)
erase_rimage=erase $(rootfs_addr) $(rootfs_addr_end)
erase_cimage=erase $(config_addr) $(config_addr_end)
erase_fimage=erase $(firmware_addr) $(firmware_addr_end)
uimage=$(download) $(memtmp_addr) $(uimagename);run erase_uimage;cp.b $(memtmp_addr) $(uboot_addr) $(filesize)
kimage=$(download) $(memtmp_addr) Kimage$(USER).$(zip_format);run erase_kimage;cp.b $(memtmp_addr) $(kernel_addr) $(filesize)
rimage=$(download) $(memtmp_addr) Rimage$(USER).$(rootfs);run erase_rimage;cp.b $(memtmp_addr) $(rootfs_addr) $(filesize)
cimage=$(download) $(memtmp_addr) Cimage$(USER).jffs2;run erase_cimage;cp.b $(memtmp_addr) $(config_addr) $(filesize)
fimage=$(download) $(memtmp_addr) BASS_ONE$(USER);run erase_fimage;cp.b $(memtmp_addr) $(firmware_addr) $(filesize); run upsuccess
flashsize=0x00400000
stdin=serial
stdout=serial
stderr=seria
l

AR680W boot log

U-Boot 1.1.3 (Dec 11 2006 - 17:41:28)

U-Boot code: 40780000 -> 4079ABDC BSS: -> 407B4000
System Memory Map:
0x00000000-0x01FFFFFF: SDRAM Bank 0
0x19C00000-0x1E7FFFFF: Memory Mapped IO Space-AHB
0x19C00000-0x19C1FFFF: Static/SDRAM Memory Controller
0x19C40000-0x19C5FFFF: Interrupt Controller
0x19C60000-0x19C7FFFF: AHB Arbiter
0x19C80000-0x19C9FFFF: MAC 0
0x19CA0000-0x19CBFFFF: MA1 0
0x1E700000-0x1E71FFFF: HDMA
0x1E800000-0x1EFFFFFF: Memory Mapped IO Space-APB
0x1E800000-0x1E81FFFF: Timer 0/1/2/3
0x1E840000-0x1E85FFFF: UART 0
0x1E880000-0x1E89FFFF: SPI
0x1E8A0000-0x1E8BFFFF: GPIO 0
0x1E8C0000-0x1E8DFFFF: WDT
0x1E8E0000-0x1E8FFFFF: SCU
0x1E940000-0x1E95FFFF: ACI0(PL040)
0x1E960000-0x1E97FFFF: ACI1(PL040)
0x1F000000-0x1F7FFFFF: Flash Bank 0
0x40000000-0x41FFFFFF: SDRAM Bank 1
RAM Configuration:
Bank #0: 40000000 16 MB
Board: 5VT1310-EVB-V1.4(CPU Speed 297 MHz)
AM29LV320B = 4MB; start at 0x1F000000;
Flash: 4 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
## Booting image at 1f020000 ...
Image Name: 7zip Linux Kernel
Image Type: ARM Linux Kernel Image (7zip compressed)
Data Size: -1 Bytes = 4096 MB
Load Address: 40008000
Entry Point: 40008000
Uncompressing Kernel Image ... OK

Starting kernel @40008000...

Linux version 2.6.17.6 (joanw@enzo) (gcc version 4.1.1) #1 Wed Jun 13 15:50:41 CST 2007
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
Machine: 5VT13XX
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 ro rootfstype=squashfs cpufreq=300M mem=16M console=ttyS0,38400
PID hash table entries: 128 (order: 7, 512 bytes)
Timer1 load register: 743423(0xE0000010)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 13808KB available (1776K code, 383K data, 80K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
PCI: Scanning bus...
PCI: FV Host Bridge - header fixup
PCI: bus0: Fast back to back transfers disabled
NET: Registered protocol family 2
IP route cache hash table entries: 128 (order: -3, 512 bytes)
TCP established hash table entries: 512 (order: -1, 2048 bytes)
TCP bind hash table entries: 256 (order: -2, 1024 bytes)
TCP: Hash tables configured (established 512 bind 256)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered (default)
PCI: FV Host Bridge - final fixup
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x1e840000 (irq = 1) is a 16550A
serial8250: ttyS1 at MMIO 0x1e860000 (irq = 2) is a 16550A
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
NET: Registered protocol family 24
ELBOX physmap flash device: 400000 at 1f000000
ELBOX physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
ELBOX physically mapped flash: squashfs filesystem found at offset 983040
Creating 7 MTD partitions on "ELBOX physically mapped flash":
0x000f0020-0x002a1020 : "rootfs"
0x00020000-0x003d0000 : "upgrade"
0x003d0000-0x003e0000 : "rgdb"
0x003e0000-0x003f0000 : "nvram"
0x00000000-0x00020000 : "U-Boot"
0x003f0000-0x00400000 : "Boot Config"
0x00000000-0x00400000 : "flash"
u32 classifier
ip_conntrack version 2.4 (128 buckets, 1024 max) - 248 bytes per conntrack
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_time loading
ipt_recent v0.3.1: Stephen Frost . http://snowman.net/projects/ipt_recent/
ClusterIP Version 0.8 loaded successfully
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 80K
init started: BusyBox v1.00 (2007.06.13-07:50+0000) multi-call binary
Starting pid 81, console /dev/tts/0: '/etc/init.d/rcS'
[/etc/init.d/S03config.sh]
Mounting proc and var ...
Start xmldb ...
[/etc/scripts/misc/profile.sh] get ...
[/etc/scripts/misc/defnodes.sh] ...
[/etc/defnodes/S10setext.sh] ...
PHP [/etc/defnodes/S11setnodes.php] ...
PHP [/etc/defnodes/S12features.php] ...
PHP [/etc/defnodes/S13flashspeed.php] ...
[/etc/defnodes/S14wps_upnp.sh] ...
PHP [/etc/defnodes/S20setnodes.php] ...
PHP [/etc/defnodes/S40brand.php] ...
[/etc/scripts/misc/defnodes.sh] Done !!
[/etc/templates/timezone.sh] ...
[/etc/templates/logs.sh] ...
[/var/run/logs_run.sh] ...
Inserting modules ...
Using /lib/modules/fvmem.ko
fvmem: module license '5VT' taints kernel.
FVMEM version 1.00
Using /lib/modules/fvmac.ko
FVMAC version: 1.07, date: 2007/03/05 (compiled at 15:54:17, Jun 13 2007)
FVMAC 0: FVMAC core w/AMBA at 0xf0080000 IRQ 7
Randomize lower 3 bytes of the MAC address.
FVMAC 0: MAC address <>
FVMAC 0: registered_netdev() as eth0.
FVMAC 1: FVMAC core w/AMBA at 0xf00a0000 IRQ 8
Randomize lower 3 bytes of the MAC address.
FVMAC 1: MAC address <>
FVMAC 1: registered_netdev() as eth1.
Using /lib/modules/fv13xx_access.ko
FV13XX Access Init.
Using /lib/mNetwork interface reset count v1.0o
dules/ifresetcnt.ko
eth1: set media mode 100M/full-duplex
eth0: set media mode 10M/half-duplex
[/etc/templates/webs.sh] start ...
[/var/run/webs_start.sh] ...
Starting HTTPD ...
[/etc/init.d/S03config.sh] done!
[/etc/init.d/S10system.sh]
setup layout ...
[/etc/scripts/layout.sh] ...
[/var/run/layout_start.sh] ...
Start router layout ...
device eth1 entered promiscuous mode
start LAN ...
[/etc/templates/lan.sh] ...
br0: port 1(eth1) entering learning state
br0: topology change detected, propagating
br0: port 1(eth1) entering forwarding state
[/var/run/lan_start.sh] ...
Start LAN (br0/192.168.1.1/255.255.255.0)...
Start DHCP server (br0) ...
start fresetd ...
Factory reset time : 3 secs
System reset time : 3 secs
WPS command : [/etc/templates/wps.sh pbc &]
enable LAN ports ...
[/etc/scripts/enlan.sh] ...
!!!!!!!!!!!!!!! TODO [/etc/scripts/enlan.sh] !!!!!!!!!!!!!!
start WLAN ...
[/etc/templates/wlan.sh] start ...
[/var/run/wlan_start.sh] ...
Start WLAN interface ra0 ...
restart WLAN driver ...
interface ra0 does not exist!
rmmod: rt2860ap: No such file or directory
Using /lib/modules/rt2860ap.ko
PCI: enabling device 0000:00:01.0 (0140 -> 0142)


=== pAd = c1c81000, size = 1085572 ===

<-- RTMPAllocAdapterBlock, Status=0
PCI: Setting latency timer of device 0000:00:01.0 to 64
RX DESC ffc1a000 size = 2048
<-- RTMPAllocDMAMemory, Status=0
1. Phy Mode = 9
2. Phy Mode = 9
Antenna RxPath = 3, TxPath = 2
3. Phy Mode = 9
==========>RTMPSetHT
MCS Set = ff ff 00 00 01
Enrollee PinCode = 79358309
Main bssid = 00:1d:6a:f6:ee:3e
Enrollee PinCode = 79358309
<==== RTMPInitialize, Status=0
0x1300 = 00064320
device ra0 entered promiscuous mode
br0: port 2(ra0) entering learning state
br0: topology change detected, propagating
br0: port 2(ra0) entering forwarding state
[/etc/templates/wps.sh] enable ...
Enrollee PinCode = 79358309
GenerateDHPublicKey Success dhkey_len192
start RG ...
[/etc/templates/rg.sh] start ...
[/var/run/rg_start.sh] ...
Using /lib/modules/ip_stun_func.ko
Register STUN module successes!
Using /lib/modules/sw_tcpip.ko
REDSonic turbo net initialized
sendto_unsock(/var/run/portt.unixsocket, flush)
start DNRD ...
[/etc/templates/dnrd.sh] ...
[/var/run/dnrd_start.sh] ...
Start DNRD ...
Notice: caching turned off
Start telnetd ...
start UPNPD ...
[/etc/templates/upnpd.sh] ...
[/var/run/upnpd_start.sh] ...
Starting UPnP ...
[/var/run/upnp_alive.sh] ...
start WAN ...
Set WAN port media type 0
[/etc/templates/wan.sh] start ...
[/var/run/wan_start.sh] ...
DHCP client on WAN(eth0) CloneMAC() ...
start LLD2D ...
[/etc/templates/lld2d.sh] ...
[/var/run/lld2d_start.sh] ...
Start LLD2 daemon ...
[/etc/init.d/S10systStarting pid 708, console /dev/tts/0: '/bin/sh'


BusyBox v1.00 (2007.06.13-07:50+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

#

AR680W Busybox 1.00 list

1. Files and directory under /
610288 drwxrwsr-x 1 503 1000 262 Jun 13 2007 lib
609736 drwxrwsr-x 1 503 1000 0 Jun 13 2007 mnt
187 drwxr-xr-x 12 0 0 0 Jan 1 00:00 var
609728 drwxrwsr-x 1 503 1000 96 Jun 13 2007 etc
608337 lrwxrwxrwx 1 503 1000 8 Jun 13 2007 tmp -> /var/tmp
608333 drwxrwsr-x 1 503 1000 0 Jun 13 2007 home
1 dr-xr-xr-x 49 0 0 0 Dec 31 16:00 proc
1 drwxr-xr-x 1 0 0 0 Dec 31 16:00 dev
608318 drwxrwsr-x 1 503 1000 17 Jun 13 2007 htdocs
1995 drwxrwsr-x 1 503 1000 104 Jun 13 2007 sbin
1927 drwxrwsr-x 1 503 1000 23 Jun 13 2007 usr
1501 drwxrwsr-x 1 503 1000 227 Jun 13 2007 bin
1385 drwxrwsr-x 1 503 1000 2835 Jun 13 2007 www
2. Files in /bin
This directory is populated with busybox link

lrwxrwxrwx 1 503 1000 7 Jun 13 2007 ping -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 zcat -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 gzip -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 mknod -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 ln -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 pwd -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 fgrep -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 chmod -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 sh -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 touch -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 kill -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 date -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 mount -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 mv -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 egrep -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 umount -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 sleep -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 gunzip -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 cp -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 grep -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 rm -> busybox
-rwxrwxr-x 1 503 1000 303932 Jun 13 2007 busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 echo -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 true -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 sed -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 ls -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 msh -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 cat -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 uname -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 ps -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 false -> busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 mkdir -> busybox


3.Files in /sbin
atp and httpd are not busybox utilities

-rwxr-xr-x 1 503 1000 12608 Jun 13 2007 syslogd
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 ifconfig -> ../bin/busybox
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 rmmod -> ../bin/busybox
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 lsmod -> ../bin/busybox
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 modprobe -> ../bin/busybox
lrwxrwxrwx 1 503 1000 9 Jun 13 2007 xgi -> /sbin/atp
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 route -> ../bin/busybox
-rwxr-xr-x 1 503 1000 20424 Jun 13 2007 atp
-rwxr-xr-x 1 503 1000 76244 Jun 13 2007 httpd
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 init -> ../bin/busybox
lrwxrwxrwx 1 503 1000 14 Jun 13 2007 insmod -> ../bin/busybox
-rwxr-xr-x 1 503 1000 6952 Jun 13 2007 klogd

3.files in usr/bin - linked to busybox

lrwxrwxrwx 1 503 1000 17 Jun 13 2007 [ -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 wc -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 basename -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 free -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 cut -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 uptime -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 yes -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 test -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 expr -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 logger -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 dirname -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 tr -> ../../bin/busybox
lrwxrwxrwx 1 503 1000 17 Jun 13 2007 killall -> ../../bin/busybox

3.files in usr/sbin - linked to busybox
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 gethostip -> ./rgbin
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 vconfig -> ./rgbin
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 login -> ./rgbin
-rwxr-xr-x 1 503 1000 22388 Jun 13 2007 bpalogin
-rwxrwxr-x 1 503 1000 22520 Jun 13 2007 dyndns
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 rgdb -> ./xmldb
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 ctest -> fresetd
-rwxr-xr-x 1 503 1000 10847 Jun 13 2007 dhcpxmlpatch
-rwxr-xr-x 1 503 1000 8600 Jun 13 2007 telnetd
-rwxr-xr-x 1 503 1000 43469 Jun 13 2007 iwconfig
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 tlogs -> ./rgbin
-rwxrwxr-x 1 503 1000 872 Jun 13 2007 cabletest:1
-rwxrwxr-x 1 503 1000 50365 Jun 13 2007 cm.cgi
-rwxrwxr-x 1 503 1000 1003 Jun 13 2007 syslog
-rwxr-xr-x 1 503 1000 115904 Jun 13 2007 ip
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 ntpclient -> ./rgbin
-rwxr-xr-x 1 503 1000 211256 Jun 13 2007 pppd
-rwxrwxr-x 1 503 1000 13799 Jun 13 2007 portt
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 dayconvert -> ./rgbin
-rwxrwxr-x 1 503 1000 860 Jun 13 2007 stats
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 usockc -> ./rgbin
-rwxr-xr-x 1 503 1000 127524 Jun 13 2007 tc
-rwxrwxr-x 1 503 1000 874 Jun 13 2007 cabletest:5
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 chnet -> ./rgbin
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 pfile -> ./rgbin
-rwxrwxr-x 1 503 1000 1011 Jun 13 2007 diagnostic
-rwxrwxr-x 1 503 1000 2200 Jun 13 2007 submit
-rwxrwxr-x 1 503 1000 23456 Jun 13 2007 wlxmlpatch
-rwxrwxr-x 1 503 1000 874 Jun 13 2007 cabletest:3
-rwxrwxr-x 1 503 1000 874 Jun 13 2007 cabletest:4
-rwxrwxr-x 1 503 1000 875 Jun 13 2007 cabletest:2
-rwxrwxr-x 1 503 1000 1825 Jun 13 2007 sys
-rwxrwxr-x 1 503 1000 576 Jun 13 2007 time
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 xmldbc -> ./xmldb
-rwxrwxr-x 1 503 1000 169560 Jun 13 2007 wscd
-rwxrwxr-x 1 503 1000 47428 Jun 13 2007 xmldb
-rwxrwxr-x 1 503 1000 65808 Jun 13 2007 iptables-save
-rwxr-xr-x 1 503 1000 32600 Jun 13 2007 udhcpd
-rwxrwxr-x 1 503 1000 25440 Jun 13 2007 fresetd
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 scut -> ./rgbin
lrwxrwxrwx 1 503 1000 10 Jun 13 2007 genuuid -> ./upnpkits
-rwxrwxr-x 1 503 1000 773 Jun 13 2007 switch
-rwxr-xr-x 1 503 1000 33440 Jun 13 2007 dnrd
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 rgcfg -> ./rgbin
-rwxrwxr-x 1 503 1000 2700 Jun 13 2007 wan
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 brctl -> ./rgbin
-rwxrwxr-x 1 503 1000 60962 Jun 13 2007 iptables
-rwxr-xr-x 1 503 1000 64676 Jun 13 2007 rgbin
-rwxrwxr-x 1 503 1000 51848 Jun 13 2007 lld2d
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 psts -> fresetd
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 slinktype -> fresetd
-rwxrwxr-x 1 503 1000 52804 Jun 13 2007 upnpkits
lrwxrwxrwx 1 503 1000 8 Jun 13 2007 udhcpc -> ./udhcpd
-rwxrwxr-x 1 503 1000 65897 Jun 13 2007 iptables-restore
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 smtpclient -> ./rgbin
-rwxrwxr-x 1 503 1000 4698 Jun 13 2007 mfc
-rwxrwxr-x 1 503 1000 8028 Jun 13 2007 trigger
lrwxrwxrwx 1 503 1000 7 Jun 13 2007 tcprequest -> ./rgbin
-rwxrwxr-x 1 503 1000 70 Jun 13 2007 reboot
lrwxrwxrwx 1 503 1000 10 Jun 13 2007 iwpriv -> ./iwconfig
lrwxrwxrwx 1 503 1000 10 Jun 13 2007 upnpdev -> ./upnpkits
-rwxrwxr-x 1 503 1000 39291 Jun 13 2007 rt2860apd


AR680W-HW Parts

1. CPU:RT1310A(ARM)
cat /proc/cpuinfo
Processor : ARM926EJ-Sid(wb) rev 5 (v5l)
BogoMIPS : 285.90
Features : swp half fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128

Hardware : 5VT13XX
Revision : 0000
Serial : 0000000000000000

Memory map
System Memory Map:
0x00000000-0x01FFFFFF: SDRAM Bank 0
0x19C00000-0x1E7FFFFF: Memory Mapped IO Space-AHB
0x19C00000-0x19C1FFFF: Static/SDRAM Memory Controller
0x19C40000-0x19C5FFFF: Interrupt Controller
0x19C60000-0x19C7FFFF: AHB Arbiter
0x19C80000-0x19C9FFFF: MAC 0
0x19CA0000-0x19CBFFFF: MA1 0
0x1E700000-0x1E71FFFF: HDMA
0x1E800000-0x1EFFFFFF: Memory Mapped IO Space-APB
0x1E800000-0x1E81FFFF: Timer 0/1/2/3
0x1E840000-0x1E85FFFF: UART 0
0x1E880000-0x1E89FFFF: SPI
0x1E8A0000-0x1E8BFFFF: GPIO 0
0x1E8C0000-0x1E8DFFFF: WDT
0x1E8E0000-0x1E8FFFFF: SCU
0x1E940000-0x1E95FFFF: ACI0(PL040)
0x1E960000-0x1E97FFFF: ACI1(PL040)
0x1F000000-0x1F7FFFFF: Flash Bank 0
0x40000000-0x41FFFFFF: SDRAM Bank 1


2. Radio: RT2860RT (802.11n v 2.0)

3. Flash: 4MB(Spanion S29AL032D90TF104 --4Mx8bit uniform boot sector)
Flash layout (mtd), erasesize=64K
# cat /proc/mtd,
dev: size erasesize name
mtd0: 001b1000 00010000 "rootfs" (1732K)
mtd1: 003b0000 00010000 "upgrade" (3776K)
mtd2: 00010000 00010000 "rgdb"
mtd3: 00010000 00010000 "nvram"
mtd4: 00020000 00010000 "U-Boot"
mtd5: 00010000 00010000 "Boot Config"
mtd6: 00400000 00010000 "flash

flinfo from uboot: --mode 0
Bank # 1:
Brand: AMD Type: AM29LV320B (32 Mbit, bottom boot sect)
Size: 4096 KB in 71 Sectors
Sector Start Addresses:
1F000000 1F002000 1F004000 1F006000 1F008000
1F00A000 1F00C000 1F00E000 1F010000 1F020000
1F030000 1F040000 1F050000 1F060000 1F070000
1F080000 1F090000 1F0A0000 1F0B0000 1F0C0000
1F0D0000 1F0E0000 1F0F0000 1F100000 1F110000
1F120000 1F130000 1F140000 1F150000 1F160000
1F170000 1F180000 1F190000 1F1A0000 1F1B0000
1F1C0000 1F1D0000 1F1E0000 1F1F0000 1F200000
1F210000 1F220000 1F230000 1F240000 1F250000
1F260000 1F270000 1F280000 1F290000 1F2A0000
1F2B0000 1F2C0000 1F2D0000 1F2E0000 1F2F0000
1F300000 1F310000 1F320000 1F330000 1F340000
1F350000 1F360000 E 1F370000 E 1F380000 E 1F390000 E
1F3A0000 E 1F3B0000 E 1F3C0000 E 1F3D0000 1F3E0000
1F3F0000 RO

These are 8Kbyte sectors(8). The rest are 64K sectors(63)


Memory:16MB (2x hynix SDRAM(HY57v641620EP) --4Mx16bit )
memory map:


Switch:4 port fast ethernet switch(realtek RTL8306S--6 port fast ethernet switch)

Tuesday, March 4, 2008

busybox root file system directory

[wli@server217 linux-2.6.24]$ ls -l rootfs # busybox rootfs directory
total 52
drwxr-xr-x 2 wli wli 4096 Mar 4 15:27 bin
drwxr-xr-x 4 wli wli 4096 Mar 4 15:27 dev
drwxr-xr-x 7 wli wli 4096 Mar 4 15:27 etc
drwxr-xr-x 3 wli wli 4096 Mar 4 15:27 home
drwxr-xr-x 3 wli wli 4096 Mar 4 15:27 lib
lrwxrwxrwx 1 wli wli 11 Mar 4 15:27 linuxrc -> bin/busybox
drwxr-xr-x 2 wli wli 4096 Mar 4 15:27 mnt
drwxr-xr-x 2 wli wli 4096 Mar 4 15:27 proc
drwxr-xr-x 3 wli wli 4096 Mar 4 15:27 root
drwxr-xr-x 2 wli wli 4096 Mar 4 15:27 sbin
drwxr-xr-x 2 wli wli 4096 Mar 4 15:27 sys
drwxr-xr-x 2 wli wli 4096 Mar 4 15:27 tmp
drwxr-xr-x 7 wli wli 4096 Mar 4 15:27 usr
drwxr-xr-x 7 wli wli 4096 Mar 4 15:27 var

The list of the content of each subdirectories


[wli@server217 linux-2.6.24]$ ls rootfs -a -R
rootfs:
. .. bin dev etc home lib linuxrc mnt proc root sbin sys tmp usr var

rootfs/bin:
. busybox chown deluser fgrep iplink ln more ping rmdir stat umount
.. cat cp df grep iproute login mount printenv run-parts su uname
addgroup chattr date dmesg hostname iprule ls mv ps sed sync usleep
adduser chgrp dd echo ip iptunnel lsattr netstat pwd sh touch vi
ash chmod delgroup egrep ipaddr kill mkdir pidof rm sleep true

rootfs/dev:
. .. pts shm

rootfs/dev/pts:
. ..

rootfs/dev/shm:
. ..

rootfs/etc:
. busybox.conf group hosts hosts.deny init.d motd nsswwitch.conf rc3.d securetty shadow sysconfig
.. fstab hostapd hosts.allow inetd.conf inittab mtab passwd rc.d services shells TZ

rootfs/etc/hostapd:
. .. wpa_psk

rootfs/etc/init.d:
. .. dropbear hostapd network syslogd

rootfs/etc/rc3.d:
. .. K21dropbear K32hostapd K42syslogd K43network S21network S22syslogd S30hostapd S40dropbear

rootfs/etc/rc.d:
. .. rc.shutdown rc.sysinit

rootfs/etc/sysconfig:
. .. dropbear hostapd.conf network ntpd ntpd.conf sample.script syslogd.conf udhcpc.script

rootfs/etc/sysconfig/dropbear:
. .. dropbear_dss_host_key dropbear_rsa_host_key

rootfs/etc/sysconfig/network:
. .. br0.conf ifdown ifup

rootfs/etc/sysconfig/ntpd:
. .. ntpserver

rootfs/home:
. .. wli

rootfs/home/wli:
. ..

rootfs/lib:
. libcrypt-2.3.6.so libiw.so.29 libnss_compat-2.3.6.so libnss_files.so.2 libthread_db-1.0.so
.. libcrypt.so.1 libm-2.3.6.so libnss_compat.so.2 libpthread-0.10.so libthread_db.so.1
ld-2.3.6.so libc.so.6 libm.so.6 libnss_dns-2.3.6.so libpthread.so.0 libutil-2.3.6.so
ld.so.1 libdl-2.3.6.so libnsl-2.3.6.so libnss_dns.so.2 libresolv-2.3.6.so libutil.so.1
libc-2.3.6.so libdl.so.2 libnsl.so.1 libnss_files-2.3.6.so libresolv.so.2 modules

rootfs/lib/modules:
. .. 2.6.24

rootfs/lib/modules/2.6.24:
. ath_pci.ko ath_rate_onoe.ko wlan_acl.ko wlan_scan_ap.ko wlan_wep.ko
.. ath_rate_amrr.ko ath_rate_sample.ko wlan_ccmp.ko wlan_scan_sta.ko wlan_xauth.ko
ath_hal.ko ath_rate_minstrel.ko modules.dep wlan.ko wlan_tkip.ko

rootfs/mnt:
. ..

rootfs/proc:
. ..

rootfs/root:
. .. .ssh

rootfs/root/.ssh:
. .. authorized_keys

rootfs/sbin:
. dropbear ifconfig klogd modprobe reboot start-stop-daemon swapon syslogd
.. getty init logread pivot_root rmmod sulogin switch_root udhcpc
arp halt insmod lsmod poweroff route swapoff sysctl vconfig

rootfs/sys:
. ..

rootfs/tmp:
. ..

rootfs/usr:
. .. bin lib local sbin share

rootfs/usr/bin:
. [ arping cut dumpleases free id less nslookup passwd test time tty vlock whoami
.. [[ awk dirname env hexdump killall logger openvt strings tftp top uptime which yes

rootfs/usr/lib:
. ..

rootfs/usr/local:
. ..

rootfs/usr/sbin:
. 80211stats athkey chroot dhcprelay httpd ins_madwifi iwgetid iwspy udhcpd
.. athchans athstats create_ap hostapd ifrename iwconfig iwlist rm_madwifi wlanconfig
80211debug athctrl brctl create_sta hostapd_cli inetd iwevent iwpriv telnetd

rootfs/usr/share:
. ..

rootfs/var:
. .. lib lock log run tmp

rootfs/var/lib:
. ..

rootfs/var/lock:
. ..

rootfs/var/log:
. ..

rootfs/var/run:
. .. hostapd

rootfs/var/run/hostapd:
. ..

rootfs/var/tmp:
. ..



root file system table rootfs_device.tab

#
/dev d 755 0 0 - - - - -
/dev/console c 600 0 0 5 1 - - -
/dev/loop b 640 0 6 7 0 0 1 2
/dev/mem c 640 0 9 1 1 - - -
/dev/mtd c 640 0 0 90 0 0 2 16
/dev/mtdblock b 640 0 0 31 0 0 1 16
/dev/mtdchar c 640 0 0 90 0 0 1 16
/dev/mvPP c 640 0 0 254 0 - - -
/dev/null c 640 0 0 1 3 - - -
/dev/ptmx c 666 0 5 5 2 - - -
/dev/ram b 777 0 0 1 0 0 1 2
/dev/random c 640 0 0 1 8 - - -
/dev/urandom c 444 0 0 1 9 - - -
/dev/ptyp c 660 0 0 2 0 0 1 5
/dev/tty c 666 0 0 5 0 - - -
/dev/tty c 660 0 5 4 0 0 1 8
/dev/ttyS0 c 600 0 0 4 64 - - -
/dev/ttyS1 c 660 0 14 4 64 - - -
/dev/ttyp c 660 0 0 3 0 0 1 5
/dev/zero c 666 0 0 1 5 - - -
/dev/ppp c 640 0 0 108 0 - - -