Skip to content

Instantly share code, notes, and snippets.

@Grommish
Created March 10, 2021 08:33
Show Gist options
  • Save Grommish/00aeb17c88b6ce92d9700435c0a4f290 to your computer and use it in GitHub Desktop.
Save Grommish/00aeb17c88b6ce92d9700435c0a4f290 to your computer and use it in GitHub Desktop.
OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...
[ 0.000000] Linux version 5.10.20 (grommish@DESKTOP-N35LRJ4) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 10.2.0 r16134+1-c6652a7c94) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #0 SMP Sun Mar 7 23:51:23 2021
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is Ubiquiti EdgeRouter 10X
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] HighMem [mem 0x0000000010000000-0x0000000023ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000001bffffff]
[ 0.000000] node 0: [mem 0x0000000020000000-0x0000000023ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[ 0.000000] percpu: Embedded 14 pages/cpu s27088 r8192 d22064 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130496
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=00003e00
[ 0.000000] Readback ErrCtl register=00003e00
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 507116K/524288K available (6324K kernel code, 618K rwdata, 1316K rodata, 2992K init, 235K bss, 17172K reserved, 0K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 256
[ 0.000000] random: get_random_bytes called from start_kernel+0x3d0/0x5e8 with crng_init=0
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000014] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[ 0.015848] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.033731] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[ 0.074085] pid_max: default: 32768 minimum: 301
[ 0.083453] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.097865] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.116197] rcu: Hierarchical SRCU implementation.
[ 0.126015] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.141555] smp: Bringing up secondary CPUs ...
[ 0.151290] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.151303] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.151318] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.151399] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.178752] Synchronize counters for CPU 1: done.
[ 0.241096] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.241105] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.241114] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.241164] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.278047] Synchronize counters for CPU 2: done.
[ 0.338306] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.338315] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.338323] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.338377] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.365634] Synchronize counters for CPU 3: done.
[ 0.425252] smp: Brought up 1 node, 4 CPUs
[ 0.437714] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.457040] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.470873] pinctrl core: initialized pinctrl subsystem
[ 0.483236] NET: Registered protocol family 16
[ 0.513857] random: fast init done
[ 0.537328] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.559380] clocksource: Switched to clocksource GIC
[ 0.571676] NET: Registered protocol family 2
[ 0.581125] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.597740] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.612891] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.627052] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.639805] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.652707] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.666795] NET: Registered protocol family 1
[ 0.675399] PCI: CLS 0 bytes, default 32
[ 3.007361] 4 CPUs re-calibrate udelay(lpj = 1167360)
[ 3.019566] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 3.037185] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.048684] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.068884] bounce: pool size: 64 pages
[ 3.077873] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 3.089284] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 3.100638] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 3.112725] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 3.127016] printk: console [ttyS0] disabled
[ 3.135520] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 3.153440] printk: console [ttyS0] enabled
[ 3.153440] printk: console [ttyS0] enabled
[ 3.169977] printk: bootconsole [early0] disabled
[ 3.169977] printk: bootconsole [early0] disabled
[ 3.191249] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[ 3.206070] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xdc
[ 3.218728] nand: Macronix MX30LF4G18AC
[ 3.226370] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 3.241455] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[ 3.254521] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[ 3.269085] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[ 3.283654] Scanning device for bad blocks
[ 4.788979] Bad eraseblock 1185 at 0x000009420000
[ 5.468550] Bad eraseblock 1716 at 0x00000d680000
[ 5.713506] Bad eraseblock 1903 at 0x00000ede0000
[ 8.491730] 6 fixed-partitions partitions found on MTD device mt7621-nand
[ 8.505252] Creating 6 MTD partitions on "mt7621-nand":
[ 8.515682] 0x000000000000-0x000000080000 : "u-boot"
[ 8.527102] 0x000000080000-0x0000000e0000 : "u-boot-env"
[ 8.539249] 0x0000000e0000-0x000000140000 : "factory"
[ 8.550821] 0x000000140000-0x000000440000 : "kernel1"
[ 8.562613] 0x000000440000-0x000000740000 : "kernel2"
[ 8.574263] 0x000000740000-0x00001fc00000 : "ubi"
[ 8.590817] libphy: Fixed MDIO Bus: probed
[ 8.626444] libphy: mdio: probed
[ 8.633420] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 8.649855] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 21
[ 8.671528] NET: Registered protocol family 10
[ 8.681795] Segment Routing with IPv6
[ 8.689249] NET: Registered protocol family 17
[ 8.698530] 8021q: 802.1Q VLAN Support v1.8
[ 8.708821] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 8.791040] libphy: dsa slave smi: probed
[ 8.799579] mt7530 mdio-bus:1f eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[ 8.819868] mt7530 mdio-bus:1f eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[ 8.840121] mt7530 mdio-bus:1f eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[ 8.860378] mt7530 mdio-bus:1f eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[ 8.880619] mt7530 mdio-bus:1f eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[ 8.901071] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[ 8.919032] DSA: tree 0 setup
[ 8.926289] UBI: auto-attach mtd5
[ 8.932984] ubi0: attaching mtd5
[ 8.939748] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[ 14.015720] ubi0: scanning is finished
[ 14.046183] ubi0: attached mtd5 (name "ubi", size 500 MiB)
[ 14.057170] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 14.070868] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 14.084395] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 14.098275] ubi0: good PEBs: 4003, bad PEBs: 3, corrupted PEBs: 0
[ 14.110424] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 14.124824] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 157515308
[ 14.142846] ubi0: available PEBs: 0, total reserved PEBs: 4003, PEBs reserved for bad PEB handling: 77
[ 14.161420] ubi0: background thread "ubi_bgt0d" started, PID 375
[ 14.184428] Freeing unused kernel memory: 2992K
[ 14.193494] This architecture does not have kernel memory protection.
[ 14.206339] Run /init as init process
[ 14.501739] init: Console is alive
[ 14.509098] init: - watchdog -
[ 14.525644] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 14.543573] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 14.563698] init: - preinit -
ip: SIOCSIFFLAGS: Network is down
[ 14.762982] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.834919] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.875719] random: jshn: uninitialized urandom read (4 bytes read)
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
[ 19.197402] procd: - early -
[ 19.203301] procd: - watchdog -
[ 19.743541] procd: - watchdog -
[ 19.750281] procd: - ubus -
[ 19.762788] urandom_read: 6 callbacks suppressed
[ 19.762801] random: ubusd: uninitialized urandom read (4 bytes read)
[ 19.810948] procd: - init -
Please press Enter to activate this console.
[ 20.145691] kmodloader: loading kernel modules from /etc/modules.d/*
[ 20.263810] xt_time: kernel timezone is -0000
[ 20.284623] urngd: v1.0.2 started.
[ 20.284971] PPP generic driver version 2.4.2
[ 20.301577] NET: Registered protocol family 24
[ 20.347000] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 20.428868] random: crng init done
BusyBox v1.33.0 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r16134+1-c6652a7c94
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
===================================================================
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: 0x8, 1/0 = 516/508 21000000
PLL4 FB_DL: 0x12, 1/0 = 600/424 49000000
PLL2 FB_DL: 0x16, 1/0 = 694/330 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 1 1 1 0 0 0 0 0 0
opt_dle value:8
DRAMC_R0DELDLY[018]=00001C1A
==================================================================
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 7 10 9 10 6 11 4 7 10
10 | 7 13 6 10 4 9
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =26 DQS1 = 28
==================================================================
bit DQS0 bit DQS1
0 (0~50)25 8 (1~52)26
1 (1~48)24 9 (2~51)26
2 (1~50)25 10 (1~49)25
3 (2~50)26 11 (1~52)26
4 (0~52)26 12 (1~52)26
5 (1~49)25 13 (0~52)26
6 (1~52)26 14 (0~48)24
7 (1~50)25 15 (2~54)28
==================================================================
3.dq delay value last
==================================================================
bit| 0 1 2 3 4 5 6 7 8 9
--------------------------------------
0 | 11 9 11 9 10 7 11 5 9 12
10 | 10 15 8 12 8 9
==================================================================
==================================================================
TX perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0200
dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1
DQS loop = 14, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[1]=14, finish count=2
DQ loop=15, cmp_err_1 = ffff01aa
DQ loop=14, cmp_err_1 = ffff00aa
dqs_perbyte_dly.last_dqdly_pass[1]=14, finish count=1
DQ loop=13, cmp_err_1 = ffff00aa
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 (UBNT Build Version: e55_001_8fcb8) (Nov 22 2018 - 09:50:47)
Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ffac000
Config XHCI 40M PLL
Allocate 16 byte aligned buffer: 8ffe0040
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 DC 90 95 56]
Device found in MTK table, ID: c2dc, EXT_ID: 909556
Support this Device in MTK table! c2dc
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 4095
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64, mtd->erasesize=131072 devinfo.iowidth=8
..
UBNT e55 13-02555-19 74ACB9EB4375
UBNT BD type=e55, mac=74ACB9EB4375, s/n=74ACB9EB4375, mrev=19, 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 22 2018 Time:09:50:47
============================================
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
Enable port 0
Disable RTL8367 ports
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.
r: Start TFTP recovery.
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: 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) ...
>>>>> mips_linux.c, 206: commandline = console=ttyS1,57600n8 ubi.mtd=7 root=ubi0_0 rootfstype=ubifs rootsqimg=squashfs.img rootsqwdir=w rw model=e55 ubnt_ramsize=512
## 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: 1c000000 @ 00000000 (usable)
memory: 04000000 @ 20000000 (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 [mem 0x0000000010000000-0x0000000023ffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x000000001bffffff]
node 0: [mem 0x0000000020000000-0x0000000023ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
percpu: Embedded 15 pages/cpu @81bf6000 s31376 r8192 d21872 u61440
Built 1 zonelists, mobility grouping on. Total pages: 130560
Kernel command line: console=ttyS1,57600n8 ubi.mtd=7 root=ubi0_0 rootfstype=ubifs rootsqimg=squashfs.img rootsqwdir=w rw model=e55 ubnt_ramsize=512
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=00003e2e
Readback ErrCtl register=00003e2e
Memory: 511580K/524288K available (4730K kernel code, 265K rwdata, 948K rodata, 1340K init, 264K bss, 12708K reserved, 0K cma-reserved, 262144K 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=17 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
bounce: pool size: 64 pages
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
Start device tree overlay before mtd partitions be created!!
dtb overlay offset: 10000
mtk_nand_load_dtb_overlay_early: unflattened OK
mtk_nand_load_dtb_overlay_early: resolved OK
Enable NFI Clock
# MTK NAND # : Use HW ECC
Device not found, ID: c2dc
Not Support this Device!
chip_mode=00000001
Support this Device in MTK table! c2dc
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xdc
nand: Macronix NAND 512MiB 3,3V 8-bit
nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 1185 at 0x000009420000
Bad eraseblock 1716 at 0x00000d680000
Bad eraseblock 1903 at 0x00000ede0000
8 fixed-partitions partitions found on MTD device MT7621-NAND
Creating 8 MTD partitions on "MT7621-NAND":
0x000000000000-0x000020000000 : "ALL"
0x000000000000-0x000020000000 : "ALL"
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x0000000e0000 : "Config"
0x0000000e0000-0x000000140000 : "eeprom"
0x000000140000-0x000000440000 : "Kernel1"
0x000000440000-0x000000740000 : "Kernel2"
0x000000740000-0x00001fc00000 : "RootFS"
[mtk_nand] probe successfully!
Signature matched and data read!
load_fact_bbt success 4095
Read UBNT BD OK!
UBNT BD mac 74acb9eb4375 kidx 0 mrev 19 serial 74ACB9EB4375 type e55
Device type: e55
dtb overlay offset: 10000
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
mtk_soc_eth 1e100000.ethernet switch0: port 0 link up
ubi0: scanning is finished
ubi0: attached mtd7 (name "RootFS", size 500 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: 4003, bad PEBs: 3, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 157515308
ubi0: available PEBs: 0, total reserved PEBs: 4003, PEBs reserved for bad PEB handling: 77
ubi0: background thread "ubi_bgt0d" started, PID 52
do_mount_squash_image: started
do_mount_squash_image: mkdir /root.dev
do_mount_squash_image: sys_mount ubi0_0 /root.dev ubifs
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 53
UBIFS (ubi0:0): recovery needed
UBIFS (ubi0:0): recovery completed
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "troot"
UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi0:0): FS size: 495968256 bytes (472 MiB, 3906 LEBs), journal size 24887296 bytes (23 MiB, 196 LEBs)
UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 8A5C3CBB-0557-424D-9887-FBD22A2B7F9B, small LPT model
UBIFS (ubi0:0): full atime support is enabled.
do_mount_squash_image: Mounting squashfs image /dev/loop_root to /root.loop
do_mount_squash_image: mounting overlay fs to /root with params upperdir=/root.dev/w,lowerdir=/root.loop,workdir=/root.dev/work
VFS: Mounted root (overlay filesystem) on device 0:13.
devtmpfs: mounted
Freeing unused kernel memory: 1340K
This architecture does not have kernel memory protection.
random: fast init done
systemd[1]: System time before build time, advancing clock.
NET: Registered protocol family 10
Segment Routing with IPv6
ip_tables: (C) 2000-2006 Netfilter Core Team
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
systemd[1]: Detected architecture mips.
Welcome to Debian GNU/Linux 9 (stretch)!
systemd[1]: Set hostname to <ubnt>.
random: systemd: uninitialized urandom read (16 bytes read)
random: systemd-cryptse: uninitialized urandom read (16 bytes read)
random: systemd: uninitialized urandom read (16 bytes read)
random: systemd: uninitialized urandom read (16 bytes read)
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Reached target Encrypted Volumes.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Syslog Socket.
[ OK ] Created slice System Slice.
Starting Create list of required st…ce nodes for the current kernel...
Starting Journal Service...
Mounting POSIX Message Queue File System...
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Slices.
Starting Remount Root and Kernel File Systems...
Starting Load Kernel Modules...
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Reached target Paths.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Started Journal Service.
[ OK ] Started Create list of required sta…vice nodes for the current kernel.
ubnt_platform: loading out-of-tree module taints kernel.
ubnt_platform: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
[ OK ] Started Remount Root and Kernel File Systems.
Starting udev Coldplug all Devices...
Starting Load/Save Random Seed...
Starting Create Static Device Nodes in /dev...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).
Mounting /lib/init/rw...
Mounting /var/log...
Mounting /run/shm...
Mounting /tmp...
[ OK ] Mounted /lib/init/rw.
[ OK ] Mounted /var/log.
[ OK ] Mounted /run/shm.
[ OK ] Mounted /tmp.
Starting Flush Journal to Persistent Storage...
[ OK ] Reached target Local File Systems.
[ OK ] Started udev Coldplug all Devices.
systemd-journald[76]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Found device /dev/ttyS1.
Registering char device flash0 (200) succeeds
nf_conntrack version 0.5.0 (32768 buckets, 262144 max)
random: crng init done
random: 4 urandom warning(s) missed due to ratelimiting
[ OK ] Started Load Kernel Modules.
Starting Apply Kernel Variables...
[ OK ] Started Apply Kernel Variables.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on UUID daemon activation socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Create vyatta file system....
Starting System Logging Service...
[ OK ] Started Deferred execution scheduler.
Starting Netplug Services...
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Regular background program processing daemon.
Starting Login Service...
[ OK ] Started System Logging Service.
[ OK ] Started Login Service.
[ OK ] Started Netplug Services.
[ OK ] Started Create vyatta file system..
Starting Load the configuration of features which need reboot...
[ OK ] Started Load the configuration of features which need reboot.
[ OK ] Reached target Network (Pre).
Starting Vyatta PPPoE...
Starting Raise network interfaces...
[ OK ] Started Vyatta PPPoE.
Starting UBNT daemon...
[ OK ] Started Raise network interfaces.
[ OK ] Started UBNT daemon.
Starting EdgeOS IMI manager...
[ OK ] Started EdgeOS IMI manager.
Starting EdgeOS NSM daemon...
[ OK ] Started EdgeOS NSM daemon.
Starting EdgeOS RIB daemon...
[ OK ] Started EdgeOS RIB daemon.
[ OK ] Reached target Network.
Starting Permit User Sessions...
Starting /etc/rc.local Compatibility...
Starting UBNT Routing Daemons...
[ OK ] Started Permit User Sessions.
[ OK ] Started /etc/rc.local Compatibility.
ubi0 error: ubi_io_read: error -77 (ECC error) while reading 4144 bytes from PEB 1192:20672, read 4144 bytes
UBIFS error (ubi0:0 pid 54): ubifs_leb_read: reading 4144 bytes from LEB 172:16576 failed, error -77
UBIFS error (ubi0:0 pid 54): fallible_read_node: cannot read node type 1 from LEB 172:16576, error -77
ubi0 error: ubi_io_read: error -77 (ECC error) while reading 4144 bytes from PEB 1192:20672, read 4144 bytes
ubi0 error: ubi_io_read: error -77 (ECC error) while reading 4144 bytes from PEB 1192:24816, read 4144 bytes
UBIFS error (ubi0:0 pid 54): ubifs_leb_read: reading 4144 bytes from LEB 172:20720 failed, error -77
UBIFS error (ubi0:0 pid 54): fallible_read_node: cannot read node type 1 from LEB 172:20720, error -77
ubi0 error: ubi_io_read: error -77 (ECC error) while reading 4144 bytes from PEB 1192:24816, read 4144 bytes
Stopping System Logging Service...
[ OK ] Stopped System Logging Service.
Starting System Logging Service...
[ OK ] Started System Logging Service.
Stopping System Logging Service...
[ OK ] Stopped System Logging Service.
Starting System Logging Service...
[ OK ] Started System Logging Service.
Starting Network Time Service...
[ OK ] Started Network Time Service.
Starting GUI Telnet Daemon...
[ OK ] Started GUI Telnet Daemon.
Starting Lighttpd Daemon...
[ OK ] Started Lighttpd Daemon.
Starting EdgeOS DHCP Server...
[ OK ] Started EdgeOS DHCP Server.
Starting dnsmasq - A lightweight DHCP and caching DNS server...
[ OK ] Started dnsmasq - A lightweight DHCP and caching DNS server.
Stopping dnsmasq - A lightweight DHCP and caching DNS server...
[ OK ] Stopped dnsmasq - A lightweight DHCP and caching DNS server.
Starting dnsmasq - A lightweight DHCP and caching DNS server...
[ OK ] Started dnsmasq - A lightweight DHCP and caching DNS server.
[ OK ] Started UBNT Routing Daemons.
[ OK ] Started OpenBSD Secure Shell server.
[ OK ] Started Serial Getty on ttyS1.
[ OK ] Reached target Login Prompts.
Starting Start ubnt feature daemons...
[ OK ] Started Start ubnt feature daemons.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment