DD-WRT for TP-Link Archer C2 AC750

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
usermanager
DD-WRT Novice


Joined: 13 Nov 2017
Posts: 16

PostPosted: Thu Jan 18, 2018 13:13    Post subject: Reply with quote
Hi,

I do some advance! Very Happy

I compiled one OpenWRT image with "initramfs-kernel". So, I can boot this image from the bootloader using the TFTP command (from the serial console). This firmware doesn't touch the Flash, so I can experiment with it. Futhermore this firmware has all MTD tools enabled. So I figure that I can write to flash when it will be needed.

Now, I'm searching for a compatible DD-WRT firmware that I can boot/check/flash to this device. My idea it's use only the serial console and the bootloader for safe tests. Howewer, I need that someone can share with me one testing DD-WRT firmware. Can you do it?

Regards!
Sponsor
usermanager
DD-WRT Novice


Joined: 13 Nov 2017
Posts: 16

PostPosted: Thu Jan 18, 2018 17:24    Post subject: Reply with quote
Hi,

I advanced more with this device...

* For the kernel header, the problem is solved. If you compile the OpenWRT fimware, then you have access to the tool “mktplinkfw2”. Then using this tool you can generate correct kernel images that can boot in the device. Great! Very Happy

* I do the first boot of a DD-WRT kernel using the firmware from the similar device “D-Link DIR-810L”. The kernel boots, however as it can’t mount the root filesystem it generates a kernel panic:

Code:
VFS: Cannot open root device "ram0" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
1f00             192 mtdblock0  (driver?)
1f01              64 mtdblock1  (driver?)
1f02             128 mtdblock2  (driver?)
1f03            6656 mtdblock3  (driver?)
1f04              64 mtdblock4  (driver?)
1f05             512 mtdblock5  (driver?)
1f06             512 mtdblock6  (driver?)
1f07              64 mtdblock7  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Rebooting in 1 seconds..

I can’t continue (without flashing anything in the flash chip) as I don’t know how to force the DD-WRT firmware to use the initrd (ramdisk) squashfs as root. Any idea?

The reason for not flashing the firmware for the D-Link it’s because the flash partitions are different, and the D-Link lacks the RTL8367RB Gigabit Switch that uses the TP-Link. So this firmware will be not useable (I think).

* How to “convert” the DD-WRT firmware for the D-Link to use it with the TP-Link? Here the guide:

- Download the TRX file “dlink-dir810lc1-webflash.bin”.
- In a Linux shell execute the “binwalk -v dlink-dir810lc1-webflash-r34411.bin”.
- Use the data reported for extracting the kernel and squashfs, for example:

Code:
#dd if=dlink-dir810lc1-webflash-r34411.bin of=linux.7z bs=1 skip=92 count=1068992
#dd if=dlink-dir810lc1-webflash-r34411.bin of=rootfs.squashfs bs=1 skip=1069084

- Then patch the command line, as in this device it's defined for a console at 57600 and with root in mtdblock4. So, do these tasks:

Code:
#../openwrt-archer-c2/staging_dir/host/bin/lzma d linux.7z linux
#../openwrt-archer-c2/staging_dir/host/bin/patch-cmdline linux "console=ttyS0,115200 rootfstype=squashfs root=/dev/ram0"
# MANUAL HEX EDIT “linux” !!!
#../openwrt-archer-c2/staging_dir/host/bin/lzma e linux linux2.7z


You need to manual edit too the command line at the end of the file, as I see that the default it’s loaded from there!

- Finally, apply the header using this command:

Code:
#../openwrt-archer-c2/staging_dir/host/bin/mktplinkfw2 -B ArcherC2 -k linux2.7z -r rootfs.squashfs -E 0x8000D730 -L 0x80000000 -o uImage2

(the entry point of the kernel it’s printed in the binwalk report)

And now you can boot the “uImage2” in your Archer C2.
Use the TFTP command from the bootloader over the serial port:

Code:
#tftpboot 0x80800000 test.bin
#bootm

(remember to have a TFTP server in the address 192.168.0.100 serving the file “test.bin” =”uImage2”).

I hope this helps to advance in the porting task of DD-WRT to this device. The only remaining tasks are mainly to include in the sources:

- The Archer C2 flash mappings (partitioning)
- The code for the Leds, Gigabit Switch (RTL8367RB), 5GHz radio (patches only)

However, all working pieces of code can be reused from the OpenWRT port. See here for the sources:
https://github.com/plwm/openwrt-archer-c2

The relevant commits are only three:


So, if someone knows how to compile/patch the DD-WRT sources for adding support for this devices, please post here.

Regards!
usermanager
DD-WRT Novice


Joined: 13 Nov 2017
Posts: 16

PostPosted: Thu Jan 18, 2018 17:28    Post subject: Reply with quote
hebeda wrote:
brainslyer has a archer C2 device (i donated it last year in december) ....

I hope then that BrainSlyer will see this post! Wink
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2318
Location: Canada

PostPosted: Thu Jan 18, 2018 17:40    Post subject: Test Reply with quote
Here is a test file. Note, I have not tested it at all.

Based on WHR-300HP2 dd-wrt file. TP-Link US header.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
roybatty
DD-WRT Novice


Joined: 19 Jan 2018
Posts: 2

PostPosted: Fri Jan 19, 2018 23:43    Post subject: Archer C2 Reply with quote
Hi

I am a complete novice, but have an Archer C2 and want to see if I can get DD-WRT going on it before I fork out for a router that I know is supported. Happened upon this thread and gave the test a try via the WebGUI in the original firmware (post factory reset). Not sure if this was the intended delivery method (again, novice), but it failed with an error code of 4503.

Thanks
akmodi
DD-WRT Novice


Joined: 29 Jan 2018
Posts: 1

PostPosted: Mon Jan 29, 2018 8:24    Post subject: Re: Test Reply with quote
ian5142 wrote:
Here is a test file. Note, I have not tested it at all.

Based on WHR-300HP2 dd-wrt file. TP-Link US header.


Hi Ian,

Are you able to make this for the EU header ?

File attached.

Thanks
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2318
Location: Canada

PostPosted: Mon Jan 29, 2018 12:59    Post subject: Test File - EU Reply with quote
Here is a test file based on 300HP2, for Archer C2 EU.

NOT TESTED.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
Chuffy2
DD-WRT Novice


Joined: 26 Nov 2015
Posts: 5

PostPosted: Mon Feb 19, 2018 16:34    Post subject: Reply with quote
Seems like plenty of downloads - so is ian5142's C2 EU dd-wrt file working okay? Is the flash process same as usual?

Thanks in advance
raiken
DD-WRT Novice


Joined: 16 Feb 2018
Posts: 2

PostPosted: Wed Mar 07, 2018 17:29    Post subject: Reply with quote
Hello
Still no news if ian5142's C2 EU dd-wrt file is working?
Or all of those who installed don't have anymore internet connection? Smile) hahaha
Thanks
IeU
DD-WRT Novice


Joined: 10 Jun 2011
Posts: 6

PostPosted: Thu Mar 08, 2018 15:47    Post subject: Reply with quote
raiken wrote:
Hello
Still no news if ian5142's C2 EU dd-wrt file is working?
Or all of those who installed don't have anymore internet connection? Smile) hahaha
Thanks


I would like to know too Very Happy
raiken
DD-WRT Novice


Joined: 16 Feb 2018
Posts: 2

PostPosted: Thu Mar 29, 2018 7:25    Post subject: Reply with quote
145 downloads and no feedback?

Come on guys.... Very Happy
Draftkid
DD-WRT Novice


Joined: 29 Jun 2018
Posts: 1

PostPosted: Fri Jun 29, 2018 9:03    Post subject: Reply with quote
295 downloads since Jan 2018 and still no feedback Sad

BUMP! I have a US Archer C2 and would love to get this thing rocking also!! The default crap is Ka Ka Sad
icynl
DD-WRT Novice


Joined: 20 Feb 2011
Posts: 1

PostPosted: Wed Jul 18, 2018 10:38    Post subject: Re: Test File - EU Reply with quote
ian5142 wrote:
Here is a test file based on 300HP2, for Archer C2 EU.

NOT TESTED.

Can't upload the file. It give a error:

Error code: 4503

The uploaded file was not accepted by the device.



Hardware:

Firmware version:0.9.1 5.0 v0032.0 Build 170207 Rel.49213n

Hardware version:Archer C2 v1 00000002

Got a EU device
franciscocb94
DD-WRT Novice


Joined: 01 Oct 2018
Posts: 1

PostPosted: Mon Oct 01, 2018 1:29    Post subject: Reply with quote
I have the EU version (at least I bought it in Portugal).
Code:
Firmware Version:
0.9.1 4.2 v0032.0 Build 160706 Rel.37961n

Hardware Version:
Archer C2 v1 00000001


I'm leaving this post to edit after my tests and share the results!

EDIT:

I simply put the last posted file on the Firmware Upgrade page and it gave me this error:

Code:
Error code: 4503

The uploaded file was not accepted by the device.


Any suggestions?
YouriT
DD-WRT Novice


Joined: 25 Nov 2018
Posts: 1

PostPosted: Sun Nov 25, 2018 11:18    Post subject: Reply with quote
Same results here as franciscocb94.

Code:

FW Version: 0.9.1 4.1 v0032.0 Build 160512 Rel.40318n
HW Version: Archer C2 v1 00000000


I used the last FW Upgrade post above (34578_ddwrt_Archer_c2_eu)

And got this:

Code:

Error code: 4503

The uploaded file was not accepted by the device.
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum