Highlighted
New Member
Posts: 10
Registered: ‎07-27-2017

Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty)

My ER-X the firmware seems crash when it update to 2.0 from 1.10.8 , after that I try to recover it by USB-TTL .

 

I have connect it with putty , all things seems good but finally it stop at kernel panic error , I have try to press ctrl+c , or ESC , or ctrl + x and shift + ZZ , but no response at all , my tftp server is ready , and it connected to eth0 , all step are follow with this web site : https://community.ubnt.com/t5/EdgeRouter/ERX-ERX-SFP-System-Recovery/td-p/2056921 .

 

Can any one help me how can I fix this problem , thank you very much .Blush5

 

 

ER-X boot up log show as below :


===================================================================
MT7621 stage1 code 10:33:11 (ASIC)
CPU=50000000 HZ BUS=16666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL3 FB_DL: 0x15, 1/0 = 629/395 55000000
PLL4 FB_DL: 0x18, 1/0 = 733/291 61000000
PLL2 FB_DL: 0x19, 1/0 = 581/443 65000000
do DDR setting..[00320381]
Apply DDR3 Setting...(use customer AC)
0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120
--------------------------------------------------------------------------------
0000Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0001Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0002Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0003Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0004Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0005Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0006Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0007Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0008Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0009Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000AMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000BMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000CMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000DMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
000EMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1
000FMan Indifferent 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1
0010Man Indifferent 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0
0011Man Indifferent 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
0012Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0013Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0014Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0015Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0016Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0017Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0018Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0019Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001AMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001BMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001CMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001DMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001EMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
001FMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
rank 0 coarse = 15
rank 0 fine = 80
BMan Indifferent 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001D1E
==================================================================
RX DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 10 6 11 8 10 4 12 5 4 7
10 | 6 9 6 8 6 8
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delayMan Very HappyQS0 =30 DQS1 = 29
==================================================================
bit DQS0 bit DQS1
0 (1~58)29 8 (1~56)28
1 (2~56)29 9 (1~55)28
2 (2~56)29 10 (1~55)28
3 (1~56)28 11 (1~55)28
4 (1~59)30 12 (1~57)29
5 (0~56)28 13 (1~54)27
6 (1~58)29 14 (1~57)29
7 (1~56)28 15 (1~58)29
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 11 7 12 10 10 6 13 7 5 8
10 | 7 10 6 10 6 8
==================================================================
==================================================================
TX perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15, finish count=2
DQ loop=15, cmp_err_1 = ffff00aa
dqs_perbyte_dly.last_dqdly_pass[1]=15, finish count=1
DQ loop=14, cmp_err_1 = ffff0080
DQ loop=13, cmp_err_1 = ffff0080
DQ loop=12, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=12, finish count=2
byte:0, (DQS,DQ)=(9,8)
byte:1, (DQS,DQ)=(8,8)
20,data:89
[EMI] DRAMC calibration passed

===================================================================
MT7621 stage1 code done
CPU=50000000 HZ BUS=16666666 HZ
===================================================================


U-Boot 1.1.3 (Nov 2 2015 - 16:39:31)

Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ffb0000

Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 8ffe1960
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 DA 90 95 46]
Device found in MTK table, ID: 1da, EXT_ID: 909546
Support this Device in MTK table! 1da
select_chip
[NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
Signature matched and data read!
load_fact_bbt success 2047
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=112, mtd->erasesize=131072 devinfo.iowidth=8
..
UBNT e50 13-02079-19 F09FC2DF749E
UBNT BD type=e50, mac=F09FC2DF749E, s/n=F09FC2DF749E, mrev=19, k_idx=1
============================================
Ralink UBoot Version: 4.3.S.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: NAND Flash
Date:Nov 2 2015 Time:16:39:31
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 880 MHZ ####
estimate memory size =256 Mbytes
#Reset_MT7530
set port isolation

Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
default: 3

You choosed 3
0

3: System Boot system code via Flash.
## Booting image at c0040000 ...
Image Name: Linux Kernel Image
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2094853 Bytes = 2 MB
Load Address: 81001000
Entry Point: 814994f0
................................ Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 814994f0) ...
## Giving linux memsize in MB, 256

Starting kernel ...

Linux version 4.14.54-UBNT (ubnt@de4b771a736c) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 SMP Thu Jan 3 16:45:09 UTC 2019
SoC Type: MediaTek MT7621 ver:1 eco:3
bootconsole [early0] enabled
CPU0 revision is: 0001992f (MIPS 1004Kc)
MIPS: machine is Ubiquiti EdgeRouter
Determined physical RAM map:
memory: 10000000 @ 00000000 (usable)
VPE topology {2,2} total 4
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Zone ranges:
DMA [mem 0x0000000000000000-0x0000000000ffffff]
Normal [mem 0x0000000001000000-0x000000000fffffff]
HighMem empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x000000000fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
percpu: Embedded 15 pages/cpu @81976000 s31376 r8192 d21872 u61440
Built 1 zonelists, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyS1,57600n8 ubi.mtd=7 root=ubi0_0 rootfstype=ubifs rootsqimg=squashfs.img rootsqwdir=w rw
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Writing ErrCtl register=00010d40
Readback ErrCtl register=00010d40
Memory: 251996K/262144K available (4730K kernel code, 265K rwdata, 948K rodata, 1340K init, 264K bss, 10148K reserved, 0K cma-reserved, 0K highmem)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Hierarchical RCU implementation.
NR_IRQS: 256
clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
CPU1 revision is: 0001992f (MIPS 1004Kc)
Synchronize counters for CPU 1: done.
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
CPU2 revision is: 0001992f (MIPS 1004Kc)
Synchronize counters for CPU 2: done.
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
CPU3 revision is: 0001992f (MIPS 1004Kc)
Synchronize counters for CPU 3: done.
smp: Brought up 1 node, 4 CPUs
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x278/0x31c with crng_init=0
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
mt7621_gpio 1e000600.gpio: registering 32 gpios
mt7621_gpio 1e000600.gpio: registering 32 gpios
mt7621_gpio 1e000600.gpio: registering 32 gpios
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-mt7621 1e000900.i2c: clock 100KHz, re-start not support
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
clocksource: Switched to clocksource GIC
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
4 CPUs re-calibrate udelay(lpj = 1163264)
workingset: timestamp_bits=30 max_order=16 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
io scheduler noop registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
console [ttyS1] disabled
1e000c00.uartlite: ttyS1 at MMIO 0x1e000c00 (irq = 17, base_baud = 3125000) is a 16550A
console [ttyS1] enabled
console [ttyS1] enabled
bootconsole [early0] disabled
bootconsole [early0] disabled
cacheinfo: Failed to find cpu0 device node
cacheinfo: Unable to detect cache hierarchy for CPU 0
loop: module loaded
MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
Enable NFI Clock
# MTK NAND # : Use HW ECC
Device found in MTK table, ID: 1da, EXT_ID: 909546
Support this Device in MTK table! 1da
[NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
nand: AMD/Spansion NAND 256MiB 3,3V 8-bit
nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
8 fixed-partitions partitions found on MTD device MT7621-NAND
Creating 8 MTD partitions on "MT7621-NAND":
0x000000000000-0x000010000000 : "ALL"
0x000000000000-0x000010000000 : "ALL"
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x0000000e0000 : "Config"
0x0000000e0000-0x000000140000 : "eeprom"
0x000000140000-0x000000440000 : "Kernel1"
0x000000440000-0x000000740000 : "Kernel2"
0x000000740000-0x00000ff00000 : "RootFS"
[mtk_nand] probe successfully!
Signature matched and data read!
load_fact_bbt success 2047
Read UBNT BD OK!
UBNT BD mac f09fc2df749e kidx 1 mrev 19 serial F09FC2DF749E type e50
Device type: e50
dtb overlay offset: 0
mtk_nand_load_dtb_overlay: unflattened OK
mtk_nand_load_dtb_overlay: resolved OK
libphy: Fixed MDIO Bus: probed
MT7530 Reset Completed!!
change HW-TRAP to 0x117c8f
libphy: mdio: probed
mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
mtk_soc_eth 1e100000.ethernet switch0: mediatek frame engine at 0xbe100000, irq 20
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-platform: OHCI generic platform driver
xhci-mtk 1e1c0000.xhci: invalid resource
xhci-mtk: probe of 1e1c0000.xhci failed with error -22
usbcore: registered new interface driver usb-storage
NET: Registered protocol family 17
NET: Registered protocol family 15
ubi0: attaching mtd7
ubi0: scanning is finished
ubi0: attached mtd7 (name "RootFS", size 247 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 14/10, WL threshold: 4096, image sequence number: 1555389812
ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
ubi0: background thread "ubi_bgt0d" started, PID 52
do_mount_squash_image: started
do_mount_squash_image: mkdir /root.dev
ddo_mount_squash_image: sys_mount ubi0_0 /root.dev ubifs
o_mount_squash_iUBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 54
mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (ubi0:0): recovery needed
UBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_squashrandom: fast init done
_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mounUBIFS error (ubi0:0 pid 1): ubifs_load_znode: bad key order (keys 2 and 3)
t_s_imageMan Surprised_mounUBIFS error (ubi0:0 pid 1): ubifs_load_znode: bad indexing node at LEB 579:70288, error 6
t_squash_iUBIUBI magic 0x6101831
FS (mage: do_mou crc 0xe7ce2d7f
nt_squas node_type 9 (indexing node)
h group_type 0 (no node group)
_ sqnum 999923
i len 188
m child_cnt 8
a level 0
g Branches:
e 0: LEB 586:53872 len 4144 key (25960, data, 43)
: ddo_mounUBI 1: LEB 586:58016 len 4144 key (25960, data, 44)
t_s_image 2: LEB 586:62160 len 4144 key (25960, data, 45)
: 3: LEB 586:66304 len 4144 key (25960, inode)
o_mou 4: LEB 586:70448 len 4144 key (25960, data, 47)
n 5: LEB 586:74592 len 4144 key (25960, data, 48)
UBI 6: LEB 586:78736 len 4144 key (25960, data, 49)
FS et_UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops
squash_iUBIUBI mdo_mount_squash_image: mount failed
agic FS (mage: ddo_mount_squash_image: started
o_mou crc nt_sdo_mount_squash_image: mkdir /root.dev
quas node_type VFS: Cannot open root device "ubi0_0" or unknown-block(0,0): error -17
h group_type Please append a correct "root=" boot option; here are the available partitions:
0 (no _ sqnu1f00 262144 mtdblock0
m 99992 (driver?)
3i len 1f01 262144 mtdblock1
(driver?)
188

m child1f02 512 mtdblock2
_cnt 8

a (driver?)
level 1f03 384 mtdblock3
(driver?)
0

g Branches:1f04 384 mtdblock4


e 0: LEB 586 (driver?)
:53872 len : ddo1f05 3072 mtdblock5
(driver?)
_mounUBI 1: LEB 1f06 3072 mtdblock6
(driver?)
58t_s_image 2: L1f07 253696 mtdblock7
EB 586:62: 3: LE (driver?)
B 586:66304 len Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
o_mou 4: LEB 586---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
0 8 16 24 32 40 48 56 64 72 80 88 96 104 11 --------------------------------------------------------------------------0000Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0001Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0002Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0003Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0004Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0005Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0006Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0007Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0008Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0009Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000AMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000BMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000CMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000DMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000EMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 1 1 1 000FMan Indifferent 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0010Man Indifferent 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0011Man Indifferent 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0012Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0013Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0014Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0015Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0016Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0017Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0018Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0019Man Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001AMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001BMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001CMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001DMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001EMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001FMan Indifferent 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BMan Indifferent 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 Linux version 4.14.54-UBNT (ubnt@de4b771a736c) (gcc version 6.3.0 20170516 (DebiKernel command line: console=ttyS1,57600n8 ubi.mtd=7 root=ubi0_0 rootfstype=ubiMemory: 251996K/262144K available (4730K kernel code, 265K rwdata, 948K rodata, clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_nsclocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773random: get_random_u32 called from bucket_table_alloc+0x278/0x31c with crng_initclocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l1e000c00.uartlite: ttyS1 at MMIO 0x1e000c00 (irq = 17, base_baud = 3125000) is amtk_soc_eth 1e100000.ethernet switch0: mediatek frame engine at 0xbe100000, irq ubi0: max/mean erase counter: 14/10, WL threshold: 4096, image sequence number: ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB hamage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIFS (mage: do_mount_squasUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_iUBIUBIF_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mount_squash_iUBIUBIFS (mage: do_mount_squash_image: ddo_mount_s_imageMan Surprised_mounUBIFS error (ubi0:0 pid 1): ubifs_load_znode: bad indexing node quas node_type VFS: Cannot open root device "ubi0_0" or unknown-block(0,0): h group_type Please append a correct "root=" boot option; here are the avaB 586:66304 len Kernel panic - not syncing: VFS: Unable to mount root fs on unkno_mou 4: LEB 586---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Established Member
Posts: 969
Registered: ‎02-12-2013
Kudos: 253
Solutions: 90

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

@kennyc01
When you're in in recovery, which firmware version are you trying install?
New Member
Posts: 10
Registered: ‎07-27-2017

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

it show version 2.0.0
Established Member
Posts: 969
Registered: ‎02-12-2013
Kudos: 253
Solutions: 90

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

@kennyc01
Have you tried to use firmware 1.10.8, since it probably never completed the installation of 2.0.0, which means all the partitions are still in 1.10.8 structure.
Ubiquiti Employee
Posts: 1,269
Registered: ‎07-20-2015
Kudos: 1590
Solutions: 82

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

> ubifs_load_znode: bad key order (keys 2 and 3)
> UBIFS (mage: do_mount_squash_image: ddo_mount_squash_imageMan Surprised_mount_squash_i
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Those messages indicate failure of NAND flash.

 

You can try to recover ER-X with new v2.0.0 recovery image:

  1. Start TFTP server
  2. Download ER-X recovery image and host it on TFTP server -> https://dl.ubnt.com/firmwares/edgemax/v2.0.x/ER-e50.recovery.v2.0.0.5155111.190103.1639.d9c62d0a9.im...
  3. Restart ER-X and keep pressing "1" during boot until you reach "Load system code to SDRAM via TFTP" menu
  4. Type correct IP addresses of ER-X and TFTP server
  5. Type ER-e50.recovery.v2.0.0.5155111.190103.1639.d9c62d0a9.img in "Linux Kernel filename" field
  6. Press Enter and wait until recovery image is installing on ER-X

If this wont help then, I'm afraid there's no other way to recover ER-X and your only option is to RMA this unit.

New Member
Posts: 1
Registered: ‎12-20-2017

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

[ Edited ]

Thank you for this.  Mine soft bricked during a firmware update, this process saved me buying a new ER-X.

 

I want to add some specific details since I had to go digging a bit to actually get this working on a mac.  Most everyone has instructions for Windows or Linux.

 

First off, the USB-TTL FTDI adapter I bought was detected and installed by Mac OS Mojave just by plugging it in.  You can confirm this by opening a terminal and typing:

 

ls /dev/cu.*

Mine showed up as /dev/cu.usbserial-AK730NC but yours might be different.

 

I downloaded 2 apps, one called TFTPServer and the other goSerial.  TFTPServer is a GUI that allows you to configure and start/stop the built in Mac TFTP server, goSerial is a terminal program.  I didn't know how to use the built in Mac OS Terminal to connect to the serial port so this worked well.

 

Open your network preferences, and find your wired ethernet (you'll need a USB ethernet adapter if there's no built in wired ethernet port on your mac) and set the ip address to Manual, and use the following settings, leaving the rest empty:

 

IP: 172.16.3.210
Subnet: 255.255.255.0

Open up TFTPServer, click the Reveal button, and copy the recovery firmware to that folder. I renamed it to er-x.img just to cut down on the typing and reduce typos.  Next to the path there's a dropdown, select your ethernet adapter from this list.  Then click the Start TFTP button.  One thing to note, I did change the permissions on the default TFTP server path via the terminal when I was trying to get it set up without the GUI app.  If you're having trouble reading from that folder you can open a mac terminal and type:

 

sudo chmod 777 /private/tftpboot

I'm not sure if that's a necessary step or not, but I did it and everything worked so maybe try it without and let me know?

 

Now open up goSerial, with your USB-TTL device hooked up (there's lots of info on how to connect the pins) and power off to the ER-X.  Select your USB-TTL device from the serial port dropdown.  Set the speed to 57600.  Set the I/O hardware flow controls to NONE and click OK.  There's a little icon at the top left (next to the light switch one), click that and it will open the port.

 

Now power up your ER-X and eventually you'll be looking at a prompt, select 1.  press enter twice to accept the default IP addresses (172.16.3.211 for the ER-X, and 172.16.3.210 for the TFTP server) and then for the filename type er-x.img and press enter.  It should start loading the file, it will take a while, be patient and when the console finally comes to a stop at a login prompt, you can change your ethernet adapter IP to something in the 192.168.1.x range and log in via the web GUI.

 

After I logged in, I installed the ER-e50.v1.10.8.5142457.tar via the web GUI, it rebooted, I logged in again and restored the settings I'd downloaded before I started this whole mess.  Rebooted once again and it's right back up and running like it was before, albeit on the 1.10.8 firmware.

New Member
Posts: 6
Registered: ‎07-30-2017

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

Wow, thanks a lot! That saved my ER-X, althought I have bought a new one already ages ago!

Emerging Member
Posts: 52
Registered: ‎07-18-2018
Kudos: 4
Solutions: 2

Re: Can not recover ER-X firmware (kernel panic error at the end when connect with USB-TTL and putty

Please, include this somewhere in the help pages, since googling for recovery images only shows https://community.ubnt.com/t5/EdgeRouter/EdgeMax-rescue-kit-now-you-can-reinstall-EdgeOS-from-scratc... which only lists images for ERLite and ERPoE.