Installing Openwrt on SMCWBR11S-3GN / Accton WR6202 / Pareto Networks BG-100

Yesterday, I was bricking my SMCWBR11S-3GN 3G router. It started when I was trying to update the firmware since I was not really satisfied with the default firmware, and it was also a bit too old. Seen below is the firmware repository for SMCWBR11S-3GN,

http://www.smc-asia.com/download.php?Fullkey=210

SMCWBR11S-3GN Firmware

SMCWBR11S-3GN Firmware

The latest firmware was uploaded on 2011-07-28 !!. According to http://transition.fcc.gov/oet/ea/fccid/,

FCC ID Number

FCC ID Number

this router model, Accton WR6202, and Pareto Networks BG-100 were identical. In addition, searching more, this router was similar to ALFA Networks R36. Based on this, after googling for a few hours, I decided to install the latest firmware from Alfa Networks R36 as an alternative on my SMCWBR11S-3GN.

http://www.alfa.com.tw/download_show.php?combo_0=&combo_1=&combo_2=&keyword=R36&verify=udmaqt&x=-910&y=-478

Alfa Networks R36 Firmware

Alfa Networks R36 Firmware

I got this works, stable, and quite new (latest firmware update 1.2.1.2 was on 2013/09/16.). But due to the the lack of 3G modem support from R36 firmware, I went for another alternative, that was OpenWRT. Btw, the latest unofficial firmware of R36 can be downloaded here

The first step was finding the compatibility of my router with OpenWRT. Based on Table of hardware – OpenWRT Wiki, WR6202 was supported by OpenWRT. Since WR6202 is identical with my router, then I tried to build OpenWRT from scratch. Unfortunately, it failed, due to many errors and lack of space!!! =D. Then I went for another way, that was OpenWRT Imagebuilder. The image was generated successfully, but for unknown reason, accidentally, the image was deleted. In the end, I chose a readily-compiled image from openWRT site instead, =D =D =D. The files that I used were openwrt-ramips-rt305x-uImage.bin and openwrt-ramips-rt305x-wr6202-squashfs-sysupgrade.bin. To simplify the process, web based updater was used to upload the image to the router. I sent the openwrt-ramips-rt305x-uImage.bin through web based interface. Some minutes have passed and my router was unable to boot. I googled for a couple of days finding the solution, and the best one I got was flashing the router through a serial console cable. I searched for a secondhand one, I got many serial console cables, for example:

Alfa Networks Console Board

Alfa Networks Console Board

Alfa Networks Console Board

USB Serial to TTL converter

USB serial to TTL converter

USB serial to TTL converter

USB serial to TTL converter

USB serial to TTL converter

In Jakarta, I got this type here and before starting flashing, according to R36 recovery guide I need a tftp server to be installed on my localhost. After installing TFTP server, next step was opening my router box and configuring the serial console cable. The screw was located behind the rubber at the bottom of the router. See pic.

The screws at below the  rubber

The screws at below the rubber

After uncovering the router (YOU’LL LOOSE THE WARRANTY AND IT MAY LEAVE YOUR DEVICE INOPERABLE, DO AT YOUR OWN RISK, YOU HAVE BEEN WARNED)

An opened SMC Router

An opened SMC Router

and arrange the serial console cable as follow,

USB Serial Console

USB Serial Console

i began to flash the router. Here, black color as GND, Green color as TX, while White color as RX. Do not put red color into the router since it has 5V output.

USB Serial Converter

USB Serial Converter

After that, putty or hyperterminal was used to get the output from the router. Here, I used putty instead.

putty -> connection -> serial

Putty Configuration

Putty Configuration

To get the location of which the COM port of my USB serial console cable was attached to, I used device manager as seen below,

Device Manager on Windows XP

Device Manager on Windows XP

Then I configured my static ip address into 10.10.10.3, ensuring that TFTP server was running, and set the default TFTP server folder where the image was located. The first attempt, after uploaded openwrt-ramips-rt305x-uImage.bin file via web based interface and rebooting the router. The booting process was so fast, I could not even choose the boot option. +_+. Here was what I got when it was unable to boot.

U-Boot 1.1.3 (Dec 15 2009 - 08:33:32)

Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fac000
flash_protect ON: from 0xBF000000 to 0xBF021167
flash_protect ON: from 0xBF030000 to 0xBF030FFF
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 3.3
--------------------------------------------
ASIC 3052_MP2 (Port5None)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: NOR Flash
Date:Dec 15 2009 Time:08:33:32
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 320 MHZ ####

SDRAM bus set to 16 bit
SDRAM size =32 Mbytes

Please choose the operation:
0: Run bootcmd (default).
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash.
4: Entr boot command line interface.
9: Load Boot Loader code then write to Flash via TFTP. 0

0: Run bootcmd.
Did NOT find p=1 in rt2860 config.
Forcing bootcmd = run boot_smc.
Running bootcmd: run boot_smc

## Booting image at bf050000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2013-03-23 19:00:53 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 886830 Bytes = 866 kB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[ 0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc ve rsion 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 19:00 :46 UTC 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT3350 id:1 rev:2 running at 320.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00002000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00002000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 8128
[ 0.000000] Kernel command line: rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 byt es
[ 0.000000] Writing ErrCtl register=0007eba2
[ 0.000000] Readback ErrCtl register=0007eba2
[ 0.000000] Memory: 29672k/32768k available (2046k kernel code, 3096k reserve d, 340k data, 176k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, No des=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS0] enabled, bootconsole disabled

It booted too fast and then hung up at line [ 0.000000] console [ttyS0] enabled, boot console disabled. Thus, I chose to use an electrical switch (?) to control the electricity of the router. I powered down the router, and once I switched on the router, I hit “2″. Here, openwrt-ramips-rt305x-wr6202-squashfs-sysupgrade.bin was used and renamed into sysupgrade.bin.


U-Boot 1.1.3 (Dec 15 2009 - 08:33:32)


Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81fac000
flash_protect ON: from 0xBF000000 to 0xBF021167
flash_protect ON: from 0xBF030000 to 0xBF030FFF
*** Warning - bad CRC, using default environment

============================================ 

Ralink UBoot Version: 3.3
------------------------------------------- 
ASIC 3052_MP2 (Port5<->None)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: NOR Flash
Date:Dec 15 2009  Time:08:33:32
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384 

 ##### The CPU freq = 320 MHZ #### 
SDRAM bus set to 16 bit 
SDRAM size =32 Mbytes

Please choose the operation: 
   0: Run bootcmd (default). 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash.
   4: Entr boot command line interface.
   9: Load Boot Loader code then write to Flash via TFTP. 

You chose 2

 0 

2: System Load Linux Kernel then write to Flash via TFTP. 
 Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
 Please Input new ones /or Ctrl-C to discard
	Input device IP (10.10.10.123) ==:10.10.10.123
	Input server IP (10.10.10.3) ==:10.10.10.3
	Input Linux Kernel filename (netbootstrap_uImage) ==:netbootstrap_uImage                   sysupgrade.bin

 netboot_common, argc= 3 
 NetTxPacket = 0x81FE5400 
 KSEG1ADDR(NetTxPacket) = 0xA1FE5400 
 NetLoop,call eth_halt ! 
 NetLoop,call eth_init ! 

Trying Eth0 (10/100-M)
 Waitting for RX_DMA_BUSY status Start... done
 Header Payload scatter function is Disable !! 
 ETH_STATE_ACTIVE!! 
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 10.10.10.123
Filename 'sysupgrade.bin'.
 TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: *Got ARP REPLY, set server/gtwy eth addr (00:18:8b:cc:26:c7)
Got it
T #
 first block received  
################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ##################
done

Bytes transferred = 2752516 (2a0004 hex)
NetBootFileXferSize= 002a0004
Erase linux kernel block !!
From 0xBF050000 To 0xBF2FFFFF
 b_end =BF7FFFFF
Erase Flash from 0xbf050000 to 0xbf2fffff in Bank # 1 
 erase sector  = 12 
sect = 12,s_last = 54,erase poll = 834735
 erase sector  = 13 
sect = 13,s_last = 54,erase poll = 833518
 erase sector  = 14 
*sect = 14,s_last = 54,erase poll = 848242
 erase sector  = 15 
sect = 15,s_last = 54,erase poll = 823796
 erase sector  = 16 
sect = 16,s_last = 54,erase poll = 833896
 erase sector  = 17 
*sect = 17,s_last = 54,erase poll = 860042
 erase sector  = 18 
sect = 18,s_last = 54,erase poll = 907170
 erase sector  = 19 
*sect = 19,s_last = 54,erase poll = 836164
 erase sector  = 20 
sect = 20,s_last = 54,erase poll = 838594
 erase sector  = 21 
*sect = 21,s_last = 54,erase poll = 834980
 erase sector  = 22 
sect = 22,s_last = 54,erase poll = 850888
 erase sector  = 23 
sect = 23,s_last = 54,erase poll = 840848
 erase sector  = 24 
*sect = 24,s_last = 54,erase poll = 843956
 erase sector  = 25 
sect = 25,s_last = 54,erase poll = 837116
 erase sector  = 26 
*sect = 26,s_last = 54,erase poll = 885371
 erase sector  = 27 
sect = 27,s_last = 54,erase poll = 843282
 erase sector  = 28 
sect = 28,s_last = 54,erase poll = 868109
 erase sector  = 29 
*sect = 29,s_last = 54,erase poll = 833359
 erase sector  = 30 
sect = 30,s_last = 54,erase poll = 825887
 erase sector  = 31 
*sect = 31,s_last = 54,erase poll = 828308
 erase sector  = 32 
sect = 32,s_last = 54,erase poll = 861836
 erase sector  = 33 
sect = 33,s_last = 54,erase poll = 846048
 erase sector  = 34 
*sect = 34,s_last = 54,erase poll = 864083
 erase sector  = 35 
sect = 35,s_last = 54,erase poll = 838880
 erase sector  = 36 
*sect = 36,s_last = 54,erase poll = 845608
 erase sector  = 37 
sect = 37,s_last = 54,erase poll = 828813
 erase sector  = 38 
sect = 38,s_last = 54,erase poll = 861454
 erase sector  = 39 
*sect = 39,s_last = 54,erase poll = 840301
 erase sector  = 40 
sect = 40,s_last = 54,erase poll = 868112
 erase sector  = 41 
*sect = 41,s_last = 54,erase poll = 838375
 erase sector  = 42 
sect = 42,s_last = 54,erase poll = 831958
 erase sector  = 43 
sect = 43,s_last = 54,erase poll = 861419
 erase sector  = 44 
*sect = 44,s_last = 54,erase poll = 842072
 erase sector  = 45 
sect = 45,s_last = 54,erase poll = 835673
 erase sector  = 46 
*sect = 46,s_last = 54,erase poll = 824440
 erase sector  = 47 
sect = 47,s_last = 54,erase poll = 862471
 erase sector  = 48 
sect = 48,s_last = 54,erase poll = 852197
 erase sector  = 49 
*sect = 49,s_last = 54,erase poll = 837656
 erase sector  = 50 
sect = 50,s_last = 54,erase poll = 856228
 erase sector  = 51 
*sect = 51,s_last = 54,erase poll = 841451
 erase sector  = 52 
sect = 52,s_last = 54,erase poll = 875462
 erase sector  = 53 
sect = 53,s_last = 54,erase poll = 852514
 erase sector  = 54 
*sect = 54,s_last = 54,erase poll = 864586
 done
Erased 43 sectors
 Copy linux image[2752516 byte] to Flash[0xBF050000].... 
Copy to Flash... 
 Copy 2752516 byte to Flash... 
 addr = 0xBF0B28A4 ,cnt=2348896 
 addr = 0xBF11514A ,cnt=1945274 
 addr = 0xBF1779F0 ,cnt=1541652 
 addr = 0xBF1DA296 ,cnt=1138030 
 addr = 0xBF23CB3C ,cnt=734408 
 addr = 0xBF29F3E2 ,cnt=330786 done

## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-03-23  19:02:59 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    886961 Bytes = 866.2 kB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32
Starting kernel ...
[    0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 19:00:46 UTC 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] Ralink RT3350 id:1 rev:2 running at 320.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=WR6202 console=ttyS1,115200 mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(rootfs),7872k@0x50000(firmware) rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=0007eba6
[    0.000000] Readback ErrCtl register=0007eba6
[    0.000000] Memory: 29672k/32768k available (2046k kernel code, 3096k reserved, 340k data, 176k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.000000] console [ttyS1] enabled, bootconsole disabled
[    0.010000] Calibrating delay loop... 212.58 BogoMIPS (lpj=1062912)
[    0.090000] pid_max: default: 32768 minimum: 301
[    0.090000] Mount-cache hash table entries: 512
[    0.100000] NET: Registered protocol family 16
[    0.110000] MIPS: machine is AWB WR6202
[    0.110000] gpiochip_add: registered GPIOs 0 to 23 on device: RT305X-GPIO0
[    0.120000] gpiochip_add: registered GPIOs 24 to 39 on device: RT305X-GPIO1
[    0.120000] gpiochip_add: registered GPIOs 40 to 51 on device: RT305X-GPIO2
[    0.150000] bio: create slab <bio-0> at 0
[    0.160000] Switching to clocksource MIPS
[    0.170000] NET: Registered protocol family 2
[    0.180000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.190000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.210000] TCP reno registered
[    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] NET: Registered protocol family 1
[    0.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.280000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.290000] msgmni has been set to 57
[    0.300000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.300000] io scheduler noop registered
[    0.310000] io scheduler deadline registered (default)
[    0.320000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.320000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[    0.330000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[    0.350000] physmap platform flash device: 00800000 at bf000000
[    0.360000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
[    0.370000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.380000]   Amd/Fujitsu Extended Query version 1.1.
[    0.380000] number of CFI chips: 1
[    0.380000] 6 cmdlinepart partitions found on MTD device physmap-flash.0
[    0.390000] Creating 6 MTD partitions on "physmap-flash.0":
[    0.400000] 0x000000000000-0x000000030000 : "u-boot"
[    0.410000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.420000] 0x000000040000-0x000000050000 : "factory"
[    0.430000] 0x000000050000-0x000000130000 : "kernel"
[    0.430000] 0x000000130000-0x000000800000 : "rootfs"
[    0.440000] mtd: partition "rootfs" set to be root filesystem
[    0.450000] mtd: partition "rootfs_data" created automatically, ofs=2F0000, len=510000 
[    0.460000] 0x0000002f0000-0x000000800000 : "rootfs_data"
[    0.470000] 0x000000050000-0x000000800000 : "firmware"
[    0.490000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 40, using 40
[    0.500000] TCP cubic registered
[    0.500000] NET: Registered protocol family 17
[    0.510000] Bridge firewalling registered
[    0.510000] 8021q: 802.1Q VLAN Support v1.8
[    0.520000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    0.530000] Freeing unused kernel memory: 176k freed
[    2.880000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    2.980000] Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
- init -

Please press Enter to activate this console. [    8.840000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[    8.840000] Backport based on wireless-testing.git master-2012-09-07
[    8.850000] compat.git: wireless-testing.git
[    8.900000] cfg80211: Calling CRDA to update world regulatory domain
[    8.900000] cfg80211: World regulatory domain updated:
[    8.910000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.920000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.920000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.930000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.940000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.950000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.530000] usbcore: registered new interface driver usbfs
[    9.540000] usbcore: registered new interface driver hub
[    9.550000] usbcore: registered new device driver usb
[   10.260000] PPP generic driver version 2.4.2
[   10.470000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.780000] NET: Registered protocol family 24
[   10.810000] nf_conntrack version 0.5.0 (466 buckets, 1864 max)
[   11.270000] dwc_otg: version 2.72a 24-JUN-2008
[   11.280000] dwc_otg: Core Release: 2.66a
[   11.480000] dwc_otg: Periodic Transfer Interrupt Enhancement - disabled
[   11.490000] dwc_otg: Multiprocessor Interrupt Enhancement - disabled
[   11.500000] dwc_otg: Using DMA mode
[   11.500000] dwc_otg: Device using Buffer DMA mode
[   11.500000] dwc_otg dwc_otg.0: DWC OTG Controller
[   11.510000] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
[   11.520000] dwc_otg dwc_otg.0: irq 26, io mem 0x101c0000
[   11.520000] dwc_otg: Init: Port Power? op_state=1
[   11.530000] dwc_otg: Init: Power Port (0)
[   11.530000] hub 1-0:1.0: USB hub found
[   11.540000] hub 1-0:1.0: 1 port detected
[   16.970000] device eth0.1 entered promiscuous mode
[   16.970000] device eth0 entered promiscuous mode
[   16.980000] br-lan: port 1(eth0.1) entered forwarding state
[   16.990000] br-lan: port 1(eth0.1) entered forwarding state
[   18.990000] br-lan: port 1(eth0.1) entered forwarding state
[   19.600000] ramips-wdt: timeout value 60 must be 0 < timeout <= 40, using 40
[   35.940000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   35.960000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   35.960000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   78.940000] JFFS2 notice: (1049) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.


BusyBox v1.19.4 (2013-03-15 02:26:13 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (12.09, r36088)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/# 
root@OpenWrt:/# passwd
Changing password for root
New password: 
Retype password: 
Passwords don't match
passwd: password for root is unchanged
root@OpenWrt:/# passwd
Changing password for root
New password: 
Retype password: 
Password for root changed by root
root@OpenWrt:/# uname -a
Linux OpenWrt 3.3.8 #1 Sat Mar 23 19:00:46 UTC 2013 mips GNU/Linux
root@OpenWrt:/# 

Finally … horrayyy! I got the OpenWRT running!
Well, It was too early to be excited since the wifi was not working =( after googling for a second, here was what i found to enable the wifi.

root@OpenWrt:/# 
root@OpenWrt:/# uci show
root@OpenWrt:/# uci set wire wireless.radio0.disabled=0
root@OpenWrt:/# uci commit
root@OpenWrt:/# wifi up
Configuration file: /var/run/hostapd-phy0.conf
[ 1472.970000] device wlan0 entered promiscuous mode
Using interface wlan0 with hwaddr 00:22:2d:c3:8a:1a and ssid "OpenWrt"
[ 1473.150000] br-lan: port 2(wlan0) entered forwarding state
[ 1473.150000] br-lan: port 2(wlan0) entered forwarding state
[ 1475.150000] br-lan: port 2(wlan0) entered forwarding state

Then, it should bring the wifi up, so I was be able to configure 3G dongle via web based interface (Luci).
Happy OpenWRT-ing =) !!!!

References:
https://forum.openwrt.org/viewtopic.php?id=31264
http://transition.fcc.gov/oet/ea/fccid/
http://alfanetworkinc.blogspot.com/2012/01/r36-recovery-guide.html
http://wikidevi.com/wiki/SMC_SMCWBR11S-3GN
http://wikidevi.com/wiki/ALFA_Network_R36

Advertisements

3 thoughts on “Installing Openwrt on SMCWBR11S-3GN / Accton WR6202 / Pareto Networks BG-100

    • Power to the USB port on this board is controlled by GPIO pin 11. Once powered you can setup up the 3G connection as you would on any other OpenWRT device.

      $> echo 11 > /sys/class/gpio/export
      $> echo out > /sys/class/gpio/gpio11/direction

      You can then power the port on and off using, though I’m not sure whether high or low is on.

      $> echo 1 > /sys/class/gpio/gpio11/value
      $> echo 0 > /sys/class/gpio/gpio11/value

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s