Skip to content

Instantly share code, notes, and snippets.

@johnlane
Last active September 11, 2017 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlane/2df531d89f90cc5632f53796f2349f62 to your computer and use it in GitHub Desktop.
Save johnlane/2df531d89f90cc5632f53796f2349f62 to your computer and use it in GitHub Desktop.
U-Boot 1.1.4-g12193fce-dirty (Dec 14 2009 - 13:39:19)
WN604 (ar7240) U-boot dni7 V0.8
DRAM:
sri
#### TAP VALUE 1 = a, 2 = b
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 278k for U-Boot at: 81fb8000
Reserving 192k for malloc() at: 81f88000
Reserving 56 Bytes for Board Info at: 81f87fc8
Reserving 36 Bytes for Global Data at: 81f87fa4
Reserving 128k for boot params() at: 81f67fa4
Stack Pointer at: 81f67f88
Now running in RAM - U-Boot at: 81fb8000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
Fetching MAC Address from 0x81fe9690
Fetching MAC Address from 0x81fe9690
: cfg1 0xf cfg2 0x7014
eth0: 00:24:b2:db:3f:55
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:24:b2:db:3f:54
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Manu data is valid!
Trying eth1
dup 1 speed 1000
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
Hit any key to stop autoboot: 2  1  0
## Booting image at 9f050000 ...
Image Name: Linux Kernel
Created: 2017-07-26 4:27:05 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 655360 Bytes = 640 kB
Load Address: 80002000
Entry Point: 801b8000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 801b8000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
Booting AR7240(Python)...
Linux version 2.6.15--LSDK-7.3.0.387-WN604_V3.3.7 (root@VVDN-BLD) (gcc version 3.4.4) #199 Wed Jul 26 09:54:49 IST 2017
flash_size passed from bootloader = 4
arg 1: console=ttyS0,115200
arg 2: rootfstype=squashfs
arg 3: root=31:03
arg 4: init=/sbin/init
arg 5: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),704k(kernel),2624k(rootfs),320k(var),64k(manufacturing-data),64k(ART)
arg 6: mem=32M
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 rootfstype=squashfs root=31:03 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),704k(kernel),2624k(rootfs),320k(var),64k(manufacturing-data),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 170.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: 30472k/32768k available (1448k kernel code, 2280k reserved, 299k data, 120k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
PCI init:ar7240_pcibios_init
Returning IRQ 48
AR7240 GPIOC major 0
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
7 cmdlinepart partitions found on MTD device ar7240-nor0
Creating 7 MTD partitions on "ar7240-nor0":
0x00000000-0x00040000 : "u-boot"
0x00040000-0x00050000 : "u-boot-env"
0x00050000-0x00100000 : "kernel"
0x00100000-0x00390000 : "rootfs"
0x00390000-0x003e0000 : "var"
0x003e0000-0x003f0000 : "manufacturing-data"
0x003f0000-0x00400000 : "ART"
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>
wls dev success
reset dev success
ar7240wdt_init: Registering WDT success
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 120k freed
Mounting etc to ramfs. [DONE]
Mounting var to jffs2. [DONE]
Checking for run file. [DONE]
Checking Manufac. data [DONE]
Checking board file. [CREATED]
Loading Ethernet module. [GENMAC]
 [DONE]
Multiple SKU supported. [DONE]
Current SKU is [WN604]
Checking database. [DONE]
Verifing checksum. [DONE]
Loading Bridge module. sh: yes: unknown operand
[DONE]
Loading wlan modules. [DONE]
Creating vap interface. [DONE]
Creating wds interface. [DONE]
Starting configd. [DONE]
Starting web server. [DONE]
Starting Translator... start-stop-daemon: cannot start /usr/bin/log_ro: No such file or directory
[syslog]
Starting Translator... [password]
Starting Translator... [dns]
Starting Translator... set cascaded bridge failed: Operation not supported
[bridge_and_vlan_translator]
Starting Translator... [hostapd_tr]
Starting Translator... [nmbd_tr]
Starting Translator... [ntp]
Starting Translator... kill: cannot kill pid 319: No such process
kill: cannot kill pid 320: No such process
[timezone]
Starting Translator... l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
[sc_radio]
kill: cannot kill pid 332: No such process
kill: cannot kill pid 333: No such process
Sending ARPingl2_packet_receive - recvfrom: Network is down
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
System initilization is .. [DONE...]
Welcome to SDK.
Have a lot of fun...
gateway login: arecvfrom: Connection refused
dmin
Password:
login: can't chdir to home directory '/home/cli/menu'
login: ca
Welcome to SDK.
Have a lot of fun...
gateway login: root
Password:
[root@gateway /root]# unamrecvfrom: Connection refused
e -a
Linux gateway 2.6.15--LSDK-7.3.0.387-WN604_V3.3.7 #199 Wed Jul 26 09:54:49 IST 2017 mips unknown
[root@gateway /root]# df -h
-sh: df: not found
[root@gateway /root]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw,nodiratime)
tmpfs on /tmp type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
none on /etc type tmpfs (rw)
/dev/mtdblock4 on /var type jffs2 (rw,noatime)
[root@gateway /root]# recvfrom: Connection refused
fdisk -l
-sh: fdisk: not found
[root@gateway /root]# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:03:7f:ff:ff:ff brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 30:46:9a:04:29:a4 brd ff:ff:ff:ff:ff:ff
4: wifi0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 128
link/ieee802.11 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
5: wifi0vap0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 200
link/ether 30:46:9a:04:29:a3 brd ff:ff:ff:ff:ff:ff
6: wifi0wds0: <BROADCAST,MULTICAST> mtu 1504 qdisc noop qlen 50
link/ether 30:46:9a:04:29:a3 brd ff:ff:ff:ff:ff:ff
7: wifi0wds1: <BROADCAST,MULTICAST> mtu 1504 qdisc noop qlen 50
link/ether 30:46:9a:04:29:a3 brd ff:ff:ff:ff:ff:ff
8: wifi0wds2: <BROADCAST,MULTICAST> mtu 1504 qdisc noop qlen 50
link/ether 30:46:9a:04:29:a3 brd ff:ff:ff:ff:ff:ff
9: wifi0wds3: <BROADCAST,MULTICAST> mtu 1504 qdisc noop qlen 50
link/ether 30:46:9a:04:29:a3 brd ff:ff:ff:ff:ff:ff
10: brtrunk: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
link/ether 30:46:9a:04:29:a4 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.139/8 brd 10.255.255.255 scope global brtrunk
[root@gateway /root]# brctl show
bridge name bridge id STP enabled cascaded bridge interfaces
brtrunk 8000.30469a0429a4 no no eth1
wifi0vap0
wifi0wds0
wifi0wds1
wifi0wds2
wifi0wds3
[root@gateway /root]# recvfrom: Connection refused
halt
[root@gateway /root]# The system is going down NOW!
Sending SIGTERM to all processes
Sending SIGKILLRequesting system halt
System halted.
# cat /proc/devices
Character devices:
1 mem
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
10 misc
77 AR7240_GPIOC
90 mtd
128 ptm
136 pts
Block devices:
31 mtdblock
# ls -l /dev
crwxrwxrwx 1 root root 1, 13 Jul 25 2017 armem
crw-rw-rw- 1 root root 5, 1 Dec 31 16:00 console
crwxrwxrwx 1 root root 63, 0 Jul 25 2017 dk0
crwxrwxrwx 1 root root 63, 1 Jul 25 2017 dk1
crw-rw-rw- 1 root root 1, 2 Jul 25 2017 kmem
crw-rw-rw- 1 root root 10, 151 Jul 25 2017 led
lrwxrwxrwx 1 root root 15 Jul 25 2017 log -> /tmp/log-device
crw-rw-rw- 1 root root 1, 1 Jul 25 2017 mem
crw-rw-rw- 1 root root 90, 0 Jul 25 2017 mtd0
crw-rw-rw- 1 root root 90, 2 Jul 25 2017 mtd1
crw-rw-rw- 1 root root 90, 4 Jul 25 2017 mtd2
crw-rw-rw- 1 root root 90, 6 Jul 25 2017 mtd3
crw-rw-rw- 1 root root 90, 8 Jul 25 2017 mtd4
crw-rw-rw- 1 root root 90, 10 Jul 25 2017 mtd5
crw-rw-rw- 1 root root 90, 12 Jul 25 2017 mtd6
crw-rw-rw- 1 root root 90, 14 Jul 25 2017 mtd7
brw-rw-rw- 1 root root 31, 0 Jul 25 2017 mtdblock0
brw-rw-rw- 1 root root 31, 1 Jul 25 2017 mtdblock1
brw-rw-rw- 1 root root 31, 2 Jul 25 2017 mtdblock2
brw-rw-rw- 1 root root 31, 3 Jul 25 2017 mtdblock3
brw-rw-rw- 1 root root 31, 4 Jul 25 2017 mtdblock4
brw-rw-rw- 1 root root 31, 5 Jul 25 2017 mtdblock5
brw-rw-rw- 1 root root 31, 6 Jul 25 2017 mtdblock6
brw-rw-rw- 1 root root 31, 7 Jul 25 2017 mtdblock7
crw-rw-rw- 1 root root 90, 1 Jul 25 2017 mtdr0
crw-rw-rw- 1 root root 90, 3 Jul 25 2017 mtdr1
crw-rw-rw- 1 root root 90, 5 Jul 25 2017 mtdr2
crw-rw-rw- 1 root root 90, 7 Jul 25 2017 mtdr3
crw-rw-rw- 1 root root 90, 9 Jul 25 2017 mtdr4
crw-rw-rw- 1 root root 90, 11 Jul 25 2017 mtdr5
crw-rw-rw- 1 root root 90, 13 Jul 25 2017 mtdr6
crw-rw-rw- 1 root root 90, 15 Jul 25 2017 mtdr7
crw-rw-rw- 1 root root 1, 3 Jul 25 2017 null
crw-rw-rw- 1 root root 5, 2 Jul 25 2017 ptmx
drwxr-xr-x 2 root root 0 Dec 31 16:00 pts
crw-rw-rw- 1 root root 2, 0 Jul 25 2017 ptyp0
crw-rw-rw- 1 root root 2, 1 Jul 25 2017 ptyp1
brw-rw-rw- 1 root root 1, 0 Jul 25 2017 ram0
crw-rw-rw- 1 root root 1, 8 Jul 25 2017 random
crw-rw-rw- 1 root root 10, 63 Jul 25 2017 sys-reset
crw-rw-rw- 1 root root 5, 0 Jul 25 2017 tty
crw-rw-rw- 1 root root 4, 0 Jul 25 2017 tty0
crw-rw-rw- 1 root root 4, 1 Jul 25 2017 tty1
crw-rw-rw- 1 root root 4, 64 Dec 31 16:05 ttyS0
crw-rw-rw- 1 root root 4, 65 Jul 25 2017 ttyS1
crw-rw-rw- 1 root root 3, 0 Jul 25 2017 ttyp0
crw-rw-rw- 1 root root 3, 1 Jul 25 2017 ttyp1
crw-rw-rw- 1 root root 1, 9 Jul 25 2017 urandom
crw-rw-rw- 1 root root 10, 130 Jul 25 2017 watchdog
crw-rw-rw- 1 root root 10, 64 Jul 25 2017 wls-switch
crw-rw-rw- 1 root root 1, 5 Jul 25 2017 zero
# lsmod
Module Size Used by Tainted: PF
ath_pci 90976 0
ath 246912 1 ath_pci
wlan_xauth 1792 0
wlan_ccmp 22000 0
wlan_tkip 14048 0
wlan_wep 6720 0
wlan_acl 7472 2 ath
wlan_scan_ap 20848 0
wlan 233872 8 ath_pci,ath,wlan_xauth,wlan_ccmp,wlan_tkip,wlan_wep,wlan_acl,wlan_scan_ap
ath_rate_atheros 54096 1 ath
aws_gpio 9456 1 ath
asc 123392 5 ath_pci,ath,ath_rate_atheros,aws_gpio
ath_hal 426608 3 ath,asc
bridge 35184 0
ag7240_mod 33312 0
# env
HISTFILESIZE=25
USER=root
HOSTNAME=netgear0429A4
HOME=/root
PAGER=/bin/more
PS1=[\u@\h \W]\$
LOGNAME=root
TERM=vt100
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
HISTSIZE=25
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.gz=01;31:*.bz2=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.tif=01;35:*.tiff=01;35:
SHELL=/bin/sh
PWD=/root
EDITOR=/bin/vi
# ls /usr/bin/
[ dos2unix id printmd top
[[ env killall readlink tty
arping expr length reset_detect unix2dos
awk find logger seq uptime
basename flash_erase logname sort watchdog
bddatard flashcp md5sum strings wc
bunzip2 fold mkfifo tail wget
bzcat free nohup tee which
cksum ftpget panel_led telnet who
crontab ftpput passwd test wr_mfg_data
cut fuser pgrep tftp xargs
dirname head printf time yes
# /usr/bin/panel_led
This Program needs one argument.
Enter 1 for Amber.
Enter 2 for Amber Blink.
Enter 3 for Green.
Enter 4 for Green Blink.
Enter 5 for off.
# wr_mfg_data -h
Usage:
wr_mfg_data [-c region info]
[-d default MAC and reg info for board][-h] help[-m MAC][-p PRODUCT]
[-s Serial Number][-w HW Version][-W WPS Pin]
You can set one or multiple values at one go.
It is good for flash health that you set all the values at one go.
# printmd
ProductID = WN604
HWVer = R04
reginfo = 0
basemac = 30469A0429A3
serno = 2BD10557005C3
numofimages = 1
currimage = 1
maccnt0 = 0
maccnt1 = 0
maccnt2 = 0
maccnt3 = 0
WPS PIN = 20118808
# cat /proc/version
Linux version 2.6.15--LSDK-7.3.0.387-WN604_V3.3.7 (root@VVDN-BLD) (gcc version 3.4.4) #199 Wed Jul 26 09:54:49 IST 2017
# ps
PID USER VSZ STAT COMMAND
1 root 2344 S init
2 root 0 SWN [ksoftirqd/0]
3 root 0 SW< [events/0]
4 root 0 SW< [khelper]
5 root 0 SW< [kthread]
6 root 0 SW< [kblockd/0]
7 root 0 SW [pdflush]
8 root 0 SW [pdflush]
10 root 0 SW< [aio/0]
9 root 0 SW [kswapd0]
11 root 0 SW [mtdblockd]
58 root 0 SWN [jffs2_gcd_mtd4]
67 root 1076 S /usr/bin/watchdog
166 root 2192 S /usr/sbin/configd
177 root 3040 S /sbin/lighttpd -f /etc/lighttpd.conf
190 root 2340 S /sbin/syslogd -S -D -O /var/log/messages -s 4 -b 0
303 root 1768 S /usr/local/bin/hostapd /etc/hostapd.conf.wifi0
311 root 2308 S /usr/sbin/nmbd -s /etc/smb.conf -D
320 root 2344 S /bin/sh /usr/local/bin/ntpclient-wrapper time-b.netge
387 root 1076 S /usr/bin/reset_detect
388 root 1328 S /usr/local/bin/update_rfStatus
389 root 2360 S -sh
517 root 2336 S /bin/sleep 30
519 root 2344 R ps
# ifconfig
brtrunk Link encap:Ethernet HWaddr 30:46:9A:04:29:A4
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:3008 (2.9 KiB)
eth1 Link encap:Ethernet HWaddr 30:46:9A:04:29:A4
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1872 (1.8 KiB) TX bytes:1872 (1.8 KiB)
wifi0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-4D-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:128
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:48 Memory:b0000000-b0010000
wifi0vap0 Link encap:Ethernet HWaddr 30:46:9A:04:29:A3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:8 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# brctl show
bridge name bridge id STP enabled cascaded bridge interfaces
brtrunk 8000.30469a0429a4 no no eth1
wifi0vap0
wifi0wds0
wifi0wds1
wifi0wds2
wifi0wds3
U-Boot 1.1.4-g12193fce-dirty (Dec 14 2009 - 13:39:19)
WN604 (ar7240) U-boot dni7 V0.8
DRAM:
sri
#### TAP VALUE 1 = 9, 2 = a
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 278k for U-Boot at: 81fb8000
Reserving 192k for malloc() at: 81f88000
Reserving 56 Bytes for Board Info at: 81f87fc8
Reserving 36 Bytes for Global Data at: 81f87fa4
Reserving 128k for boot params() at: 81f67fa4
Stack Pointer at: 81f67f88
Now running in RAM - U-Boot at: 81fb8000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
Fetching MAC Address from 0x81fe9690
Fetching MAC Address from 0x81fe9690
: cfg1 0xf cfg2 0x7014
eth0: 00:24:b2:db:3f:55
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:24:b2:db:3f:54
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Manu data is valid!
Trying eth1
dup 1 speed 1000
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
Hit any key to stop autoboot: 2  1  0
ar7240> helk po 
? - alias for 'help'
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
burn - burn data into flash
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
fls - Set to change DDR settings on reboot
delay - delay
dhcp - invoke DHCP client to obtain IP/boot params
echo - echo args to console
erase - erase FLASH memory
ethreg - S26 PHY Reg rd/wr utility
exit - exit script
flinfo - print FLASH memory information
fls - Set to change Flash size on reboot
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
gigamode - switch the giga port in different mode
go - start application at address 'addr'
gpio - gpio testing command
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
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 /)
macset - Set ethernet MAC address
macshow - Show ethernet MAC addresses
md - memory display
memtest - memory testing command
mii - MII utility commands
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
pci - list and access PCI Configuration Space
ping - send ICMP ECHO_REQUEST to network host
pll - Set to change CPU/AHB/DDR speeds
porttest - port testing command
printenv- print environment variables
progmac - Set ethernet MAC addresses
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
savemd - save manufacturing data info flash
setenv - set environment variables
setmd - set manufacturing data
showmd - Display manufacturing data
sleep - delay execution for some time
snset - set serial number
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
wmacset - Set wlan MAC address
wpspinset - set wpspin number
autoscr - run script from memory
ar7240> version
U-Boot 1.1.4-g12193fce-dirty (Dec 14 2009 - 13:39:19)
ar7240> printenv
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
filesize=a0040
fileaddr=80800000
memtmp_addr=0x80800000
download=tftp
serverip=192.168.1.12 [your tftpservers IP]
ipaddr=192.168.1.11 [ Ip of the board]
uboot_size=+0x40000
uboot_addr=0x9f000000
erase_uimage=erase ${uboot_addr} ${uboot_size}
uimage=${download} ${memtmp_addr} u-boot.bin;run erase_uimage;cp.b ${memtmp_addr} ${uboot_addr} ${filesize}
kimagename=vmlinux.lzma.uImage
kernel_addr=0x9f050000
kernel_size=+0xB0000
erase_kimage=erase ${kernel_addr} ${kernel_size}
kimage=${download} ${memtmp_addr} ${kimagename};run erase_kimage;cp.b ${memtmp_addr} ${kernel_addr} ${filesize}
rimagename=rootfs.squashfs
rootfs_addr=0x9f100000
rootfs_size=+0x290000
erase_rimage=erase ${rootfs_addr} ${rootfs_size}
rimage=${download} ${memtmp_addr} ${rimagename};run erase_rimage;cp.b ${memtmp_addr} ${rootfs_addr} ${filesize}
clear_var=era 0x9f390000 +0x50000
bootargs=console=ttyS0,115200 rootfstype=squashfs root=31:03 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),704k(kernel),2624k(rootfs),320k(var),64k(manufacturing-data),64k(ART)
bootcmd=bootm 0x9f050000
flash_rootfs=run rimage
flash_kernel=run kimage
flash_all=run flash_kernel flash_rootfs clear_var
stdin=serial
stdout=serial
stderr=serial
ethact=eth1
Environment size: 1293/65532 bytes
ar7240> boot
## Booting image at 9f050000 ...
Image Name: Linux Kernel
Created: 2017-07-26 4:27:05 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 655360 Bytes = 640 kB
Load Address: 80002000
Entry Point: 801b8000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 801b8000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
Booting AR7240(Python)...
Linux version 2.6.15--LSDK-7.3.0.387-WN604_V3.3.7 (root@VVDN-BLD) (gcc version 3.4.4) #199 Wed Jul 26 09:54:49 IST 2017
flash_size passed from bootloader = 4
arg 1: console=ttyS0,115200
arg 2: rootfstype=squashfs
arg 3: root=31:03
arg 4: init=/sbin/init
arg 5: mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),704k(kernel),2624k(rootfs),320k(var),64k(manufacturing-data),64k(ART)
arg 6: mem=32M
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 rootfstype=squashfs root=31:03 init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),704k(kernel),2624k(rootfs),320k(var),64k(manufacturing-data),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 170.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: 30472k/32768k available (1448k kernel code, 2280k reserved, 299k data, 120k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
PCI init:ar7240_pcibios_init
Returning IRQ 48
AR7240 GPIOC major 0
squashfs: version 3.3 (2007/10/31) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
7 cmdlinepart partitions found on MTD device ar7240-nor0
Creating 7 MTD partitions on "ar7240-nor0":
0x00000000-0x00040000 : "u-boot"
0x00040000-0x00050000 : "u-boot-env"
0x00050000-0x00100000 : "kernel"
0x00100000-0x00390000 : "rootfs"
0x00390000-0x003e0000 : "var"
0x003e0000-0x003f0000 : "manufacturing-data"
0x003f0000-0x00400000 : "ART"
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>
wls dev success
reset dev success
ar7240wdt_init: Registering WDT success
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 120k freed
Mounting etc to ramfs. [DONE]
Mounting var to jffs2. [DONE]
Checking for run file. [DONE]
Checking Manufac. data [DONE]
Checking board file. [CREATED]
Loading Ethernet module. [GENMAC]
 [DONE]
Multiple SKU supported. [DONE]
Current SKU is [WN604]
Checking database. [DONE]
Verifing checksum. [DONE]
Loading Bridge module. sh: yes: unknown operand
[DONE]
Loading wlan modules. [DONE]
Creating vap interface. [DONE]
Creating wds interface. [DONE]
Starting configd. [DONE]
Starting web server. [DONE]
Starting Translator... start-stop-daemon: cannot start /usr/bin/log_ro: No such file or directory
[syslog]
Starting Translator... [password]
Starting Translator... [dns]
Starting Translator... set cascaded bridge failed: Operation not supported
[bridge_and_vlan_translator]
Starting Translator... [hostapd_tr]
Starting Translator... [nmbd_tr]
Starting Translator... [ntp]
Starting Translator... [timezone]
Starting Translator... [sc_radio]
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
l2_packet_receive - recvfrom: Network is down
Sending ARPingl2_packet_receive - recvfrom: Network is down
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
ARPING to 10.0.0.139 from 10.0.0.139 via brtrunk
Sent 1 probe(s) (1 broadcast(s))
Received 0 reply (0 request(s), 0 broadcast(s))
System initilization is .. [DONE...]
Welcome to SDK.
Have a lot of fun...
gateway login: recvfrom: Connection refused
Welcome to SDK.
Have a lot of fun...
gateway login: recvfrom: Connection refused
root
Password:
[root@gateway /root]# h ps -ef
ps: invalid option -- e
[root@gateway /root]# [root@gateway /root]# ps -ef   aux
[root@gateway /root]# [root@gateway /root]# ps aux    
PID USER VSZ STAT COMMAND
1 root 2344 S init
2 root 0 SWN [ksoftirqd/0]
3 root 0 SW< [events/0]
4 root 0 SW< [khelper]
5 root 0 SW< [kthread]
6 root 0 SW< [kblockd/0]
7 root 0 SW [pdflush]
8 root 0 SW [pdflush]
10 root 0 SW< [aio/0]
9 root 0 SW [kswapd0]
11 root 0 SW [mtdblockd]
58 root 0 SWN [jffs2_gcd_mtd4]
67 root 1076 S /usr/bin/watchdog
166 root 2192 S /usr/sbin/configd
177 root 3040 S /sbin/lighttpd -f /etc/lighttpd.conf
190 root 2340 S /sbin/syslogd -S -D -O /var/log/messages -s 4 -b 0
307 root 1768 S /usr/local/bin/hostapd /etc/hostapd.conf.wifi0
315 root 2308 S /usr/sbin/nmbd -s /etc/smb.conf -D
324 root 2344 S /bin/sh /usr/local/bin/ntpclient-wrapper 10.0.0.138 0
391 root 1076 S /usr/bin/reset_detect
392 root 1328 S /usr/local/bin/update_rfStatus
393 root 2352 S -sh
399 root 2336 S /bin/sleep 30
404 root 2344 R ps
[root@gateway /root]# recvfrom: Connection refused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment