Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:mercury:mac1200r [2016/01/03 22:21] – Request for confirmation of OpenWrt support added tmomastoh:mercury:mac1200r [2018/06/02 07:08] – Request for confirmation of support removed; datatables added tmomas
Line 1: Line 1:
 +====== Mercury MAC1200R v1 ======
  
 +The Mercury MAC1200R v1 is a wireless router with dual wireless radio (802.11a/b/g/n and 802.11ac) based on the Atheros AR9344 SoC and five fast (not GBit!) Ethernet ports.
 +
 +This device can be found at [[http://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20150112041802&SearchText=MAC1200R|AliExpress]] for about 30€.
 +
 +===== Supported Versions =====
 +---- datatable ----
 +cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, OWrt Forum Topic URL_url, Device Techdata_pageid
 +headers : Brand, Model, Version, Current Release, OEM Info, Forum Topic, Technical Data
 +align   : c,c,c,c,c,c,c
 +filter  : Model=MAC1200R
 +filter  : Version=v1.1
 +----
 +
 +Support for 802.11a/b/g/n radio (ath9k driver) is mature but 802.11ac radio only (ath10k driver) supports AP and STA modes.
 +
 +===== Hardware Highlights =====
 +---- datatable ----
 +cols    : Model, Versions, CPU, CPU MHz, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_
 +header  : Model, Version,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB
 +align   : c,c,c,c,c,c,c,c,c,c,c,c,c
 +filter  : Model=MAC1200R
 +filter  : Version=v1.1
 +----
 +
 +
 +===== Installation =====
 +---- datatable ----
 +cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url
 +headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock
 +align   : c,c,c
 +filter  : Model=MAC1200R
 +filter  : Version=v1.1
 +----
 +
 +-> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
 +
 +
 +Installing OpenWrt from the factory firmware is not possible right now; TP-Link started to use a new firmware format with RSA signature in China. It is possible however to do it from U-Boot via TFTP.
 +
 +==== TFTP method ====
 +
 +To upload the firmware via TFTP you need a TFTP server running on your computer configured with the IP address 192.168.1.100/24. Place the firmware image (''openwrt-ar71xx-generic-mc-mac1200r-squashfs-factory.bin'') in the root folder of the TFTP server.
 +
 +Connect your computer to the serial TTL port of the router and to one of the LAN (blue) ports. Power the router on and enter the bootloader menu by quickly typing "tpl" when you see ''Autobooting in 1 seconds''.
 +
 +Type the following commands to load the firmware file to the router's RAM, erase the flash sectors, copy from RAM to flash, and boot the new firmware:
 +
 +<code>
 +tftpboot 0x81000000 openwrt-ar71xx-generic-mc-mac1200r-squashfs-factory.bin
 +erase 0x9f020000 +0x3c0000
 +cp.b 0x81000000 0x9f020000 0x3c0000
 +bootm 9f020000
 +</code>
 +
 +You could also type ''reset'' to reboot the device). See the log below:
 +
 +<code>
 +Autobooting in 1 seconds
 +db12x>
 +db12x>
 +db12x> tftpboot 0x81000000 openwrt-firmware-for-mac1200r.bin
 +eth1 link down
 +enet0 port1 up
 +dup 1 speed 1000
 +Using eth0 device
 +TFTP from server 192.168.1.100; our IP address is 192.168.1.111
 +Filename 'openwrt-firmware-for-mac1200r.bin'.
 +Load address: 0x81000000
 +Loading: #################################################################
 +#################################################################
 +#################################################################
 +#################################################################
 +#################################################################
 +#################################################################
 +#################################################################
 +#################################################################
 +#################################################################
 +##############################
 +done
 +Bytes transferred = 3145732 (300004 hex)
 +db12x> erase 0x9f020000 +0x3c0000
 +Erasing flash... ............................................................
 +Erased 60 sectors
 +db12x> cp.b 0x81000000 0x9f020000 0x3c0000
 +Copy to Flash... ............................................................done
 +db12x> bootm 9f020000
 +</code>
 +
 +
 +===== Hardware =====
 +==== Detailed hardware ====
 +^ [[wp>Instruction set]]               | [[wp>MIPS architecture|MIPS]]   |
 +^ Vendor                               | [[wp>Qualcomm Atheros]] |
 +^ [[docs:techref:bootloader]]          | [[docs:techref:bootloader:uboot|U-Boot]] |
 +^ [[docs:techref:hardware:soc|System-On-Chip]]  | Atheros AR9344 rev 2 |
 +^ [[docs:techref:hardware:cpu|CPU]] @Frq        | MIPS 74Kc V4.12 @560 MHz |
 +^ Flash size                           | 8192 KiB |
 +^ Flash Chip                           | [[http://www.spansion.com/Support/Datasheets/S25FL064K_00.pdf|Spansion S25FL064K]] |
 +^ RAM size                             | 128 MiB   |
 +^ RAM Chip                             | ? |
 +^ Wireless No1                         | SoC-integrated: AR9344 2x2 MIMO 802.11b/g/n (2.4 GHz) |
 +^ Wireless No2                         | On-board chip: QCA9882 2x2 MIMO 802.11a/n/ac (5 GHz)  |
 +^ [[docs:techref:hardware:switch]]     | AR934X built-in 10/100 switch w/ vlan support  |
 +^ USB                                  | No |
 +^ [[docs:techref:hardware:port.serial|Serial]]  | [[#Serial|Yes]] |
 +
 +==== Serial connection ====
 +The serial port of the MAC1200R can be accessed using the TTL pins shown in the image below. A voltage level converter (such as a CP2102 TTL-USB dongle) is required.
 +
 +With the Atheros logo the right way up and the leds to the back, counting from the Atheros SOC left to right, the pinout is TX, RX, GND. Also see the image (which is upside down):
 +
 +{{:media:mercury:mercury-mac1200r-ttl.jpg?300|Mercury MAC1200R TTL pins}}
 +
 +The communication settings are: TTL voltage, 115200 bps, 8N1.
 +
 +
 +===== Bootloader =====
 +The device uses U-Boot as the bootloader. To access the bootloader menu via the serial TTL port, type "tpl" when booting (when the "Autobooting in 1 seconds" message is shown).
 +
 +==== U-Boot bootlog ====
 +<code>
 +U-Boot 1.1.4--LSDK-10.1.389 (Apr  9 2014 - 15:23:02)
 +
 +U-Boot DB120
 +Wasp 1.2
 +
 +DRAM:  64 MB
 +Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
 +flash size 8MB, sector count = 128
 +Flash:  8 MB
 +Using default environment
 +
 +In:    serial
 +Out:   serial
 +Err:   serial
 +Net:   ag934x_enet_initialize...
 +No valid address in Flash. Using fixed address
 +No valid address in Flash. Using fixed address
 + wasp  reset mask:c02200 
 +WASP ----> S27 PHY 
 +s27 reg init 
 +: cfg1 0x80000000 cfg2 0x7114
 +eth0: ba:be:fa:co:ff:ee
 +athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
 +athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
 +eth0 up
 +WASP ----> S27 PHY 
 +s27 reg init lan 
 +ATHRS27: resetting s27
 +ATHRS27: s27 reset done
 +: cfg1 0x800c0000 cfg2 0x7214
 +eth1: ba:be:ca:fe:ca:fe
 +athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
 +athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10
 +athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
 +athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
 +athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
 +athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
 +athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
 +athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
 +eth1 up
 +eth0, eth1
 +Setting 0xb8116290 to 0x28502d0f
 +Autobooting in 1 seconds
 +## Booting image at 9f020000 ...
 +   Uncompressing Kernel Image ... OK
 +
 +Starting kernel ...
 +</code>
 +
 +===== External links =====
 +  * Manufacturer's site: [[http://mercurycom.com.cn/Product/detail?pd=125]] (in English with [[http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fmercurycom.com.cn%2FProduct%2Fdetail%3Fpd%3D125|Google Translate]]).
 +  * OpenWrt forum: [[https://forum.openwrt.org/viewtopic.php?id=54811]]
 +  * OpenWrt ticket including the original patch for Barrier Breaker 14.07: [[https://dev.openwrt.org/ticket/18605]]
 +  * Article at ComputerSolutions.cn: [[http://www.computersolutions.cn/blog/2014/12/flashing-a-mercury-mac1200r-wifi-router/]]
 +
 +
 +===== Tags =====
 +[[meta:tags|How to add tags]]
 +{{tag>AR9344 FastEthernet 2NIC 2WNIC 5Port MIPS MIPS32 74Kc 128ram 8flash qca9880 802.11ac 802.11n 802.11g 802.11b 802.11a simultan ath9k ath10k}}
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1