I have had issues with my Ubiquiti ER-X (Edge Router X) and changing the firmware. I want to post where I am at so others can learn from my mistake and if anyone has any input I’ll take it. I tried to update the firmware via TFTP but the uboot kernel is not communicating over TCPIP. I have the ip in the environment variable and plugged into another switch but no dice.
I bricked the router bad. I have a bad boot kernel (Kernel Panic) memory sector bfd4000 and c0040000. I am not aware of any others I can boot into. I tried a Kermit usb-serial-3pins on router update via option 7, which appears to copy just fine but into memory sector 80100000 but that has consistently failed with even the signed firmware which takes 8 hours over serial. 20 minutes for each smaller .bin file but those fail also.
I started by forcing an update. That bricked bfd4000. I was able to boot into c004000 and get into busybox. Busybox allowed TCP/IP and I was able to SCP (secure copy) over a new firmware and I had an old version of OpenWRT working. I do not know why but I managed to brick that c004000 sector as well.
Now I can only communicate via the uboot and the router will bootloop if I let it continue via option 3.
I have TFTP server setup correctly but without TCP/IP connectivity with uboot, it is useless. I don’t know if I am missing some environment variable or something. Uboot options below.
Using loadb bfd4000 vme50, fails no matter what for some reason to transfer using Kermit serial.
Now, the latest I am trying is a cp.linux to bfd4000 to transfer a linux kernel over to a bootable memory space. I have yet to try the ‘go’, ‘i2ccmd’, ‘mdio’, ‘nand’, ‘mm’, ‘spi’, and ‘ubnt’ commands.
I don’t know if the following translates to bfd4000 or c004000.
On bootup, I see:
0x000000000000-0x000000008000 : “u-boot”
0x000000008000-0x00000000e000 : “u-boot-env”
0x00000000e000-0x000000140000 : “factory”
0x000000140000-0x000000440000 “kernel 1”
0x000000440000-0x000000740000 “kernel 2”
0x000000740000-0x00000ff00000 “ ubi”
Thanks for reading.
Here are my uboot options:
4: System Enter Boot Command Line Interface.
U-Boot 1.1.3 (Nov 2 2015–16:39:31)
MT7621 # ?
? — alias for ‘help’
bootm — boot application image from memory
cp — memory copy
erase — erase SPI FLASH memory
go — start application at address ‘addr’
help — print online help
i2ccmd — read/write data to eeprom via I2C Interface
loadb — load binary file over serial line (kermit mode)
md — memory display
mdio — Ralink PHY register R/W command !!
mm — memory modify (auto-incrementing)
nand — nand command
nm — memory modify (constant address)
printenv- print environment variables
reset — Perform RESET of the CPU
saveenv — save environment variables to persistent storage
setenv — set environment variables
spi — spi command
tftpboot- boot image via network using TFTP protocol
ubntw — ubntw command
version — print monitor version