OpenWrt Forum Archive

Topic: Openwrt support for Sitecom WLR-8100

The content of this topic has been archived between 6 Jul 2014 and 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

i tried to upload  the file here, but failed. anyone can help?

(Last edited by vubvub on 15 Aug 2013, 12:14)

vubvub wrote:

Hi, Guys,

I have another router from Sitecom WLR-8100. I checked the chipset, it seems it is also based on qca9558 platform. I see it is based on ap135/136 ref board as the tp-link archerc7. Now I can already get the wan, lan, ethernet, 2.4ghz, usb 2.0 running. the problem is that the usb3.0 is controlled by separate  chipset EJ168A and its 5Ghz (qca9880) also needs driver.I wonder if anyone is interested in this model?

this is flash procedures:
Firstly, you have to connect the ttl cable to get access to the console.
You have to press 2 during boot and then choose Yes to confirm tftp, then set the router ip and your local tftp server ip. choose the file to tftp. then  it should work as follows:


Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   3: Boot system code via Flash (default).

You choosed 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 (192.168.1.1) ==:192.168.1.1
        Input server IP (192.168.1.100) ==:192.168.1.100
        Input Linux Kernel filename (uImageWLR-8100) ==:8100.bin
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename '136uimage.bin'.
Load address: 0x8060000
Loading: T T T checksum bad
T Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################
done
Bytes transferred = 2415142 (24da26 hex)
NetBootFileXferSize= 0024da26
Un-Protected 253 sectors
Erase linux kernel block !!
From 0x9F040000 To 0x9F28FFFF
Erasing flash...
First 0x4 last 0x28 sector size 0x10000
  40
Erased 37 sectors

Copy linux image[2415142 byte] from[0x08060000] to Flash[0x9F040000]....
Copy to Flash... write addr: 9f040000
done
## Booting image at 9f040000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-08-13   6:02:22 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2415078 Bytes =  2.3 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f040040 ...OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (crazybee@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (Lina3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9558 rev 0
[    0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:240.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=AP136 console=ttyS0,115200 mtdparts=spi0.0:256k(u-bod
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 125144k/131072k available (2115k kernel code, 5928k reserved, 406k data,)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.070000] gpiochip_add: registered GPIOs 0 to 23 on device: ath79
[    0.080000] MIPS: machine is Atheros AP136 reference board
[    0.090000] registering PCI controller with io_map_base unset
[    0.090000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.310000] PCI host bridge to bus 0000:00
[    0.310000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.320000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10007fff 64bit]
[    0.330000] PCI host bridge to bus 0000:01
[    0.330000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[    0.340000] pci_bus 0000:01: root bus resource [io  0x0001]
[    0.340000] pci 0000:01:00.0: invalid calibration data
[    0.350000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.350000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.360000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.360000] pci 0000:01:00.0: using irq 41 for pin 1
[    0.370000] Switching to clocksource MIPS
[    0.370000] NET: Registered protocol family 2
[    0.380000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.390000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.390000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.400000] TCP reno registered
[    0.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] NET: Registered protocol family 1
[    1.920000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.920000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006.
[    1.930000] msgmni has been set to 244
[    1.940000] io scheduler noop registered
[    1.940000] io scheduler deadline registered (default)
[    1.950000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.970000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    1.980000] console [ttyS0] enabled, bootconsole disabled
[    1.980000] console [ttyS0] enabled, bootconsole disabled
[    1.990000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    2.000000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    2.000000] 7 cmdlinepart partitions found on MTD device spi0.0
[    2.010000] Creating 7 MTD partitions on "spi0.0":
[    2.010000] 0x000000000000-0x000000040000 : "u-boot"
[    2.020000] 0x000000040000-0x000000050000 : "u-boot-env"
[    2.030000] 0x000000050000-0x000000680000 : "rootfs"
[    2.030000] mtd: partition "rootfs" set to be root filesystem
[    2.040000] split_squashfs: no squashfs found in "spi0.0"
[    2.050000] 0x000000680000-0x0000007e0000 : "kernel"
[    2.050000] 0x0000007e0000-0x0000007f0000 : "mib0"
[    2.060000] 0x0000007f0000-0x000000800000 : "art"
[    2.060000] 0x000000050000-0x0000007e0000 : "firmware"
[    2.210000] ag71xx_mdio: probed
[    2.220000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    2.800000] eth0: Atheros AR8337 switch driver attached.
[    3.970000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, drive]
[    3.980000] TCP cubic registered
[    3.980000] NET: Registered protocol family 17
[    3.990000] 8021q: 802.1Q VLAN Support v1.8
[    4.000000] Freeing unused kernel memory: 1644k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
[    6.080000] eth0: link up (1000Mbps/Full duplex)

- regular preinit -
[    7.380000] eth0: link down
- init -
[    7.530000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[    7.540000] Backport based on wireless-testing.git master-2013-02-22
[    7.550000] compat.git: wireless-testing.git
[    7.560000] cfg80211: Calling CRDA to update world regulatory domain
[    7.570000] cfg80211: World regulatory domain updated:
[    7.580000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    7.580000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.590000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    7.600000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    7.610000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.620000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.670000] usbcore: registered new interface driver usbfs
[    7.680000] usbcore: registered new interface driver hub
[    7.680000] usbcore: registered new device driver usb
[    7.760000] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[    7.770000] cfg80211: Calling CRDA for country: US
[    7.780000] cfg80211: Regulatory domain changed to country: US
[    7.780000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    7.790000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    7.800000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[    7.810000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.810000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.820000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    7.830000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[    7.850000] PPP generic driver version 2.4.2
[    7.900000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.960000] NET: Registered protocol family 24
[    7.970000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.980000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller
[    7.990000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    8.030000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[    8.050000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    8.050000] hub 1-0:1.0: USB hub found
[    8.060000] hub 1-0:1.0: 1 port detected
[    8.060000] ehci-platform ehci-platform.1: Generic Platform EHCI Controller
[    8.070000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[    8.110000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[    8.130000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[    8.130000] hub 2-0:1.0: USB hub found
[    8.140000] hub 2-0:1.0: 1 port detected
[    8.150000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max)
[    8.290000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

Please press Enter to activate this console. [   10.370000] device eth0.1 entered promiscuous me
[   10.380000] device eth0 entered promiscuous mode



BusyBox v1.19.4 (2013-06-21 15:57:22 CST) 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 (Attitude Adjustment, r36981)
-----------------------------------------------------
  * 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:/# [   12.080000] eth0: link up (1000Mbps/Full duplex)
[   12.090000] br-lan: port 1(eth0.1) entered forwarding state
[   12.090000] br-lan: port 1(eth0.1) entered forwarding state
[   14.090000] br-lan: port 1(eth0.1) entered forwarding state

(Last edited by vubvub on 28 Aug 2013, 12:39)

later i will put it on github

i realize this router uses ar8337 switch instead of ar8327 in archer c7. anyone knows about the differences?

it seems this router has a 16M rom which will give more space for adding apps.
it will be nice this one can be officially supported by the dev team.

looking forward.

i recommend using ttl to flash the fw. during boot, you can press "2" and then flash through tftp

i have a question. currently only the initramfs uimage works. other files in the output folder don't give me success. anyone has similar experience? please give me some suggestions. because ramfs does't make full use of the flash and doesn't allow saving after power cycle. Thanks a lot.

vubvub wrote:

i have a question. currently only the initramfs uimage works. other files in the output folder don't give me success. anyone has similar experience? please give me some suggestions. because ramfs does't make full use of the flash and doesn't allow saving after power cycle. Thanks a lot.

anyone knows?

create squashfs-sysupgrade.bin, because initramfs not store changes to flash.

do you have original firmware dmesg?

i see the problem now, after changing the mtd and combine kernel and rootfs manually. I can flashed the modified fw through tftp
and the jff2fs can be used.

[    0.000000] Linux version 3.3.8 (crazybee@softwarePC2) (gcc version 4.6.3 20120201 (prerelease) (Linaro G3
[    0.000000] bootconsole [early0] enabled                                                                 
[    0.000000] CPU revision is: 00019750 (MIPS 74Kc)                                                       
[    0.000000] SoC: Qualcomm Atheros QCA9558 rev 0                                                         
[    0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:240.000MHz, Ref:40.000MHz                       
[    0.000000] Determined physical RAM map:                                                                 
[    0.000000]  memory: 08000000 @ 00000000 (usable)                                                       
[    0.000000] Initrd not found or empty - disabling initrd                                                 
[    0.000000] Zone PFN ranges:                                                                             
[    0.000000]   Normal   0x00000000 -> 0x00008000                                                         
[    0.000000] Movable zone start PFN for each node                                                         
[    0.000000] Early memory PFN ranges                                                                     
[    0.000000]     0: 0x00000000 -> 0x00008000                                                             
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512                   
[    0.000000] Kernel command line:  board=AP136 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(u-bd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)                                         
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                               
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                                 
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.                             
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes                       
[    0.000000] Writing ErrCtl register=00000000                                                             
[    0.000000] Readback ErrCtl register=00000000                                                           
[    0.000000] Memory: 126580k/131072k available (2115k kernel code, 4492k reserved, 406k data, 208k init, 0)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                       
[    0.000000] NR_IRQS:51                                                                                   
[    0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)                                     
[    0.060000] pid_max: default: 32768 minimum: 301                                                         
[    0.060000] Mount-cache hash table entries: 512                                                         
[    0.070000] NET: Registered protocol family 16                                                           
[    0.070000] gpiochip_add: registered GPIOs 0 to 23 on device: ath79                                     
[    0.080000] MIPS: machine is Sitecom WLR-8100                                                           
[    0.090000] registering PCI controller with io_map_base unset                                           
[    0.090000] registering PCI controller with io_map_base unset                                           
[    0.300000] bio: create slab <bio-0> at 0                                                               
[    0.310000] PCI host bridge to bus 0000:00                                                               
[    0.310000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]                               
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0000]                                             
[    0.320000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10007fff 64bit]                         
[    0.330000] PCI host bridge to bus 0000:01                                                               
[    0.330000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]                               
[    0.340000] pci_bus 0000:01: root bus resource [io  0x0001]                                             
[    0.340000] pci 0000:01:00.0: invalid calibration data                                                   
[    0.350000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]                         
[    0.350000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]                           
[    0.360000] pci 0000:00:00.0: using irq 40 for pin 1                                                     
[    0.360000] pci 0000:01:00.0: using irq 41 for pin 1                                                     
[    0.370000] Switching to clocksource MIPS                                                               
[    0.370000] NET: Registered protocol family 2                                                           
[    0.380000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                               
[    0.380000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)                             
[    0.390000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                                   
[    0.390000] TCP: Hash tables configured (established 4096 bind 4096)                                     
[    0.400000] TCP reno registered                                                                         
[    0.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)                                           
[    0.410000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                     
[    0.410000] NET: Registered protocol family 1                                                           
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher                                           
[    0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 247                                                                   
[    0.450000] io scheduler noop registered                                                                 
[    0.450000] io scheduler deadline registered (default)                                                   
[    0.460000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled                                     
[    0.480000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A                               
[    0.490000] console [ttyS0] enabled, bootconsole disabled                                               
[    0.490000] console [ttyS0] enabled, bootconsole disabled                                               
[    0.500000] m25p80 spi0.0: found mx25l12805d, expected m25p80                                           
[    0.510000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)                                                   
[    0.510000] 7 cmdlinepart partitions found on MTD device spi0.0                                         
[    0.520000] Creating 7 MTD partitions on "spi0.0":                                                       
[    0.530000] 0x000000000000-0x000000030000 : "u-boot"                                                     
[    0.530000] 0x000000030000-0x000000040000 : "u-boot-env"                                                 
[    0.540000] 0x000000040000-0x0000001a0000 : "kernel"                                                     
[    0.540000] 0x0000001a0000-0x0000007d0000 : "rootfs"                                                     
[    0.550000] mtd: partition "rootfs" set to be root filesystem                                           
[    0.560000] split_squashfs: no squashfs found in "spi0.0"                                               
[    0.560000] 0x0000007d0000-0x0000007e0000 : "mib0"                                                       
[    0.570000] 0x0000007e0000-0x0000007f0000 : "art"                                                       
[    0.570000] 0x000000050000-0x0000007e0000 : "firmware"                                                   
[    0.720000] ag71xx_mdio: probed                                                                         
[    0.730000] eth0: Atheros AG71xx at 0xb9000000, irq 4                                                   
[    1.310000] eth0: Atheros AR8337 switch driver attached.                                                 
[    2.480000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8]
[    2.490000] TCP cubic registered                                                                         
[    2.490000] NET: Registered protocol family 17                                                           
[    2.500000] 8021q: 802.1Q VLAN Support v1.8                                                             
[    3.880000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x2b0000                         
[    3.890000] jffs2_build_filesystem(): unlocking the mtd device... done.                                 
[    3.890000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.                   
[   28.350000] JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum.
[   28.360000] VFS: Mounted root (jffs2 filesystem) readonly on device 31:3.                               
[   28.370000] Freeing unused kernel memory: 208k freed                                                     
[   28.380000] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Doc.

please print full string of this line
Kernel command line:  board=AP136 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(u-bd

you trying to set 8MB flash when device have 16MB. also try squashfs.

Connect serial cable and show full output.

What was firmware was in use before? do you have it output?

(Last edited by neryba on 26 Aug 2013, 18:40)

HI, Guys, it finally works. The previous fw is ver 1.0.0.

I figured it out that it is because of the wrong setting of my mtdlayout. After modification , it works perfectly.


Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   3: Boot system code via Flash (default).

You choosed 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 (192.168.1.1) ==:192.168.1.1
        Input server IP (192.168.1.100) ==:192.168.1.100
        Input Linux Kernel filename (uImageWLR-8100) ==:combinedaug2708.bin
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'combinedaug2708.bin'.
Load address: 0x8060000
Loading: Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################
done
Bytes transferred = 5111808 (4e0000 hex)
NetBootFileXferSize= 004e0000
Un-Protected 253 sectors
Erase linux kernel block !!
From 0x9F040000 To 0x9F51FFFF
Erasing flash...
First 0x4 last 0x51 sector size 0x10000
  81
Erased 78 sectors

Copy linux image[5111808 byte] from[0x08060000] to Flash[0x9F040000]....
Copy to Flash... write addr: 9f040000
done
## Booting image at 9f040000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-08-27  10:14:23 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    924076 Bytes = 902.4 kB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f040040 ...OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (crazybee@softwarePC2) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #15 Tue Aug 27 12:13:51 CEST 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9558 rev 0
[    0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:240.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=AP136 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),14080k(rootfs),64k(mib0),64k(art)ro,15488k@0x40000(d
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 126580k/131072k available (2115k kernel code, 4492k reserved, 406k data, 208k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.070000] gpiochip_add: registered GPIOs 0 to 23 on device: ath79
[    0.080000] MIPS: machine is Sitecom WLR-8100
[    0.090000] registering PCI controller with io_map_base unset
[    0.090000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.310000] PCI host bridge to bus 0000:00
[    0.310000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.320000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10007fff 64bit]
[    0.330000] PCI host bridge to bus 0000:01
[    0.330000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[    0.340000] pci_bus 0000:01: root bus resource [io  0x0001]
[    0.340000] pci 0000:01:00.0: invalid calibration data
[    0.350000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.350000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.360000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.360000] pci 0000:01:00.0: using irq 41 for pin 1
[    0.370000] Switching to clocksource MIPS
[    0.370000] NET: Registered protocol family 2
[    0.380000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.390000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.390000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.400000] TCP reno registered
[    0.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] NET: Registered protocol family 1
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 247
[    0.450000] io scheduler noop registered
[    0.450000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.480000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.490000] console [ttyS0] enabled, bootconsole disabled
[    0.490000] console [ttyS0] enabled, bootconsole disabled
[    0.500000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.510000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.510000] 7 cmdlinepart partitions found on MTD device spi0.0
[    0.520000] Creating 7 MTD partitions on "spi0.0":
[    0.530000] 0x000000000000-0x000000030000 : "u-boot"
[    0.530000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.540000] 0x000000040000-0x0000001a0000 : "kernel"
[    0.540000] 0x0000001a0000-0x000000f60000 : "rootfs"
[    0.550000] mtd: partition "rootfs" set to be root filesystem
[    0.560000] split_squashfs: no squashfs found in "spi0.0"
[    0.560000] 0x000000f60000-0x000000f70000 : "mib0"
[    0.570000] 0x000000f70000-0x000000f80000 : "art"
[    0.570000] 0x000000040000-0x000000f60000 : "firmware"
[    0.720000] ag71xx_mdio: probed
[    0.730000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.310000] eth0: Atheros AR8337 switch driver attached.
[    2.480000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.490000] TCP cubic registered
[    2.490000] NET: Registered protocol family 17
[    2.500000] 8021q: 802.1Q VLAN Support v1.8
[    4.260000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x360000
[    4.270000] jffs2_build_filesystem(): unlocking the mtd device... done.
[    4.280000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   76.770000] JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   76.790000] VFS: Mounted root (jffs2 filesystem) readonly on device 31:3.
[   76.800000] Freeing unused kernel memory: 208k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
[   80.490000] eth0: link up (1000Mbps/Full duplex)
- regular preinit -
- init -
[   80.900000] eth0: link down
[   81.500000] Loading modules backported from Linux version master-2013-06-27-0-gdcfa6d5
[   81.500000] Backport generated by backports.git backports-20130617-4-ge3220f5
[   81.630000] cfg80211: Calling CRDA to update world regulatory domain
[   81.640000] cfg80211: World regulatory domain updated:
[   81.640000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   81.650000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   81.660000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   81.670000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   81.670000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   81.680000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   81.790000] SCSI subsystem initialized
[   81.890000] usbcore: registered new interface driver usbfs
[   81.900000] usbcore: registered new interface driver hub
[   81.900000] usbcore: registered new device driver usb
[   82.450000] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[   82.460000] cfg80211: Calling CRDA for country: US
[   82.460000] cfg80211: Regulatory domain changed to country: US
[   82.470000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   82.480000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   82.490000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   82.490000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   82.500000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   82.510000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   82.520000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   82.570000] PPP generic driver version 2.4.2
[   82.630000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   82.710000] NET: Registered protocol family 24
[   82.770000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   82.780000] ehci-platform ehci-platform.0: Generic Platform EHCI Controller
[   82.790000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[   82.830000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[   82.850000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[   82.850000] hub 1-0:1.0: USB hub found
[   82.860000] hub 1-0:1.0: 1 port detected
[   82.860000] ehci-platform ehci-platform.1: Generic Platform EHCI Controller
[   82.870000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[   82.910000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[   82.930000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[   82.930000] hub 2-0:1.0: USB hub found
[   82.940000] hub 2-0:1.0: 1 port detected
[   82.980000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max)
[   83.190000] Initializing USB Mass Storage driver...
[   83.200000] usbcore: registered new interface driver usb-storage
[   83.210000] USB Mass Storage support registered.

Please press Enter to activate this console. [   86.040000] device eth0.1 entered promiscuous mode
[   86.050000] device eth0 entered promiscuous mode
[   86.610000] eth0: link up (1000Mbps/Full duplex)
[   86.610000] br-lan: port 1(eth0.1) entered forwarding state
[   86.620000] br-lan: port 1(eth0.1) entered forwarding state
[   88.620000] br-lan: port 1(eth0.1) entered forwarding state



BusyBox v1.19.4 (2013-08-26 14:42:16 CEST) 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 (Alpha 1, r37768)
-----------------------------------------------------
  * 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:/# [   91.940000] device wlan0 entered promiscuous mode
[   92.110000] br-lan: port 2(wlan0) entered forwarding state
[   92.120000] br-lan: port 2(wlan0) entered forwarding state

root@OpenWrt:/# [   94.120000] br-lan: port 2(wlan0) entered forwarding state

root@OpenWrt:/# opkg update
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/based_on_openwrt.

(Last edited by vubvub on 29 Aug 2013, 11:23)

i flashed it through tftp. The ttl pins were already soldered on the board when I opened it up. So maybe you also won't need to find the pins your self.
I will upload the picture of my board later.

my mtdlayout setting is as below:
ap136_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,1408k(kernel),14080k(rootfs),64k(mib0),64k(art)ro,15488k@0x40000(firmware)

you may need to modify the mac address in /etc/config/wireless according to the mac of your wireless interface.

I think the following should enable ath10k but I get only a Kernel Oops on TP-Link with supposedly "rare" AR1A hardware

1. enable ath10k
in your trunk folder there is package/kernel/mac80211/Makefile

Patch it with the ath10k enable patch from the mailing list:
https://lists.openwrt.org/pipermail/openwrt-devel/2013-August/021105.html

2. update mac80211 (compat-wireless) to backports (same project new name)

PKG_VERSION:=20130802
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/kernel/projects/backports/2013/08/02
PKG_SHA1SUM:=d8ca2b9405ec81c171470f60f526d10e841e74ebc526b1938350ea8f9871084e

PKG_SOURCE:=backports-$(PKG_VERSION).tar.bz2
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/backports-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1

and a line with "echo" in Build/prepare to the new name (backports instead of compat)

3. refresh patches of mac80211
(see OpenWrt wiki: http://wiki.openwrt.org/doc/devel/patches )

make prepare
make package/kernel/mac80211/prepare V=s QUILT=1
cd build_dir/target .../linux.../backports-20130802/
quilt series
# delete 2 large pending work patches - less fixes for other wireless drivers 
# but you want to test ath10k anyway
quilt delete 300- ...

# repeat / use following 3 commands until all patches are working or 
# delete some patches for drivers not used in your image
quilt push
quilt refresh
# remove an applied patch
quilt pop

4. maybe integrate hw revision test
patch from ath10k mailing list: http://lists.infradead.org/pipermail/ath10k/2013-August/000279.html

# if you are at the end of quilt series - name patch f. ex. 900-ath10k_hw_id.patch
quilt import <path>/900-ath10k_hw_id.patch
# patch is in patches dir
quilt push
quilt refresh

5. update packages: atm you only have a modified build_dir

# in openwrt buildroot
make package/kernel/mac80211/update

After that you should build your image.
atm you have to manually load the kernel modules (insmod ath10k_core, insmod ath10k_pci )

zloop wrote:

I think the following should enable ath10k but I get only a Kernel Oops on TP-Link with supposedly "rare" AR1A hardware

1. enable ath10k
in your trunk folder there is package/kernel/mac80211/Makefile

Patch it with the ath10k enable patch from the mailing list:
https://lists.openwrt.org/pipermail/openwrt-devel/2013-August/021105.html

2. update mac80211 (compat-wireless) to backports (same project new name)

PKG_VERSION:=20130802
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/kernel/projects/backports/2013/08/02
PKG_SHA1SUM:=d8ca2b9405ec81c171470f60f526d10e841e74ebc526b1938350ea8f9871084e

PKG_SOURCE:=backports-$(PKG_VERSION).tar.bz2
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/backports-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1

and a line with "echo" in Build/prepare to the new name (backports instead of compat)

3. refresh patches of mac80211
(see OpenWrt wiki: http://wiki.openwrt.org/doc/devel/patches )

make prepare
make package/kernel/mac80211/prepare V=s QUILT=1
cd build_dir/target .../linux.../backports-20130802/
quilt series
# delete 2 large pending work patches - less fixes for other wireless drivers 
# but you want to test ath10k anyway
quilt delete 300- ...

# repeat / use following 3 commands until all patches are working or 
# delete some patches for drivers not used in your image
quilt push
quilt refresh
# remove an applied patch
quilt pop

4. maybe integrate hw revision test
patch from ath10k mailing list: http://lists.infradead.org/pipermail/ath10k/2013-August/000279.html

# if you are at the end of quilt series - name patch f. ex. 900-ath10k_hw_id.patch
quilt import <path>/900-ath10k_hw_id.patch
# patch is in patches dir
quilt push
quilt refresh

5. update packages: atm you only have a modified build_dir

# in openwrt buildroot
make package/kernel/mac80211/update

After that you should build your image.
atm you have to manually load the kernel modules (insmod ath10k_core, insmod ath10k_pci )

Thanks zloop. But now I am trying to do it in attitude adjustment instead of trunk. there is no such structures like package/kernel/mac80211. is it still possible to port ath10k? I also want to include the ath10k in the kernel like ath9k, any suggestions?

vubvub wrote:

Thanks zloop. But now I am trying to do it in attitude adjustment instead of trunk. there is no such structures like package/kernel/mac80211. is it still possible to port ath10k? I also want to include the ath10k in the kernel like ath9k, any suggestions?

Sorry but you are wrong.
there it is:
https://dev.openwrt.org/browser/branches/attitude_adjustment/package/mac80211

smile

zloop wrote:
vubvub wrote:

Thanks zloop. But now I am trying to do it in attitude adjustment instead of trunk. there is no such structures like package/kernel/mac80211. is it still possible to port ath10k? I also want to include the ath10k in the kernel like ath9k, any suggestions?

Sorry but you are wrong.
there it is:
https://dev.openwrt.org/browser/branches/attitude_adjustment/package/mac80211

smile

Thanks dude. i will proceed.