tnytown / tpl-c900-openwrt-install

Instructions for installing OpenWrt on a TP-Link Archer C900
Other
11 stars 5 forks source link

Flashing issue #9

Open ionstorm66 opened 2 years ago

ionstorm66 commented 2 years ago

Everything worked correct, but system never actives LAN/WAN after reboot.

Used openwrt-ath79-generic-tplink_archer-c2-v3-squashfs-sysupgrade.bin

PS D:\router> cat openwrt.bin | ssh root@192.168.0.1 'cat >/tmp/firmware.bin'
root@192.168.0.1's password:
PS D:\router> ssh root@192.168.0.1
root@192.168.0.1's password:

BusyBox v1.19.4 (2016-11-29 08:58:35 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

     MM           NM                    MMMMMMM          M       M
   $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM
  MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM
MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM'
MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM
MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM
MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM
MMMM=   MMMM     MMMMM,    NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM
MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM
MMMM=   MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM
MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM
  MMMMMMM:      MMMMMMM     M         MMMMMMMMMMMM  MMMMMMM MMMMMMM
    MMMMMM       MMMMN     M           MMMMMMMMM      MMMM    MMMM
     MMMM          M                    MMMMMMM        M       M
       M
 ---------------------------------------------------------------
   For those about to rock... (Attitude Adjustment, unknown)
 ---------------------------------------------------------------
root@Archer_C900:~# cd /tmp/
root@Archer_C900:/tmp# ls f
firmware.bin  fstab
root@Archer_C900:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "factory-uboot"
mtd1: 00010000 00010000 "u-boot"
mtd2: 00100000 00010000 "kernel"
mtd3: 006a0000 00010000 "rootfs"
mtd4: 00010000 00010000 "ART"
root@Archer_C900:/tmp# mtd write /tmp/firmware.bin mtd2:mtd3
Unlocking mtd2 ...
Unlocking mtd3 ...

Writing from /tmp/firmware.bin to mtd2 ...

Writing from /tmp/firmware.bin to mtd3 ...
root@Archer_C900:/tmp# reboot
root@Archer_C900:/tmp# Connection to 192.168.0.1 closed by remote host.
Connection to 192.168.0.1 closed.
PS D:\router>
tnytown commented 2 years ago

Sorry about the trouble! Does the router show any signs of life (blinking LEDs, wifi network up?)

If the router is bricked, you should be able to attempt TFTP recovery with the original U-Boot.

tnytown commented 2 years ago

Closing due to lack of activity

myxxmikeyxx commented 6 months ago

Hello @tnytown I appreciate the tutorial but I have the same issue. I am at the last reboot and it rebooted but only the power led is on. I plugged into the lan port and I am not getting an IP or anything. I am going to give it some more time but after maybe an hour I will reboot it and see if that helps at all. If not do you have a tutorial or recommendation for how to unbrick it? I found this video but I am on a Mac and have TFTP built it but idk how to use it. Edit: Found this going to try it: https://openwrt.org/docs/guide-user/troubleshooting/tftpserver

Also I followed your tutorial but is a bit lacking on the names and where and when to rename files, etc. I figured it out but still hit some bumps. Also I had a question on the part about Verify that mtd2 and mtd3 correspond with kernel and rootfs, respectively How do I do this. I didn't do this and I feel I should next time but I do not know enough to even know what to google for that.

tnytown commented 6 months ago

Hey @myxxmikeyxx!

I appreciate the tutorial but I have the same issue. I am at the last reboot and it rebooted but only the power led is on.

I'm sorry that it didn't seem to work! I wrote this up a while ago and I honestly don't know if the procedure is still applicable to newer firmware versions.

https://openwrt.org/docs/guide-user/troubleshooting/tftpserver

This looks about right to me. Unfortunately, I don't have experience in TFTP recovery for this particular model, so I can't be of much help 😅

Verify that mtd2 and mtd3 correspond with kernel and rootfs, respectively. How do I do this.

If you cat /proc/mtd, you should get a table containing partitions (e.g. mtd2, mtd3) and their corresponding names (e.g. kernel, rootfs). I meant to express that the entry for mtd2 should be named kernel and mtd3 should be named rootfs. Sorry for any confusion!

I didn't do this and I feel I should next time but I do not know enough to even know what to google for that.

You're evidently not the first to run into issues post-flash, so I think there must be some problem in my flashing instructions.

The README should probably be updated to add more sternly worded warnings advising people to not attempt the process unless they fully understand it.

Let me know how the TFTP recovery goes!

myxxmikeyxx commented 6 months ago

@tnytown I will not be able to re-flash it till this weekend maybe. Even then I don't know what static IP to set my device as the tutorials all seem to show different IP's so I assume it is coded into the router to look for 192.168.X.X (or 10.X.X.X). I get the power on and hold the WPS button to enable it for TFTP and then I saw someone said you can connect to its serial port to get an output to see if it is working but I don't want to take my device apart to access the serial port.

Side note I got a new TP-Link router and put it in AP mode and it has all the settings and features I need so getting this one working is more of a challenge than a necessity now.