Ubiquiti EdgeRouter X (ER-X) / EdgeRouter X-SFP (ER-X-SFP)

Can someone tell me how well LEDE works on this device? What works and what doesn't?
The device wiki is quite empty. I'm thinking about buying this device but first I'd like to ask a few questions to someone who uses this device with LEDE daily.

Thanks.

It should work, and from what I read PoE should be supported as well by now.

The OpenWrt wiki entry has some info.

Don't have the device myself but have heard/seen a few positive reports from people in the past months. More info here and here.

2 Likes

OEM bootlog of Ubiquity EdgeRouter X

===================================================================
                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 ===
PLL2 FB_DL: 0xf, 1/0 = 611/413 3D000000
PLL4 FB_DL: 0xf, 1/0 = 647/377 3D000000
PLL3 FB_DL: 0x16, 1/0 = 529/495 59000000
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
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1
000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
000F:|    0    0    0    0    0    1    1    1    1    1    1    1    1    1    0    0
0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0
0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 16
rank 0 fine = 32
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001E1C
==================================================================
                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 |    9 7 10 9 9 6 10 6 7 10
10 |    9 11 9 12 7 11
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =28 DQS1 = 30
==================================================================
bit     DQS0     bit      DQS1
0  (1~54)27  8  (1~55)28
1  (1~54)27  9  (1~56)28
2  (1~55)28  10  (1~57)29
3  (1~55)28  11  (1~55)28
4  (1~55)28  12  (2~58)30
5  (1~55)28  13  (1~56)28
6  (1~55)28  14  (1~55)28
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 |    10 8 10 9 9 6 10 6 9 12
10 |    10 13 9 14 9 12
==================================================================
==================================================================
     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-18 802AA89EC3FA
UBNT BD type=e50, mac=802AA89EC3FA, s/n=802AA89EC3FA, mrev=18, k_idx=0
============================================
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                                                                    0

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

Starting kernel ...


LINUX started...

 THIS IS ASIC
Linux version 3.10.14-UBNT (root@edgeos-builder2) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 SMP Mon Nov 14 03:56:39 PST 2016

 The CPU feqenuce set to 880 MHz
GCMP present
CPU0 revision is: 0001992f (MIPS 1004Kc)
Software DMA cache coherency
Determined physical RAM map:
 memory: 10000000 @ 00000000 (usable)
Zone ranges:
  Normal   [mem 0x00000000-0x0fffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x0fffffff]
Detected 3 available secondary CPU(s)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
PERCPU: Embedded 7 pages/cpu @81203000 s6720 r8192 d13760 u32768
Built 1 zonelists in Zone order, 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=0000144c
Readback ErrCtl register=0000144c
Memory: 254732k/262144k available (3588k kernel code, 7412k reserved, 1027k data, 244k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [ttyS1] enabled
Calibrating delay loop... 577.53 BogoMIPS (lpj=1155072)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
launch: starting cpu1
launch: cpu1 gone!
CPU1 revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Synchronize counters for CPU 1: done.
launch: starting cpu2
launch: cpu2 gone!
CPU2 revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Synchronize counters for CPU 2: done.
launch: starting cpu3
launch: cpu3 gone!
CPU3 revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, 4-way, VIPT, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Synchronize counters for CPU 3: done.
Brought up 4 CPUs
devtmpfs: initialized
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
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 = 1167360)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.13 (for 3.10.34)
aufs 3.10.x-20140915
msgmni has been set to 497
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x1e000d00 (irq = 27) is a 16550A
serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
Ralink gpio driver initialized
i2cdrv_major = 218
loop: module loaded
flash manufacture id: 1c, device id 70 15
EN25QH16(1c 70151c70) (2048 Kbytes)
mtd .name = raspi, .size = 0x00200000 (2M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 1 MTD partitions on "raspi":
0x000000000000-0x000000080000 : "SPI_FLASH"
MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
Allocate 16 byte aligned buffer: 804d0430
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [01 DA 90 95 46, 00909546]
Device found in MTK table, ID: 1da, EXT_ID: 909546
Support this Device in MTK table! 1da
NAND device: Manufacturer ID: 0x01, Chip ID: 0xda (AMD/Spansion NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 112
[NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
Scanning device for bad blocks
Signature matched and data read!
load_fact_bbt success 2047
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Creating 7 MTD partitions on "MT7621-NAND":
0x000000000000-0x00000ff80000 : "ALL"
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x0000000e0000 : "Config"
0x0000000e0000-0x000000140000 : "eeprom"
0x000000140000-0x000000440000 : "Kernel"
0x000000440000-0x000000740000 : "Kernel2"
0x000000740000-0x00000ff00000 : "RootFS"
[mtk_nand] probe successfully!
UBNT BD mac 802aa89ec3fa kidx 0 mrev 18 serial 802AA89EC3FA type e50
rdm_major = 253
GMAC1_MAC_ADRH -- : 0x0000802a
GMAC1_MAC_ADRL -- : 0xa89ec3fa
Ralink APSoC Ethernet Driver Initilization. v3.1  512 rx/tx descriptors allocated, mtu = 1500!
GMAC1_MAC_ADRH -- : 0x0000802a
GMAC1_MAC_ADRL -- : 0xa89ec3fa
PROC INIT OK!
Ralink I2C Init
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
UBI: attaching mtd7 to ubi0
UBI: scanning is finished
UBI: attached mtd7 (name "RootFS", size 247 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 682596211
UBI: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
UBI: background thread "ubi_bgt0d" started, PID 54
UBIFS: background thread "ubifs_bgt0_0" started, PID 55
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "troot"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 244428800 bytes (233 MiB, 1925 LEBs), journal size 12189696 bytes (11 MiB, 96 LEBs)
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID 44AB8F01-9C98-436E-AF0E-D9BD34321B74, small LPT model
VFS: Mounted root (aufs filesystem) on device 0:12.
devtmpfs: mounted
Freeing unused kernel memory: 244K (80483000 - 804c0000)
Algorithmics/MIPS FPU Emulator v1.5
INIT: version 2.88 booting
mkdir: can't create directory '/dev/shm/network': No such file or directory
INIT: Entering runlevel: 2
Unable to open file: /dev/tpm0
can't open any entropy source
Maybe RNG device modules are not loaded

[ ok ] Starting routing daemon: rib nsm ribd.
[ ok ] Starting EdgeOS router: migrate rl-system configure.

Welcome to EdgeOS ubnt ttyS1

By logging in, accessing, or using the Ubiquiti product, you
acknowledge that you have read and understood the Ubiquiti
License Agreement (available in the Web UI at, by default,
http://192.168.1.1) and agree to be bound by its terms.

ubnt login:

LEDE bootlog from initramfs of Ubiquity EdgeRouter X

===================================================================
                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 ===
PLL4 FB_DL: 0xe, 1/0 = 514/510 39000000
PLL2 FB_DL: 0xf, 1/0 = 623/401 3D000000
PLL3 FB_DL: 0x16, 1/0 = 559/465 59000000
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
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1
000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
000F:|    0    0    0    0    0    1    1    1    1    1    1    1    1    1    0    0
0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0
0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 16
rank 0 fine = 32
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001C1C
==================================================================
                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 |    9 7 10 9 9 6 10 6 7 10
10 |    9 11 8 11 7 11
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =28 DQS1 = 28
==================================================================
bit     DQS0     bit      DQS1
0  (1~55)28  8  (1~56)28
1  (1~55)28  9  (1~55)28
2  (1~53)27  10  (1~56)28
3  (1~55)28  11  (1~55)28
4  (1~55)28  12  (1~56)28
5  (1~54)27  13  (1~54)27
6  (1~54)27  14  (1~55)28
7  (1~56)28  15  (1~55)28
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    9 7 11 9 9 7 11 6 7 10
10 |    9 11 8 12 7 11
==================================================================
==================================================================
     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-18 802AA89EC3FA
UBNT BD type=e50, mac=802AA89EC3FA, s/n=802AA89EC3FA, mrev=18, k_idx=0
============================================
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                                                                    4
You choosed 1
                                                                              0


1: System Load Linux to SDRAM via TFTP.
 Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.0.86) ==:192.168.0.86
        Input server IP (192.168.0.66) ==:192.168.0.66
        Input Linux Kernel filename (lede-ramips-mt7621-ubnt-erx-initramfs-kernel.bin) ==:

 netboot_common, argc= 3

 NetTxPacket = 0x8FFE5B80

 KSEG1ADDR(NetTxPacket) = 0xAFFE5B80

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'lede-ramips-mt7621-ubnt-erx-initramfs-kernel.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (f4:6d:04:37:e4:e4)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################################
done
Bytes transferred = 3504570 (3579ba hex)
NetBootFileXferSize= 003579ba
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
   Image Name:   MIPS LEDE Linux-4.4.42
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3504506 Bytes =  3.3 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 4.4.42 (cezary@eko.one.pl) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 SMP Wed Feb 1 23:26:05 2017
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is UBNT-ERX
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @8120c000 s8416 r8192 d24352 u40960
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00001443
[    0.000000] Readback ErrCtl register=00001443
[    0.000000] Memory: 252532K/262144K available (3727K kernel code, 200K rwdata, 860K rodata, 2048K init, 256K bss, 9612K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.010000] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.090000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.090000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.090000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.180000] Synchronize counters for CPU 1: done.
[    0.190000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.190000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.190000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.190000] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.280000] Synchronize counters for CPU 2: done.
[    0.290000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.290000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.290000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.290000] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.380000] Synchronize counters for CPU 3: done.
[    0.390000] Brought up 4 CPUs
[    0.390000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.400000] pinctrl core: initialized pinctrl subsystem
[    0.410000] NET: Registered protocol family 16
[    0.480000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.490000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.500000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.510000] clocksource: Switched to clocksource GIC
[    0.530000] NET: Registered protocol family 2
[    0.540000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.550000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.560000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.570000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.590000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.600000] NET: Registered protocol family 1
[    2.260000] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    2.280000] Crashlog allocated RAM at address 0x3f00000
[    2.300000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.310000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.330000] io scheduler noop registered
[    2.340000] io scheduler deadline registered (default)
[    2.350000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.360000] console [ttyS0] disabled
[    2.370000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A
[    2.390000] console [ttyS0] enabled
[    2.390000] console [ttyS0] enabled
[    2.400000] bootconsole [early0] disabled
[    2.400000] bootconsole [early0] disabled
[    2.420000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.430000] Allocate 16 byte aligned buffer: 806e4270
[    2.440000] Enable NFI Clock
[    2.450000] # MTK NAND # : Use HW ECC
[    2.460000] Device found in MTK table, ID: 1da, EXT_ID: 909546
[    2.470000] Support this Device in MTK table! 1da
[    2.480000] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
[    2.490000] nand: AMD/Spansion NAND 256MiB 3,3V 8-bit
[    2.500000] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
[    2.520000] [NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
[    2.530000] Scanning device for bad blocks
[    3.230000] 6 ofpart partitions found on MTD device MT7621-NAND
[    3.250000] Creating 6 MTD partitions on "MT7621-NAND":
[    3.260000] 0x000000000000-0x000000080000 : "u-boot"
[    3.270000] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    3.280000] 0x0000000e0000-0x000000140000 : "factory"
[    3.290000] 0x000000140000-0x000000440000 : "kernel1"
[    3.300000] 0x000000440000-0x000000740000 : "kernel2"
[    3.310000] 0x000000740000-0x00000ff00000 : "ubi"
[    3.320000] [mtk_nand] probe successfully!
[    3.330000] Signature matched and data read!
[    3.340000] load_fact_bbt success 2047
[    3.350000] netif_napi_add() called with weight 128 on device eth%d
[    3.380000] libphy: mdio: probed
[    4.780000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.790000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[    4.810000] mt7621_wdt 1e000100.wdt: Initialized
[    4.820000] NET: Registered protocol family 10
[    4.830000] NET: Registered protocol family 17
[    4.840000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    4.870000] 8021q: 802.1Q VLAN Support v1.8
[    4.880000] UBI: auto-attach mtd5
[    4.880000] ubi0: attaching mtd5
[    7.060000] mtk_soc_eth 1e100000.ethernet eth0: port 0 link up
[    7.330000] ubi0: scanning is finished
[    7.350000] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[    7.360000] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.380000] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.390000] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.410000] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[    7.420000] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.430000] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 682596211
[    7.450000] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[    7.470000] ubi0: background thread "ubi_bgt0d" started, PID 324
[    7.470000] hctosys: unable to open rtc device (rtc0)
[    7.500000] Freeing unused kernel memory: 2048K (804b0000 - 806b0000)
[    7.520000] init: Console is alive
[    7.530000] init: - watchdog -
[    7.560000] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   10.740000] procd: - early -
[   10.750000] procd: - watchdog -
[   11.360000] procd: - ubus -
[   11.410000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.430000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.450000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.470000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.490000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.500000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.520000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   11.540000] procd: - init -
Please press Enter to activate this console.
[   11.650000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.670000] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   11.690000] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   11.740000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.750000] nf_conntrack version 0.5.0 (3977 buckets, 15908 max)
[   11.930000] xt_time: kernel timezone is -0000
[   11.940000] PPP generic driver version 2.4.2
[   11.950000] NET: Registered protocol family 24
[   13.020000] random: jshn: uninitialized urandom read (4 bytes read, 45 bits of entropy available)
[   13.080000] random: jshn: uninitialized urandom read (4 bytes read, 45 bits of entropy available)
[   13.220000] random: jshn: uninitialized urandom read (4 bytes read, 45 bits of entropy available)
[   16.950000] device eth0.1 entered promiscuous mode
[   16.960000] device eth0 entered promiscuous mode
[   16.970000] br-lan: port 1(eth0.1) entered forwarding state
[   16.980000] br-lan: port 1(eth0.1) entered forwarding state
[   18.980000] br-lan: port 1(eth0.1) entered forwarding state
[   22.020000] random: nonblocking pool is initialized

LEDE bootlog of Ubiquity EdgeRouter X

===================================================================
                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 ===
PLL4 FB_DL: 0xe, 1/0 = 557/467 39000000
PLL2 FB_DL: 0xf, 1/0 = 612/412 3D000000
PLL3 FB_DL: 0x16, 1/0 = 577/447 59000000
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
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1
000E:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
000F:|    0    0    0    0    0    1    1    1    1    1    1    1    1    1    0    0
0010:|    1    1    1    1    1    1    1    1    1    0    0    0    0    0    0    0
0011:|    1    1    1    1    0    0    0    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
rank 0 coarse = 16
rank 0 fine = 32
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_R0DELDLY[018]=00001D1C
==================================================================
                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 |    9 7 10 9 9 6 10 6 6 10
10 |    9 11 8 12 7 11
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =28 DQS1 = 29
==================================================================
bit     DQS0     bit      DQS1
0  (1~56)28  8  (1~55)28
1  (1~53)27  9  (1~55)28
2  (1~50)25  10  (1~56)28
3  (1~54)27  11  (1~55)28
4  (1~56)28  12  (1~56)28
5  (1~54)27  13  (1~57)29
6  (1~54)27  14  (1~56)28
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 |    9 8 13 10 9 7 11 6 7 11
10 |    10 12 9 12 8 11
==================================================================
==================================================================
     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 = ffff00a0
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-18 802AA89EC3FA
UBNT BD type=e50, mac=802AA89EC3FA, s/n=802AA89EC3FA, mrev=18, k_idx=0
============================================
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                                                                    0

3: System Boot system code via Flash.
## Booting image at bfd40000 ...
   Image Name:   MIPS LEDE Linux-4.4.47
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1576962 Bytes =  1.5 MB
   Load Address: 80001000
   Entry Point:  80001000
.........................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 4.4.47 (vm@Ubuntu-VM) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3143-e967f4d) ) #0 SMP Sun Feb 12 13:27:21 2017
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is UBNT-ERX
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] PERCPU: Embedded 10 pages/cpu @8120c000 s8416 r8192 d24352 u40960
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00001443
[    0.000000] Readback ErrCtl register=00001443
[    0.000000] Memory: 254388K/262144K available (3728K kernel code, 200K rwdata, 860K rodata, 192K init, 256K bss, 7756K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.010000] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.090000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.090000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.090000] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.180000] Synchronize counters for CPU 1: done.
[    0.190000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.190000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.190000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.190000] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.280000] Synchronize counters for CPU 2: done.
[    0.290000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.290000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.290000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.290000] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.380000] Synchronize counters for CPU 3: done.
[    0.390000] Brought up 4 CPUs
[    0.390000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.400000] pinctrl core: initialized pinctrl subsystem
[    0.410000] NET: Registered protocol family 16
[    0.480000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.490000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.500000] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.510000] clocksource: Switched to clocksource GIC
[    0.530000] NET: Registered protocol family 2
[    0.540000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.550000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.560000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.570000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.590000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.600000] NET: Registered protocol family 1
[    0.610000] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.620000] Crashlog allocated RAM at address 0x3f00000
[    0.640000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.650000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.670000] io scheduler noop registered
[    0.680000] io scheduler deadline registered (default)
[    0.690000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.710000] console [ttyS0] disabled
[    0.710000] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 33, base_baud = 3125000) is a 16550A
[    0.730000] console [ttyS0] enabled
[    0.730000] console [ttyS0] enabled
[    0.750000] bootconsole [early0] disabled
[    0.750000] bootconsole [early0] disabled
[    0.760000] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    0.780000] Allocate 16 byte aligned buffer: 80514270
[    0.790000] Enable NFI Clock
[    0.790000] # MTK NAND # : Use HW ECC
[    0.800000] Device found in MTK table, ID: 1da, EXT_ID: 909546
[    0.810000] Support this Device in MTK table! 1da
[    0.820000] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
[    0.830000] nand: AMD/Spansion NAND 256MiB 3,3V 8-bit
[    0.840000] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
[    0.860000] [NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
[    0.870000] Scanning device for bad blocks
[    1.580000] 6 ofpart partitions found on MTD device MT7621-NAND
[    1.590000] Creating 6 MTD partitions on "MT7621-NAND":
[    1.600000] 0x000000000000-0x000000080000 : "u-boot"
[    1.610000] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    1.620000] 0x0000000e0000-0x000000140000 : "factory"
[    1.630000] 0x000000140000-0x000000440000 : "kernel1"
[    1.650000] 0x000000440000-0x000000740000 : "kernel2"
[    1.660000] 0x000000740000-0x00000ff00000 : "ubi"
[    1.670000] [mtk_nand] probe successfully!
[    1.680000] Signature matched and data read!
[    1.680000] load_fact_bbt success 2047
[    1.690000] netif_napi_add() called with weight 128 on device eth%d
[    1.720000] libphy: mdio: probed
[    3.120000] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    3.130000] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 10
[    3.150000] mt7621_wdt 1e000100.wdt: Initialized
[    3.160000] NET: Registered protocol family 10
[    3.170000] NET: Registered protocol family 17
[    3.180000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.210000] 8021q: 802.1Q VLAN Support v1.8
[    3.220000] UBI: auto-attach mtd5
[    3.220000] ubi0: attaching mtd5
[    5.440000] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    5.670000] ubi0: scanning is finished
[    5.690000] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[    5.700000] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.720000] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.730000] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.750000] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[    5.760000] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.770000] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 682596211
[    5.790000] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[    5.810000] ubi0: background thread "ubi_bgt0d" started, PID 325
[    5.820000] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.830000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.850000] hctosys: unable to open rtc device (rtc0)
[    5.860000] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.880000] Freeing unused kernel memory: 192K (804b0000 - 804e0000)
[    6.540000] init: Console is alive
[    6.550000] init: - watchdog -
[    7.080000] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   10.630000] random: procd: uninitialized urandom read (4 bytes read, 31 bits of entropy available)
[   10.630000] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 382
[   10.710000] UBIFS (ubi0:1): recovery needed
[   10.960000] UBIFS (ubi0:1): recovery completed
[   10.960000] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.980000] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.000000] UBIFS (ubi0:1): FS size: 238460928 bytes (227 MiB, 1878 LEBs), journal size 11935744 bytes (11 MiB, 94 LEBs)
[   11.020000] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.030000] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID EB1BCEDD-16BB-41E1-86DB-7E94499D4A97, small LPT model
[   11.060000] mount_root: switching to ubifs overlay
[   11.080000] urandom-seed: Seeding with /etc/urandom.seed
[   11.190000] procd: - early -
[   11.190000] procd: - watchdog -
[   11.860000] procd: - ubus -
[   12.080000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.100000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.120000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.140000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.150000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.170000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.190000] random: ubusd: uninitialized urandom read (4 bytes read, 35 bits of entropy available)
[   12.210000] procd: - init -
Please press Enter to activate this console.
[   12.560000] tun: Universal TUN/TAP device driver, 1.6
[   12.570000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   12.590000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.600000] Netfilter messages via NETLINK v0.30.
[   12.610000] ip_set: protocol 6
[   12.650000] u32 classifier
[   12.650000]     input device check on
[   12.660000]     Actions configured
[   12.670000] Mirror/redirect action on
[   12.680000] nf_conntrack version 0.5.0 (3977 buckets, 15908 max)
[   12.700000] fuse init (API version 7.23)
[   12.710000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.720000] ctnetlink v0.93: registering with nfnetlink.
[   12.880000] xt_time: kernel timezone is -0000
[   12.890000] PPP generic driver version 2.4.2
[   12.900000] NET: Registered protocol family 24
[   14.570000] random: jshn: uninitialized urandom read (4 bytes read, 56 bits of entropy available)
[   14.650000] random: ubusd: uninitialized urandom read (4 bytes read, 57 bits of entropy available)
[   18.050000] device eth0.1 entered promiscuous mode
[   18.060000] device eth0 entered promiscuous mode
[   18.080000] br-lan: port 1(eth0.1) entered forwarding state
[   18.090000] br-lan: port 1(eth0.1) entered forwarding state
[   19.320000] random: nonblocking pool is initialized
[   20.090000] br-lan: port 1(eth0.1) entered forwarding state

Modified backup scripted from OpenWRT Wiki - Generic Backup
mtdbk.sh
Run it with command: bash mtdbk.sh

I changed user name from root to ubnt and I added sudo before dd command to avoid permission denied error.

I intend to upload a made backup of my ERX internal flash. If I forget to do that please let me know. There might be a possibility though, that the image of mtd7_RootFS partition is corrupt due to insufficient RAM space during the backup creation but that's unluckily.

WARNING!
I wasn't able to restore my ERX to stock firmware from LEDE. The image of mtd7_RootFS (mtd5_ubi in LEDE) was to big to fit in RAM. I managed to mount remote folder with the image using SSHFS but even though the image restoration seed successful the original firmware didn't boot. The Ubiquiti company doesn't supply restore image to use with TFTP from uboot, even though the hardware and bootloader supports it so I conclude that RETURNING TO STOCK FIRMWARE FROM LEDE IN NOT POSSIBLE at the moment.
I haven't found even one person that managed to restore their ERX or ERX-SFP to factory state without doing some crazy advanced stuff.

I don't have my ERX unit anymore so I won't be able to help anymore.

1 Like

The serial pins connectors worked differently then in the ERX-SFP unit presented in OpenWRT wiki.
Looking from the top the pins are.

  1. Don't know, probably v3.3. It doesn't need to be connected.
  2. RX
  3. TX
  4. GND
2 Likes

booting from openwrt/lede ram image and doing

 mount -o remount,size=240M tmpfs /tmp
 dd if=/dev/mtd0ro of=/tmp/mtd0
 dd if=/dev/mtd1ro of=/tmp/mtd1
 dd if=/dev/mtd2ro of=/tmp/mtd2
 dd if=/dev/mtd3ro of=/tmp/mtd3
 dd if=/dev/mtd4ro of=/tmp/mtd4

and for the ubi like

dd if=/dev/mtd5ro | gzip > /tmp/mtd5.gz

I think is ok, so the ubi image is compressed (145MB) and it will be able to fit in flash so you can restore it if you want

Am I right ?

1 Like

Yeah. Compression might work. I haven't tried that though.
I used the backup script from OpenWRT Wiki.

Thanks for pointing that out.

I backed up mine like that, maybe if I have time I'll try to restore the mtd partition to see if it's working
do you know the command to write the mtd so I don't search it on the internet ?
Regards

1 Like

I have been considering getting an ER-X and would like to ask if anyone has yet found a way to restore a backup or a compressed backup of the original firmware? Or has carried out more testing than mentioned above?

my er-x is busy right now, if I finish ath79 for 1043nd-v4 I can try to restore the original firmware, but I'm sure it will work, my mtd5 partition has ~158 MB compressed (last update), so there is plenty of ram to play with on restore

so now, how can I use gzip -dc to pipe it to mtd ? or how should I write back the archived ubifs image ?

@juppin do you have a hint for me here ? :slight_smile:

gzip -dc backup_fw.bin.gz | mtd write - /dev/mtdX

I would do that from within failsave mode. Or within a running initram image with all possible services disabled...

1 Like

thanks, I'll try !

For those wanting to go back to stock UBNT firmware, refer to this thread

I've returned to stock on both my ERX and ERX-SFP several times.

1 Like