OpenWrt Forum Archive

Topic: Realtek SoC support in OpenWrt

The content of this topic has been archived between 22 Sep 2016 and 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've been monitoring this forum thread since its start in hopes that openwrt would finally incorporate support for Realtek-based SoCs. Recently having spare 150USD in pocket and a desire to have some fun hacking hardware I went on and bought at a local computer store NETGEAR JNR3210 router which is based on a pretty powerful Realtek 8198 SoC clocked @620MHz with 128Mb RAM@181MHz and 8MB SPI FLASH. PCB has four unpopulated pins where one could solder RS-232 header. UART signalling seems to be pretty standard LVTTL 3V so one would need to use voltage level converter to be able to connect router with standard PC RS-232-C card. As for me, I used USB-2-SERIAL converter based on PL-2303 chip which uses 3V level by default.

JNR3210 PCB view and serial pinout

As could be seen on the picture above main chip has some kind of a heatsink glued on it. This heatsink is not the best solution I've seen for thermal decipation but it is at least something comparing to other SOHO routers out there in the wild.

JTAG seems to be out of luck but the flash chip used is an easy one to desolder and reflash using your device of choice (I've had success in the past reflashing the same type of flash chip using Arduino as a flashing device).

WIFI chip is RTL8192CE and it has no RF shield soldered around it.

PCB seems to be OEM-manufactured by Sercomm for Netgear.

Here is boot log of the original firmware:

Booting...�
========== SPI =============
SDRAM CLOCK:181MHZ
 ------------------------- Force into Single IO Mode ------------------------ 
|No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
| 0 c22017h  0h  800000h  10000h   1000h     100h   86   45   MX6405D/05E/45E|
 ---------------------------------------------------------------------------- 
Reboot Result from Watchdog Timeout!

---RealTek(RTL8198)at 2012.05.22-14:53+0800 version v1.1f [16bit](620MHz)
Enter NMRP_main
NMRP func [NMRP_init] state is [0x00]  line [84]
Scanning Flash Section 0...
Scanning Flash Section 1...
Flash Sector Number : 128.
NMRP func [NMRP_init] state is [0x00]  line [93]
Set GPHY Parameter OK
NMRP func [NMRP_init] state is [[0x00]]  line [99]
Our ETH MAC:

9c d3 6d fb d0 96 
NMRP:LISTENING
Enter NMRP_handle_LISTENING_state
### No NMRP Server found ###
Scanning Flash Section 0...
Scanning Flash Section 1...
Flash Sector Number : 128.

***************************************************
    Sercomm Boot Version 1.5.0.0

***************************************************
Entering Firmware : Everything is OK.
Jump to image start=0x80500000...
decompressing kernel:
Uncompressing Linux... done, booting the kernel.
done decompressing kernel.
start address: 0x80003750
CPU revision is: 0000dc02
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal   0x00000000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS0,38400 root=/dev/mtdblock1
icache: 16kB/32B, dcache: 8kB/32B, scache: 0kB/0B
NR_IRQS:48
PID hash table entries: 512 (order: 9, 2048 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 121728k/131072k available (2800k kernel code, 9156k reserved, 904k data, 108k init, 0k highmem)
Calibrating delay loop... 619.31 BogoMIPS (lpj=3096576)
Mount-cache hash table entries: 512
net_namespace: 524 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NTFS driver 2.1.29 [Flags: R/W DEBUG].
fuse init (API version 7.11)
msgmni has been set to 238
io scheduler noop registered
io scheduler cfq registered (default)
Realtek GPIO Driver for Flash Reload Default
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x18002000 (irq = 8) is a 16550A
Driver 'sd' needs updating - please use bus_type methods
PPP generic driver version 2.4.2
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
RTL8192C/RTL8188C driver version 1.4 (2010-12-22)
=====>>INSIDE rtl8192cd_init_one <<=====
PCIE reset (0) 
Do MDIO_RESET
Find Port=0 Device:Vender ID=819110ec
vendor_deivce_id=819110ec
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====



Probing RTL8186 10/100 NIC-kenel stack size order[2]...
chip name: 8196C, chip revid: 0
==Set GPHY Parameter OK
NOT YET
Set threshould idx 0
eth0 added. vid=9 Member port 0x1...
eth1 added. vid=8 Member port 0x10...
eth2 added. vid=9 Member port 0x2...
eth3 added. vid=9 Member port 0x4...
eth4 added. vid=9 Member port 0x8...
eth5 added. vid=9 Member port 0x0...
[peth0] added, mapping to [eth1]...
port_num 0, link 0, speed: 0
port_num 1, link 0, speed: 0
port_num 2, link 0, speed: 0
port_num 3, link 0, speed: 0
port_num 4, link 0, speed: 0
SPI INIT
 ------------------------- Force into Single IO Mode ------------------------ 
|No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
| 0 c22017h  0h  800000h  10000h   1000h     100h   86    0   MX6405D/05E/45E|
 ---------------------------------------------------------------------------- 
SPI flash(MX6405D/05E/45E) was found at CS0, size 0x800000
Creating 14 MTD partitions on "flash_bank_1":
0x000000020000-0x0000007b0000 : "fs+kernel+multi-lang"
0x000000160000-0x0000006f0000 : "rootfs"
0x000000000000-0x000000020000 : "bootloader"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007b0000-0x0000007c0000 : "POT"
0x0000007c0000-0x0000007d0000 : "traffic_meter"
0x0000007d0000-0x0000007e0000 : "DPF"
0x0000007f0000-0x000000800000 : "BRCM_NV"
0x0000006f0000-0x000000710000 : "English UI"
0x000000710000-0x000000730000 : "Chinese UI"
0x000000730000-0x000000750000 : "Russian UI"
0x000000750000-0x000000770000 : "Portuguese UI"
0x000000770000-0x000000790000 : "German UI"
0x000000790000-0x0000007b0000 : "Other UI"
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
rtl8652-ehci rtl8652-ehci.0: RTL8652 On-Chip EHCI Host Controller
rtl8652-ehci rtl8652-ehci.0: new USB bus registered, assigned bus number 1
read synopsys=0
read synopsys2=0
rtl8652-ehci rtl8652-ehci.0: irq 10, io base 0x18021000
rtl8652-ehci rtl8652-ehci.0: USB 0.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
rtl8652-ohci rtl8652-ohci.0: RTL8652 OHCI
rtl8652-ohci rtl8652-ohci.0: new USB bus registered, assigned bus number 2
rtl8652-ohci rtl8652-ohci.0: irq 10, io mem 0x18020000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Netlink[Kernel] create socket for igmp ok.
VFS: Mounted root (squashfs filesystem) readonly on device 31:1.
Freeing unused kernel memory: 108k freed
init started: BusyBox v1.13.4 (2012-09-21 11:10:20 CST)
starting pid 708, tty '/dev/console': '/usr/etc/rcS'
led_pb_api: module license 'Sercomm' taints kernel.
Disabling lock debugging due to kernel taint
Register LED ID <70>
Register LED ID <71>
Register LED ID <18>
Register LED ID <14>
Register LED ID <15>
Register LED ID <16>
Register LED ID <17>
Register LED ID <10>
Register LED ID <11>
Register LED ID <12>
Register LED ID <13>
Register LED ID <20>
Register LED ID <30>
Register LED ID <38>
Register LED ID <45>
Register LED ID <60>
Register LED ID <75>
Register LED ID <90>
Register LED ID <91>
Register LED ID <92>
netfilter dnshj choose interested dns queries module loaded !
init common module successful
insert firewall block module success
fake source dos protect modules is inserted
netfilter PSD and TCP/UDP Echo/Chargen Attack loaded 
netfilter tcp syn flood module loaded 
netfilter clamp total session for one src ip module loaded 
netfilter other dos module loaded 
insmod finish
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
dev:eth1 del et:0
dev:ppp0 del et:-3
[rc debug]/usr/sbin/rc init 
[SYSTEM]/sbin/ifconfig eth0 down
[SYSTEM]/sbin/ifconfig eth0 hw ether 9C:D3:6D:FB:D0:96 
[SYSTEM]/sbin/ifconfig eth0 up
[SYSTEM]/bin/renice -20 2
[SYSTEM]/bin/renice -20 3
RC: wifi_init()
rules = <>, timeout = 20
ft_tool uses obsolete (PF_INET,SOCK_PACKET)
=============rc start 
[rc debug]/usr/sbin/rc start 
ap_name=(null) action=start
[rc.c::rc_start():605] Calling Start function of lan
 rc action <lan @ start> before file_lock. 
 rc action <lan @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.lan.run
 rc action < unlock = 3> after file_lock. 
[SYSTEM]/sbin/vconfig rem eth0.1 >/dev/null 2>&1
[SYSTEM]/sbin/vconfig rem eth0.11 >/dev/null 2>&1
[SYSTEM]/sbidevice eth0 entered promiscuous mode
n/vconfig rem eth0.12 >/dev/null 2>&1
[SYSTEM]/sbin/vconfig rem eth0.13 >/dev/null 2>&1
[SYSTEM]/sbin/vconfig rem eth0.14 >/dev/null 2>&1
[SYSTEM]/usr/sbin/brctl addif br0 eth0
[SYSTEM]/sbin/vconfig add eth0 11
sh: /sbin/vconfig: not found
[SYSTEM]/usr/sbin/brctl addif br0 eth0.11
interface eth0.11 does not exist!
[SYSTEM]/sbin/ifconfig eth0.11 up
ifconfig: SIOCGIFFLAGS: No such device
[SYSTEM]/sbin/vconfig add eth0 12
sh: /sbin/vconfig: not found
[SYSTEM]/usr/sbin/brctl addif br0 eth0.12
interface eth0.12 does not exist!
[SYSTEM]/sbin/ifconfig eth0.12 up
ifconfig: SIOCGIFFLAGS: No such device
[SYSTEM]/sbin/vconfig add eth0 13
sh: /sbin/vconfig: not found
[SYSTEM]/usr/sbin/brctl addif br0 eth0.13
interface eth0.13 does not exist!
[SYSTEM]/sbin/ifconfig eth0.13 up
br0: port 1(eth0) entering learning state

[SYSTEM]/sbin/vconfig add eth0 14
sh: /sbin/vconfig: not found
[SYSTEM]/usr/sbin/brctl addif br0 eth0.14
interface eth0.14 does not exist!
[SYSTEM]/sbin/ifconfig eth0.14 up
ifconfig: SIOCGIFFLAGS: No such device
[SYSTEM]/usr/sbin/brctl setfd br0 1
[SYSTEM]/sbin/ifconfig br0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
[SYSTEM]/usr/sbin/brctl stp br0 off
[SYSTEM]/usr/sbin/brctl delif br0 eth2
device eth2 is not a slave of br0
[SYSTEM]/usr/sbin/ifconfig eth2 dport_num 0, link 0, speed: 0
oport_num 1, link 0, speed: 0
wport_num 2, link 0, speed: 0
nport_num 3, link 0, speed: 0
ort_num 4, link 0, speed: 0
[0m
[SYSTEM]/usr/sbin/brctl delif br0 eth3
device eth3 is not a slave of br0
[SYSTEM]/usr/sbin/ifconfig eth3 down
[SYSTEM]/usr/sbin/brctl delif br0 eth4
device eth4 is not a slave of br0
[SYSTEM]/usr/sbin/ifconfig eth4 down
[SYSTEM]/usr/sbin/brctl delif br0 eth7
device eth7 is not a slave of br0
[SYSTEM]/usr/sbin/ifconfig eth7 down
[SYSTEM]/usr/sbin/echo 0 >  /proc/rtk_vlan_support
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
unlink running file </var/run/rc.lan.run>
[rc.c::rc_start():605] Calling Start function of printk
 rc action <printk @ start> before file_lock. 
 rc action <printk @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.printk.run
 rc action < unlock = 3> after file_lock. 
[SYSTEM]/bin/echo 1 4 1 7 > /proc/sys/kernel/printk
unlink running file </var/run/rc.printk.run>
[rc.c::rc_start():605] Calling Start function of timezone
 rc action <timezone @ start> before file_lock. 
 rc action <timezone @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.timezone.run
 rc action < unlock = 3> after file_lock. 
[SYSTEM]/bin/echo GMT-4 > /etc/TZ
unlink running file </var/run/rc.timezone.run>
[rc.c::rc_start():605] Calling Start function of syslogd
 rc action <syslogd @ start> before file_lock. 
 rc action <syslogd @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.syslogd.run
 rc action < unlock = 3> after file_lock. 
[SYSTEM]/sbin/syslogd -f /etc/syslog.conf
unlink running file </var/run/rc.syslogd.run>
[rc.c::rc_start():605] Calling Start function of httpd
 rc action <httpd @ start> before file_lock. 
 rc action <httpd @ start lock = 5> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.httpd.run
 rc action < unlock = 5> after file_lock. 
[sc_language.c::create_language_file():389] Create link files for <Russian>
[sc_language.c::create_language_file():411] Checking MTD </dev/mtdblock10> according to its id <RUS>
[sc_language.c::decompress_language():174] Try to decompress MTD </dev/mtdblock10>
rmmod: cannot unload 'ipt_REJECT': unknown symbol in module, or unknown parameter
[rc debug]/bin/rc firewall restart 
ap_name=firewall action=restart
[rc.c::rc_action():702] rc_action before add firewall - restart
 rc action <firewall @ restart> before file_lock. 
 rc action <firewall @ restart lock = 4> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.firewall.run
 rc action < unlock = 4> after file_lock. 
[rc.c::rc_action():710] rc_action after add firewall - restart
unlink running file </var/run/rc.firewall.run>
[rc.c::rc_action():702] rc_action before add firewall - restart
 rc action <firewall @ restart> before file_lock. 
 rc action <firewall @ restart lock = 4> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.firewall.run
 rc action < unlock = 4> after file_lock. 
[rc.c::rc_action():710] rc_action after add firewall - restart
[rc.c::rc_stop():644] Calling Stop function of firewall
[SYSTEM]echo 0 > /proc/sys/net/ipv4/ip_forward
[SYSTEM]echo 1 > /proc/sys/net/ipv4/conf/br0/forwarding
[SYSTEM]echo 1 > /proc/sys/net/ipv4/conf/wlan0/forwarding
[SYSTEM]echo 1 > /proc/sys/net/ipv4/conf/wlan0-va0/forwarding
[rc.c::rc_start():605] Calling Start function of firewall
[fw_rule] /usr/sbin/iptables -t nat -F
[fw_rule] /usr/sbin/iptables -t nat -X
[fw_rule] /usr/sbin/iptables -t filter -F
[fw_rule] /usr/sbin/iptables -t filter -X
[fw_rule] /usr/sbin/iptables -t mangle -F
[fw_rule] /usr/sbin/iptables -t nat -N PRE_BASIC
[fw_rule] /usr/sbin/iptables -t nat -N DNS
[fw_rule] /usr/sbin/iptables -t nat -N PRE_PROXY
[fw_rule] /usr/sbin/iptables -t nat -N MINIUPNPD
[fw_rule] /usr/sbin/iptables -t nat -N PT
[fw_rule] /usr/sbin/iptables -t nat -N NAPT
[fw_rule] /usr/sbin/iptables -t nat -N VS
[fw_rule] /usr/sbin/iptables -t nat -N DMZ
[fw_rule] /usr/sbin/iptables -t nat -N VPN
[fw_rule] /usr/sbin/iptables -t nat -N PORT_FORWARD
[fw_rule] /usr/sbin/iptables -t filter -N DOS
[fw_rule] /usr/sbin/iptables -t filter -N SP_DOS_2
[fw_rule] /usr/sbin/iptables -t filter -N SCAN
[fw_rule] /usr/sbin/iptables -t filter -N PROXY
[fw_rule] /usr/sbin/iptables -t filter -N LOCAL_SERVICE
[fw_rule] /usr/sbin/iptables -t filter -N OUT_FILTER
[fw_rule] /usr/sbin/iptables -t filter -N HTTP
[fw_rule] /usr/sbin/iptables -t filter -N BLOCK_HTTP
[fw_rule] /usr/sbin/iptables -t filter -N IN_FILTER
[fw_rule] /usr/sbin/iptables -t filter -N MINIUPNPD
[fw_rule] /usr/sbin/iptables -t filter -N FW_BASIC
[fw_rule] /usr/sbin/iptables -t filter -N SMB
[fw_rule] /usr/sbin/iptables -t filter -N PORT_FORWARD
[fw_rule] /usr/sbin/iptables -t filter -N FTP_SHARES
[fw_rule] /usr/sbin/iptables -t filter -N HTTPS_SHARES
[fw_rule] /usr/sbin/iptables -t filter -N PT
[fw_rule] /usr/sbin/iptables -t filter -N C_NATMGR
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j PRE_BASIC
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j PRE_PROXY
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j PT
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j NAPT
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j VS
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j PORT_FORWARD
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -j DMZ
[fw_rule] /usr/sbin/iptables -P INPUT DROP
[fw_rule] /usr/sbin/iptables -A INPUT -i lo -j ACCEPT
[fw_rule] /usr/sbin/iptables -A INPUT -i ipsec0 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
[fw_rule] /usr/sbin/iptables -A INPUT -p tcp --syn -j DOS
[fw_rule] /usr/sbin/iptables -A INPUT -p udp -j DOS
[fw_rule] /usr/sbin/iptables -A INPUT -p icmp --icmp-type echo-request -j DOS
[fw_rule] /usr/sbin/iptables -A INPUT -j SP_DOS_2
[fw_rule] /usr/sbin/iptables -A INPUT -j PROXY
[fw_rule] /usr/sbin/iptables -A INPUT -j LOCAL_SERVICE
[fw_rule] /usr/sbin/iptables -P FORWARD DROP
[fw_rule] /usr/sbin/iptables -A FORWARD -j OUT_FILTER
[fw_rule] /usr/sbin/iptables -A FORWARD -p tcp -j HTTP
[fw_rule] /usr/sbin/iptables -A FORWARD -j FW_BASIC
[fw_rule] /usr/sbin/iptables -A FORWARD -j SP_DOS_2
[fw_rule] /usr/sbin/iptables -A FORWARD -j PORT_FORWARD
[fw_rule] /usr/sbin/iptables -A FORWARD -p tcp --syn -j DOS
[fw_rule] /usr/sbin/iptables -A FORWARD -p udp -j DOS
[fw_rule] /usr/sbin/iptables -A FORWARD -p icmp --icmp-type echo-request -j DOS
[fw_rule] /usr/sbin/iptables -A FORWARD -i eth1 -j IN_FILTER
[fw_rule] /usr/sbin/iptables -A FW_BASIC -i lo -j ACCEPT
[fw_rule] /usr/sbin/iptables -A FW_BASIC -i ipsec0 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A FW_BASIC -j C_NATMGR
[fw_rule] /usr/sbin/iptables -A FW_BASIC -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
[fw_rule] /usr/sbin/iptables -A FW_BASIC -m state --state ESTABLISHED,RELATED -j ACCEPT
[fw_rule] /usr/sbin/iptables -A FW_BASIC -i br0 -p tcp ! --syn -m state --state NEW -j DROP
[fw_rule] /usr/sbin/iptables -A FW_BASIC -m mark --mark 0x2511 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A FW_BASIC -m mark --mark 0x2512 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A LOCAL_SERVICE -m mark --mark 0x2511 -j ACCEPT
[fw_rule] /usr/sbin/iptables -t nat -A POSTROUTING -j VPN
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -i eth1 -j MINIUPNPD
[fw_rule] /usr/sbin/iptables -A FORWARD -i eth1 -j MINIUPNPD
[fw_rule] /usr/sbin/iptables -I INPUT -i br0 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A FW_BASIC -i br0 -j PT
[fw_rule] /usr/sbin/iptables -A FW_BASIC -i br0 -j ACCEPT
[fw_rule] /usr/sbin/iptables -t mangle -A OUTPUT -j MARK --set-mark 0x9527
[SYSTEM]/usr/sbin/rc syslogd create;/usr/bin/killall -SIGUSR2 syslogd &
[rc debug]/usr/sbin/rc syslogd create 
ap_name=syslogd action=create
[rc.c::rc_action():702] rc_action before add syslogd - create
 rc action <syslogd @ create> before file_lock. 
 rc action <syslogd @ create lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.syslogd.run
 rc action < unlock = 7> after file_lock. 
[rc.c::rc_action():710] rc_action after add syslogd - create
[rc.c::rc_create():686] Calling Create function of syslogd
unlink running file </var/run/rc.syslogd.run>
[SYSTEM]/bin/echo switch=on > /proc/net/spi_enable
[SYSTEM]/bin/echo clear > /proc/net/firewall_block
[SYSTEM]/bin/echo clear > /proc/net/clamp_total_session_for_one_src
[SYSTEM]/bin/echo clear > /proc/net/psd_udp_tcp_vanilla_port_scan
[SYSTEM]/bin/echo clear > /proc/net/echo_chargen_config
[SYSTEM]/bin/echo wan_if=eth1 > /proc/net/spi_enable
[SYSTEM]/bin/echo spi=enable > /proc/net/spi_enable
[fw_rule] /usr/sbin/iptables -A DOS -j RETURN
[fw_rule] /usr/sbin/iptables -I FORWARD -i br0 -p icmp --icmp-type port-unreachable -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -i ! eth1 -m ct_dir ! --ct_dir from_wan -j RETURN
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags ALL FIN,URG,PSH -j DLOG --log-level 19 --log-prefix "Xmas Tree Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags ALL FIN,URG,PSH -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags ALL FIN -j DLOG --log-level 19 --log-prefix "FIN Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags ALL FIN -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags ALL NONE -j DLOG --log-level 19 --log-prefix "NULL Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags ALL NONE -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags ACK ACK -j DLOG --log-level 19 --log-prefix "ACK Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags ACK ACK -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags ALL RST -j DLOG --log-level 19 --log-prefix "RST Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags ALL RST -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags ALL SYN,RST -j DLOG --log-level 19 --log-prefix "SYN/RST Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags ALL SYN,RST -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2 -m limit --limit 3/m --limit-burst 1 -p tcp --tcp-flags SYN,FIN SYN,FIN -j DLOG --log-level 19 --log-prefix "IMAP Scan"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags URG URG -j DLOG --log-level 19 --log-prefix "WinNuke Attack"
[fw_rule] /usr/sbin/iptables -A SP_DOS_2  -p tcp --tcp-flags URG URG -j DROP
[fw_rule] /usr/sbin/iptables -A PRE_BASIC -t nat -i eth1 -d ! (null) -j DROP
[fw_rule] /usr/sbin/iptables -t nat -A PRE_BASIC -d (null) -j CNAPT --dir in --eaddr (null)
[fw_rule] /usr/sbin/iptables -t nat -A PREROUTING -p udp -i eth1 -j CUDP --mode security --ctmark 0x2511
[fw_rule] /usr/sbin/iptables -t nat -I PRE_BASIC -i br0 -d (null) -j HAIRPIN --eaddr (null)
[fw_rule] /usr/sbin/iptables -t nat -A POSTROUTING -o br0 -s 192.168.1.1/24 -j HAIRPIN --eaddr (null)
fw_pt 
[fw_rule] /usr/sbin/iptables -I FW_BASIC -m mark --mark 0x2512 -i eth1 -o br0 -m state --state NEW -j DLOG --log-level 20
[fw_rule] /usr/sbin/iptables -F PT
[fw_rule] /usr/sbin/iptables -t nat -A PT -i eth1 -j CPT --ctmark 0x2512
[fw_rule] /usr/sbin/iptables -A PORT_FORWARD -i eth1 -o br0 -m state --state NEW -j DLOG --log-level 20
[fw_rule] /usr/sbin/iptables -A OUT_FILTER  -i ! br0 -j RETURN
[fw_rule] /usr/sbin/iptables -A INPUT -j FTP_SHARES
[fw_rule] /usr/sbin/iptables -D INPUT -i br0 -p tcp --dport 20:21 -j DROP
[fw_rule] /usr/sbin/iptables -I INPUT -i br0 -p tcp --dport 20:21 -j DROP
[fw_rule] /usr/sbin/iptables -t nat -D PRE_BASIC -i eth1 -p tcp --dport 21 -d (null) -j DNAT --to 192.168.1.1:20-21
[fw_rule] /usr/sbin/iptables -t nat -D PRE_BASIC -i br0 -p tcp --dport 21 -d (null) -j DNAT --to 192.168.1.1:20-21
[fw_rule] /usr/sbin/iptables -D FTP_SHARES -d 192.168.1.1 -p tcp --dport 20:21 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A INPUT -j HTTPS_SHARES
[fw_rule] /usr/sbin/iptables -t nat -D PRE_BASIC -i eth1 -p tcp --dport 80 -d (null) -j DNAT --to 192.168.1.1:80
[fw_rule] /usr/sbin/iptables -t nat -D PRE_BASIC -i br0 -p tcp --dport 80 -d (null) -j DNAT --to 192.168.1.1:80
[fw_rule] /usr/sbin/iptables -D HTTPS_SHARES -d 192.168.1.1 -p tcp --dport 80 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A C_NATMGR -j NATLIMIT --lan 192.168.1.1/24
[fw_rule] /usr/sbin/iptables -A LOCAL_SERVICE -d 192.168.1.1 -p tcp --dport 23 -j ACCEPT
[fw_rule] /usr/sbin/iptables -t nat -A PRE_BASIC -d 192.168.1.1 -p tcp --dport 5000 -j DNAT --to 192.168.1.1:80
[fw_rule] /usr/sbin/iptables -A LOCAL_SERVICE -p udp --sport 67 --dport 68 -j ACCEPT
[fw_rule] /usr/sbin/iptables -A BLOCK_HTTP -j REJECT --reject-with http-block
[fw_rule] /usr/sbin/iptables -A HTTP -o br0 -j RETURN
[fw_rule] /usr/sbin/iptables -A HTTP -m state --state INVALID -j DROP
[fw_rule] /usr/sbin/iptables -t nat -A POSTROUTING -o eth1 -j CNAPT --dir out --eaddr (null)
[fw_rule] /usr/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
[fw_rule] /usr/sbin/iptables  -A INPUT -i eth1 -d 239.255.255.250 -j DROP
[fw_rule] /usr/sbin/iptables  -A INPUT -d 224.0.0.0/3 -j ACCEPT
[fw_rule] /usr/sbin/iptables  -I FORWARD 1 -d 224.0.0.0/3 -j ACCEPT
[fw_rule] /usr/sbin/iptables  -t nat -I PREROUTING 1 -d 224.0.0.0/3 -j ACCEPT
[SYSTEM]/bin/cp /usr/etc/crontab /etc/crontab
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
iptables v1.4.6: host/network `(null)' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: Unknown arg `(null)'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: Unknown arg `(null)'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: Unknown arg `(null)'
Try `iptables -h' or 'iptables --help' for more information.
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
iptables v1.4.6: host/network `(null)' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: host/network `(null)' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: host/network `(null)' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: host/network `(null)' not found
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.6: Unknown arg `(null)'
Try `iptables -h' or 'iptables --help' for more information.
[SYSTEM]iptables -t nat -I PREROUTING -i br0 -p udp --dport 53 -m dnshj -j DNAT --to 192.168.1.1
[SYSTEM]/bin/cp /usr/etc/crontab /etc/crontab
[SYSTEM]/bin/echo GMT-4 > /etc/TZ
[SYSTEM]echo 1 > /proc/net/ipt_condition/schedule 
sh: can't create /proc/net/ipt_condition/schedule: nonexistent directory
[SYSTEM]echo flush > /proc/filter_table
[SYSTEM]echo 9 > /proc/sw_nat
[SYSTEM]echo 1 > /proc/fast_nat
unlink running file </var/run/rc.firewall.run>
[SYSTEM]/usr/sbin/mini_httpd -d /www -r "NETGEAR JNR3210" -c '**.cgi' -t 300&
unlink running file </var/run/rc.httpd.run>
[rc.c::rc_start():605] Calling Start function of dhcpd
 rc action <dhcpd @ start> before file_lock. 
 rc action <dhcpd @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.dhcpd.run
 rc action < unlock = 7> after file_lock. 
killall: udhcpd: no process killed
unlink running file </var/run/rc.dhcpd.run>
[rc.c::rc_start():605] Calling Start function of ntp
 rc action <ntp @ start> before file_lock. 
 rc action <ntp @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.ntp.run
 rc action < unlock = 7> after file_lock. 
[SYSTEM]/usr/sbin/netgear_ntp -z GMT-4& 
unlink running file </var/run/rc.ntp.run>
[rc.c::rc_start():605] Calling Start function of route
 rc action <route @ start> before file_lock. 
 rc action <route @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.route.run
 rc action < unlock = 7> after file_lock. 
unlink running file </var/run/rc.route.run>
[rc.c::rc_start():605] Calling Start function of ripd
 rc action <ripd @ start> before file_lock. 
 rc action <ripd @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.ripd.run
 rc action < unlock = 7> after file_lock. 
unlink running file </var/run/rc.ripd.run>
[rc.c::rc_start():605] Calling Start function of dnrd
 rc action <dnrd @ start> before file_lock. 
 rc action <dnrd @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.dnrd.run
 rc action < unlock = 7> after file_lock. 
[SYSTEM]iptables -t nat -D PREROUTING -i br0 -p tcp --dport 80 -j DNAT --to 192.168.1.1:80
iptables: No chain/target/match by that name.
[SYSTEM]iptables -t nat -D PREROUTING -i br0 -p udp --dport 53 -m dnshj -j DNAT --to 192.168.1.1
[SYSTEM]iptables -t nat -D PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.1
iptables: No chain/target/match by that name.
[SYSTEM]killall -9 dnrd
killall: dnrd: no process killed
[SYSTEM]iptables -t nat -D PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.1
iptables: No chain/target/match by that name.
[SYSTEM]iptables -t nat -I PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.1
[SYSTEM]iptables -t nat -I  PREROUTING -i br0 -p tcp --dport 80 -j DNAT --to 192.168.1.1:80
[SYSTEM]dnrd -a 192.168.1.1 -m hosts -c off -g routerlogin.com &
unlink running file </var/run/rc.dnrd.run>
[rc.c::rc_start():605] Calling Start function of potcounter
 rc action <potcounter @ start> before file_lock. 
 rc action <potcounter @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.potcounter.run
 rc action < unlock = 7> after file_lock. 
Notice: caching turned off
Warning: Using /etc/hosts will be removed in a future version. Please use only the /etc/dnrd/master file or use -m off.
unlink running file </var/run/rc.potcounter.run>
[rc.c::rc_start():605] Calling Start function of lltd
 rc action <lltd @ start> before file_lock. 
 rc action <lltd @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.lltd.run
 rc action < unlock = 7> after file_lock. 
unlink running file </var/run/rc.lltd.run>
[rc.c::rc_start():605] Calling Start function of wlan
 rc action <wlan @ start> before file_lock. 
 rc action <wlan @ start lock = 7> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.wlan.run
 rc action < unlock = 7> after file_lock. 
[SYSTEM]/bin/echo 0 > /proc/sw_nat
sh: /sbin/wl: not found
RC: insert wl.ko...
[SYSTEM]/bin/flash set_mib wlan0

enter flash, argc = 3
argv[0] = /bin/flash
argv[1] = set_mib
argv[2] = wlan0
wlan_idx=0, vwlan_idx=0
enter initWlan
sh: wlanapp.sh: not found
find [MIB_HW_RF_TYPE]=10
initWlan wlan_idx = 0, vlwan_idx=0, disable=0
find unconfirmed para [MIB_HW_REG_DOMAIN]=3
find [MIB_WLAN_WLAN_MAC_ADDR]=-1663865349
find [MIB_OP_MODE]=0
find [MIB_WISP_WAN_ID]=0
find unconfirmed para [MIB_HW_LED_TYPE]=7
find [MIB_WLAN_SSID]=NETGEAR89
find [MIB_WLAN_MODE]=0
find [MIB_HW_RF_TYPE]=10
find [MIB_HW_BOARD_VER]=1
find unconfirmed para [MIB_HW_TX_POWER_CCK_A]=0
find unconfirmed para [MIB_HW_TX_POWER_CCK_B]=0
find unconfirmed para [MIB_HW_TX_POWER_HT40_1S_A]=0
find unconfirmed para [MIB_HW_TX_POWER_HT40_1S_B]=0
find unconfirmed para [MIB_HW_TX_POWER_DIFF_HT40_2S]=0
find unconfirmed para [MIB_HW_TX_POWER_DIFF_HT20]=0
find unconfirmed para [MIB_HW_TX_POWER_DIFF_OFDM]=0
find unconfirmed para [MIB_HW_11N_TSSI1]=0
find unconfirmed para [MIB_HW_11N_TSSI2]=0
find unconfirmed para [MIB_HW_11N_THER]=15
find unconfirmed para [MIB_HW_11N_TRSWITCH]=1
find unconfirmed para [MIB_WLAN_RFPOWER_SCALE]=0
find [MIB_WLAN_BEACON_INTERVAL]=100
find [MIB_WLAN_CHANNEL]=0
find [MIB_WLAN_RTS_THRESHOLD]=2347
find [MIB_WLAN_FRAG_THRESHOLD]=2346
find [MIB_WLAN_INACTIVITY_TIME]=30000
find [MIB_WLAN_PREAMBLE_TYPE]=0
find unconfirmed para [MIB_WLAN_DTIM_PERIOD]=2
find unconfirmed para [MIB_WLAN_STBC_ENABLED]=0
find [MIB_WLAN_IAPP_DISABLED]=1
find unconfirmed para [MIB_WLAN_COEXIST_ENABLED]=0
find unconfirmed para [MIB_WLAN_PROTECTION_DISABLED]=0
find [MIB_WLAN_BLOCK_RELAY]=0
find unconfirmed para [MIB_WIFI_SPECIFIC]=2
find [MIB_WLAN_WDS_ENABLED]=0
find [MIB_WLAN_WDS_NUM]=1
find [MIB_WLAN_IAPP_DISABLED]=1
find [MIB_WLAN_MACAC_ENABLED]=0
find unconfirmed para [MIB_WLAN_MACCLONE_ENABLED]=0
find [MIB_OP_MODE]=0
find [MIB_WLAN_CHANNEL_BONDING]=1
find [MIB_WLAN_CONTROL_SIDEBAND]=1
find unconfirmed para [MIB_WLAN_SHORT_GI]=1
find unconfirmed para [MIB_WLAN_AGGREGATION]=1
find [MIB_WLAN_BLOCK_RELAY]=0
find unconfirmed para [MIB_WLAN_BASIC_RATES]=0
find unconfirmed para [MIB_WLAN_SUPPORTED_RATES]=0
find [MIB_WLAN_RATE_ADAPTIVE_ENABLED]=1
find [MIB_WLAN_HIDDEN_SSID]=0
find [MIB_WLAN_BAND]=11
find unconfirmed para [MIB_WLAN_ACCESS]=0
find [MIB_WLAN_WMM_ENABLED]=1
find [MIB_WLAN_AUTH_TYPE]=2
find [MIB_WLAN_ENCRYPT]=4
find [MIB_WLAN_WPA_AUTH]=2
find [MIB_WLAN_WPA_PSK]=fearlesstable856
find [MIB_WLAN_WPA_GROUP_REKEY_TIME]=3600
find [MIB_WLAN_WPA2_CIPHER_SUITE]=2
end initWlan
[SYSTEM]/bin/flash-gw set_hw wlan0

find country [Europe], channel[1~13]
[SYSTEM]/usr/sbin/iwpriv wlan0 set_mib ch_low=1

[SYSTEM]/usr/sbin/iwpriv wlan0 set_mib ch_hi=13

[SYSTEM]/bin/flash set_mib wlan0-va0

enter flash, argc = 3
argv[0] = /bin/flash
argv[1] = set_mib
argv[2] = wlan0-va0
wlan_idx=0, vwlan_idx=1
enter initWlan
initWlan wlan_idx = 0, vlwan_idx=1, disable=1
[SYSTEM]/bin/flash set_mib wlan0-va1

enter flash, argc = 3
argv[0] = /bin/flash
argv[1] = set_mib
argv[2] = wlan0-va1
wlan_idx=0, vwlan_idx=2
enter initWlan
initWlan wlan_idx = 0, vlwan_idx=2, disable=1
[SYSTEM]/bin/flash set_mib wlan0-va2

enter flash, argc = 3
argv[0] = /bin/flash
argv[1] = set_mib
argv[2] = wlan0-va2
wlan_idx=0, vwlan_idx=3
enter initWlan
initWlan wlan_idx = 0, vlwan_idx=3, disable=1
[SYSTEM]/bin/flash set_mib wlan0-va3

enter flash, argc = 3
argv[0] = /bin/flash
argv[1] = set_mib
argv[2] = wlan0-va3
wlan_idx=0, vwlan_idx=4
enter initWlan
initWlan wlan_idx = 0, vlwan_idx=4, disable=1
========idx=0
[SYSTEM]/bin/echo wlan disable[wlan0] = 0 > /dev/console
wlan disable[wlan0] = 0
[SYSTEM]/bin/echo 1 > /proc/br_shutcut_support
******************  start wlanapp ifname = br0 wlan0      *************************
open /proc/gpio: No such file or directory
Init Wlan application...
find [MIB_WLAN_MODE]=0
find [MIB_WLAN_IAPP_DISABLED]=1
find [MIB_WLAN_WSC_DISABLE]=0
find [MIB_WLAN_ENABLE_1X]=0
find [MIB_WLAN_ENCRYPT]=4
find [MIB_WLAN_NETWORK_TYPE]=0
find [MIB_WLAN_WPA_AUTH]=2
find [MIB_WLAN_WSC_UPNP_ENABLED]=1
find [MIB_WLAN_MODE]=0
find [MIB_WLAN_WDS_ENABLED]=0
find [MIB_WLAN_WDS_NUM]=1
find [MIB_WLAN_ENCRYPT]=4
find [MIB_WLAN_WPA_AUTH]=2
enter flash, argc = 4
argv[0] = flash
argv[1] = wpa
argv[2] = wlan0
argv[3] = /var/wpa-wlan0.conf
find [MIB_WLAN_ENCRYPT]=4
find [MIB_WLAN_SSID]=NETGEAR89
find [MIB_WLAN_ENABLE_1X]=0
find unconfirmed para [MIB_WLAN_ENABLE_SUPP_NONWPA]=0
find [MIB_WLAN_WEP]=0
find [MIB_WLAN_WPA_AUTH]=2
find [MIB_WLAN_WPA_CIPHER_SUITE]=1
find [MIB_WLAN_WPA2_CIPHER_SUITE]=2
find [MIB_WLAN_WPA2_PRE_AUTH]=0
find [MIB_WLAN_PSK_FORMAT]=0
find [MIB_WLAN_WPA_PSK]=fearlesstable856
find [MIB_WLAN_WPA_GROUP_REKEY_TIME]=3600
find [MIB_WLAN_RS_PORT]=1812
find [MIB_WLAN_RS_IP]=0
find [MIB_WLAN_RS_PASSWORD]=
find [MIB_WLAN_RS_MAXRETRY]=3
find [MIB_WLAN_RS_INTERVAL_TIME]=5
find undefined para [MIB_WLAN_ACCOUNT_RS_ENABLED]=5
find undefined para [MIB_WLAN_ACCOUNT_RS_PORT]=5
find undefined para [MIB_WLAN_ACCOUNT_RS_IP]=0
find undefined para [MIB_WLAN_ACCOUNT_RS_PASSWORD]=0
find undefined para [MIB_WLAN_ACCOUNT_RS_UPDATE_ENABLED]=5
find undefined para [MIB_WLAN_ACCOUNT_RS_UPDATE_DELAY]=5
find undefined para [MIB_WLAN_ACCOUNT_RS_MAXRETRY]=5
find undefined para [MIB_WLAN_ACCOUNT_RS_INTERVAL_TIME]=5
find [MIB_WLAN_IAPP_DISABLED]=1
find [MIB_WLAN_WSC_DISABLE]=0
find undefined para [MIB_REPEATER_ENABLED1]=0
find [MIB_WLAN_WSC_CONFIGURED]=1
enter flash, argc = 5
argv[0] = flash
argv[1] = upd-wsc-conf
argv[2] = /etc/wscd.conf
argv[3] = /var/wsc-wlan0.conf
argv[4] = wlan0
find [MIB_HW_WSC_PIN]=36532964
find [MIB_WLAN_WSC_REGISTRAR_ENABLED]=1
find [MIB_WLAN_WSC_UPNP_ENABLED]=1
find [MIB_WLAN_WSC_METHOD]=3
find [MIB_WLAN_NETWORK_TYPE]=0
find [MIB_WLAN_WSC_MANUAL_ENABLED]=0
find [MIB_WLAN_CHANNEL]=0
find [MIB_DEVICE_NAME]=JNR3210
find [MIB_DEVICE_NAME]=JNR3210
find [MIB_WLAN_WSC_AUTH]=32
find [MIB_WLAN_WSC_ENC]=8
find [MIB_WLAN_WSC_CONFIGURED]=1
find unconfirmed para [MIB_WLAN_WSC_CONFIGBYEXTREG]=0
find [MIB_WLAN_SSID]=NETGEAR89
find [MIB_WLAN_MODE]=0
find [MIB_WLAN_ENCRYPT]=4
find [MIB_WLAN_WEP]=0
find unconfirmed para [MIB_WLAN_WEP_KEY_TYPE]=1
find [MIB_WLAN_WEP_DEFAULT_KEY]=0
find [MIB_WLAN_WEP64_KEY1]=
find [MIB_WLAN_WEP64_KEY2]=
find [MIB_WLAN_WEP64_KEY3]=
find [MIB_WLAN_WEP64_KEY4]=
find [MIB_WLAN_WEP128_KEY1]=0
find [MIB_WLAN_WEP128_KEY2]=0
find [MIB_WLAN_WEP128_KEY3]=0
find [MIB_WLAN_WEP128_KEY4]=0
find [MIB_WLAN_WPA_PSK]=fearlesstable856
find [MIB_HW_NIC0_ADDR]=-1663865349

WiFi Simple Config v1.17 (2012.09.21-03:00+0000).

Register to wlan0
find [MIB_WLAN_ENCRYPT]=4
iwcontrol RegisterPID to (wlan0)
find [MIB_WLAN_WDS_ENABLED]=0
find [MIB_WLAN_WDS_NUM]=1
find [MIB_WLAN_MODE]=0
unlink running file </var/run/rc.wlan.run>
[rc.c::rc_start():605] Calling Start function of usb_init
 rc action <usb_init @ start> before file_lock. 
 rc action <usb_init @ start lock = 8> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.usb_init.run
 rc action < unlock = 8> after file_lock. 
[SYSTEM]/bin/rm /etc/samba/secrets.tdb
rm: cannot remove '/etc/samba/secrets.tdb': No such file or directory
[SYSTEM]/usr/bin/killall -9 smbd >/dev/null 2>&1
[SYSTEM]/usr/bin/killall -9 nmbd >/dev/null 2>&1
[SYSTEM]/usr/bin/killall -9 bftpd >/dev/null 2>&1
[SYSTEM]/usr/bin/killall -SIGTREM download_manage >/dev/null 2>&1
[SYSTEM]/usr/bin/killall download_manage >/dev/null 2>&1
[SYSTEM]/sbin/echo 128 > /proc/sys/vm/min_free_kbytes&
[SYSTEM]/bin/rm -rf /var/tmp/*.status &
[SYSTEM]/usr/bin/killall -9 bftpd >/dev/null 2>&1
unlink running file </var/run/rc.usb_init.run>
[rc.c::rc_start():605] Calling Start function of debug_mode
 rc action <debug_mode @ start> before file_lock. 
 rc action <debug_mode @ start lock = 8> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.debug_mode.run
 rc action < unlock = 8> after file_lock. 
unlink running file </var/run/rc.debug_mode.run>
[rc.c::rc_start():605] Calling Start function of wifi_isolation
 rc action <wifi_isolation @ start> before file_lock. 
 rc action <wifi_isolation @ start lock = 9> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.wifi_isolation.run
 rc action < unlock = 9> after file_lock. 
[SYSTEM]/bin/echo "lan_ip=192.168.1.1" > /proc/wifi_isolation
sh: can't create /proc/wifi_isolation: nonexistent directory
[SYSTEM]/bin/echo "lan_netmask=255.255.255.0" > /proc/wifi_isolation
sh: can't create /proc/wifi_isolation: nonexistent directory
unlink running file </var/run/rc.wifi_isolation.run>
=============rc finish 
  PID USER       VSZ STAT COMMAND
    1 root      1732 S    init       
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
    8 root         0 SW<  [async/mgr]
   66 root         0 SW<  [kblockd/0]
   75 root         0 SW<  [khubd]
   92 root         0 SW   [pdflush]
   93 root         0 SW<  [kswapd0]
  644 root         0 SW<  [mtdblockd]
  708 root      1740 S    /bin/sh /usr/etc/rcS 
  791 root      1112 S    /sbin/klogd 
  793 root      1076 S    /usr/sbin/cmd_agent_ap 
  812 root      1624 S    /usr/sbin/scfgmgr 
  814 root      1352 S    /usr/sbin/ft_tool 
  928 root      1172 S    /sbin/syslogd -f /etc/syslog.conf 
 1323 root      1444 S    /usr/sbin/mini_httpd -d /www -r NETGEAR JNR3210 -c **
 1329 root      1148 S    /usr/sbin/udhcpd /etc/udhcpd.conf 
 1756 root      1084 S    /usr/sbin/potcounter 
 1757 root      1900 S    dnrd -a 192.168.1.1 -m hosts -c off -g routerlogin.co
 1763 root      1488 S    /usr/bin/lld2 br0 
 1891 root      1372 S    wscd -start -c /var/wsc-wlan0.conf -w wlan0 -fi /var/
 1893 root      1904 S    /usr/sbin/wps_det do_addER_reset 
 1897 root      1120 S    iwcontrol wlan0 
 1940 root      1096 S    telnetenabled 192.168.1.1 9CD36DFBD096 Gearguy Geardo
 1946 root      1736 R    /bin/ps 
[rc debug]/usr/sbin/rc upnp start 
ap_name=upnp action=start
[rc.c::rc_action():702] rc_action before add upnp - start
 rc action <upnp @ start> before file_lock. 
 rc action <upnp @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.upnp.run
 rc action < unlock = 3> after file_lock. 
[rc.c::rc_action():710] rc_action after add upnp - start
unlink running file </var/run/rc.upnp.run>
[rc.c::rc_action():702] rc_action before add upnp - start
 rc action <upnp @ start> before file_lock. 
 rc action <upnp @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.upnp.run
 rc action < unlock = 3> after file_lock. 
[rc.c::rc_action():710] rc_action after add upnp - start
unlink running file </var/run/rc.upnp.run>
can't find this application
[rc.c::rc_action():702] rc_action before add upnp - start
 rc action <upnp @ start> before file_lock. 
 rc action <upnp @ start lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.upnp.run
 rc action < unlock = 3> after file_lock. 
[rc.c::rc_action():710] rc_action after add upnp - start
[rc.c::rc_start():605] Calling Start function of upnp
[SYSTEM]route add -net 239.0.0.0 netmask 255.0.0.0 br0
[SYSTEM]/usr/sbin/miniupnpd -i eth1 -a 192.168.1.1 -p 56688 -U -t 1800 -T 4 -u 824ff22b-8c7d-41c5-a131-9cd36dfbd096
unlink running file </var/run/rc.upnp.run>
route: SIOCADDRT: File exists
[rc debug]usr/sbin/rc wan start 
[SYSTEM]/bin/echo 0 > /proc/fast_pptp
[SYSTEM]/bin/echo 0 > /proc/fast_l2tp
[SYSTEM]echo 2 > /proc/fast_nat
[SYSTEM]/usr/sbin/brctl delif br0 eth1
device eth1 is not a slave of br0
[SYSTEM]/usr/bin/killall netgear_ntp
killall: netgear_ntp: no process killed
[SYSTEM]/usr/bin/killall -SIGUSR2 miniupnpd
killall: ripd: no process killed
killall: zebra: no process killed
killall: ripd: no process killed
killall: zebra: no process killed
[SYSTEM]/bin/echo 0 > /proc/sys/net/ipv4/conf/br0/forwarding
[SYSTEM]/usr/sbin/iptables -t nat -F POSTROUTING
[SYSTEM]/usr/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
[SYSTEM]/bin/echo 1 > /proc/sys/net/ipv4/conf/br0/forwarding
[SYSTEM]/sbin/rc firewall stop
[rc debug]/sbin/rc firewall stop 
ap_name=firewall action=stop
[rc.c::rc_action():702] rc_action before add firewall - stop
 rc action <firewall @ stop> before file_lock. 
 rc action <firewall @ stop lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.firewall.run
 rc action < unlock = 3> after file_lock. 
[rc.c::rc_action():710] rc_action after add firewall - stop
unlink running file </var/run/rc.firewall.run>
[rc.c::rc_action():702] rc_action before add firewall - stop
 rc action <firewall @ stop> before file_lock. 
 rc action <firewall @ stop lock = 3> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.firewall.run
 rc action < unlock = 3> after file_lock. 
[rc.c::rc_action():710] rc_action after add firewall - stop
[rc.c::rc_stop():644] Calling Stop function of firewall
[SYSTEM]echo 0 > /proc/sys/net/ipv4/ip_forward
[SYSTEM]echo 1 > /proc/sys/net/ipv4/conf/br0/forwarding
[SYSTEM]echo 1 > /proc/sys/net/ipv4/conf/wlan0/forwarding
[SYSTEM]echo 1 > /proc/sys/net/ipv4/conf/wlan0-va0/forwarding
unlink running file </var/run/rc.firewall.run>
[SYSTEM]/usr/sbin/iptables -D PRE_BASIC -t nat -i eth1 -d ! (null) -j DROP
sh: syntax error: "(" unexpected
[SYSTEM]/bin/echo "#!/bin/sh" > /etc/ppp/ip-down
[SYSTEM]/usr/bin/killall pptp
killall: pptp: no process killed
[SYSTEM]/usr/bin/killall l2tpd
killall: l2tpd: no process killed
[SYSTEM]/usr/sbin/rm -rf /tmp/l2tp
[SYSTEM]/usr/bin/killall pppd
killall: pppd: no process killed
[SYSTEM]/usr/bin/killall udhcpc
killall: udhcpc: no process killed
[SYSTEM]/usr/bin/killall pppoe-relay
killall: pppoe-relay: no process killed
[SYSTEM]/sbin/ifconfig eth1 0.0.0.0 >/dev/null 2>&1
[SYSTEM]/sbin/ifconfig eth1 down
[SYSTEM]/sbin/ifconfig eth1 hw ether 9C:D3:6D:fb:d0:97 
[SYSTEM]/sbin/ifconfig eth1 up
[SYSTEM]/sbin/ifconfig eth1 mtu 1500
[wan/wan.c::start_wan():1178] wan_mode is <dhcpc>
[SYSTEM]/usr/sbin/udhcpc -i eth1 -s /etc/udhcpc.script  -H "JNR3210"  &
cable_down_once
rm: cannot remove '/tmp/wan_uptime': No such file or directory
rm: cannot remove '/tmp/wan_ipaddr': No such file or directory
rm: cannot remove '/tmp/dhcpc.lease': No such file or directory
deleting dhcpc options releated routers
/bin/sh: can't open /tmp/dhcpc_route_related_options_del
[rc debug]/usr/sbin/rc route restart 
ap_name=route action=restart
[rc.c::rc_action():702] rc_action before add route - restart
 rc action <route @ restart> before file_lock. 
 rc action <route @ restart lock = 4> after file_lock. 
[SYSTEM]/bin/cp /proc/uptime /var/run/rc.route.run
 rc action < unlock = 4> after file_lock. 
[rc.c::rc_action():710] rc_action after add route - restart
[rc.c::rc_stop():644] Calling Stop function of route
[rc.c::rc_start():605] Calling Start function of route
unlink running file </var/run/rc.route.run>
  PID USER       VSZ STAT COMMAND
    1 root      1732 S    init       
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
    8 root         0 SW<  [async/mgr]
   66 root         0 SW<  [kblockd/0]
   75 root         0 SW<  [khubd]
   92 root         0 SW   [pdflush]
   93 root         0 SW<  [kswapd0]
  644 root         0 SW<  [mtdblockd]
  708 root      1740 R    /bin/sh /usr/etc/rcS 
  791 root      1112 S    /sbin/klogd 
  793 root      1076 S    /usr/sbin/cmd_agent_ap 
  812 root      1624 S    /usr/sbin/scfgmgr 
  814 root      1352 S    /usr/sbin/ft_tool 
  928 root      1172 S    /sbin/syslogd -f /etc/syslog.conf 
 1323 root      1444 S    /usr/sbin/mini_httpd -d /www -r NETGEAR JNR3210 -c **
 1329 root      1148 S    /usr/sbin/udhcpd /etc/udhcpd.conf 
 1756 root      1084 S    /usr/sbin/potcounter 
 1757 root      1900 S    dnrd -a 192.168.1.1 -m hosts -c off -g routerlogin.co
 1763 root      1488 S    /usr/bin/lld2 br0 
 1891 root      1372 S    wscd -start -c /var/wsc-wlan0.conf -w wlan0 -fi /var/
 1893 root      1904 S    /usr/sbin/wps_det do_addER_reset 
 1897 root      1120 S    iwcontrol wlan0 
 1940 root      1096 S    telnetenabled 192.168.1.1 9CD36DFBD096 Gearguy Geardo
 1959 root      2272 S    /usr/sbin/miniupnpd -i eth1 -a 192.168.1.1 -p 56688 -
 1960 root      1100 S    /usr/sbin/crond 
 1961 root      1372 S    /usr/sbin/multi_pb_app 90 91 92 10 50 
 1963 root         0 Z    [crond]
 1964 root         0 Z    [crond]
 1970 root      1080 S    /usr/sbin/cmd_agent 
 2204 root      1120 S    /usr/sbin/udhcpc -i eth1 -s /etc/udhcpc.script -H JNR
 2220 root      1624 S    usr/sbin/wan_monitor 
 2250 root         0 SW   [ telnetDBGD ]
 2251 root         0 SW   [ acktelnetDBGD ]
 2252 root         0 SW   [checkSBusTimeou]
 2255 root         0 SW   [NU UDP]
 2256 root         0 SW   [NU TCP]
 2257 root      1736 R    /bin/ps 
# 

Dmesg contents immediately after the bootup:

# dmesg
Linux version 2.6.30.9 (root@BuildServer) (gcc version 3.4.6-1.3.6) #1 Fri Sep 21 10:59:20 CST 2012
console [early0] enabled
CPU revision is: 0000dc02
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal   0x00000000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00008000
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat 8039d980, node_mem_map 81000000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS0,38400 root=/dev/mtdblock1
icache: 16kB/32B, dcache: 8kB/32B, scache: 0kB/0B
NR_IRQS:48
PID hash table entries: 512 (order: 9, 2048 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 121728k/131072k available (2800k kernel code, 9156k reserved, 904k data, 108k init, 0k highmem)
Calibrating delay loop... 619.31 BogoMIPS (lpj=3096576)
Mount-cache hash table entries: 512
net_namespace: 524 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NTFS driver 2.1.29 [Flags: R/W DEBUG].
fuse init (API version 7.11)
msgmni has been set to 238
io scheduler noop registered
io scheduler cfq registered (default)
Realtek GPIO Driver for Flash Reload Default
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x18002000 (irq = 8) is a 16550A
Driver 'sd' needs updating - please use bus_type methods
PPP generic driver version 2.4.2
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
RTL8192C/RTL8188C driver version 1.4 (2010-12-22)
=====>>INSIDE rtl8192cd_init_one <<=====
PCIE reset (0) 
Do MDIO_RESET
Find Port=0 Device:Vender ID=819110ec
vendor_deivce_id=819110ec
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====
=====>>INSIDE rtl8192cd_init_one <<=====
=====>>EXIT rtl8192cd_init_one <<=====



Probing RTL8186 10/100 NIC-kenel stack size order[2]...
chip name: 8196C, chip revid: 0
==Set GPHY Parameter OK
NOT YET
Set threshould idx 0
eth0 added. vid=9 Member port 0x1...
eth1 added. vid=8 Member port 0x10...
eth2 added. vid=9 Member port 0x2...
eth3 added. vid=9 Member port 0x4...
eth4 added. vid=9 Member port 0x8...
eth5 added. vid=9 Member port 0x0...
[peth0] added, mapping to [eth1]...
port_num 0, link 0, speed: 0
port_num 1, link 0, speed: 0
port_num 2, link 0, speed: 0
port_num 3, link 0, speed: 0
port_num 4, link 0, speed: 0
SPI INIT
 ------------------------- Force into Single IO Mode ------------------------ 
|No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
| 0 c22017h  0h  800000h  10000h   1000h     100h   86    0   MX6405D/05E/45E|
 ---------------------------------------------------------------------------- 
SPI flash(MX6405D/05E/45E) was found at CS0, size 0x800000
Creating 14 MTD partitions on "flash_bank_1":
0x000000020000-0x0000007b0000 : "fs+kernel+multi-lang"
0x000000160000-0x0000006f0000 : "rootfs"
0x000000000000-0x000000020000 : "bootloader"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007b0000-0x0000007c0000 : "POT"
0x0000007c0000-0x0000007d0000 : "traffic_meter"
0x0000007d0000-0x0000007e0000 : "DPF"
0x0000007f0000-0x000000800000 : "BRCM_NV"
0x0000006f0000-0x000000710000 : "English UI"
0x000000710000-0x000000730000 : "Chinese UI"
0x000000730000-0x000000750000 : "Russian UI"
0x000000750000-0x000000770000 : "Portuguese UI"
0x000000770000-0x000000790000 : "German UI"
0x000000790000-0x0000007b0000 : "Other UI"
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
rtl8652-ehci rtl8652-ehci.0: RTL8652 On-Chip EHCI Host Controller
rtl8652-ehci rtl8652-ehci.0: new USB bus registered, assigned bus number 1
read synopsys=0
read synopsys2=0
rtl8652-ehci rtl8652-ehci.0: irq 10, io base 0x18021000
rtl8652-ehci rtl8652-ehci.0: USB 0.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
rtl8652-ohci rtl8652-ohci.0: RTL8652 OHCI
rtl8652-ohci rtl8652-ohci.0: new USB bus registered, assigned bus number 2
rtl8652-ohci rtl8652-ohci.0: irq 10, io mem 0x18020000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Netlink[Kernel] create socket for igmp ok.
VFS: Mounted root (squashfs filesystem) readonly on device 31:1.
Freeing unused kernel memory: 108k freed
led_pb_api: module license 'Sercomm' taints kernel.
Disabling lock debugging due to kernel taint
Register LED ID <70>
Register LED ID <71>
Register LED ID <18>
Register LED ID <14>
Register LED ID <15>
Register LED ID <16>
Register LED ID <17>
Register LED ID <10>
Register LED ID <11>
Register LED ID <12>
Register LED ID <13>
Register LED ID <20>
Register LED ID <30>
Register LED ID <38>
Register LED ID <45>
Register LED ID <60>
Register LED ID <75>
Register LED ID <90>
Register LED ID <91>
Register LED ID <92>
netfilter dnshj choose interested dns queries module loaded !
init common module successful
insert firewall block module success
fake source dos protect modules is inserted
netfilter PSD and TCP/UDP Echo/Chargen Attack loaded 
netfilter tcp syn flood module loaded 
netfilter clamp total session for one src ip module loaded 
netfilter other dos module loaded 
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
dev:eth1 del et:0
dev:ppp0 del et:-3
ft_tool uses obsolete (PF_INET,SOCK_PACKET)
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
port_num 0, link 0, speed: 0
port_num 1, link 0, speed: 0
port_num 2, link 0, speed: 0
port_num 3, link 0, speed: 0
port_num 4, link 0, speed: 0
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
dev:eth1 add  ret:0
dev:ppp0 add  ret:-2
br0: port 1(eth0) entering forwarding state
block items:
input:clear

clamp total entry used:0
total count:0
input str:clear

psd clear oldest entry
 proc_write_echo_chargen receive: len: 6, input: clear
 proc_write_echo_chargen receive: clear list
 Leaving proc_write_echo_chargen : size: 6
wan interface=[eth1], index=18
br interface=[br0], index=24
device wlan0 entered promiscuous mode
[PHY_ConfigMACWithParaFile][MACPHY_REG_92C]
[PHY_ConfigBBWithParaFile][PHY_REG_PG]
===> Load_92C_Firmware
= Load_92C_Firmware
8192c firmware not ready
8192c firmware not ready
8192c firmware not ready
8192c firmware not ready
br0: port 2(wlan0) entering learning state
Can't find DB for id==61
Can't find DB for id==62
Can't find DB for id==63
Can't find DB for id==64
Can't find DB for id==65
Can't find DB for id==66
Can't find DB for id==67
Can't find DB for id==68
br0: port 2(wlan0) entering forwarding state
Can't find DB for id==74
 GPL NetUSB up!
kc   88 : run_telnetDBGDServer start 
kc  225 : init_DebugD end
INFO1714: NetUSB 1.173, 0002061E : Apr 12 2012 01:10:41
INFO1716:  AUTH ISOC
INFO1717:  MOVE_HEAD emb_audio isocSubBackisocGenNosoundPkt
INFO027E:  embedded_init_soundcore 
INFO0FC4:  embedded_usb_audio_init 
INFO0FE2:  0 : tunnelID AirPlay 
INFO0A68:  --- checkSBusTimeoutThread start ---
usbcore: registered new interface driver KC NetUSB General Driver
INFO0076:  init proc : PAGE_SIZE 4096
INFO15D5:  sleep to wait br0 to wake up
INFO02D0:  use dev Name br0 
INFO15DE:  sleep to wait br0 end.
INFO15F7:  UDP_BROAD 7423 tcpPort:625868800 
INFO02D0:  use dev Name br0 
INFO152E: tcpConnector() started...
INFO140B: Bind to br0
# 

Boot loader seems to be a derivation (?) of the rtl819x-bootcode (source is available as a part of rtl819x SDK on SourceForge). NetGear provides an archive for download from their FTP containing JNR3210 SDK which is as expected based on the original RealTek SDK for this SoC.

Flash layout looks like this:

0x000000-0x020000 : "bootloader"

0x020000-0x7b0000 : "fs+kernel+multi-lang"

0x160000-0x6f0000 : "rootfs"
0x6f0000-0x710000 : "English UI"
0x710000-0x730000 : "Chinese UI"
0x730000-0x750000 : "Russian UI"
0x750000-0x770000 : "Portuguese UI"
0x770000-0x790000 : "German UI"
0x790000-0x7b0000 : "Other UI"

0x7b0000-0x7c0000 : "POT"
0x7c0000-0x7d0000 : "traffic_meter"
0x7d0000-0x7e0000 : "DPF"
0x7e0000-0x7f0000 : "nvram"
0x7f0000-0x800000 : "BRCM_NV"

Looking at ranges it seems that kernel starts at 0x020000 and could be max 0x140000 bytes (1.25MB) in length. Inspecting Netgear's JNR3210 SDK suggests that kernel partition size is expected to be set by hand at the moment of firmware image generation. From the file names in the aforementioned SDK one may conclude that bootloader is cfe (binary blob file with bootloader is named "jnr3210ncn_cfez.bin") but I highly doubt it is really a CFE or its fork - boot messages seem to differ from what CFE boot usually looks like. Actually bootloader looks like a modified by Sercomm version of original Realtek rtl819x-bootcode with added-in functionality to auto-recover over TFTP like it is done with so-called "slugimages" of NSLU2. Then again, bootloader don't seem to be a redboot derivate as it were in case of NSLU2.

To terminate normal boot sequence there are two options:
1) Press ESC over serial console at the early boot stage before bootloader hands off control to linux kernel. Here is how it looks like:

========== SPI =============
SDRAM CLOCK:181MHZ
 ------------------------- Force into Single IO Mode ------------------------ 
|No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
| 0 c22017h  0h  800000h  10000h   1000h     100h   86   45   MX6405D/05E/45E|
 ---------------------------------------------------------------------------- 
Reboot Result from Watchdog Timeout!

---RealTek(RTL8198)at 2012.05.22-14:53+0800 version v1.1f [16bit](620MHz)
enter monitor earlier!
<Sercomm>help
----------------- COMMAND MODE HELP ------------------
HELP (?)                                    : Print this help message
D <Address> <Len>
DB <Address> <Len>
DW <Address> <Len>
EW <Address> <Value1> <Value2>...
EB <Address> <Value1> <Value2>...
CMP: CMP <dst><src><length>
IPCONFIG:<TargetAddress>
AUTOBURN: 0/1
LOADADDR: <Load Address>
J: Jump to <TargetAddress>
FLW <dst_ROM_offset><src_RAM_addr><length_Byte> <SPI cnt#>: Write offset-data to SPI from RAM
EEE :Set EEE Pathch 
SCDOWNLOAD :Enter Sercomm download mode 
SCTFTP :RTL TFTP Server 
SCTFTP_REC :Enter Sercomm  TFTP Recovery mode 
SCLPTEST :Enter Sercomm loopback test sample mode 
SCRAMTEST :Enter Sercomm ram test 
SCREAD: sc flash read debug command 
SCERASE: sc flash erase debug command 
SCWRITE: sc flash write byte debug command 
SCRX: sc ethernet rx debug command 
SCTX: sc ethernet tx debug command 
SCMII: sc mii debug command 
SCREG: sc cpu register debug command 
SCLED: sc led test debug command 
SCLED_BLINK: sc led blink debug cmd 
SCBTN: sc button test debug command 
<Sercomm>

2) Power the unit on having reset button pressed. Here is console output:

Booting...�
========== SPI =============
SDRAM CLOCK:181MHZ
 ------------------------- Force into Single IO Mode ------------------------ 
|No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
| 0 c22017h  0h  800000h  10000h   1000h     100h   86   45   MX6405D/05E/45E|
 ---------------------------------------------------------------------------- 
Reboot Result from Watchdog Timeout!

---RealTek(RTL8198)at 2012.05.22-14:53+0800 version v1.1f [16bit](620MHz)
Enter NMRP_main
NMRP func [NMRP_init] state is [0x00]  line [84]
Scanning Flash Section 0...
Scanning Flash Section 1...
Flash Sector Number : 128.
NMRP func [NMRP_init] state is [0x00]  line [93]
Set GPHY Parameter OK
NMRP func [NMRP_init] state is [[0x00]]  line [99]
Our ETH MAC:

9c d3 6d fb d0 96 
NMRP:LISTENING
Enter NMRP_handle_LISTENING_state
### No NMRP Server found ###
Scanning Flash Section 0...
Scanning Flash Section 1...
Flash Sector Number : 128.

***************************************************
    Sercomm Boot Version 1.5.0.0

***************************************************
Reset Button is pressed! - to SC_Upgrade
Scanning Flash Section 0...
Scanning Flash Section 1...
Flash Sector Number : 128.
In Download now...
Set GPHY Parameter OK

9c d3 6d fb d0 96

That's all info I had gathered from box for now.

To the questions part:
1) Would it be possible to install OpenWRT on this box using realtek-unstable branch of nprove git repo?
2) What is the expected way to flash the firmware into this box - preferably without using serial console? I'm considering buying  two or three JNR3210 boxes for my family in case it would be possible to run OpenWRT on them.
3) Any way I could help people @NProve and other in this thread with their OpenWRT on RTL819x porting effort? At the very least I could build/flash/test firmware images and post result here in case it would be of some help.

Thanks for your hard work, keep it up.

Well, I finally have a toolchain capable of supporting that soc. Currently realtek just gave me a binary version to use as an external toolchain. I won't personally support it, but I can give you the tools to do it on your own.

I have bought Nprove U150M. I have been configured VLAN on this device but no luck. So i have 3 questions:

1. Does it support VLAN (Virtual LAN)?
2. How to i reset it to defaut factory?
3. Does it support NAS?

Thank for your help

ps2chiper wrote:

Well, I finally have a toolchain capable of supporting that soc. Currently realtek just gave me a binary version to use as an external toolchain. I won't personally support it, but I can give you the tools to do it on your own.

It could be of some help, thanks for the offer. Is it something like Netgear (essentially, Realtek) provided in "toolchain-1.3.6-5281-EB-2.6.30-0.9.30-source-20101125.tbz2? From what I see, it is based on uClibc 0.9.30, gcc 3.4.6 and binutils 2.16 with some patches allied. Is the toolchain you have based on a more recent component versions? Would it be possible to use this toolchain as "external" for nprove realtek-unstable openwrt branch to compile kernel and rootfs that would run on JNR3210 box?

How much Ram and Flash does a router have to have to make LuCy run smoothly?

Hello community,

I've being watching this thread for some time and I'm more then pleased to tell that you've done a great job supporting rtl8xxxx in Openwrt. I barely wait to see it supported in the development main branch along with the other hardware platforms.

I don't know if this it the right place to post but, I'm trying to flash Openwrt to a TP-Link TL-R402 [1] router. It's a very simple and cheap rtl8196c based router, without wireless (4 lans + 1 wan only). It has 16MB of ram [2] and an Eon EN25F40 4MB of flash [3]. I've managed to compile a firmware for this board, based on nprove branch, provided in the first post of this thread (thanks Roman for shareing). There were some problems with finding and downloading linux.2.6.30 kernel and compiling uci firewall3 package (it wasn't finding ip_set.h file) but in the end it build successfuly; a patch can be provided if someone is interested. Also odhcp6 failed to compile in my case but it wasn't needed and it was removed for good.

Before trying new custom firmwares (like Openwrt) a full flash backup via jtag is desired so that a recover procedure would be possible. I've managed to manufacture a simple unbuffered cable as described in the HairyDairyMaid_WRT54G_Debrick_Utility_v48 [4] package.  I've played also with tjtag [5] utility;  it appears to be a branch with more supported devices then the original HairyDairyMaid utility. tjtag correctly detects the router's cpu and its capabilities. The cpu gets reset (all leds are turned on for a second) but no matter what, the flash memory isn't detected at all. In DMA mode the detected vendor and device ids are always zero, while in noDMA mode, the utility hangs indefinitely waiting for PrACC flag set to 1 in ExecuteDebugModule function. Looking at the rtl8196c_98 [6] bootcode, the flash memory initialization resembles with CMD_TYPE_AMD flash detection mode from tjtag with the exception here it doesn't work. I don't know if those DMA routines works correctly. They presume a lot of magic addresses wrote or read and couldn't find any documentation about about them. I've trying to use different start addresses for flash memory start address, including  0xbd000000 as of FLASH_BASE define from rtl8196.h as found in rtl8196c_98 bootcode, but all of them failed (devid and vendid are set to zero as said earlier). Here is a tjtag capture in DMA mode, from a Linux system:

./tjtag3 -probeonly:custom /flash_debug /window:0xbd000000 /start:0xbd000000

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD
==============================================

Probing bus ... Done

Instruction Length set to 5

CPU Chip ID: 00010100001110000000000000001101 (1438000D)
*** Found a LX4380 chip ***

    - EJTAG IMPCODE ....... : 00000010110000010000000110000000 (02C10180)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k ASID_8 MIPS16 MIPS32

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Done
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done
spi_flash_read 0x1fc00000
spi_flash_mmr  0x11300000
spi_flash_mmr_size 0x0000000c
spi_flash_ctl  0x00000000
spi_flash_opcode 0x00000004
spi_flash_data 0x00000008
spi_ctl_start 0x00000100
spi_ctl_busy 0x00010000

Probing Flash at (Flash Window: 0xbd000000) ...

Debug AMD Vendid :    00000000000000000000000000000000 (00000000)
Debug AMD Devdid :    00000000000000000000000000000000 (00000000)

Debug SST Vendid :    00000000000000000000000000000000 (00000000)
Debug SST Devdid :    00000000000000000000000000000000 (00000000)

Debug BSC-SCS Vendid :00000000000000000000000000000000 (00000000)
Debug BCS-SCS Devdid :00000000000000000000000000000000 (00000000)
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000000
REG 0x00000004 REGWRITE32 0x0000009f
SPI_FLASH_OPCODE 0x00000004 PTR_OPCODE 0x0000009f
REG 0x00000000 REGWRITE32 0x00000131
SPI_FLASH_CTL SEND -> 0x00000000 reg 0x00000131
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000000
REGREAD32 data 0x00000000 spi_flash_mmr 0x11300000 reg 0x00000008

Debug SPI id :    00000000000000000000000000000000 (00000000)

Debug SPI Vendid :    00000000000000000000000000000000 (00000000)
Debug SPI Devdid :    00000000000000000000000000000000 (00000000)
Done

*** Unknown or NO Flash Chip Detected ***

 *** REQUESTED OPERATION IS COMPLETE ***

On the noDMA mode I don't know why, that flag (PrACC) is set and then expected to remain set on 1 on a subsequent read. According to the Mips Ejtag Specifications, revision 5.04 [7] page 99, the PrACC flag is described as:

Indicates a pending processor access and controls finishing
of a pending processor access. When read:
0 - No pending processor access
1 - Pending processor access

A write of 0 finishes a processor access if pending; otherwise
operation of the processor is UNDEFINED if the
bit is written to 0 when no processor access is pending.
A write of 1 is ignored.
A successful FASTDATA access will clear this bit. See
Table 4.11 for details.

So the PrACC "write of 1 is ignored" and yet tjtag tries to set and expect to remain set to 1.

Do you have any experience in working with jtag on this platform?

What would you suggest to try next or what should I further read in order to pass this point?

Thanks!

References:
1. http://www.tp-link.us/products/details/ … l=TL-R402M
2. http://pdf.datasheetcatalog.com/datashe … 302_DS.pdf
3. http://www.essi.com.tw/upfile/p200892918732.pdf
4. http://downloads.openwrt.org/utils/Hair … ty_v48.zip
5. http://downloads.sourceforge.net/projec … ror=heanet
6. http://sourceforge.net/projects/rtl819x … boa.tar.gz
7. https://docs.google.com/folderview?id=0 … Y4NTYxYzlm

It's been a while since I did anything for realtek but here are some good news:
http://git.nprove.in/rtkmib/
http://git.nprove.in/rtl819xx/?h=realtek-unstable
http://downloads.nprove.in/snapshots/rt … /20140311/

rtkmib is a tool to read and decode (if needed) the hardware configuration data like wifi calibration and mac addresses.
I've added all the needed scripts, so nprove routers will work out of the box but others will have to test.

I suggest to everybody who is interested - try rtkmib tool (e.g. `rtkmib -g wmac0') and report back any anomalies. Also try verbose flag.

quanghn1402 wrote:

I have bought Nprove U150M. I have been configured VLAN on this device but no luck. So i have 3 questions:

1. Does it support VLAN (Virtual LAN)?
2. How to i reset it to defaut factory?
3. Does it support NAS?

Thank for your help

To partially answer your questions.
1. Yes it does support VLAN. Not in the traditional openwrt way as of now. I need to write an in depth manual addressing this.
2. Look in the settings panel and eventually you will find factory reset. use that.
3. NAS is supported vis Openwrt and USB.

Use Urjtag and prepare the lexra cpu codes. I did in the past but it was over a year ago. The only thing I was not able to get Urjtag to work on it, was reading and writing to the spi flash. everything else seemed to work.

Hi Guys!

I have TP-LINK TL-WR1042ND:

CPU: Realtek RTL8198 (620 MHz)
FLASH: 8 MB (Spansion S25FL064P)
RAM: 64 MB (Hynix H5PS5162GFR-Y5C)

Could i participate in testing openwrt?

LinuxMan wrote:

Hi Guys!

I have TP-LINK TL-WR1042ND:

CPU: Realtek RTL8198 (620 MHz)
FLASH: 8 MB (Spansion S25FL064P)
RAM: 64 MB (Hynix H5PS5162GFR-Y5C)

Could i participate in testing openwrt?

Is that version 3? They used Atheros chips before in WR1042ND model 1 and 2.
To answer your question: we don't support 8198 chips yet, but hopefully we will soon.

LinuxMan wrote:

Hi Guys!

I have TP-LINK TL-WR1042ND:

CPU: Realtek RTL8198 (620 MHz)
FLASH: 8 MB (Spansion S25FL064P)
RAM: 64 MB (Hynix H5PS5162GFR-Y5C)

Could i participate in testing openwrt?


All I could do is provide you with a Toolchain for it.

roman wrote:
LinuxMan wrote:

Hi Guys!

I have TP-LINK TL-WR1042ND:

CPU: Realtek RTL8198 (620 MHz)
FLASH: 8 MB (Spansion S25FL064P)
RAM: 64 MB (Hynix H5PS5162GFR-Y5C)

Could i participate in testing openwrt?

Is that version 3? They used Atheros chips before in WR1042ND model 1 and 2.
To answer your question: we don't support 8198 chips yet, but hopefully we will soon.

It's revision "1.4". Google says that it's have RTL8198.

You have some plans for this chip or no sooner than somebody from your team will get router with this chip?

ps2chiper wrote:
danielsokolowski wrote:

Hi Roman, thanks for your work on this - I have purchased: TP-LINK TL-WR841HP which seems to be  Realtek RTL8196D and Realtek RTL8192CE - http://wikidevi.com/wiki/TP-LINK_TL-WR841HP. So please keep up posted on your progress and if you have a donate page feel free to share the link.

TP-Link routers are crappy with stock firmware but great when flashed with openwrt firmware -  in my limited experience


We have a version of Backfire that can work on your router. Do you want to try it?

Hi ps2chiper,

Is the firmaware for TL-WR841HP working?
I want to buy this router but only if can run openwrt.

Thanks

vhcolombo wrote:
ps2chiper wrote:
danielsokolowski wrote:

Hi Roman, thanks for your work on this - I have purchased: TP-LINK TL-WR841HP which seems to be  Realtek RTL8196D and Realtek RTL8192CE - http://wikidevi.com/wiki/TP-LINK_TL-WR841HP. So please keep up posted on your progress and if you have a donate page feel free to share the link.

TP-Link routers are crappy with stock firmware but great when flashed with openwrt firmware -  in my limited experience


We have a version of Backfire that can work on your router. Do you want to try it?

Hi ps2chiper,

Is the firmaware for TL-WR841HP working?
I want to buy this router but only if can run openwrt.

Thanks

It can work if it has a minimum of 4MB flash and 32MB ram. It would be prefered if it has 8MB flash.

danielsokolowski wrote:

Hi Roman, thanks for your work on this - I have purchased: TP-LINK TL-WR841HP which seems to be  Realtek RTL8196D and Realtek RTL8192CE - http://wikidevi.com/wiki/TP-LINK_TL-WR841HP. So please keep up posted on your progress and if you have a donate page feel free to share the link.

TP-Link routers are crappy with stock firmware but great when flashed with openwrt firmware -  in my limited experience

@danielsokolowski have you tried the openwrt in your WR841HP? Do you know how much flash memory this has? Maybe you could take a picture of the board and post here wink

vhcolombo wrote:
danielsokolowski wrote:

Hi Roman, thanks for your work on this - I have purchased: TP-LINK TL-WR841HP which seems to be  Realtek RTL8196D and Realtek RTL8192CE - http://wikidevi.com/wiki/TP-LINK_TL-WR841HP. So please keep up posted on your progress and if you have a donate page feel free to share the link.

TP-Link routers are crappy with stock firmware but great when flashed with openwrt firmware -  in my limited experience

@danielsokolowski have you tried the openwrt in your WR841HP? Do you know how much flash memory this has? Maybe you could take a picture of the board and post here wink

For everyone who wants to try 96d. Please PM me so I can personally help you out. You will need to change the bootloader to make it work. I want to help you with that as its not really documented, nor the sources provided for the bootloader.

========== SPI =============
SDRAM CLOCK:168MHZ
 ------------------------- Force into Single IO Mode ------------------------ 
|No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
| 0 ef4017h  0h  800000h  10000h   1000h     100h   40   28           UNKNOWN|
 ---------------------------------------------------------------------------- 
Reboot Result from Watchdog Timeout!

---RealTek(RTL8198)at 2014.02.28-15:22+0200 version v1.2 [16bit](620MHz)
no sys signature at 00010000!
no sys signature at 00020000!
Jump to image start=0x80500000...


OpenWrt kernel loader for Realtek rtl819xx
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Copyright (C) 2013 Roman Yeryomin <roman@advem.lv>
Decompressing kernel to 80000000... done!
Seems kernel_entry address is different from load address, so...
Starting kernel from 80003590...

[    0.000000] CPU revision is: 0000dc02
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,38400 root=/dev/mtdblock2
[    0.000000] icache: 16kB/32B, dcache: 8kB/32B, scache: 0kB/0B
[    0.000000] NR_IRQS:48
[    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[    0.000000] console handover: boot [early0] -> real [ttyS0]
[    0.010000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.020000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.040000] Memory: 53952k/65536k available (3175k kernel code, 11508k reserved, 1001k data, 120k init, 0k highmem)
[    0.050000] Calibrating delay loop... 619.31 BogoMIPS (lpj=3096576)
[    0.280000] Mount-cache hash table entries: 512
[    0.290000] net_namespace: 780 bytes
[    0.300000] NET: Registered protocol family 16
[    0.350000] bio: create slab <bio-0> at 0
[    0.370000] SCSI subsystem initialized
[    0.380000] usbcore: registered new interface driver usbfs
[    0.390000] usbcore: registered new interface driver hub
[    0.400000] usbcore: registered new device driver usb
[    0.420000] NET: Registered protocol family 2
[    0.430000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.440000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.450000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.460000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.470000] TCP reno registered
[    0.480000] NET: Registered protocol family 1
[    0.490000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.500000] fuse init (API version 7.11)
[    0.510000] msgmni has been set to 105
[    0.520000] alg: No test for stdrng (krng)
[    0.530000] io scheduler noop registered
[    0.540000] io scheduler cfq registered (default)
[    1.170000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.180000] serial8250: ttyS0 at MMIO 0x18002000 (irq = 8) is a 16550A
[    1.190000] Driver 'sd' needs updating - please use bus_type methods
[    1.200000] PPP generic driver version 2.4.2
[    1.210000] MPPE/MPPC encryption/compression module registered
[    1.220000] NET: Registered protocol family 24
[    1.240000] tun: Universal TUN/TAP device driver, 1.6
[    1.250000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.270000] Realtek WLAN driver - version 1.6 (2013-02-21)
[    1.280000]  wlan_index:0  0, 134,0xba000000,0xb8b30000,14
[    1.290000] =====>>INSIDE rtl8192cd_init_one <<=====
[    1.300000] sizeof(struct rtl8192cd_priv) = 161152 
[    1.320000] PCIE reset (0) 
[    2.330000] Do MDIO_RESET
[    3.340000] 98 - 40MHz Clock Source
[    5.860000] i=0  Cannot LinkUP 
[    5.870000] =====>>EXIT rtl8192cd_init_one2(-19) <<=====
[    5.880000] init_one fail!!!   rc=-19
[    5.890000]  wlan_index:1  0, 134,0xb9000000,0xb8b10000,11
[    5.900000] =====>>INSIDE rtl8192cd_init_one <<=====
[    5.910000] sizeof(struct rtl8192cd_priv) = 161152 
[    5.920000] PCIE reset (0) 
[    6.930000] Do MDIO_RESET
[    7.940000] 98 - 40MHz Clock Source
[    9.970000] Find Port=0 Device:Vender ID=819110ec
[   10.480000] vendor_deivce_id=819110ec
[   10.510000] =====>>EXIT rtl8192cd_init_one <<=====
[   10.520000] =====>>INSIDE rtl8192cd_init_one <<=====
[   10.530000] sizeof(struct rtl8192cd_priv) = 161152 
[   10.540000] =====>>EXIT rtl8192cd_init_one <<=====
[   10.550000] =====>>INSIDE rtl8192cd_init_one <<=====
[   10.560000] sizeof(struct rtl8192cd_priv) = 161152 
[   10.570000] =====>>EXIT rtl8192cd_init_one <<=====
[   10.580000] 
[   10.580000] 
[   10.580000] 
[   10.580000] Probing RTL8186 10/100 NIC-kenel stack size order[2]...
[   10.940000] chip name: 8196C, chip revid: 0
[   11.570000] ==Set GPHY Parameter OK
[   11.580000] NOT YET
[   11.600000] Set threshould idx 0
[   11.620000] eth0 added. vid=9 Member port 0x1...
[   11.630000] eth1 added. vid=8 Member port 0x10...
[   11.640000] eth2 added. vid=9 Member port 0x2...
[   11.650000] eth3 added. vid=9 Member port 0x4...
[   11.660000] eth4 added. vid=9 Member port 0x8...
[   11.670000] eth5 added. vid=9 Member port 0x0...
[   11.680000] [peth0] added, mapping to [eth1]...
[   11.690000] SPI INIT
[   11.700000] Generic platform RAM MTD, (c) 2004 Simtec Electronics
[   11.710000]  ------------------------- Force into Single IO Mode ------------------------ 
[   11.720000] |No chipID  Sft chipSize blkSize secSize pageSize sdCk opCk      chipName    |
[   11.730000] | 0 ef4017h  0h  800000h  10000h   1000h     100h   80    0            W25Q64|
[   11.740000]  ---------------------------------------------------------------------------- 
[   11.750000] SPI flash(W25Q64) was found at CS0, size 0x800000
[   11.760000] Creating 4 MTD partitions on "flash_bank_1":
[   11.770000] 0x000000000000-0x000000030000 : "boot+cfg"
[   11.790000] 0x000000030000-0x0000001b0000 : "kernel"
[   11.810000] 0x0000001b0000-0x000000800000 : "rootfs"
[   11.820000] mtd: partition "rootfs" set to be root filesystem
[   11.830000] mtd: partition "rootfs_data" created automatically, ofs=466000, len=39A000 
[   11.840000] 0x000000466000-0x000000800000 : "rootfs_data"
[   11.850000] 0x000000030000-0x000000800000 : "firmware"
[   11.860000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.870000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   11.880000] usbcore: registered new interface driver usblp
[   11.890000] Initializing USB Mass Storage driver...
[   11.900000] usbcore: registered new interface driver usb-storage
[   11.910000] USB Mass Storage support registered.
[   11.920000] usbcore: registered new interface driver usbserial
[   11.930000] usbserial: USB Serial Driver core
[   11.940000] USB Serial support registered for GSM modem (1-port)
[   11.950000] usbcore: registered new interface driver option
[   11.960000] option: v0.7.2:USB Driver for GSM modems
[   11.970000] Mirror/redirect action on
[   11.980000] u32 classifier
[   11.990000]     Actions configured 
[   12.000000] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   12.010000] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[   12.020000] nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
[   12.030000] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   12.040000] xt_time: kernel timezone is -0000
[   12.050000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.060000] TCP cubic registered
[   12.070000] NET: Registered protocol family 10
[   12.080000] lo: Disabled Privacy Extensions
[   12.100000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.110000] NET: Registered protocol family 17
[   12.130000] Netlink[Kernel] create socket for igmp ok.
[   12.140000] Realtek FastPath:v1.03
[   12.170000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[   12.180000] Freeing unused kernel memory: 120k freed
[   12.200000] Warning: unable to open an initial console.
[   13.330000] do_page_fault() #2: sending SIGSEGV to preinit for invalid write access to
[   13.330000] 00000000 (epc == 2ab64234, ra == 2aaae45c)
[   13.340000] Kernel panic - not syncing: Attempted to kill init!

I added it myself and gathered in the toolchain but this error when loading
router tp-link wr1042nd v1.4
cpu rtl8198

(Last edited by leo2000 on 18 Mar 2014, 09:38)

Using the trunk code I'm having trouble compiling boost.thread that is an important package for me:

Does anyone have built it?

Error

common.mkdir bin.v2/libs/thread/build/gcc-mips/release/link-static/threading-multi/pthread
gcc.compile.c++ bin.v2/libs/thread/build/gcc-mips/release/link-static/threading-multi/pthread/thread.o
In file included from ./boost/functional/hash/detail/container_fwd_0x.hpp:9:0,
                 from ./boost/functional/hash/extensions.hpp:17,
                 from ./boost/functional/hash/hash.hpp:495,
                 from ./boost/functional/hash.hpp:6,
                 from ./boost/thread/detail/thread.hpp:31,
                 from ./boost/thread/thread.hpp:22,
                 from libs/thread/src/pthread/thread.cpp:11:
./boost/detail/container_fwd.hpp:51:21: error: operator '>=' has no left operand
./boost/detail/container_fwd.hpp:57:47: error: operator '&&' has no right operand

It seems that people from openwrt have fixed this in r37179: https://dev.openwrt.org/changeset/37179

Thanks

Pedro Paulo Jr

leo2000 wrote:

I added it myself and gathered in the toolchain but this error when loading
router tp-link wr1042nd v1.4
cpu rtl8198

Could you please elaborate a bit on what exactly had you done to get it working up to this state?
What codebase had you been using, toolchain, build configs, e.t.c.
Looking at the boot log it seems that you've got it pretty far almost up to the boots and works state which is really amazing.

it's good, you better to see through the web http://78.26.178.78/backup/realtek-unstable/ major changes in /target/linux/realtek
add target rtl8198, deleted patch fix-rtl_nic-compile.patch, modify /target/linux/realtek/files/arch/rlx/config.in add symbol link for config.in.rtl8198, config kernel see /target/linux/realtek/rtl8198/config-2.6.30

toolchain
select binutils 2.21.1, gcc-4.5-linaro

(Last edited by leo2000 on 20 Mar 2014, 06:48)

leo2000 wrote:

it's good, you better to see through the web http://78.26.178.78/backup/realtek-unstable/ ...

Thanks, would try to replicate your work on my setup this weekend and check if the resulting kernel would boot on NetGear JNR-3210. Having an outdated but working kernel coupled with openwrt-based userspace would be amazing on this SoC. Yet we have miles to go with trying to get latest upstream kernel working on Realtek SoCs.

P.S. What's about outgoing traffic on your site, is it limited/paid for you? Would it hurt you somehow if I download the whole OpenWRT tree you've got there?

i am no limit on download and upload, may be compressed for you?

leo2000 wrote:

i am no limit on download and upload, may be compressed for you?

Yep, a single download tarball would be more convenient for sure, thanks.

leo2000 wrote:

it's good, you better to see through the web http://78.26.178.78/backup/realtek-unstable/ major changes in /target/linux/realtek

I tried flashing a DIR-605L with this (RTL8196C, according to specs). The openwrt-realtek-rtl8198-Default-squashfs-fw.bin image was accepted by the factory firmware's upgrade page, but it rebooted to the same factory firmware. I'm not surprised since your firmware is for a RTL8198 CPU, but thought it was worth the bricking risk.

I'm happy to try stuff; I habitually build OpenWRT from source, but have no JTAG ability or experience.

Please let me know if I can help, or point me to docs on how to experiment.