Is there a way to fix bricked router?

2

I got a bricked UBNT EdgeRouter X router. It was bricked while changing the firmware using SSH. Then when I was trying to unbrick it using UART - the 3v3 router pin was connected to 3v3 UART.

Now router's 3v3 pin is giving 0.0 voltage. But router's LEDs are still working in case I power on or connect and disconnect patch cords.

I tried to connected it using

  • TXD↔RX, RXD↔TX, GND↔GND
  • and TXD↔TX, RXD↔RX, GND↔GND.

I used PuTTY, tried to connect using the COM number that I get from Computer>Manage>Device Manager. Baud rate 115200, Data Bits 8, Stop Bits 1, Flow Control None.

And in both cases I get blank PuTTY window.

Is there a way to fix it? If I give router to a service center they will be able to fix it?

user926368

Posted 2018-07-22T08:34:53.133

Reputation: 21

2Voted to close because there are lots of routers and lots of meaning of the word brick with respect of them. – davidgo – 2018-07-22T08:39:44.957

1"Bricked" can mean so many things... in many cases, it's unlikely you'll be able to fix it via a UART alone... Especially if a test point marked 3.3v is reading 0v - that could well be a hardware issue. – Attie – 2018-07-22T08:40:36.103

@KamilMaciorowski UBNT EdgeRouter X – user926368 – 2018-07-22T09:17:45.170

@Attie Bricked while changing the firmware using SSH. Then connected to router 3v3 got connected to UART 3v3 – user926368 – 2018-07-22T09:18:46.040

1You can (should) add relevant information by editing the question. This time I did it for you. You may write a comment to notify the user who asked for clarification (as you did), but the question itself should be standalone and not rely on comments that follow. – Kamil Maciorowski – 2018-07-22T09:32:48.593

Have you searched the Ubiquity forums, or been in contact with their tech support? They are usually very good!

– Attie – 2018-07-22T12:25:18.093

1Usually cure of bricked devices is done via JTAG connector (not UART), but AFAIK Ubiquiti dosen't support it well. IMHO the best way is to bring it to service center – Alex – 2018-07-22T12:37:57.290

Do you have a link light when you plug into eth0? Have you tried plugging a usb-serial into the console? You should see some sort of uboot output. What version firmware were you running, and what version were you going to? – Tim_Stewart – 2018-07-23T04:19:27.257

Answers

0

You didn't say exactly what you did via ssh that "bricked the firmware".

Most routers have different parts for the firmware. The first stage is a comparatively simple, often uboot. This first-stage then loads the real firmware as second stage. Googling seems to confirm that UBNT EdgeRouter X uses uboot.

So if you didn't destroy uboot by whatever you were doing, you should be able to use the uboot recovery mode (google).

If you did destroy it, there's probably nothing you can do. The lessen to learn then is that when doing a firmware upgrade, you always upgrade the "proper" (second-stage) firmware only. And before you do it, you have a good look at what part of the flash ROM contains which kind of information.

Edit

As there seems to be some confusion about this, let's sort out serial/UART vs. JTAG.

Looking at the OpenWRT page for the router, one can see the UART/serial connection in the following picture:

UART/serial port

This will provide a serial console to the device, which needs a working firmware, e.g. uboot. If uboot is already running anyway, there's no advantage in using the serial console over using the network console in recovery mode (unless this doesn't work for some reason). And the network console doesn't need additional hardware, like the wires one needs to connect to the serial port.

The chipset also seems to have a JTAG port, though I haven't found any indication where it is on the board. The standard JTAG header has 20 pins, in the picture one can see room for a header (not soldered) with 14 pins, which may contain some of the JTAG pins (or may be something completely different). There also may be no unsoldered JTAG header at all, and it would be necessary to get the JTAG signals directly from the main chipset.

With JTAG, it's possible to also flash the first-stage bootloader, but to do that, one needs special hardware that understand the JTAG protocol. A simple serial connection won't do.

When having the choice between buying JTAG-protocol hardware, and buying a new router, buying a new router usually is cheaper. Unless one plans to do a lot of hacking in the future using JTAG.

dirkt

Posted 2018-07-22T08:34:53.133

Reputation: 11 627

1Even fully bricked you can get the bootloader back on via jtaging. (Which is what he is trying to do) this isn't really an answer to the question. – Tim_Stewart – 2018-07-22T16:00:58.450

@Tim_Stewart: If I understood what the OP wrote correctly, he is not doing JTAG-firmware reprogramming, he is using the serial port (UART). This will give him a serial console, which again will require a working uboot. JTAG needs a different protocol, and he needs to have hardware that speaks JTAG, and he needs to identify the JTAG pins (which may have a header or not; UART headers are much more common). If he can do that, he should edit the question... but then he probably wouldn't need to ask how to do it. – dirkt – 2018-07-23T05:57:10.417

I figured he was mixing the terms. I believe it's a TTL board to reprogram these. – Tim_Stewart – 2018-07-23T06:17:51.183

@Tim_Stewart: Sorry, I don't follow you. What do you mean by "TTL board"? You mean JTAG protocol hardware with a serial interface? I see nothing in the original post that mentions anything about JTAG... All I see is serial. And routers do have an UART, and the uboot firmware does have a repogramming via UART capability - but you need working uboot for this. In which case it would be simpler to unbrick via recovery mode/TFTP (no extra hardware needed). – dirkt – 2018-07-23T06:45:38.370

TTL = transistor to transistor logic. It's signaling is usually either +3.3v or +5v. If he hooked it up with a regular rs-232 it's voltage would burn out the chip, it has a way higher voltage. https://www.sparkfun.com/tutorials/215 you need a TTL adapter on most boards that interface directly with a microcontroller/SoC. https://www.adafruit.com/product/70

– Tim_Stewart – 2018-07-23T16:05:30.053

@Tim_Stewart: You mean a level converter, not a "TTL board". That has nothing to do with UART vs. JTAG. And no, you can't use a level converter together with a serial port dongle to get JTAG access. And you'll have to look very hard today to find serial dongles that actually do the full 12V RS232. And embedded serial ports can use a wide variety of other voltage level besides 3.3V and 5V. – dirkt – 2018-07-23T16:38:23.130

TTL board and logic level converter are synonymous terms. I'm fully aware that jtag and uart are totally different. Without a bootloader the only option is jtaging. (Assuming he hasn't corrupted the bootimage) If he wants to access uboot from the board header he will need a TTL board, Arduino, FTDI-TTL etc to do so. Also he has the baud rate wrong for this board, it should be 57600-8-1-none-none. – Tim_Stewart – 2018-07-23T16:59:32.080