U-Boot 1.1.3 (Jun 15 2009 - 10:15:29) Board: Ralink APSoC DRAM: 16 MB relocate_code Pointer at: 80fac000 *** Error: config usb failed. Config usb otg flash_protect ON: from 0xBF000000 to 0xBF022F6F protect on 0 protect on 1 protect on 2 protect on 3 protect on 4 protect on 5 protect on 6 protect on 7 protect on 8 protect on 9 flash_protect ON: from 0xBF030000 to 0xBF03FFFF protect on 10 *** Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 3.2_a2 -------------------------------------------- ASIC 3052_MP2 (Port5<->None) DRAM COMPONENT: 128Mbits DRAM BUS: 16BIT Total memory: 16 MBytes Date:Jun 15 2009 Time:10:15:29 ============================================ icache: sets:256, ways:4, linesz:32 ,total:32768 dcache: sets:128, ways:4, linesz:32 ,total:16384 ##### The CPU freq = 320 MHZ #### SDRAM bus set to 16 bit SDRAM size =16 Mbytes Please choose the operation: 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Entr boot command line interface. 6: To emergency. 9: Load Boot Loader code then write to Flash via TFTP. You choosed 3 0 3: System Boot system code via Flash. ## Booting image at bf050000 ... Image Name: Linux Kernel Image Created: 2009-06-13 13:43:27 UTC System Control Status = 0x20400000 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 3465152 Bytes = 3.3 MB Load Address: 80000000 Entry Point: 8024f000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 8024f000) ... ## Giving linux memsize in MB, 16 Starting kernel ... LINUX started... THIS IS ASIC Linux version 2.6.21 (root@Linux-Perish) (gcc version 3.4.2) #1 Sat Jun 13 21:41:57 CST 2009 The CPU feqenuce set to 320 MHz CPU revision is: 0001964c Determined physical RAM map: memory: 01000000 @ 00000000 (usable) Built 1 zonelists. Total pages: 4064 Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB, 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 cause = 10800060, status = 1100ff00 PID hash table entries: 64 (order: 6, 256 bytes) calculating r4koff... 00138800(1280000) CPU frequency 320.00 MHz Using 160.000 MHz high precision timer. Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory: 13676k/16384k available (1988k kernel code, 2708k reserved, 372k data, 108k init, 0k highmem) Mount-cache hash table entries: 512 NET: Registered protocol family 16 Time: MIPS clocksource has been installed. NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) TCP reno registered squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher squashfs: LZMA suppport for slax.org by jro io scheduler noop registered (default) Ralink gpio driver initialized HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096 N_HDLC line discipline registered. Serial: 8250/16550 driver $Revision: 1.3 $ 2 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A loop: loaded (max 8 devices) rdm_major = 254 PPP generic driver version 2.4.2 PPP BSD Compression module registered NET: Registered protocol family 24 ralink flash device: 0x1000000 at 0xbf000000 Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-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. Creating 5 MTD partitions on "Ralink SoC physically mapped flash": 0x00000000-0x00030000 : "Bootloader" 0x00030000-0x00040000 : "Config" 0x00040000-0x00050000 : "Factory" 0x00050000-0x00130000 : "Kernel" 0x00130000-0x00400000 : "RootFS" block2mtd: version $Revision: 1.1.1.1 $ nf_conntrack version 0.5.0 (128 buckets, 1024 max) GRE over IPv4 tunneling driver ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone ClusterIP Version 0.8 loaded successfully TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear All bugs added by David S. Miller GDMA1_MAC_ADRH -- : 0x00000000 GDMA1_MAC_ADRL -- : 0x00000000 Ralink APSoC Ethernet Driver Initilization. v2.00 64 rx/tx descriptors allocated, mtu = 1500! GDMA1_MAC_ADRH -- : 0x00000022 GDMA1_MAC_ADRL -- : 0xcf0fb896 PROC INIT OK! VFS: Mounted root (squashfs filesystem) readonly. Freeing unused kernel memory: 108k freed init started: BusyBox v1.12.1 (2009-06-13 21:26:28 CST) starting pid 72, tty '': '/etc_ro/rcS' Algorithmics/MIPS FPU Emulator v1.5 devpts: called with bogus options mount: mounting none on /proc/bus/usb failed: No such file or directory Welcome to _______ ______ ______ ______ _______ __ __ | ___ || ___ || __ || ___ || __ || \ / | | |___| || |___||| | | || | |_|| | | || \/ | | || ___ || | | || | _ | | | || | | _ || |___||| |__| || |__| || |__| || | |__| |__||______||______||______||______||_/\__/\_| =System Architecture Department= /etc_ro/rcS: line 9: telnetd: not found starting pid 79, tty '/dev/ttyS1': '/bin/sh' BusyBox v1.12.1 (2009-06-13 21:26:28 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. # internet.sh killall: pppd: no process killed Password for 'admin' changed /sbin/internet.sh: line 325: mdev: not found mknod: /dev/sda6: File exists mknod: /dev/sdb6: File exists mknod: /dev/pts/0: Operation not permitted mknod: /dev/pts/1: Operation not permitted mknod: /dev/pts/2: Operation not permitted mknod: /dev/pts/3: Operation not permitted lm: no version for "struct_module" found: kernel tainted. insmod: dwc_otg.ko: module not found insmod: bridge.ko: module not found insmod: mii.ko: module not found insmod: raeth.ko: module not found phy_tx_ring0 = 00f1d000, tx_ring0 = a0f1d000, size: 16 bytes phy_tx_ring1 = 00f1e000, tx_ring1 = a0f1e000, size: 16 bytes phy_tx_ring2 = 00f1f000, tx_ring2 = a0f1f000, size: 16 bytes phy_tx_ring3 = 00f20000, tx_ring3 = a0f20000, size: 16 bytes phy_rx_ring = 0x00000000, rx_ring = 0x00000000 RT305x_ESW: Link Status Changed CDMA_CSG_CFG = 81000000 GDMA1_FWD_CFG = 10000 ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device ifconfig: ioctl 0x8913 failed: No such device rmmod: rt2860v2_ap: No such file or directory rmmod: rt2860v2_sta: No such file or directory Load RT2880 Timer Module(Wdg/Soft) rt2860v2_ap: module license 'unspecified' taints kernel. === pAd = c100d000, size = 495432 === <-- RTMPAllocAdapterBlock, Status=0 rmmod: nf_nat_pptp: No such file or directory rmmod: nf_conntrack_pptp: No such file or directory rmmod: nf_nat_proto_gre: No such file or directory rmmod: nf_conntrack_proto_gre: No such file or directory RX DESC a0eea000 size = 2048 <-- RTMPAllocTxRxRingMemory, Status=0 Key2Str is Invalid key length(0) or Type(0) Key3Str is Invalid key length(0) or Type(0) Key4Str is Invalid key length(0) or Type(0) 1. Phy Mode = 9 2. Phy Mode = 9 3. Phy Mode = 9 MCS Set = ff 00 00 00 01 Main bssid = 00:22:cf:0f:b8:94 <==== rt28xx_init, Status=0 0x1300 = 00064380 insmod: 8021q.ko: module not found eth2.2: Setting MAC address to 00 22 cf 0f b8 95. device eth2 entered promiscuous mode VLAN (eth2.2): Setting underlying device (eth2) to promiscious mode. ifconfig: ioctl 0x8913 failed: No such device device ra0 entered promiscuous mode ##### restore RT3052 to dump switch ##### switch reg write offset=14, value=5555 switch reg write offset=40, value=1001 switch reg write offset=44, value=1001 switch reg write offset=48, value=1001 switch reg write offset=4c, value=1 switch reg write offset=50, value=2001 switch reg write offset=70, value=ffffffff switch reg write offset=98, value=7f7f switch reg write offset=e4, value=0 device wds0 entered promiscuous mode device wds1 entered promiscuous mode device wds2 entered promiscuous mode device wds3 entered promiscuous mode br0: port 6(wds3) entering learning state br0: port 5(wds2) entering learning state br0: port 4(wds1) entering learning state br0: port 3(wds0) entering learning state br0: port 2(eth2) entering learning state br0: port 1(ra0) entering learning state route: ioctl 0x890c failed: No such process br0: port 6(wds3) entering disabled state br0: port 5(wds2) entering disabled state br0: port 4(wds1) entering disabled state br0: port 3(wds0) entering disabled state br0: port 2(eth2) entering disabled state br0: port 1(ra0) entering disabled state br0: port 6(wds3) entering learning state br0: port 5(wds2) entering learning state br0: port 4(wds1) entering learning state br0: port 3(wds0) entering learning state br0: port 2(eth2) entering learning state br0: port 1(ra0) entering learning state route: ioctl 0x890c failed: No such process BusyBox v1.12.1 (2009-06-13 21:26:28 CST) multi-call binary Usage: route [{add|del|delete}] ifconfig: ioctl 0x8914 failed: Cannot assign requested address ifconfig: ioctl 0x8914 failed: Cannot assign requested address presentation_url=http://192.168.1.253 /var/miniupnpd.conf killall: miniupnpd: no process killed Reading configuration from file /var/miniupnpd.conf perm rule added : allow 1024-65535 c0a801fd/ffffff00 1024-65535 perm rule added : deny 0-65535 00000000/00000000 0-65535 Jan 1 00:00:07 miniupnpd[464]: listening on 192.168.1.253:6849 Jan 1 00:00:07 miniupnpd[464]: start miniupnpd ifconfig: ioctl 0x8913 failed: No such device /sbin/lan.sh: line 172: can't create /proc/sys/net/ipv6/conf/all/forwarding: nonexistent directory ra1 no private ioctls. ra2 no private ioctls. ra3 no private ioctls. ra4 no private ioctls. ra5 no private ioctls. ra6 no private ioctls. ra7 no private ioctls. apcli0 no private ioctls. killall rt2860apd 1>/dev/null 2>&1 iptables -F -t filter 1>/dev/null 2>&1 iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1 iptables -F macipport_filter 1>/dev/null 2>&1 iptables -D FORWARD -j web_filter 1>/dev/null 2>&1 iptables -F web_filter 1>/dev/null 2>&1 iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -t filter -N web_filter 1>/dev/null 2>&1 iptables -t filter -N macipport_filter 1>/dev/null 2>&1 iptables -t filter -N true_mac_filter 1>/dev/null 2>&1 iptables -A FORWARD -p UDP --dport 1701 -j DROP iptables -A FORWARD -p UDP --dport 500 -j DROP iptables -A FORWARD -p TCP --dport 1723 -j DROP iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j true_mac_filter 1>/dev/null 2>&1 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1 iptables -t filter -F true_mac_filter iptables -t filter -A true_mac_filter -j ACCEPT The tmpStr is br0 iptables -A OUTPUT -o br0 -p tcp --dport 137:139 -j DROP iptables -A OUTPUT -o br0 -p udp --dport 137:139 -j DROP iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1 iptables -t nat -F port_forward 1>/dev/null 2>&1; iptables -t nat -X port_forward 1>/dev/null 2>&1 iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1 iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ 1>/dev/null 2>&1 iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1 iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1 /sbin/mini.sh External IP = 10.10.10.1 iptables -o ppp0 -I FORWARD 1 -p tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1400:1536 -j TCPMSS --clamp-mss-to-pmtu iptables -o ppp1 -I FORWARD 1 -p tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1400:1536 -j TCPMSS --clamp-mss-to-pmtu ntp.sh time.nist.gov: Unknown host greenap.sh init ddns.sh on route delete 239.255.255.250 1>/dev/null 2>&1 killall wscd 1>/dev/null 2>&1 br0: topology change detected, propagating br0: port 6(wds3) entering forwarding state br0: topology change detected, propagating br0: port 5(wds2) entering forwarding state br0: topology change detected, propagating br0: port 4(wds1) entering forwarding state br0: topology change detected, propagating br0: port 3(wds0) entering forwarding state br0: topology change detected, propagating br0: port 2(eth2) entering forwarding state br0: topology change detected, propagating br0: port 1(ra0) entering forwarding state killall -9 wscd 1>/dev/null 2>&1 iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1 killall -q klogd killall -q syslogd syslogd -C8 1>/dev/null 2>&1 klogd 1>/dev/null 2>&1 killall -q zebra killall -q ripd /bin/qos_run syslogd & Enter udps Commit crc = 36c1dbcb Start Read !!! Current LSW : The status is 1 in the LSW This is AP mode !!!! Current IN Flash Value ::: The opmode in flash is 0 S:: The opmode in flash is AP : 0 Set to FLASH VALUE :: ==> The new_mode is 0 : 0 status is 0 , state_flash is 0 webs: Listening for HTTP requests at address 192.168.1.253 üşış şüÿ /bin/sh: üşşşüÿ: not found # # # ls var tmp sbin mnt lib home etc bin usr sys proc media init etc_ro dev # cd / # df /bin/sh: df: not found # ls var tmp sbin mnt lib home etc bin usr sys proc media init etc_ro dev # cd usr # ls sbin codepages bin # cd sbin # ls udhcpd crond chroot chpasswd brctl # cd .. # cd bin # ls wc test free crontab [ uptime killall expr [[ # cd usr /bin/sh: cd: can't cd to usr # l cd /usr # ls -ls 0 drwxr-xr-x 2 0 0 76 sbin 0 drwxr-xr-x 2 0 0 3 codepages 0 drwxr-xr-x 2 0 0 94 bin # cd bin # ls -la lrwxrwxrwx 1 0 0 17 wc -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 uptime -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 test -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 killall -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 free -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 expr -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 crontab -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 [[ -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 [ -> ../../bin/busybox drwxr-xr-x 5 0 0 52 .. drwxr-xr-x 2 0 0 94 . # cd / # ls -lR ls: illegal option -- R BusyBox v1.12.1 (2009-06-13 21:26:28 CST) multi-call binary Usage: ls [-1AaCdilnsTwxk] [filenames...] # # ls -lR # tree /bin/sh: tree: not found # cd /. \ usr/bin # ls -la lrwxrwxrwx 1 0 0 17 wc -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 uptime -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 test -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 killall -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 free -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 expr -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 crontab -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 [[ -> ../../bin/busybox lrwxrwxrwx 1 0 0 17 [ -> ../../bin/busybox drwxr-xr-x 5 0 0 52 .. drwxr-xr-x 2 0 0 94 . # cd .. # cd /usr/sbin # ls udhcpd crond chroot chpasswd brctl # df /bin/sh: df: not found # mount rootfs on / type rootfs (rw) /dev/root on / type squashfs (ro) proc on /proc type proc (rw) none on /var type ramfs (rw) none on /etc type ramfs (rw) none on /tmp type ramfs (rw) none on /media type ramfs (rw) none on /sys type sysfs (rw) none on /dev/pts type devpts (rw) mdev on /dev type ramfs (rw) devpts on /dev/pts type devpts (rw) # ifconfig br0 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:94 inet addr:192.168.1.253 Bcast:192.168.1.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:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:108 (108.0 B) eth2 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:96 UP BROADCAST RUNNING PROMISC 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) Interrupt:3 eth2.1 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:96 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) eth2.2 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:95 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:0 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:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:876 (876.0 B) TX bytes:876 (876.0 B) ra0 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:94 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2224 (2.1 KiB) TX bytes:0 (0.0 B) Interrupt:4 wds0 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:94 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wds1 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:94 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wds2 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:94 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wds3 Link encap:Ethernet HWaddr 00:22:CF:0F:B8:94 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) # RT305x_ESW: Link Status Changed RT305x_ESW: Link Status Changed RT305x_ESW: Link Status Changed # uname /bin/sh: uname: not found # uname -a /bin/sh: uname: not found # cd /proc # ls -la dr-xr-xr-x 4 0 0 0 714 dr-xr-xr-x 4 0 0 0 661 dr-xr-xr-x 4 0 0 0 658 dr-xr-xr-x 4 0 0 0 464 dr-xr-xr-x 4 0 0 0 253 dr-xr-xr-x 4 0 0 0 79 dr-xr-xr-x 4 0 0 0 77 dr-xr-xr-x 4 0 0 0 76 dr-xr-xr-x 4 0 0 0 52 dr-xr-xr-x 4 0 0 0 34 dr-xr-xr-x 4 0 0 0 33 dr-xr-xr-x 4 0 0 0 32 dr-xr-xr-x 4 0 0 0 31 dr-xr-xr-x 4 0 0 0 20 dr-xr-xr-x 4 0 0 0 5 dr-xr-xr-x 4 0 0 0 4 dr-xr-xr-x 4 0 0 0 3 dr-xr-xr-x 4 0 0 0 2 dr-xr-xr-x 4 0 0 0 1 lrwxrwxrwx 1 0 0 64 self -> 714 -r--r--r-- 1 0 0 0 loadavg -r--r--r-- 1 0 0 0 uptime -r--r--r-- 1 0 0 0 meminfo -r--r--r-- 1 0 0 0 version -r--r--r-- 1 0 0 0 filesystems -r--r--r-- 1 0 0 0 cmdline -r--r--r-- 1 0 0 0 locks -r--r--r-- 1 0 0 0 execdomains lrwxrwxrwx 1 0 0 11 mounts -> self/mounts -r-------- 1 0 0 0 kmsg -r--r--r-- 1 0 0 0 devices -r--r--r-- 1 0 0 0 cpuinfo -r--r--r-- 1 0 0 0 partitions -r--r--r-- 1 0 0 0 stat -r--r--r-- 1 0 0 0 interrupts -rw-r--r-- 1 0 0 0 slabinfo -r--r--r-- 1 0 0 0 buddyinfo -r--r--r-- 1 0 0 0 vmstat -r--r--r-- 1 0 0 0 zoneinfo -r--r--r-- 1 0 0 0 diskstats -r--r--r-- 1 0 0 0 modules dr-xr-xr-x 6 0 0 0 net dr-xr-xr-x 2 0 0 0 sysvipc dr-xr-xr-x 3 0 0 0 fs dr-xr-xr-x 2 0 0 0 driver dr-xr-xr-x 4 0 0 0 tty dr-xr-xr-x 3 0 0 0 bus dr-xr-xr-x 1 0 0 0 sys dr-xr-xr-x 130 0 0 0 irq -r--r--r-- 1 0 0 0 misc -r--r--r-- 1 0 0 0 ioports -r--r--r-- 1 0 0 0 iomem -rw-r--r-- 1 0 0 0 timer_list -r--r--r-- 1 0 0 0 kallsyms -r--r--r-- 1 0 0 0 crypto -rw-r--r-- 1 0 0 0 fast_bridge -r--r--r-- 1 0 0 0 mtd dr-xr-xr-x 2 0 0 0 rt2880 -r--r--r-- 1 0 0 0 LSW drwxr-xr-x 16 0 0 159 .. dr-xr-xr-x 30 0 0 0 . # cat cpuinfo system type : Ralink SoC processor : 0 cpu model : MIPS 24K V4.12 BogoMIPS : 212.99 wait instruction : yes microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes ASEs implemented : mips16 dsp VCED exceptions : not available VCEI exceptions : not available # car dev t devices Character devices: 1 mem 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 10 misc 13 input 90 mtd 108 ppp 128 ptm 136 pts 252 gpio 254 rdm0 Block devices: 7 loop 31 mtdblock # cat vmstat nr_free_pages 771 nr_active 962 nr_inactive 609 nr_anon_pages 165 nr_mapped 195 nr_file_pages 1413 nr_dirty 0 nr_writeback 0 nr_slab_reclaimable 87 nr_slab_unreclaimable 553 nr_page_table_pages 24 nr_unstable 0 nr_bounce 0 nr_vmscan_write 0 pgpgin 1286 pgpgout 0 pswpin 0 pswpout 0 pgalloc_dma 23770 pgalloc_normal 0 pgfree 24541 pgactivate 455 pgdeactivate 0 pgfault 72102 pgmajfault 11 pgrefill_dma 0 pgrefill_normal 0 pgsteal_dma 0 pgsteal_normal 0 pgscan_kswapd_dma 0 pgscan_kswapd_normal 0 pgscan_direct_dma 0 pgscan_direct_normal 0 pginodesteal 0 slabs_scanned 0 kswapd_steal 0 kswapd_inodesteal 0 pageoutrun 0 allocstall 0 pgrotated 0 # ls -la dr-xr-xr-x 4 0 0 0 718 dr-xr-xr-x 4 0 0 0 661 dr-xr-xr-x 4 0 0 0 658 dr-xr-xr-x 4 0 0 0 464 dr-xr-xr-x 4 0 0 0 253 dr-xr-xr-x 4 0 0 0 79 dr-xr-xr-x 4 0 0 0 77 dr-xr-xr-x 4 0 0 0 76 dr-xr-xr-x 4 0 0 0 52 dr-xr-xr-x 4 0 0 0 34 dr-xr-xr-x 4 0 0 0 33 dr-xr-xr-x 4 0 0 0 32 dr-xr-xr-x 4 0 0 0 31 dr-xr-xr-x 4 0 0 0 20 dr-xr-xr-x 4 0 0 0 5 dr-xr-xr-x 4 0 0 0 4 dr-xr-xr-x 4 0 0 0 3 dr-xr-xr-x 4 0 0 0 2 dr-xr-xr-x 4 0 0 0 1 lrwxrwxrwx 1 0 0 64 self -> 718 -r--r--r-- 1 0 0 0 loadavg -r--r--r-- 1 0 0 0 uptime -r--r--r-- 1 0 0 0 meminfo -r--r--r-- 1 0 0 0 version -r--r--r-- 1 0 0 0 filesystems -r--r--r-- 1 0 0 0 cmdline -r--r--r-- 1 0 0 0 locks -r--r--r-- 1 0 0 0 execdomains lrwxrwxrwx 1 0 0 11 mounts -> self/mounts -r-------- 1 0 0 0 kmsg -r--r--r-- 1 0 0 0 devices -r--r--r-- 1 0 0 0 cpuinfo -r--r--r-- 1 0 0 0 partitions -r--r--r-- 1 0 0 0 stat -r--r--r-- 1 0 0 0 interrupts -rw-r--r-- 1 0 0 0 slabinfo -r--r--r-- 1 0 0 0 buddyinfo -r--r--r-- 1 0 0 0 vmstat -r--r--r-- 1 0 0 0 zoneinfo -r--r--r-- 1 0 0 0 diskstats -r--r--r-- 1 0 0 0 modules dr-xr-xr-x 6 0 0 0 net dr-xr-xr-x 2 0 0 0 sysvipc dr-xr-xr-x 3 0 0 0 fs dr-xr-xr-x 2 0 0 0 driver dr-xr-xr-x 4 0 0 0 tty dr-xr-xr-x 3 0 0 0 bus dr-xr-xr-x 1 0 0 0 sys dr-xr-xr-x 130 0 0 0 irq -r--r--r-- 1 0 0 0 misc -r--r--r-- 1 0 0 0 ioports -r--r--r-- 1 0 0 0 iomem -rw-r--r-- 1 0 0 0 timer_list -r--r--r-- 1 0 0 0 kallsyms -r--r--r-- 1 0 0 0 crypto -rw-r--r-- 1 0 0 0 fast_bridge -r--r--r-- 1 0 0 0 mtd dr-xr-xr-x 2 0 0 0 rt2880 -r--r--r-- 1 0 0 0 LSW drwxr-xr-x 16 0 0 159 .. dr-xr-xr-x 30 0 0 0 . # cat mounts rootfs / rootfs rw 0 0 /dev/root / squashfs ro 0 0 proc /proc proc rw 0 0 none /var ramfs rw 0 0 none /etc ramfs rw 0 0 none /tmp ramfs rw 0 0 none /media ramfs rw 0 0 none /sys sysfs rw 0 0 none /dev/pts devpts rw 0 0 mdev /dev ramfs rw 0 0 devpts /dev/pts devpts rw 0 0 # cat modules rt2860v2_ap 1063088 5 - Live 0xc1168000 (PF) rt_timer 2672 1 rt2860v2_ap, Live 0xc1009000 (F) lm 2080 0 [permanent], Live 0xc100b000 (F) # cat driver cat: read error: Is a directory # cat meminfo MemTotal: 13784 kB MemFree: 3096 kB Buffers: 1340 kB Cached: 4312 kB SwapCached: 0 kB Active: 2436 kB Inactive: 3848 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 660 kB Mapped: 780 kB Slab: 2544 kB SReclaimable: 348 kB SUnreclaim: 2196 kB PageTables: 96 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 6892 kB Committed_AS: 1680 kB VmallocTotal: 1048404 kB VmallocUsed: 17980 kB VmallocChunk: 1029536 kB # ls -la dr-xr-xr-x 4 0 0 0 723 dr-xr-xr-x 4 0 0 0 661 dr-xr-xr-x 4 0 0 0 658 dr-xr-xr-x 4 0 0 0 464 dr-xr-xr-x 4 0 0 0 253 dr-xr-xr-x 4 0 0 0 79 dr-xr-xr-x 4 0 0 0 77 dr-xr-xr-x 4 0 0 0 76 dr-xr-xr-x 4 0 0 0 52 dr-xr-xr-x 4 0 0 0 34 dr-xr-xr-x 4 0 0 0 33 dr-xr-xr-x 4 0 0 0 32 dr-xr-xr-x 4 0 0 0 31 dr-xr-xr-x 4 0 0 0 20 dr-xr-xr-x 4 0 0 0 5 dr-xr-xr-x 4 0 0 0 4 dr-xr-xr-x 4 0 0 0 3 dr-xr-xr-x 4 0 0 0 2 dr-xr-xr-x 4 0 0 0 1 lrwxrwxrwx 1 0 0 64 self -> 723 -r--r--r-- 1 0 0 0 loadavg -r--r--r-- 1 0 0 0 uptime -r--r--r-- 1 0 0 0 meminfo -r--r--r-- 1 0 0 0 version -r--r--r-- 1 0 0 0 filesystems -r--r--r-- 1 0 0 0 cmdline -r--r--r-- 1 0 0 0 locks -r--r--r-- 1 0 0 0 execdomains lrwxrwxrwx 1 0 0 11 mounts -> self/mounts -r-------- 1 0 0 0 kmsg -r--r--r-- 1 0 0 0 devices -r--r--r-- 1 0 0 0 cpuinfo -r--r--r-- 1 0 0 0 partitions -r--r--r-- 1 0 0 0 stat -r--r--r-- 1 0 0 0 interrupts -rw-r--r-- 1 0 0 0 slabinfo -r--r--r-- 1 0 0 0 buddyinfo -r--r--r-- 1 0 0 0 vmstat -r--r--r-- 1 0 0 0 zoneinfo -r--r--r-- 1 0 0 0 diskstats -r--r--r-- 1 0 0 0 modules dr-xr-xr-x 6 0 0 0 net dr-xr-xr-x 2 0 0 0 sysvipc dr-xr-xr-x 3 0 0 0 fs dr-xr-xr-x 2 0 0 0 driver dr-xr-xr-x 4 0 0 0 tty dr-xr-xr-x 3 0 0 0 bus dr-xr-xr-x 1 0 0 0 sys dr-xr-xr-x 130 0 0 0 irq -r--r--r-- 1 0 0 0 misc -r--r--r-- 1 0 0 0 ioports -r--r--r-- 1 0 0 0 iomem -rw-r--r-- 1 0 0 0 timer_list -r--r--r-- 1 0 0 0 kallsyms -r--r--r-- 1 0 0 0 crypto -rw-r--r-- 1 0 0 0 fast_bridge -r--r--r-- 1 0 0 0 mtd dr-xr-xr-x 2 0 0 0 rt2880 -r--r--r-- 1 0 0 0 LSW drwxr-xr-x 16 0 0 159 .. dr-xr-xr-x 30 0 0 0 . # cat ioports b0000500-b000051f : serial b0000c00-b0000c1f : serial # cat cmdline console=ttyS1,57600n8 root=/dev/mtdblock4 # cat stat cpu 298 0 841 62325 0 2 54 0 cpu0 298 0 841 62325 0 2 54 0 intr 176167 0 0 0 2528 12479 158804 0 0 0 0 0 0 2352 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ctxt 5481 btime 946684800 processes 726 procs_running 2 procs_blocked 0 # cat interrupts CPU0 3: 2528 Surfboard eth2 4: 12696 Surfboard ra0 5: 161560 Surfboard timer 6: 0 Surfboard ralink_gpio 12: 2409 Surfboard serial 17: 4 Surfboard Ralink_ESW 33: 0 Surfboard rt2880_timer0 ERR: 0 # ca cd fs # ls nfsd # netstat -a /bin/sh: netstat: not found # cd / # ls -la drwxr-xr-x 5 0 0 0 var drwxr-xr-x 5 0 0 52 usr drwxr-xr-x 2 0 0 0 tmp drwxr-xr-x 10 0 0 0 sys drwxr-xr-x 2 0 0 705 sbin dr-xr-xr-x 30 0 0 0 proc drwxr-xr-x 2 0 0 3 mnt drwxr-xr-x 2 0 0 0 media drwxr-xr-x 4 0 0 704 lib lrwxrwxrwx 1 0 0 11 init -> bin/busybox drwxr-xr-x 2 0 0 3 home drwxr-xr-x 9 0 0 207 etc_ro drwxr-xr-x 3 0 0 0 etc drwxr-xr-x 3 0 0 0 dev drwxr-xr-x 2 0 0 725 bin drwxr-xr-x 16 0 0 159 .. drwxr-xr-x 16 0 0 159 . # cd home # ls -la drwxr-xr-x 16 0 0 159 .. drwxr-xr-x 2 0 0 3 . # cd .. # cd dev # ls -la drwxr-xr-x 2 0 0 0 pts crw-r--r-- 1 0 0 217, 0 spiS0 crw-r--r-- 1 0 0 218, 0 i2cM0 crw-r--r-- 1 0 0 254, 0 rdm0 crw-r--r-- 1 0 0 200, 0 flash0 crw-r--r-- 1 0 0 210, 0 swnat0 crw-r--r-- 1 0 0 220, 0 hwnat0 crw-r--r-- 1 0 0 230, 0 acl0 crw-r--r-- 1 0 0 240, 0 ac0 crw-r--r-- 1 0 0 250, 0 mtr0 crw-r--r-- 1 0 0 252, 0 gpio crw-r--r-- 1 0 0 233, 0 PCM crw-r--r-- 1 0 0 234, 0 I2S brw-r--r-- 1 0 0 1, 1 ram brw-r--r-- 1 0 0 1, 0 ram0 brw-r--r-- 1 0 0 1, 1 ram1 brw-r--r-- 1 0 0 1, 2 ram2 brw-r--r-- 1 0 0 1, 3 ram3 crw-r--r-- 1 0 0 1, 1 mem crw-r--r-- 1 0 0 1, 2 kmem crw-r--r-- 1 0 0 1, 3 null crw-r--r-- 1 0 0 1, 8 random crw-r--r-- 1 0 0 1, 9 urandom crw-r--r-- 1 0 0 2, 0 ptyp0 crw-r--r-- 1 0 0 2, 1 ptyp1 crw-r--r-- 1 0 0 3, 0 ttyp0 crw-r--r-- 1 0 0 3, 1 ttyp1 crw-r--r-- 1 0 0 5, 2 ptmx crw-r--r-- 1 0 0 4, 64 ttyS0 crw-r--r-- 1 0 0 4, 65 ttyS1 crw-r--r-- 1 0 0 5, 1 console brw-r--r-- 1 0 0 8, 0 sda brw-r--r-- 1 0 0 8, 1 sda1 brw-r--r-- 1 0 0 8, 2 sda2 brw-r--r-- 1 0 0 8, 3 sda3 brw-r--r-- 1 0 0 8, 4 sda4 brw-r--r-- 1 0 0 8, 5 sda5 brw-r--r-- 1 0 0 8, 6 sda6 brw-r--r-- 1 0 0 8, 16 sdb brw-r--r-- 1 0 0 8, 17 sdb1 brw-r--r-- 1 0 0 8, 18 sdb2 brw-r--r-- 1 0 0 8, 19 sdb3 brw-r--r-- 1 0 0 8, 20 sdb4 brw-r--r-- 1 0 0 8, 21 sdb5 brw-r--r-- 1 0 0 8, 22 sdb6 brw-r--r-- 1 0 0 31, 0 mtdblock0 brw-r--r-- 1 0 0 31, 1 mtdblock1 brw-r--r-- 1 0 0 31, 2 mtdblock2 brw-r--r-- 1 0 0 31, 3 mtdblock3 brw-r--r-- 1 0 0 31, 4 mtdblock4 crw-r--r-- 1 0 0 90, 0 mtd0 crw-r--r-- 1 0 0 90, 1 mtd0ro crw-r--r-- 1 0 0 90, 2 mtd1 crw-r--r-- 1 0 0 90, 3 mtd1ro crw-r--r-- 1 0 0 90, 4 mtd2 crw-r--r-- 1 0 0 90, 5 mtd2ro crw-r--r-- 1 0 0 90, 6 mtd3 crw-r--r-- 1 0 0 90, 7 mtd3ro crw-r--r-- 1 0 0 90, 8 mtd4 crw-r--r-- 1 0 0 90, 9 mtd4ro crw-r--r-- 1 0 0 108, 0 ppp crw-r--r-- 1 0 0 188, 0 ttyUSB0 crw-r--r-- 1 0 0 188, 1 ttyUSB1 crw-r--r-- 1 0 0 188, 2 ttyUSB2 crw-r--r-- 1 0 0 188, 3 ttyUSB3 srw-rw-rw- 1 0 0 0 log drwxr-xr-x 16 0 0 159 .. drwxr-xr-x 3 0 0 0 . # cd .. # ls -la drwxr-xr-x 5 0 0 0 var drwxr-xr-x 5 0 0 52 usr drwxr-xr-x 2 0 0 0 tmp drwxr-xr-x 10 0 0 0 sys drwxr-xr-x 2 0 0 705 sbin dr-xr-xr-x 30 0 0 0 proc drwxr-xr-x 2 0 0 3 mnt drwxr-xr-x 2 0 0 0 media drwxr-xr-x 4 0 0 704 lib lrwxrwxrwx 1 0 0 11 init -> bin/busybox drwxr-xr-x 2 0 0 3 home drwxr-xr-x 9 0 0 207 etc_ro drwxr-xr-x 3 0 0 0 etc drwxr-xr-x 3 0 0 0 dev drwxr-xr-x 2 0 0 725 bin drwxr-xr-x 16 0 0 159 .. drwxr-xr-x 16 0 0 159 . # cd sbin # ls -la -rwxr-xr-x 1 0 0 1839 wifi_unload.sh -rwxr-xr-x 1 0 0 4338 wan.sh -rwxr-xr-x 1 0 0 1031 vpn-passthru.sh lrwxrwxrwx 1 0 0 14 vconfig -> ../bin/busybox -rwxr-xr-x 1 0 0 1119 udhcpc.sh lrwxrwxrwx 1 0 0 14 udhcpc -> ../bin/busybox lrwxrwxrwx 1 0 0 14 syslogd -> ../bin/busybox lrwxrwxrwx 1 0 0 14 route -> ../bin/busybox lrwxrwxrwx 1 0 0 14 rmmod -> ../bin/busybox lrwxrwxrwx 1 0 0 14 reboot -> ../bin/busybox -rwxr-xr-x 1 0 0 18696 radvdump -rwxr-xr-x 1 0 0 67796 radvd -rwxr-xr-x 1 0 0 1280 pptp.sh -rwxr-xr-x 1 0 0 2150 pppoe.sh -rwxr-xr-x 1 0 0 36108 pppoe-relay lrwxrwxrwx 1 0 0 14 poweroff -> ../bin/busybox -rwxr-xr-x 1 0 0 669 ntp.sh -rwxr-xr-x 1 0 0 898 nat.sh lrwxrwxrwx 1 0 0 14 modprobe -> ../bin/busybox -rwxr-xr-x 1 0 0 678 mini.sh lrwxrwxrwx 1 0 0 14 makedevs -> ../bin/busybox lrwxrwxrwx 1 0 0 14 lsmod -> ../bin/busybox -rwxr-xr-x 1 0 0 5307 lan.sh -rwxr-xr-x 1 0 0 104840 l2tpd -rwxr-xr-x 1 0 0 1217 l2tp.sh -rwxr-xr-x 1 0 0 5232 l2tp-control -rwxr-xr-x 1 0 0 18670 internet.sh lrwxrwxrwx 1 0 0 14 insmod -> ../bin/busybox lrwxrwxrwx 1 0 0 14 init -> ../bin/busybox lrwxrwxrwx 1 0 0 14 ifconfig -> ../bin/busybox lrwxrwxrwx 1 0 0 14 halt -> ../bin/busybox -rwxr-xr-x 1 0 0 5461 greenap.sh -rwxr-xr-x 1 0 0 3327 gprs.sh -rwxr-xr-x 1 0 0 2007 global.sh -rwxr-xr-x 1 0 0 1914 firewall.sh lrwxrwxrwx 1 0 0 14 fdisk -> ../bin/busybox -rwxr-xr-x 1 0 0 1191 ddns.sh -rwxr-xr-x 1 0 0 6319 config.sh -rwxr-xr-x 1 0 0 5547 config-vlan.sh -rwxr-xr-x 1 0 0 4440 config-udhcpd.sh -rwxr-xr-x 1 0 0 1224 config-pptp.sh -rwxr-xr-x 1 0 0 445 config-pppoe.sh -rwxr-xr-x 1 0 0 1629 config-miniupnp.sh -rwxr-xr-x 1 0 0 1247 config-l2tp.sh -rwxr-xr-x 1 0 0 353 config-igmpproxy.sh -rwxr-xr-x 1 0 0 4266 config-gprs.sh -rwxr-xr-x 1 0 0 502 config-dns.sh -rwxr-xr-x 1 0 0 335 chpasswd.sh -rwxr-xr-x 1 0 0 665 automount.sh drwxr-xr-x 16 0 0 159 .. drwxr-xr-x 2 0 0 705 . # env /bin/sh: env: not found # set HOME='/' IFS=' ' OLDPWD='/' PATH='/sbin:/usr/sbin:/bin:/usr/bin' PPID='1' PS1='# ' PS2='> ' PS4='+ ' PWD='/sbin' SHELL='/bin/sh' TERM='vt102' USER='root' _='env' #