U-Boot 1.1.4.svn5120 (Jan 12 2018 - 13:20:07) cus531mp3 - Honey Bee 2.0DRAM: sri Honey Bee 2.0 ath_ddr_initial_config(195): (16bit) ddr2 init ath_sys_frequency: cpu 650 ddr 597 ahb 216 tap = 0x00000003 Tap (low, high) = (0x8, 0x21) Tap values = (0x14, 0x14, 0x14, 0x14) 64 MB Top of RAM usable for U-Boot at: 84000000 Reserving 222k for U-Boot at: 83fc8000 Reserving 192k for malloc() at: 83f98000 Reserving 44 Bytes for Board Info at: 83f97fd4 Reserving 36 Bytes for Global Data at: 83f97fb0 Reserving 128k for boot params() at: 83f77fb0 Stack Pointer at: 83f77f98 Now running in RAM - U-Boot at: 83fc8000 Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x16 flash size 0MB, sector count = 8 Flash: 512 kB Power up PLL with outdiv = 0 then switch to 3 *** Warning *** : PCIe WLAN Module not found !!! In: serial Out: serial Err: serial Net: ath_gmac_enet_initialize... No valid address in Flash. Using fixed address No valid address in Flash. Using fixed address ath_gmac_enet_initialize: reset mask:c02200 Honey Bee ---->S27 PHY* S27 reg init : cfg1 0x800c0000 cfg2 0x7114 eth0: 00:03:7f:09:0b:ad athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000 athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10 eth0 up Honey Bee ----> MAC 1 S27 PHY * S27 reg init ATHRS27: resetting s27 ATHRS27: s27 reset done : cfg1 0x800c0000 cfg2 0x7214 eth1: 00:03:7f:09:0b:ad athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000 athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10 athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000 athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10 athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000 athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10 athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000 athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10 eth1 up eth0, eth1 Qualcomm Atheros SPI NAND Driver, Version 0.1 (c) 2014 Qualcomm Atheros Inc. ====== NAND Parameters ====== sc = 0x83ff8b20 page = 0x800 block = 0x20000 Setting 0x181162c0 to 0x2851a100 Hit any key to stop autoboot: 0 Loading from device 0: ath-spi-nand (offset 0x2200000) Image Name: MIPS OpenWrt Linux-3.18.29 Created: 2018-05-02 9:39:12 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1476171 Bytes = 1.4 MB Load Address: 80060000 Entry Point: 80060000 ## Booting image at 81000000 ... Image Name: MIPS OpenWrt Linux-3.18.29 Created: 2018-05-02 9:39:12 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1476171 Bytes = 1.4 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum at 0x81000040 ...OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80060000) ... ## Giving linux memsize in bytes, 67108864 Starting kernel ... [ 0.000000] Linux version 3.18.29 (yangcanghua@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r6273) ) #50 Wed May 2 17:38:35 CST 2018 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) [ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x03ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x03ffffff] [ 0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: ubi.mtd=8 ubootsvn=5120 board=CUS531MP3-NAND console=ttyS0,115200 ubi.mtd=overlay rootfs=/dev/mtdblock:rootfs rootfstype=squashfs noinitrd init=/sbin/init bootslot=1 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(u-boot-env-bak),64k(reserved),64k(art);spi0.1:2m(kernel-0),32m(root-0),2m(kernel-1)ro,32m(root-1),60m(overlay),34m@0x2200000(firmware1) production=0000 hwversion=V2.0 app_switch=default mem=64M rootfstype=squashfs,jffs2 noinitrd [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 59916K/65536K available (3395K kernel code, 156K rwdata, 672K rodata, 184K init, 194K bss, 5620K reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Clocks: CPU:650.000MHz, DDR:597.241MHz, AHB:216.666MHz, Ref:25.000MHz [ 0.000000] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688) [ 0.060000] pid_max: default: 32768 minimum: 301 [ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.070000] Performance counters: mips/24K PMU enabled, 2 32-bit counters available to each CPU, irq 13 [ 0.080000] NET: Registered protocol family 16 [ 0.090000] MIPS: machine is Qualcomm Atheros CUS531 MP3 nand reference board [ 0.090000] ar724x-pci ar724x-pci.0: PCIe link is down [ 0.100000] registering PCI controller with io_map_base unset [ 0.110000] ar71xx: invalid MDIO id 1 [ 0.550000] i2c-gpio i2c-gpio.0: using pins 17 (SDA) and 16 (SCL) [ 0.560000] PCI host bridge to bus 0000:00 [ 0.560000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff] [ 0.570000] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.570000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.580000] Bluetooth: Core ver 2.19 [ 0.580000] NET: Registered protocol family 31 [ 0.580000] Bluetooth: HCI device and connection manager initialized [ 0.590000] Bluetooth: HCI socket layer initialized [ 0.590000] Bluetooth: L2CAP socket layer initialized [ 0.600000] Bluetooth: SCO socket layer initialized [ 0.600000] Switched to clocksource MIPS [ 0.610000] NET: Registered protocol family 2 [ 0.610000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.610000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.620000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.630000] TCP: reno registered [ 0.630000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.640000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.640000] NET: Registered protocol family 1 [ 0.650000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.660000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.670000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.680000] msgmni has been set to 117 [ 0.690000] io scheduler noop registered [ 0.690000] io scheduler deadline registered (default) [ 0.700000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.700000] console [ttyS0] disabled [ 0.730000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A [ 0.740000] console [ttyS0] enabled [ 0.740000] console [ttyS0] enabled [ 0.740000] bootconsole [early0] disabled [ 0.740000] bootconsole [early0] disabled [ 0.750000] m25p80 spi0.0: found mx25l3205d, expected m25p80 [ 0.760000] m25p80 spi0.0: mx25l3205d (4096 Kbytes) [ 0.760000] 5 cmdlinepart partitions found on MTD device spi0.0 [ 0.770000] Creating 5 MTD partitions on "spi0.0": [ 0.780000] 0x000000000000-0x000000040000 : "u-boot" [ 0.780000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.790000] 0x000000050000-0x000000060000 : "u-boot-env-bak" [ 0.790000] 0x000000060000-0x000000070000 : "reserved" [ 0.800000] 0x000000070000-0x000000080000 : "art" [ 0.810000] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0x12 [ 0.810000] nand: Macronix MX35LF1G4EAB 1G 3.3V 8-bit [ 0.820000] nand: 128MiB, SLC, page size: 2048, OOB size: 64 [ 0.830000] nand: WARNING: spi0.1: the ECC used on your system is too weak compared to the one required by the NAND chip [ 0.840000] Scanning device for bad blocks [ 0.890000] Bad eraseblock 735 at 0x000005be0000 [ 0.910000] 6 cmdlinepart partitions found on MTD device spi0.1 [ 0.910000] Creating 6 MTD partitions on "spi0.1": [ 0.920000] 0x000000000000-0x000000200000 : "kernel-0" [ 0.930000] 0x000000200000-0x000002200000 : "root-0" [ 0.930000] 0x000002200000-0x000002400000 : "kernel-1" [ 0.940000] 0x000002400000-0x000004400000 : "root-1" [ 0.940000] 0x000004400000-0x000008000000 : "overlay" [ 0.950000] 0x000002200000-0x000004400000 : "firmware1" [ 0.990000] libphy: ag71xx_mdio: probed [ 1.580000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY] [ 1.590000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII [ 2.180000] ag71xx-mdio.1: Found an AR934X built-in switch [ 2.220000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII [ 2.230000] rtc-pcf8563 0-0051: chip found, driver version 0.4.3 [ 2.240000] rtc (null): invalid alarm value: 2021-4-13 34:22:0 [ 2.240000] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0 [ 2.250000] Bluetooth: HCI UART driver ver 2.2 [ 2.260000] Bluetooth: HCI H4 protocol initialized [ 2.260000] Bluetooth: HCI BCSP protocol initialized [ 2.270000] Bluetooth: HCIATH3K protocol initialized [ 2.270000] TCP: cubic registered [ 2.280000] NET: Registered protocol family 10 [ 2.280000] NET: Registered protocol family 17 [ 2.290000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 2.300000] 8021q: 802.1Q VLAN Support v1.8 [ 2.310000] UBI: attaching mtd8 to ubi0 [ 2.800000] UBI: scanning is finished [ 2.830000] UBI: attached mtd8 (name "root-1", size 32 MiB) to ubi0 [ 2.840000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 2.840000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 2.850000] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 2.860000] UBI: good PEBs: 256, bad PEBs: 0, corrupted PEBs: 0 [ 2.860000] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128 [ 2.870000] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 29864118 [ 2.880000] UBI: available PEBs: 0, total reserved PEBs: 256, PEBs reserved for bad PEB handling: 20 [ 2.890000] UBI: background thread "ubi_bgt0d" started, PID 332 [ 2.900000] mtd: device 11 (rootfs) set to be root filesystem [ 2.900000] UBI: attaching mtd9 to ubi1 [ 3.820000] UBI: scanning is finished [ 3.850000] UBI: attached mtd9 (name "overlay", size 60 MiB) to ubi1 [ 3.860000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 3.860000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 3.870000] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 3.880000] UBI: good PEBs: 479, bad PEBs: 1, corrupted PEBs: 0 [ 3.890000] UBI: user volume: 0, internal volumes: 1, max. volumes count: 128 [ 3.890000] UBI: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 3988775088 [ 3.900000] UBI: available PEBs: 456, total reserved PEBs: 23, PEBs reserved for bad PEB handling: 19 [ 3.910000] rtc-pcf8563 0-0051: setting system clock to 2021-03-31 17:47:17 UTC (1617212837) [ 3.920000] UBI: background thread "ubi_bgt1d" started, PID 350 [ 3.940000] VFS: Mounted root (squashfs filesystem) readonly on device 31:11. [ 3.940000] Freeing unused kernel memory: 184K (80482000 - 804b0000) [ 4.810000] init: Console is alive [ 4.810000] init: - watchdog - [ 6.410000] usbcore: registered new interface driver usbfs [ 6.410000] usbcore: registered new interface driver hub [ 6.420000] usbcore: registered new device driver usb [ 6.430000] Button Hotplug driver version 0.4.1 [ 6.440000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.450000] ehci-platform: EHCI generic platform driver [ 6.450000] ehci-platform ehci-platform: EHCI Host Controller [ 6.460000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 [ 6.470000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 [ 6.500000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 [ 6.500000] hub 1-0:1.0: USB hub found [ 6.510000] hub 1-0:1.0: 1 port detected [ 6.510000] uhci_hcd: USB Universal Host Controller Interface driver [ 6.830000] usb 1-1: new high-speed USB device number 2 using ehci-platform [ 6.860000] init: - preinit - [ 7.260000] hub 1-1:1.0: USB hub found [ 7.270000] hub 1-1:1.0: 4 ports detected [ 7.720000] usb 1-1.2: new full-speed USB device number 3 using ehci-platform [ 7.730000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 7.770000] random: mktemp urandom read with 13 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 7.910000] usb 1-1.4: new full-speed USB device number 4 using ehci-platform [ 8.000000] usb 1-1.4: device descriptor read/64, error -32 [ 8.190000] usb 1-1.4: device descriptor read/64, error -32 [ 8.380000] usb 1-1.4: new full-speed USB device number 5 using ehci-platform [ 8.470000] usb 1-1.4: device descriptor read/64, error -32 [ 8.660000] usb 1-1.4: device descriptor read/64, error -32 [ 8.850000] usb 1-1.4: new full-speed USB device number 6 using ehci-platform [ 9.280000] usb 1-1.4: device not accepting address 6, error -32 [ 9.360000] usb 1-1.4: new full-speed USB device number 7 using ehci-platform [ 9.790000] usb 1-1.4: device not accepting address 7, error -32 [ 9.790000] usb 1-1-port4: unable to enumerate USB device Before mount_root [ 10.950000] mount_root: loading kmods from internal overlay [ 11.380000] block: attempting to load /etc/config/fstab [ 11.380000] block: unable to load configuration (fstab: Entry not found) [ 11.390000] block: no usable configuration [ 11.400000] jffs2: write-buffering enabled buffer (2048) erasesize (126976) [ 11.530000] jffs2: notice: (416) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 11.910000] block: attempting to load /etc/config/fstab [ 11.910000] block: unable to load configuration (fstab: Entry not found) [ 11.920000] block: no usable configuration [ 11.930000] mount_root: switching to jffs2 overlay After mount_root [ 11.990000] procd: - early - [ 11.990000] procd: - watchdog - [ 12.760000] procd: - ubus - [ 13.780000] procd: - init - Please press Enter to activate this console. [ 14.370000] jffs2: notice: (420) check_node_data: wrong data CRC in data node at 0x006ade94: read 0x3bd045b9, calculated 0x446b1e34. [ 15.240000] NET: Registered protocol family 8 [ 15.240000] NET: Registered protocol family 20 [ 15.280000] l2tp_core: L2TP core driver, V2.0 [ 15.290000] l2tp_netlink: L2TP netlink interface [ 15.290000] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3) [ 15.300000] l2tp_ip: L2TP IP encapsulation support (L2TPv3) [ 15.310000] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3) [ 15.320000] gre: GRE over IPv4 demultiplexor driver [ 15.330000] ip_gre: GRE over IPv4 tunneling driver [ 15.350000] PPP generic driver version 2.4.2 [ 15.380000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 15.410000] i2c /dev entries driver [ 15.430000] hidraw: raw HID events driver (C) Jiri Kosina [ 15.450000] u32 classifier [ 15.450000] input device check on [ 15.450000] Actions configured [ 15.460000] Mirror/redirect action on [ 15.470000] nf_conntrack version 0.5.0 (939 buckets, 3756 max) [ 15.490000] Loading modules backported from Linux version v3.18-116968-ga5cea28c4c2f [ 15.500000] Backport generated by backports.git backports-20160216-0-ge3c56e41 [ 15.700000] ################################################### [ 15.700000] BTCOEX:Disabled [ 15.700000] priority_time:2 [ 15.700000] first_slot_time:18 [ 15.700000] wl_active_time:0 [ 15.700000] wl_qc_time:0 [ 15.700000] time_extend:10 [ 15.700000] ack_cts:0 [ 15.700000] btcoex_period:45 [ 15.700000] btcoex_duty_cycle:40 [ 15.730000] ################################################### [ 15.750000] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47 [ 15.780000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 15.820000] nf_conntrack_rtsp v0.6.21 loading [ 15.860000] nf_nat_rtsp v0.6.21 loading [ 15.880000] PPP MPPE Compression module registered [ 15.890000] NET: Registered protocol family 24 [ 15.900000] PPTP driver version 0.8.5 [ 15.920000] usbcore: registered new interface driver usbserial [ 15.930000] usbcore: registered new interface driver usbserial_generic [ 15.930000] usbserial: USB Serial support registered for generic [ 16.000000] xt_time: kernel timezone is -0000 [ 16.010000] l2tp_ppp: PPPoL2TP kernel driver, V2.0 [ 16.040000] usbcore: registered new interface driver pl2303 [ 16.050000] usbserial: USB Serial support registered for pl2303 [ 16.060000] pl2303 1-1.2:1.0: pl2303 converter detected [ 16.060000] usb 1-1.2: pl2303 converter now attached to ttyUSB0 [ 33.540000] device eth1 entered promiscuous mode [ 33.560000] br-lan: port 1(eth1) entered forwarding state [ 33.570000] br-lan: port 1(eth1) entered forwarding state [ 33.630000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 34.480000] br-lan: port 1(eth1) entered disabled state [ 36.760000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 39.090000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 47.640000] random: nonblocking pool is initialized [ 48.960000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 50.380000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 427.450000] eth0: link up (100Mbps/Full duplex) [ 427.450000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready BusyBox v1.23.2 (2021-09-13 20:40:24 UTC) built-in shell (ash) ,9&G3 HHHHHXSXAHHHH5 HHH: GHH; HH5 HHHHHHH& HHH XHr HHHA ,HHHH HH HH &HH . . . HG HH HHHHHHHG AHHHHHHH HH HHHH 3HHHHHHH HHhHHHHHHH HH HrsHH HG HHH& HHH HHA 5HHS HHHH3 HH& HHH HHHr rHH HH HHA sHH sHH2 HH; SHH HH HH HHA HH& HH. HHS HHS HH HH ;HH HH HH HH HHHHHHHHHHHH HH HHHHHHHHHHHHX HH, HH2 HH HH ,H3 HH HH HH HH HHX HH, HH2 HH HH &H: HHH HHi 9HH G HH HH i: HH, HH2 HH HH HH HHAHHHHHHHH HHHHHHHHH HH HHHHHHHHH9 HH, HH2 HH GHHHHHHHH HH hHG; 5HHA; sr ;AHH5 ,i .i ii iX5; HH HH --------------------------------------------------------------- Preview version 1.0.3X Perenio 2018 © ... (Gateway PEACG01 ) --------------------------------------------------------------- root@OpenWrt:/# sockstat /bin/ash: sockstat: not found root@OpenWrt:/# net netifd netmsg netstat root@OpenWrt:/# net netifd netmsg netstat root@OpenWrt:/# netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost:44987 localhost:1883 ESTABLISHED tcp 0 0 localhost:1883 localhost:44986 ESTABLISHED tcp 0 0 localhost:44986 localhost:1883 ESTABLISHED tcp 0 0 localhost:1883 localhost:44987 ESTABLISHED udp 0 0 172.16.0.143:ntp 107-194-210-155.lightspeed.lsvlky.sbcglobal.net:ntp ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 9 [ ] DGRAM 1939 /dev/log unix 2 [ ] DGRAM 4821 /var/run/hostapd/wlan0 unix 2 [ ] DGRAM 7580 unix 2 [ ] DGRAM 5759 unix 3 [ ] STREAM CONNECTED 1934 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 1933 unix 3 [ ] STREAM CONNECTED 5595 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 1944 unix 3 [ ] STREAM CONNECTED 5594 unix 3 [ ] STREAM CONNECTED 1978 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 1977 unix 3 [ ] STREAM CONNECTED 2177 unix 3 [ ] STREAM CONNECTED 516 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 515 unix 3 [ ] STREAM CONNECTED 2178 /var/run/ubus.sock unix 2 [ ] DGRAM 2936 unix 3 [ ] STREAM CONNECTED 1945 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 3760 /var/run/ubus.sock unix 2 [ ] DGRAM 4378 unix 3 [ ] STREAM CONNECTED 3759 unix 2 [ ] DGRAM 4971 unix 2 [ ] DGRAM 2262 unix 2 [ ] DGRAM 2328 unix 3 [ ] STREAM CONNECTED 4823 unix 2 [ ] DGRAM 2919 unix 3 [ ] STREAM CONNECTED 4824 /var/run/ubus.sock root@OpenWrt:/# netstat -n -a Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:44987 127.0.0.1:1883 ESTABLISHED tcp 0 0 127.0.0.1:1883 127.0.0.1:44986 ESTABLISHED tcp 0 0 127.0.0.1:44986 127.0.0.1:1883 ESTABLISHED tcp 0 0 127.0.0.1:1883 127.0.0.1:44987 ESTABLISHED tcp 0 0 :::5000 :::* LISTEN tcp 0 0 :::80 :::* LISTEN tcp 0 0 :::53 :::* LISTEN tcp 0 0 :::22 :::* LISTEN tcp 0 0 :::23 :::* LISTEN tcp 0 0 :::1883 :::* LISTEN udp 0 0 0.0.0.0:53 0.0.0.0:* udp 0 0 0.0.0.0:67 0.0.0.0:* udp 0 0 0.0.0.0:1900 0.0.0.0:* udp 0 0 172.16.0.143:123 107.194.210.155:123 ESTABLISHED udp 0 0 192.168.1.2:37521 0.0.0.0:* udp 0 0 192.168.1.2:5351 0.0.0.0:* udp 0 0 :::546 :::* udp 0 0 :::53 :::* udp 0 0 :::5351 :::* raw 0 0 :::58 :::* 58 Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 513 /var/run/ubus.sock unix 2 [ ACC ] STREAM LISTENING 5756 /var/run/bird.ctl unix 9 [ ] DGRAM 1939 /dev/log unix 2 [ ] DGRAM 4821 /var/run/hostapd/wlan0 unix 2 [ ] DGRAM 7580 unix 2 [ ] DGRAM 5759 unix 3 [ ] STREAM CONNECTED 1934 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 1933 unix 3 [ ] STREAM CONNECTED 5595 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 1944 unix 3 [ ] STREAM CONNECTED 5594 unix 3 [ ] STREAM CONNECTED 1978 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 1977 unix 3 [ ] STREAM CONNECTED 2177 unix 3 [ ] STREAM CONNECTED 516 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 515 unix 3 [ ] STREAM CONNECTED 2178 /var/run/ubus.sock unix 2 [ ] DGRAM 2936 unix 3 [ ] STREAM CONNECTED 1945 /var/run/ubus.sock unix 3 [ ] STREAM CONNECTED 3760 /var/run/ubus.sock unix 2 [ ] DGRAM 4378 unix 3 [ ] STREAM CONNECTED 3759 unix 2 [ ] DGRAM 4971 unix 2 [ ] DGRAM 2262 unix 2 [ ] DGRAM 2328 unix 3 [ ] STREAM CONNECTED 4823 unix 2 [ ] DGRAM 2919 unix 3 [ ] STREAM CONNECTED 4824 /var/run/ubus.sock root@OpenWrt:/# iptables -F root@OpenWrt:/# opkg list-installed alsa-lib - 1.0.28-1 ath10k-firmware - g18118da-1 base-files - 157.2-unknown bird4 - 1.4.5-2 bird4-uci - 0.2 block-mount - 2016-01-10-96415afecef35766332067f4205ef3b2c7561d21 busybox - 1.23.2-1 curl - 7.40.0-3.2 dnsmasq-dhcpv6 - 2.73-1 dropbear - 2015.67-1 ethtool - 3.18-1 firewall - 2015-07-27 fstools - 2016-01-10-96415afecef35766332067f4205ef3b2c7561d21 gdb - 7.8-2 gdbserver - 7.8-2 glib2 - 2.44.1-1 hostapd - 2015-09-27-1 hostapd-common - 2015-09-27-1 hostapd-utils - 2015-09-27-1 i2c-tools - 3.1.2-1 ip - 4.0.0-1 ip6tables - 1.4.21-1 iperf - 2.0.5-1 iptables - 1.4.21-1 iptables-mod-conntrack-extra - 1.4.21-1 iptables-mod-ipopt - 1.4.21-1 iw - 4.3-1 iwinfo - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371 jshn - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9 kaa-camera-service - v2.2.18 kernel - 3.18.29-1-8ea585a6b5a768c445ceb8254de2ca34 kmod-art2 - 3.18.29+CS10.2v4.9.432-1 kmod-ath - 3.18.29+20160607-1 kmod-ath9k - 3.18.29+20160607-1 kmod-ath9k-common - 3.18.29+20160607-1 kmod-atm - 3.18.29-1 kmod-button-hotplug - 3.18.29-3 kmod-cfg80211 - 3.18.29+20160607-1 kmod-crypto-aead - 3.18.29-1 kmod-crypto-aes - 3.18.29-1 kmod-crypto-arc4 - 3.18.29-1 kmod-crypto-core - 3.18.29-1 kmod-crypto-ecb - 3.18.29-1 kmod-crypto-hash - 3.18.29-1 kmod-crypto-manager - 3.18.29-1 kmod-crypto-pcompress - 3.18.29-1 kmod-crypto-sha1 - 3.18.29-1 kmod-gpio-button-hotplug - 3.18.29-1 kmod-gpio-dev - 3.18.29-1 kmod-gre - 3.18.29-1 kmod-hid - 3.18.29-1 kmod-i2c-algo-bit - 3.18.29-1 kmod-i2c-core - 3.18.29-1 kmod-i2c-gpio - 3.18.29-1 kmod-i2c-gpio-custom - 3.18.29-2 kmod-ifb - 3.18.29-1 kmod-input-core - 3.18.29-1 kmod-input-evdev - 3.18.29-1 kmod-ip6tables - 3.18.29-1 kmod-ipt-conntrack - 3.18.29-1 kmod-ipt-conntrack-extra - 3.18.29-1 kmod-ipt-core - 3.18.29-1 kmod-ipt-ipopt - 3.18.29-1 kmod-ipt-nat - 3.18.29-1 kmod-ipt-nathelper-rtsp - 3.18.29+2.10-1 kmod-iptunnel - 3.18.29-1 kmod-l2tp - 3.18.29-1 kmod-l2tp-eth - 3.18.29-1 kmod-l2tp-ip - 3.18.29-1 kmod-lib-crc-ccitt - 3.18.29-1 kmod-lib-crc16 - 3.18.29-1 kmod-lib-textsearch - 3.18.29-1 kmod-mac80211 - 3.18.29+20160607-1 kmod-mppe - 3.18.29-1 kmod-nf-conntrack - 3.18.29-1 kmod-nf-conntrack6 - 3.18.29-1 kmod-nf-ipt - 3.18.29-1 kmod-nf-ipt6 - 3.18.29-1 kmod-nf-nat - 3.18.29-1 kmod-nf-nathelper - 3.18.29-1 kmod-nf-nathelper-extra - 3.18.29-1 kmod-nls-base - 3.18.29-1 kmod-nls-koi8r - 3.18.29-1 kmod-nls-utf8 - 3.18.29-1 kmod-ppp - 3.18.29-1 kmod-pppoa - 3.18.29-1 kmod-pppoe - 3.18.29-1 kmod-pppol2tp - 3.18.29-1 kmod-pppox - 3.18.29-1 kmod-pptp - 3.18.29-1 kmod-sched-connmark - 3.18.29-1 kmod-sched-core - 3.18.29-1 kmod-slhc - 3.18.29-1 kmod-sound-core - 3.18.29-1 kmod-udptunnel4 - 3.18.29-1 kmod-udptunnel6 - 3.18.29-1 kmod-usb-core - 3.18.29-1 kmod-usb-serial - 3.18.29-1 kmod-usb-serial-pl2303 - 3.18.29-1 kmod-usb-uhci - 3.18.29-1 kmod-usb2 - 3.18.29-1 libattr - 20150220-1 libblobmsg-json - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb libbz2 - 1.0.6-2 libc - 1.0.14-1 libcap - 2.24-1 libcares - 1.10.0-1 libcurl - 7.40.0-3.2 libdb47 - 4.7.25.4.NC-4.1 libdbus - 1.9.14-1 libexpat - 2.1.0-3 libffi - 3.0.13-1 libgcc - 4.8-linaro-1 libgdbm - 1.11-1 libgmp - 6.0.0-1 libical - 1.0-1 libip4tc - 1.4.21-1 libip6tc - 1.4.21-1 libiwinfo - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371 libiwinfo-lua - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371 libjson-c - 0.12-1 libjson-script - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb liblua - 5.1.5-1 liblxc - 1.1.3-1 liblzma - 5.2.1-2 liblzo - 2.08-1 libmagic - 5.25-1 libmosquitto - 1.4.8-1 libmysqlclient - 5.1.73-1 libncurses - 5.9-2 libnl - 3.2.21-1 libnl-tiny - 0.1-4 libopenssl - 1.0.2h-1 libpam - 1.1.8-4 libpcap - 1.5.3-1 libpolarssl - 1.3.15-1 libpthread - 1.0.14-1 libreadline - 6.3-1 librpc - 2015-11-04-a921e3ded051746f9f7cd5e5a312fb6771716aac librt - 1.0.14-1 libsqlite3 - 3081101-1 libstdcpp - 4.8-linaro-1 libthread-db - 1.0.14-1 libubox - 2015-11-08-10429bccd0dc5d204635e110a7a8fae7b80d16cb libubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e libubus-lua - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e libuci - 2015-08-27.1-1 libuci-lua - 2015-08-27.1-1 libusb-1.0 - 1.0.19-1 libuuid - 2.25.2-4 libwebsockets-openssl - 1.3-chrome37-firefox30-1 libxml2 - 2.9.2-3 libxtables - 1.4.21-1 libyaml - 0.1.6-1 linux-atm - 2.5.2-5 logd - 2015-11-22-c086167a0154745c677f8730a336ea9cf7d71031 lua - 5.1.5-1 lxc - 1.1.3-1 lxc-common - 1.1.3-1 lxc-configs - 1.1.3-1 lxc-create - 1.1.3-1 lxc-hooks - 1.1.3-1 lxc-templates - 1.1.3-1 miniupnpd - 1.9.20150609-1 mosquitto - 1.4.8-1 mosquitto-client - 1.4.8-1 mtd - 24 nano - 2.5.3-1 netifd - 2015-12-16-245527193e90906451be35c2b8e972b8712ea6ab ntpclient - 2010_365-1 odhcp6c - 2015-07-29-dc186d6d2b0dd4ad23ca5fc69c00e81f796ff6d9 odhcpd - 2015-11-19-01d3f9d64486ac1daa144848944e877e7f0cb762 openssh-keygen - 7.1p2-1 openssh-server-pam - 7.1p2-1 openssh-sftp-server - 7.1p2-1 openssl-util - 1.0.2h-1 opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-9 opkg-smime - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-9 ppp - 2.4.7-6 ppp-mod-pppoa - 2.4.7-6 ppp-mod-pppoe - 2.4.7-6 ppp-mod-pppol2tp - 2.4.7-6 ppp-mod-pptp - 2.4.7-6 ppp-mod-radius - 2.4.7-6 ppp-multilink - 2.4.7-6 pppdump - 2.4.7-6 pppstats - 2.4.7-6 procd - 2015-10-29.1-d5fddd91b966424bb63e943e789704d52382cc18 python - 2.7.13-1 python-base - 2.7.13-1 python-codecs - 2.7.13-1 python-compiler - 2.7.13-1 python-ctypes - 2.7.13-1 python-db - 2.7.13-1 python-decimal - 2.7.13-1 python-distutils - 2.7.13-1 python-email - 2.7.13-1 python-gdbm - 2.7.13-1 python-light - 2.7.13-1 python-logging - 2.7.13-1 python-multiprocessing - 2.7.13-1 python-mysql - 1.2.5-1 python-ncurses - 2.7.13-1 python-openssl - 2.7.13-1 python-pip - 1.5.6-1 python-pydoc - 2.7.13-1 python-pyserial - 2.7-1 python-setuptools - 7.0-1 python-smbus - 3.1.2-1 python-sqlite3 - 2.7.13-1 python-unittest - 2.7.13-1 python-xml - 2.7.13-1 python-xmodem - 0.4.5-1 python-yaml - 3.11-1 python3-base - 3.4.3-2 python3-light - 3.4.3-2 qca-legacy-uboot-cus531mp3-nand - g18118da-1 qos-scripts - 1.2.1-7 resolveip - 2 rp-pppoe-relay - 3.11-1 rpcd - 2016-04-13-73aea9b8b621a1ce034bc6ee00c9d058a40c8a3d rpcd-mod-lxc - 20141012 simplejson - 3.6.5-1 sqlite3-cli - 3081101-1 sudo - 1.8.14p3-1 sysstat - 11.0.4-2 tc - 4.0.0-1 tcpdump - 4.5.1-4 terminfo - 5.9-2 uboot-envtools - 2014.10-2 ubox - 2015-11-22-c086167a0154745c677f8730a336ea9cf7d71031 ubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e ubusd - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e uci - 2015-08-27.1-1 uclibcxx - 0.2.4-1 uhttpd - 2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7 uhttpd-mod-ubus - 2015-11-08-fe01ef3f52adae9da38ef47926cd50974af5d6b7 usbutils - 007-1 usign - 2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131 wireless-tools - 29-5 wpa-cli - 2015-09-27-1 wpa-supplicant-p2p - 2015-09-27-1 zlib - 1.2.8-1 zoneinfo-europe - 2015d-1 ath> printenv bootargs=board=CUS531MP3-NAND console=ttyS0,115200 ubi.mtd=5,2048 root=/dev/mtdblock8 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),128k(reserved),64k(art);spi0.1:2m(kernel),36m(rootfs),90m(data),38m@0x0(firmware) rootfstype=squashfs,jffs2 noinitrd bootcmd=if test ${bootslot} -ne 1;then run boot_from_slot_0;else run boot_from_slot_1;fi bootdelay=2 baudrate=115200 ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee ipaddr=192.168.1.2 serverip=192.168.1.10 app_switch=default kernel_0_start=0x0 root_0_start=0x400000 mtdparts0=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(u-boot-env-bak),64k(reserved),64k(art);spi0.1:2m(kernel-0)ro,32m(root-0),2m(kernel-1),32m(root-1),60m(overlay),34m@0x0(firmware0) boot_from_slot_0=setenv bootargs ubi.mtd=6 ubootsvn=${ubootsvn} ${std_bootargs0} mtdparts=${mtdparts0} production=${production} hwversion=${hwversion} app_switch=${app_switch}; nboot 0x81000000 0 ${kernel_0_start} kernel_1_start=0x2200000 root_1_start=0x2600000 mtdparts1=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(u-boot-env-bak),64k(reserved),64k(art);spi0.1:2m(kernel-0),32m(root-0),2m(kernel-1)ro,32m(root-1),60m(overlay),34m@0x2200000(firmware1) boot_from_slot_1=setenv bootargs ubi.mtd=8 ubootsvn=${ubootsvn} ${std_bootargs1} mtdparts=${mtdparts1} production=${production} hwversion=${hwversion} app_switch=${app_switch}; nboot 0x81000000 0 ${kernel_1_start} std_bootargs0=board=CUS531MP3-NAND console=ttyS0,115200 ubi.mtd=overlay rootfs=/dev/mtdblock:rootfs rootfstype=squashfs noinitrd init=/sbin/init bootslot=0 std_bootargs1=board=CUS531MP3-NAND console=ttyS0,115200 ubi.mtd=overlay rootfs=/dev/mtdblock:rootfs rootfstype=squashfs noinitrd init=/sbin/init bootslot=1 production=0000 sysreset=0 bootKernelFailCount=0 flash_uboot=tftp 0x80060000 u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize flash_kernel-0=tftp 0x80060000 kernel.bin&&nand erase 0x0 0x200000&&nand write $fileaddr 0x0 $filesize flash_root-0=tftp 0x80060000 root.bin&&nand erase 0x200000 0x2000000&&nand write $fileaddr 0x200000 $filesize flash_kernel-1=tftp 0x80060000 kernel.bin&&nand erase 0x2200000 0x200000&&nand write $fileaddr 0x2200000 $filesize flash_root-1=tftp 0x80060000 root.bin&&nand erase 0x2400000 0x2000000&&nand write $fileaddr 0x2400000 $filesize overy_start=0x4400000 erase_overlay=nand erase 0x4400000 0x3C00000 flash_firmware=run flash_uboot;run flash_kernel-0;run flash_root-0;run flash_kernel-1;run flash_root-1;run erase_overlay store_factory_env=erase 0x9f050000 +0x10000;cp.b 0x9f040000 0x80060000 0x10000;cp.b 0x80060000 0x9f050000 0x10000 restore_factory_env=erase 0x9f040000 +0x10000;cp.b 0x9f050000 0x80060000 0x10000;cp.b 0x80060000 0x9f040000 0x10000 ethact=eth0 DevType=1 customer=Perenio hwversion=V2.0 UUID=0a098d9e-8cff-48de-8dbf-e0b9aa905bd2 PIN=61589273 SN=3D67177F9D8C1A1 model_id=PEACG01_Ihvg model_key=IMK5wrXC uboot_env_init=1 mode=ldsGateReleaseMode model=PEACG01 bootslot=1 fw_new_version=0.1.44 fw_version=0.1.44 ncp_version=6.6.3 camera_provisioned=false wireless_enabled=true wireless_mode=ap ethernet_enabled=true stdin=serial stdout=serial stderr=serial ubootsvn=5120 Environment size: 3130/65532 bytes root@OpenWrt:/# uci show bird4.bird=bird bird4.bird.use_UCI_config='1' bird4.bird.UCI_config_file='/tmp/bird4.conf' bird4.global=global bird4.global.log_file='/tmp/bird4.log' bird4.global.log='all' bird4.global.debug='off' bird4.global.router_id='172.16.1.6' bird4.@table[0]=table bird4.@table[0].name='aux' bird4.kernel1=kernel bird4.kernel1.table='aux' bird4.kernel1.import='all' bird4.kernel1.export='all' bird4.kernel1.kernel_table='100' bird4.kernel1.scan_time='10' bird4.kernel1.learn='1' bird4.kernel1.persist='0' bird4.kernel1.disabled='0' bird4.device1=device bird4.device1.scan_time='10' bird4.device1.disabled='0' bird4.static1=static bird4.static1.table='aux' bird4.static1.disabled='0' bird4.bgp1=bgp bird4.bgp1.template='bgp_common' bird4.bgp1.description='Description of the BGP instance' bird4.bgp1.neighbor_address='172.16.1.5' bird4.bgp1.neighbor_as='65530' bird4.bgp1.source_address='172.16.1.6' bird4.bgp1.next_hop_self='0' bird4.bgp1.next_hop_keep='0' bird4.bgp1.rr_client='1' bird4.bgp1.rr_cluster_id='172.16.1.6' bird4.bgp_common=bgp_template bird4.bgp_common.table='aux' bird4.bgp_common.import='all' bird4.bgp_common.export='all' bird4.bgp_common.local_address='172.16.1.6' bird4.bgp_common.local_as='65001' bird4.bgp_common.import_limit='100' bird4.bgp_common.import_limit_action='warn' bird4.bgp_common.export_limit='100' bird4.bgp_common.export_limit_action='warn' bird4.bgp_common.receive_limit='100' bird4.bgp_common.receive_limit_action='warn' bird4.bgp_common.disabled='0' bird4.@route[0]=route bird4.@route[0].instance='static1' bird4.@route[0].type='router' bird4.@route[0].prefix='192.168.9.0/24' bird4.@route[0].via='10.99.105.159' dhcp.@dnsmasq[0]=dnsmasq dhcp.@dnsmasq[0].domainneeded='1' dhcp.@dnsmasq[0].boguspriv='1' dhcp.@dnsmasq[0].filterwin2k='0' dhcp.@dnsmasq[0].localise_queries='1' dhcp.@dnsmasq[0].local='/lan/' dhcp.@dnsmasq[0].domain='lan' dhcp.@dnsmasq[0].expandhosts='1' dhcp.@dnsmasq[0].nonegcache='0' dhcp.@dnsmasq[0].authoritative='1' dhcp.@dnsmasq[0].readethers='1' dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.auto' dhcp.lan=dhcp dhcp.lan.interface='lan' dhcp.lan.start='100' dhcp.lan.limit='150' dhcp.lan.leasetime='12h' dhcp.lan.dhcpv6='server' dhcp.lan.ra='server' dhcp.wan=dhcp dhcp.wan.interface='wan' dhcp.wan.ignore='1' dhcp.odhcpd=odhcpd dhcp.odhcpd.maindhcp='0' dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd' dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update' dhcp.ap=dhcp dhcp.ap.interface='ap' dhcp.ap.start='100' dhcp.ap.limit='150' dhcp.ap.leasetime='12h' dhcp.ap.dhcpv6='server' dhcp.ap.ra='server' dropbear.@dropbear[0]=dropbear dropbear.@dropbear[0].PasswordAuth='on' dropbear.@dropbear[0].RootPasswordAuth='on' dropbear.@dropbear[0].Port='22' firewall.@defaults[0]=defaults firewall.@defaults[0].syn_flood='1' firewall.@defaults[0].input='ACCEPT' firewall.@defaults[0].output='ACCEPT' firewall.@defaults[0].forward='REJECT' firewall.@defaults[0].disabled='0' firewall.@zone[0]=zone firewall.@zone[0].name='lan' firewall.@zone[0].network='lan' firewall.@zone[0].input='ACCEPT' firewall.@zone[0].output='ACCEPT' firewall.@zone[0].forward='ACCEPT' firewall.@zone[1]=zone firewall.@zone[1].name='wan' firewall.@zone[1].network='wan' 'wan6' firewall.@zone[1].input='REJECT' firewall.@zone[1].output='ACCEPT' firewall.@zone[1].forward='REJECT' firewall.@zone[1].masq='1' firewall.@zone[1].mtu_fix='1' firewall.@forwarding[0]=forwarding firewall.@forwarding[0].src='lan' firewall.@forwarding[0].dest='wan' firewall.@rule[0]=rule firewall.@rule[0].name='Allow-DHCP-Renew' firewall.@rule[0].src='wan' firewall.@rule[0].proto='udp' firewall.@rule[0].dest_port='68' firewall.@rule[0].target='ACCEPT' firewall.@rule[0].family='ipv4' firewall.@rule[1]=rule firewall.@rule[1].name='Allow-Ping' firewall.@rule[1].src='wan' firewall.@rule[1].proto='icmp' firewall.@rule[1].icmp_type='echo-request' firewall.@rule[1].family='ipv4' firewall.@rule[1].target='ACCEPT' firewall.@rule[2]=rule firewall.@rule[2].name='Allow-IGMP' firewall.@rule[2].src='wan' firewall.@rule[2].proto='igmp' firewall.@rule[2].family='ipv4' firewall.@rule[2].target='ACCEPT' firewall.@rule[3]=rule firewall.@rule[3].name='Allow-DHCPv6' firewall.@rule[3].src='wan' firewall.@rule[3].proto='udp' firewall.@rule[3].src_ip='fe80::/10' firewall.@rule[3].src_port='547' firewall.@rule[3].dest_ip='fe80::/10' firewall.@rule[3].dest_port='546' firewall.@rule[3].family='ipv6' firewall.@rule[3].target='ACCEPT' firewall.@rule[4]=rule firewall.@rule[4].name='Allow-MLD' firewall.@rule[4].src='wan' firewall.@rule[4].proto='icmp' firewall.@rule[4].src_ip='fe80::/10' firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0' firewall.@rule[4].family='ipv6' firewall.@rule[4].target='ACCEPT' firewall.@rule[5]=rule firewall.@rule[5].name='Allow-ICMPv6-Input' firewall.@rule[5].src='wan' firewall.@rule[5].proto='icmp' firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement' firewall.@rule[5].limit='1000/sec' firewall.@rule[5].family='ipv6' firewall.@rule[5].target='ACCEPT' firewall.@rule[6]=rule firewall.@rule[6].name='Allow-ICMPv6-Forward' firewall.@rule[6].src='wan' firewall.@rule[6].dest='*' firewall.@rule[6].proto='icmp' firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' firewall.@rule[6].limit='1000/sec' firewall.@rule[6].family='ipv6' firewall.@rule[6].target='ACCEPT' firewall.@include[0]=include firewall.@include[0].path='/etc/firewall.user' firewall.@rule[7]=rule firewall.@rule[7].src='wan' firewall.@rule[7].dest='lan' firewall.@rule[7].proto='esp' firewall.@rule[7].target='ACCEPT' firewall.@rule[8]=rule firewall.@rule[8].src='wan' firewall.@rule[8].dest='lan' firewall.@rule[8].dest_port='500' firewall.@rule[8].proto='udp' firewall.@rule[8].target='ACCEPT' firewall.miniupnpd=include firewall.miniupnpd.type='script' firewall.miniupnpd.path='/usr/share/miniupnpd/firewall.include' firewall.miniupnpd.family='any' firewall.miniupnpd.reload='1' fstab.@global[0]=global fstab.@global[0].anon_swap='0' fstab.@global[0].anon_mount='0' fstab.@global[0].auto_swap='1' fstab.@global[0].auto_mount='1' fstab.@global[0].delay_root='5' fstab.@global[0].check_fs='0' network.loopback=interface network.loopback.ifname='lo' network.loopback.proto='static' network.loopback.ipaddr='127.0.0.1' network.loopback.netmask='255.0.0.0' network.globals=globals network.globals.ula_prefix='fde8:b21d:ea1a::/48' network.lan=interface network.lan.force_link='1' network.lan.type='bridge' network.lan.proto='static' network.lan.ipaddr='192.168.1.2' network.lan.netmask='255.255.255.0' network.lan.gateway='192.168.1.2' network.lan._orig_ifname='eth0' network.lan._orig_bridge='true' network.lan.metric='60' network.lan.ifname='eth1' network.wan=interface network.wan.proto='dhcp' network.wan.metric='20' network.wan.ifname='eth0' network.wan6=interface network.wan6.proto='dhcpv6' network.wan6.ifname='eth0' network.@switch[0]=switch network.@switch[0].name='switch0' network.@switch[0].reset='1' network.@switch[0].enable_vlan='1' network.@switch_vlan[0]=switch_vlan network.@switch_vlan[0].device='switch0' network.@switch_vlan[0].vlan='1' network.@switch_vlan[0].ports='0 1 2 3 4' network.ap=interface network.ap.proto='static' network.ap.ipaddr='10.0.0.1' network.ap.netmask='255.255.255.0' network.sta=interface network.sta.metric='40' network.sta.proto='dhcp' ntpclient.@ntpserver[0]=ntpserver ntpclient.@ntpserver[0].hostname='0.openwrt.pool.ntp.org' ntpclient.@ntpserver[0].port='123' ntpclient.@ntpserver[1]=ntpserver ntpclient.@ntpserver[1].hostname='1.openwrt.pool.ntp.org' ntpclient.@ntpserver[1].port='123' ntpclient.@ntpserver[2]=ntpserver ntpclient.@ntpserver[2].hostname='2.openwrt.pool.ntp.org' ntpclient.@ntpserver[2].port='123' ntpclient.@ntpserver[3]=ntpserver ntpclient.@ntpserver[3].hostname='3.openwrt.pool.ntp.org' ntpclient.@ntpserver[3].port='123' ntpclient.@ntpdrift[0]=ntpdrift ntpclient.@ntpdrift[0].freq='0' ntpclient.@ntpclient[0]=ntpclient ntpclient.@ntpclient[0].interval='600' pppoe.relay=pppoe_relay pppoe.relay.enable='0' pppoe.relay.client='lan' pppoe.relay.server='wan' qos.wan=interface qos.wan.classgroup='Default' qos.wan.enabled='0' qos.wan.upload='128' qos.wan.download='1024' qos.@classify[0]=classify qos.@classify[0].target='Priority' qos.@classify[0].ports='22,53' qos.@classify[0].comment='ssh, dns' qos.@classify[1]=classify qos.@classify[1].target='Normal' qos.@classify[1].proto='tcp' qos.@classify[1].ports='20,21,25,80,110,443,993,995' qos.@classify[1].comment='ftp, smtp, http(s), imap' qos.@classify[2]=classify qos.@classify[2].target='Express' qos.@classify[2].ports='5190' qos.@classify[2].comment='AOL, iChat, ICQ' qos.@default[0]=default qos.@default[0].target='Express' qos.@default[0].proto='udp' qos.@default[0].pktsize='-500' qos.@reclassify[0]=reclassify qos.@reclassify[0].target='Priority' qos.@reclassify[0].proto='icmp' qos.@default[1]=default qos.@default[1].target='Bulk' qos.@default[1].portrange='1024-65535' qos.Default=classgroup qos.Default.classes='Priority Express Normal Bulk' qos.Default.default='Normal' qos.Priority=class qos.Priority.packetsize='400' qos.Priority.avgrate='10' qos.Priority.priority='20' qos.Priority_down=class qos.Priority_down.packetsize='1000' qos.Priority_down.avgrate='10' qos.Express=class qos.Express.packetsize='1000' qos.Express.avgrate='50' qos.Express.priority='10' qos.Normal=class qos.Normal.packetsize='1500' qos.Normal.packetdelay='100' qos.Normal.avgrate='10' qos.Normal.priority='5' qos.Normal_down=class qos.Normal_down.avgrate='20' qos.Bulk=class qos.Bulk.avgrate='1' qos.Bulk.packetdelay='200' rpcd.@login[0]=login rpcd.@login[0].username='root' rpcd.@login[0].password='$p$root' rpcd.@login[0].read='*' rpcd.@login[0].write='*' sysstat.sysstat=sysstat sysstat.sysstat.log_history='7' sysstat.sysstat.compressafter='10' sysstat.sysstat.sa_dir='/var/log/sysstat' sysstat.sysstat.zip='xz' sysstat.sysstat.enabled='true' system.@system[0]=system system.@system[0].hostname='OpenWrt' system.@system[0].timezone='UTC' system.@system[0].log_buffer_size='64' system.@system[0].log_size='4096' system.@system[0].log_file='/var/log/system.log' system.ntp=timeserver system.ntp.server='0.openwrt.pool.ntp.org' '1.openwrt.pool.ntp.org' '2.openwrt.pool.ntp.org' '3.openwrt.pool.ntp.org' system.ntp.enabled='1' system.ntp.enable_server='0' ubootenv.@ubootenv[0]=ubootenv ubootenv.@ubootenv[0].dev='/dev/mtd1' ubootenv.@ubootenv[0].offset='0x0' ubootenv.@ubootenv[0].envsize='0x10000' ubootenv.@ubootenv[0].secsize='0x10000' uhttpd.main=uhttpd uhttpd.main.listen_http='0.0.0.0:80' '[::]:80' uhttpd.main.listen_https='0.0.0.0:443' '[::]:443' uhttpd.main.redirect_https='1' uhttpd.main.home='/www' uhttpd.main.rfc1918_filter='1' uhttpd.main.max_requests='3' uhttpd.main.max_connections='100' uhttpd.main.cert='/etc/uhttpd.crt' uhttpd.main.key='/etc/uhttpd.key' uhttpd.main.cgi_prefix='/cgi-bin' uhttpd.main.script_timeout='60' uhttpd.main.network_timeout='30' uhttpd.main.http_keepalive='20' uhttpd.main.tcp_keepalive='1' uhttpd.main.ubus_prefix='/ubus' uhttpd.px5g=cert uhttpd.px5g.days='730' uhttpd.px5g.bits='1024' uhttpd.px5g.country='ZZ' uhttpd.px5g.state='Somewhere' uhttpd.px5g.location='Uknown' uhttpd.px5g.commonname='OpenWrt' upnpd.config=upnpd upnpd.config.enable_natpmp='1' upnpd.config.enable_upnp='1' upnpd.config.secure_mode='1' upnpd.config.log_output='0' upnpd.config.download='1024' upnpd.config.upload='512' upnpd.config.internal_iface='lan' upnpd.config.port='5000' upnpd.config.upnp_lease_file='/var/upnp.leases' upnpd.config.uuid='c25b2336-a253-4ef7-acc4-b9d6797063c4' upnpd.@perm_rule[0]=perm_rule upnpd.@perm_rule[0].action='allow' upnpd.@perm_rule[0].ext_ports='1024-65535' upnpd.@perm_rule[0].int_addr='0.0.0.0/0' upnpd.@perm_rule[0].int_ports='1024-65535' upnpd.@perm_rule[0].comment='Allow high ports' upnpd.@perm_rule[1]=perm_rule upnpd.@perm_rule[1].action='deny' upnpd.@perm_rule[1].ext_ports='0-65535' upnpd.@perm_rule[1].int_addr='0.0.0.0/0' upnpd.@perm_rule[1].int_ports='0-65535' upnpd.@perm_rule[1].comment='Default deny' wireless.radio0=wifi-device wireless.radio0.type='mac80211' wireless.radio0.channel='11' wireless.radio0.hwmode='11ng' wireless.radio0.path='platform/qca953x_wmac' wireless.radio0.ht_capab='LDPC' 'SHORT-GI-20' 'SHORT-GI-40' 'TX-STBC' 'RX-STBC1' 'DSSS_CCK-40' wireless.radio0.htmode='HT20' wireless.radio0.disabled='0' wireless.@wifi-iface[0]=wifi-iface wireless.@wifi-iface[0].device='radio0' wireless.@wifi-iface[0].network='ap' wireless.@wifi-iface[0].ifname='wlan0' wireless.@wifi-iface[0].mode='ap' wireless.@wifi-iface[0].ssid='PEACG01_Ihvg' wireless.@wifi-iface[0].encryption='psk2' wireless.@wifi-iface[0].key='IMK5wrXC' wireless.@wifi-iface[0].wps_pushbutton='1' root@OpenWrt:/# root@OpenWrt:/# cat /tmp/sysinfo/board_name cus531mp3-nand root@OpenWrt:/# cat /tmp/sysinfo/model Qualcomm Atheros CUS531 MP3 nand reference board root@OpenWrt:/# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00010000 "u-boot" mtd1: 00010000 00010000 "u-boot-env" mtd2: 00010000 00010000 "u-boot-env-bak" mtd3: 00010000 00010000 "reserved" mtd4: 00010000 00010000 "art" mtd5: 00200000 00020000 "kernel-0" mtd6: 02000000 00020000 "root-0" mtd7: 00200000 00020000 "kernel-1" mtd8: 02000000 00020000 "root-1" mtd9: 03c00000 00020000 "overlay" mtd10: 02200000 00020000 "firmware1" mtd11: 0141a000 0001f000 "rootfs" mtd12: 007fe000 0001f000 "rootfs_data" root@OpenWrt:/# cat /proc/cmdline ubi.mtd=8 ubootsvn=5120 board=CUS531MP3-NAND console=ttyS0,115200 ubi.mtd=overlay rootfs=/dev/mtdblock:rootfs rootfstype=squashfs noinitrd init=/sbin/init bootslot=1 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),64k(u-boot-env-bak),64k(reserved),64k(art);spi0.1:2m(kernel-0),32m(root-0),2m(kernel-1)ro,32m(root-1),60m(overlay),34m@0x2200000(firmware1) production=0000 hwversion=V2.0 app_switch=default mem=64M rootfstype=squashfs,jffs2 noinitrd system type : Qualcomm Atheros QCA9533 ver 2 rev 0 machine : Qualcomm Atheros CUS531 MP3 nand reference board processor : 0 cpu model : MIPS 24Kc V7.4 BogoMIPS : 432.53 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available root@OpenWrt:/# ifconfig -a br-lan Link encap:Ethernet HWaddr 1C:D6:BD:40:4F:61 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::1ed6:bdff:fe40:4f61/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:298 (298.0 B) eth0 Link encap:Ethernet HWaddr 1C:D6:BD:40:4F:60 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) Interrupt:4 eth1 Link encap:Ethernet HWaddr 1C:D6:BD:40:4F:61 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) Interrupt:5 gre0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-44-00-00-00-00-00-00-00-00 NOARP MTU:1476 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) gretap0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1462 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) ifb0 Link encap:Ethernet HWaddr 42:EB:59:CC:13:4E BROADCAST NOARP 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:32 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ifb1 Link encap:Ethernet HWaddr 52:35:C1:81:E8:8E BROADCAST NOARP 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:32 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 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:441867 errors:0 dropped:0 overruns:0 frame:0 TX packets:441867 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:35050102 (33.4 MiB) TX bytes:35050102 (33.4 MiB) wlan0 Link encap:Ethernet HWaddr 1C:D6:BD:40:4F:5F inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::1ed6:bdff:fe40:4f5f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:864 (864.0 B) root@OpenWrt:/# cat /sys/kernel/debug/gpio GPIOs 0-17, ath79: gpio-3 (cus531:gpio3:reset ) out hi gpio-4 (WPS button ) in lo gpio-12 (cus531:green:power ) out lo gpio-13 (cus531:green:wan ) out hi gpio-14 (cus531:green:lan ) out hi gpio-15 (RESET button ) in lo gpio-16 (scl ) in hi gpio-17 (sda ) in hi tftp bootm route add default gw 192.168.1.10 echo "nameserver 192.168.1.10" > /etc/resolv.conf cd /tmp wget http://www.netlab.linkpc.net/download/tmp/gpio chmod +x /tmp/gpio