Ubiquiti EdgeRouter X Support

JTAG software bug report.
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

I have major breakthrough. I can detect the NAND flash with my code. Will implement the rest functions. These are done on a prototype hardware, but I hope to port to USB JTAG NT.
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

usbbdm wrote:I have major breakthrough. I can detect the NAND flash with my code. Will implement the rest functions. These are done on a prototype hardware, but I hope to port to USB JTAG NT.
Great news :)
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Read the data but seems to need to enable HWECC. This is NAND chip and if ECC is not in place, we might have "bit error" which should be fixed by ECC.
Slowly getting progress on this project since there are several things going on.
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Read is complete, implementing the erase and programming.
Data is about 270M and will take some time. Currently read entire flash will take 24 minutes.
But we might only interest the bootblocker and kernels which is quite fast.
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

Awesome!!!
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Before I finalize the programming, I had erased the boot and now the router is bricked. Remove the chip and resolder to the board does not seem to recover it.
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

usbbdm wrote:Before I finalize the programming, I had erased the boot and now the router is bricked. Remove the chip and resolder to the board does not seem to recover it.
Do you want to try my bootloader, I have the latest and this can do TFTP recovery.

Send me the beta software I can dump my ER-X
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

I think it is the hardware that has the issue.
I confirm I have reprogrammed the flash with NAND programmer. My read with test hardware is proven to be perfect.
When I put the working NAND flash back (I believe I have done good job on the soldering), I no longer can detect the flash.
Also erase function works, But the programming has not complete.
And it is not on USB JTAG NT yet. There are some glitch with USB JTAG NT hardware.
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

What is the pin out for serial port.
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

EdgeRouter X Serial Pinout

Code: Select all

******* | JTAG is up here
******* |

 <- PCB is on the left, * are the PINs | is the edge of the board

      * | GND
      * | Tx
      * | Rx
      * | Vcc

Serial connection parameters: 57600, 8N1
https://openwrt.org/toh/ubiquiti/ubiqui ... _ka#serial
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

I think I need to buy another router to finish the development.
MT7621 is CPU that is widely used, supporting it with JTAG is useful for many devices.
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Have second one in hand now.
Noticed that this router also have an SPI flash. So more time is needed.
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

The EdgeRouter Lite has USB flash in addition to NOR Flash and SPI flash as well

https://wikidevi.com/wiki/Ubiquiti_Netw ... outer_LITE

The EdgeRouter 4 has two

https://wikidevi.com/wiki/Ubiquiti_Netw ... er_4_(ER-4)
usbbdm
Junior Member
Posts: 8962
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

ricktendo wrote:The EdgeRouter Lite has USB flash in addition to NOR Flash and SPI flash as well

https://wikidevi.com/wiki/Ubiquiti_Netw ... outer_LITE

The EdgeRouter 4 has two

https://wikidevi.com/wiki/Ubiquiti_Netw ... er_4_(ER-4)
Very close to release 0.86 to support MT7621 CPU. Not too happy with the performance.
Will release NAND flash first. I will try to program openWRT with USB JTAG NT.
SPI might be released in the future if needed.
ricktendo
Junior Member
Posts: 133
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo »

Great news!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests