OpenWrt Forum Archive

Topic: Tp-Link C1200 support

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Tp-Link C1200 is the successor of the AC1200 model. C1200 is similar to AC1200 V2, which doesnt have support too. It has documentation in wikidevi, as the soc or com cards uploaded by me. Without this, this model is like never exists, only one page at Lede Wiki with few persons interested. So I'm trying to get more technical data about this wireless router and upload it to the OpenWrt community. Unfortunately, I havent experience building images for router, nor using uboot or cfe, so I dont know if I'll do some useful. Now, I tell you C1200 features:

-128MB RAM
-16MB Flash
-Wifi AC
-1 USB 2.0
-1 WAN Gigabit
-4 LAN Gigabit
-55€ in spain and europe
-Broadcom
-3 anthenas

As you can see, its not a bad router, also its cheap. The original firmware do his own duty, but not longer. The broadcom chips normally are a fucking head ache due to their privative drivers, but the models of this router are supported as kmod-* packages, only that maybe they will not run fastest. I will upload any progress but also it'd be great if someone who know more about this router would put it here.

(Last edited by franlego98 on 30 Aug 2017, 18:35)

how do you compile the rom?

you can do it using a toolchain who can download from tp-link c1200 official website (C1200-->support-->GPL code). It contains kernel .trx and the rootfs. If you look intro de file system, its a openwrt 12.09 customised. I've tried to compile a new image over arch linux but I only get errors. The readme file says that it should be used over a Red Hat or Fedora system.

Yesterday, I connected to the router over serial, soldering headers pin and like openwrt, and it put a root terminal over serial, but its a fucking joke because the fs is read-only, so although it has opkg its imposible to do nothing.

I have installed openwrt on the router, (on a archer c2) but when i try to install anything it says invalid dependencies, how can i do to cimpile the package?

Maybe yo have to set dns servers into internet provider interface, opkg will work

Is not about dns, its about kernel, and i need to compile the last version of the kernel to use opkg with trunk version

I am trying modificate firmware too. I am use binwalk for extract squashfs image and edit dropbear config, becouse by default config you cannot conect via admin user. But when i upload modifited bin, router don't accept this bin-file. Are TP-Link routers have checksum?

binwalk before

  • DECIMAL       HEXADECIMAL     DESCRIPTION
    --------------------------------------------------------------------------------
    68940         0x10D4C         LZMA compressed data, properties: 0x5D, dictionary size: 65536 bytes, uncompressed size: 432868 bytes
    179473        0x2BD11         TRX firmware header, little endian, image size: 1933312 bytes, CRC32: 0x6DF7B0F2, flags: 0x0, version: 1, header size: 28 bytes, loader offset: 0x1C, linux kernel offset: 0x0, rootfs offset: 0x0
    179501        0x2BD2D         LZMA compressed data, properties: 0x5D, dictionary size: 65536 bytes, uncompressed size: 4682720 bytes
    2112786       0x203D12        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 12133997 bytes, 1922 inodes, blocksize: 131072 bytes, created: 2018-01-18 12:22:56
    14249768      0xD96F28        XML document, version: "1.0"
    14258414      0xD990EE        XML document, version: "1.0"
    14259845      0xD99685        Unix path: /var/run/appflow/tccpipe</listen_path>
    14263891      0xD9A653        Unix path: /usr/share/miniupnpd/firewall.include</path>
    14268555      0xD9B88B        Unix path: /cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thu
    14273898      0xD9CD6A        Unix path: /usr/local/bin/jiggle_firewall</exec>
    14274744      0xD9D0B8        Unix path: /usr/local/bin/apply_appflow</exec>

My order of actions:
1) dd if=full_clean of=squash-img bs=1 skip=2112786 count=12136982
2) unsquashfs squash-img
3) Edit files what i need.
4) mksquashfs squashfs-root  squash-img-mod -comp xz
5) cp full_clean full-mod
6) dd if=squash-img-mod of=full-mod bs=1 seek=2112786

binwalk after

  • DECIMAL       HEXADECIMAL     DESCRIPTION
    --------------------------------------------------------------------------------
    68940         0x10D4C         LZMA compressed data, properties: 0x5D, dictionary size: 65536 bytes, uncompressed size: 432868 bytes
    179473        0x2BD11         TRX firmware header, little endian, image size: 1933312 bytes, CRC32: 0x6DF7B0F2, flags: 0x0, version: 1, header size: 28 bytes, loader offset: 0x1C, linux kernel offset: 0x0, rootfs offset: 0x0
    179501        0x2BD2D         LZMA compressed data, properties: 0x5D, dictionary size: 65536 bytes, uncompressed size: 4682720 bytes
    2112786       0x203D12        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 12131629 bytes, 1922 inodes, blocksize: 131072 bytes, created: 2018-02-07 07:23:38
    14249768      0xD96F28        XML document, version: "1.0"
    14258414      0xD990EE        XML document, version: "1.0"
    14259845      0xD99685        Unix path: /var/run/appflow/tccpipe</listen_path>
    14263891      0xD9A653        Unix path: /usr/share/miniupnpd/firewall.include</path>
    14268555      0xD9B88B        Unix path: /cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thu
    14273898      0xD9CD6A        Unix path: /usr/local/bin/jiggle_firewall</exec>
    14274744      0xD9D0B8        Unix path: /usr/local/bin/apply_appflow</exec>


Router don't accept this firmware.

(Last edited by RUVanillaBear on 7 Feb 2018, 08:54)

The discussion might have continued from here.