User Tools

Site Tools


toh:alfa.network:ac1200r

ALFA Network AC1200R

2015-05-02: This page is work-in-progress.

Hardware Highlights

CPU Ram Flash Network USB Serial JTag
Realtek RTL8197D @ 660MHz 64MB 16MB 5x 1000Mbit 2 Yes ?
  • SoC: Realtek RTL8197D rev 1.0
  • 802.11 b/g/n/ac, max 1167 Mbps
  • 5x Ethernet ports (labels on case: 4 x LAN, 1 x WAN, all configurable LAN/WAN)
  • Power: 12V/2A type M barrel connector (outer diameter 5.5mm, inner diameter 2.1mm)
  • Form factor:
    • 15cm x 10cm PCB
    • 17cm x 11.2cm x 3cm casing (without antenna connectors)
    • weight 238g (without antennas and power supply)

Hardware info

This table has been copied from UPVEL UR-825AC but the lines with question marks haven't been confirmed:

Architecture Lexra/ Lexra RLX5281 ??
Vendor Realtek
Bootloader RealTek (supposedly a modified RedBoot)
System-On-Chip Realtek RTL8197DN
CPU Speed 660 MHz
Flash Chip Macronix MX25L6406E (though for some reason bootloader says MX25L6405D)
Flash size 16MB
RAM chip ?
RAM size 64M
Wireless IEEE 802.11a/b/g/n Realtek RTL8192EE
Wireless IEEE 802.11ac Realtek RTL8812AE
Ethernet Realtek RTL8367RB Gigabit
USB 2x USB2.0
Serial Yes
JTAG Yes (?)
Power supply 12V 1.5A

Opening the case

To open the case, remove the 3 rubber feet (upper left and both lower ones) on the bottom located at the USB port side. After removing the caps you will find three screws, unscrew them and voila case opened.

Serial

The serial connection parameters are:

  • 3.3V DC power level
  • baud rate: 38400
  • data bits: 8
  • stop bits: 1
  • parity: none
  • flow control: none

The serial pins are as follows, refer to the image below:

J21
1 2 3 4
GND TX RX VDD (don't connect)

Please remember when connecting your UART-USB adapter to the device that you must connect device TX to adapter RX and vice versa.

Warning!
Be aware that you should not connect the VDD pin or the CPU will receive too much voltage when the DC power supply is connected. This will likely brick it.

Installing OpenWrt

Obtaining firmware image

  1. Get the RealTek OpenWrt SDK for this device.
  2. In the SDK you'll find a prebuilt firmware image called openwrt-rtl8197DN-8367-ReleaseImage-v2.4-20150724.bin which worked for me at least.
    • I also tried running openwrt-rtl8197DL-ReleaseImage-v2.4-20150724.bin and it flashed ok, but ethernet did not work.
    • Since the ethernet chip on this device is the RTL8367RB the naming makes sense.
  3. You can also compile a version yourself with the help of the UserGuide file in the SDK but with my first build I didn't get ethernet working.

Accessing TFTP recovery

To be able to flash another firmware image to the device, do the following:

  1. Preferrably first connect to the device using the serial connection (UART-USB adapter)
  2. Set your computer to static IP address in the 192.168.1.x/24 space, for example 192.168.1.23 with netmask 255.255.255
  3. Power off the device
  4. Press and hold the reset button
  5. Power on the device and wait approx. 5 seconds (until you see <RealTek>)
  6. The device will now act as TFTP server at 192.168.1.6

Flashing firmware image

Once you have accessed the TFTP recovery, do the following:

  1. Send a firmware file to the device from your computer using TFTP put (in binary mode).
  2. Device will receive the firmware file, flash it and boot automatically.

OpenWrt Bootlog

Booting... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ @ chip__no chip__id mfr___id dev___id cap___id size_sft dev_size chipSize @ 0000000h 0c22017h 00000c2h 0000020h 0000017h 0000000h 0000017h 0800000h @ blk_size blk__cnt sec_size sec__cnt pageSize page_cnt chip_clk chipName @ 0010000h 0000080h 0001000h 0000800h 0000100h 0000010h 000002dh MX25L6405D @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ---RealTek(RTL8196D)at 2014.08.19-23:55-0400 v1.1 [16bit](659MHz) Jump to image start=0x80500000... OpenWrt kernel loader for Realtek 819X Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org> Decompressing kernel... done! Starting kernel at 80000000... [ 0.000000] Linux version 3.10.49 (marklee@System-Product-Name) (gcc version 4.6.4 (Realtek RSDK-4.6.4 Build 2002) ) #2 Fri Jul 24 12:01:51 CST 2015 [ 0.000000] CPU revision is: 0000dc02 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x03ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x03ffffff] [ 0.000000] icache: 64kB/32B, dcache: 32kB/32B, scache: 0kB/0B [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: board=AP console=ttyS0,38400 linuxpart=0x10000 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 61232k/65536k available (2827k kernel code, 4304k reserved, 534k data, 156k init, 0k highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000000] console [ttyS0] enabled [ 0.200000] Calibrating delay loop... 657.81 BogoMIPS (lpj=3289088) [ 0.270000] pid_max: default: 32768 minimum: 301 [ 0.280000] Mount-cache hash table entries: 512 [ 0.400000] NET: Registered protocol family 16 [ 0.450000] bio: create slab <bio-0> at 0 [ 0.470000] SCSI subsystem initialized [ 0.480000] usbcore: registered new interface driver usbfs [ 0.490000] usbcore: registered new interface driver hub [ 0.500000] usbcore: registered new device driver usb [ 0.520000] NET: Registered protocol family 2 [ 0.540000] TCP established hash table entries: 512 (order: 0, 4096 bytes) [ 0.550000] TCP bind hash table entries: 512 (order: -1, 2048 bytes) [ 0.560000] TCP: Hash tables configured (established 512 bind 512) [ 0.570000] TCP: reno registered [ 0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.600000] NET: Registered protocol family 1 [ 0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.640000] NTFS driver 2.1.30 [Flags: R/O]. [ 0.650000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.660000] msgmni has been set to 119 [ 0.670000] io scheduler noop registered [ 0.680000] io scheduler deadline registered (default) [ 0.690000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.700000] serial8250: ttyS0 at MMIO 0x18002000 (irq = 8) is a 16550A [ 0.710000] SPI INIT [ 0.720000] ------------------------- Force into Single IO Mode ------------------------ [ 0.730000] |No chipID Sft chipSize blkSize secSize pageSize sdCk opCk chipName | [ 0.740000] | 0 c22017h 0h 800000h 10000h 1000h 100h 50 0 MX6405D/05E/45E| [ 0.750000] ---------------------------------------------------------------------------- [ 0.760000] SPI flash(MX6405D/05E/45E) was found at CS0, size 0x800000 [ 0.770000] Creating 3 MTD partitions on "flash_bank_1": [ 0.780000] 0x000000000000-0x000000010000 : "boot" [ 0.790000] 0x000000010000-0x000000800000 : "linux" [ 0.810000] 0x000000130000-0x000000800000 : "rootfs" [ 0.820000] mtd: device 2 (rootfs) set to be root filesystem [ 0.830000] mtd: partition "rootfs_data" created automatically, ofs=0x491000, len=0x36f000 [ 0.840000] 0x000000491000-0x000000800000 : "rootfs_data" [ 0.850000] [ 0.850000] Probing RTL819X NIC-kenel stack size order[1]... [ 1.510000] chip name: 8196C, chip revid: 0 [ 6.600000] eth0 added. vid=9 Member port 0x10f... [ 6.620000] eth1 added. vid=8 Member port 0x10... [ 6.630000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.640000] rtl819x-ehci rtl819x-ehci: Realtek rtl819x On-Chip EHCI Host Controller [ 6.650000] rtl819x-ehci rtl819x-ehci: new USB bus registered, assigned bus number 1 [ 6.690000] rtl819x-ehci rtl819x-ehci: irq 10, io mem 0x18021000 [ 6.720000] rtl819x-ehci rtl819x-ehci: USB 2.0 started, EHCI 1.00 [ 6.730000] hub 1-0:1.0: USB hub found [ 6.740000] hub 1-0:1.0: 1 port detected [ 6.750000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 6.760000] rtl819x-ohci rtl819x-ohci: Realtek rtl819x built-in OHCI controller [ 6.770000] rtl819x-ohci rtl819x-ohci: new USB bus registered, assigned bus number 2 [ 6.780000] rtl819x-ohci rtl819x-ohci: irq 10, io mem 0x18020000 [ 6.850000] hub 2-0:1.0: USB hub found [ 6.860000] hub 2-0:1.0: 1 port detected [ 6.870000] usbcore: registered new interface driver usb-storage [ 6.880000] -------8196D OTG init [ 7.090000] dwc_otg: version 2.60a 22-NOV-2006 [ 7.100000] [S0] lmdev=83932900 [ 7.110000] device_register :register pass [ 7.130000] [S2] otg_dev=839438e0 [ 7.340000] [S3] hcd==8390ae00 [ 7.350000] DWC_otg: Using DMA mode [ 7.360000] dwc_otg logicmodule: DWC OTG Controller [ 7.370000] dwc_otg logicmodule: new USB bus registered, assigned bus number 3 [ 7.380000] dwc_otg logicmodule: irq 15, io mem 0xb8030000 [ 7.390000] set OTG host to high speed ! [ 7.400000] DWC_otg: Init: Port Power? op_state=1 [ 7.410000] DWC_otg: Init: Power Port (0) [ 7.420000] hub 3-0:1.0: USB hub found [ 7.430000] hub 3-0:1.0: 1 port detected [ 7.440000] [S1] dwc_otg_driver, lmdriver=80344c3c [ 7.460000] TCP: westwood registered [ 7.470000] NET: Registered protocol family 17 [ 7.480000] 8021q: 802.1Q VLAN Support v1.8 [ 7.490000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 7.500000] Freeing unused kernel memory: 156K (80349000 - 80370000) procd: Console is alive procd: - preinit - Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level jffs2 is ready jffs2 is ready [ 13.460000] jffs2: notice: (293) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 8 of xref (0 dead, 0 orphan) found. switching to overlay procd: - early - procd: - ubus - procd: - init - Please press Enter to activate this console. [ 14.980000] nf_conntrack version 0.5.0 (959 buckets, 3836 max) [ 15.000000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 15.010000] PPP generic driver version 2.4.2 [ 15.030000] Realtek FastPath:v1.03 [ 15.060000] NET: Registered protocol family 10 [ 15.080000] rtl_sendfile installed [ 15.090000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea [ 15.100000] Backport generated by backports.git backports-20140320-37-g5c33da0 [ 15.130000] NET: Registered protocol family 24 [ 15.160000] xt_time: kernel timezone is -0000 [ 15.210000] cfg80211: Calling CRDA to update world regulatory domain [ 15.230000] cfg80211: World regulatory domain updated: [ 15.240000] cfg80211: DFS Master region: unset [ 15.250000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 15.260000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 15.270000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 15.280000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 15.290000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A) [ 15.300000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 15.310000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 15.320000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 15.330000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 16.070000] Realtek WLAN driver - version 1.6 (2013-02-21) [ 16.080000] DFS function - version 2.0.5 [ 16.090000] Adaptivity function - version 8.7 [ 16.100000] Device Name = RTKWiFi0 [ 16.110000] VIF_NUM=9 [ 18.120000] 98 - 25MHz Clock Source [ 19.740000] Find Port=1 Device:Vender ID=881210ec [ 20.320000] Device Name = RTKWiFi1 [ 20.330000] VIF_NUM=9 [ 22.330000] 98 - 25MHz Clock Source [ 24.350000] Find Port=0 Device:Vender ID=818b10ec [ 32.790000] device eth0 entered promiscuous mode [ 32.820000] br-lan: port 1(eth0) entered forwarding state [ 32.830000] br-lan: port 1(eth0) entered forwarding state [ 33.020000] cfg80211: Calling CRDA for country: US [ 33.060000] cfg80211: Regulatory domain changed to country: US [ 33.070000] cfg80211: DFS Master region: FCC [ 33.080000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 33.090000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A) [ 33.100000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A) [ 33.110000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s) [ 33.120000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) [ 33.130000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A) [ 34.830000] br-lan: port 1(eth0) entered forwarding state procd: Not starting instance igmpproxy::instance1, an error was indicated procd: - init complete - BusyBox v1.22.1 (2015-07-24 11:47:14 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 ----------------------------------------------------- BARRIER BREAKER (Barrier Breaker, r42887) ----------------------------------------------------- * 1/2 oz Galliano Pour all ingredients into * 4 oz cold Coffee an irish coffee mug filled * 1 1/2 oz Dark Rum with crushed ice. Stir. * 2 tsp. Creme de Cacao ----------------------------------------------------- root@rtl819xd:/#


Tags

toh/alfa.network/ac1200r.txt · Last modified: 2018/06/03 07:14 by tmomas