Skip to content

Instantly share code, notes, and snippets.

@ptpt52
Created March 12, 2020 16:00
Show Gist options
  • Save ptpt52/5aa9cea0cf9c66bbb524bfd19d47d548 to your computer and use it in GitHub Desktop.
Save ptpt52/5aa9cea0cf9c66bbb524bfd19d47d548 to your computer and use it in GitHub Desktop.
===================================================================
MT7621 stage1 code done
CPU=50000000 HZ BUS=16666666 HZ
===================================================================
U-Boot 1.1.3 (UBNT Build Version: e51_001_1e49c) (Jul 27 2018 - 04:44:57)
Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ffac000
Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
Allocate 16 byte aligned buffer: 8ffdfba0
Enable NFI Clock
# MTK NAND # : Use HW ECC
NAND ID [C2 DA 90 95 06]
Device found in MTK table, ID: c2da, EXT_ID: 909506
Support this Device in MTK table! c2da
select_chip
[NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
Signature matched and data read!
load_fact_bbt success 2045
load fact bbt success
[mtk_nand] probe successfully!
mtd->writesize=2048 mtd->oobsize=64, mtd->erasesize=131072 devinfo.iowidth=8
..
UBNT e51 13-02122-14 18E829251799
UBNT BD type=e51, mac=18E829251799, s/n=18E829251799, mrev=14, 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:Jul 27 2018 Time:04:44:57
============================================
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
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: MIPS OpenWrt Linux-5.4.24
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2666772 Bytes = 2.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 5.4.24 (LGA1150@Haswell) (gcc version 9.2.0 (OpenWrt GCC 9.2.0 r12425-d83150e3fb)) #0 SMP Thu Mar 12 12:17:17 2020
[ 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 UBNT-ERX-SFP
[ 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 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] percpu: Embedded 14 pages/cpu s26960 r8192 d22192 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 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=0000a080
[ 0.000000] Readback ErrCtl register=0000a080
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 250476K/262144K available (5916K kernel code, 215K rwdata, 1248K rodata, 1248K init, 232K bss, 11668K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 256
[ 0.000000] random: get_random_bytes called from start_kernel+0x340/0x554 with crng_init=0
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.015490] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.087821] pid_max: default: 32768 minimum: 301
[ 0.097147] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.111552] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.129590] rcu: Hierarchical SRCU implementation.
[ 0.139698] smp: Bringing up secondary CPUs ...
[ 0.149442] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.149453] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.149465] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.149565] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.209340] Synchronize counters for CPU 1: done.
[ 0.272944] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.272953] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.272961] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.273019] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.329810] Synchronize counters for CPU 2: done.
[ 0.390117] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.390126] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.390135] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.390195] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.449389] Synchronize counters for CPU 3: done.
[ 0.508995] smp: Brought up 1 node, 4 CPUs
[ 0.521280] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.540777] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.554709] pinctrl core: initialized pinctrl subsystem
[ 0.566628] NET: Registered protocol family 16
[ 0.601757] random: fast init done
[ 0.613645] clocksource: Switched to clocksource GIC
[ 0.625439] NET: Registered protocol family 2
[ 0.634933] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.651666] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.666804] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.680961] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.693745] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.706631] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.720735] NET: Registered protocol family 1
[ 0.729298] PCI: CLS 0 bytes, default 32
[ 0.973581] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 0.985128] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 1.009362] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.020843] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.042635] GPIO line 487 (sfp_i2c_clk_gate) hogged as output/high
[ 1.055145] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.066391] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.077671] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.089385] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 1.103221] printk: console [ttyS0] disabled
[ 1.111678] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 1.129596] printk: console [ttyS0] enabled
[ 1.129596] printk: console [ttyS0] enabled
[ 1.146144] printk: bootconsole [early0] disabled
[ 1.146144] printk: bootconsole [early0] disabled
[ 1.166820] mt7621-nand: NAND register bank at 0xbe003000
[ 1.177730] mt7621-nand: ECC register bank at 0xbe003800
[ 1.188405] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 1.201055] nand: Macronix NAND 256MiB 3,3V 8-bit
[ 1.210423] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.225497] mt7621-nand: ecc bit: 4, spare_per_sector: 16
[ 1.237018] Bad block table found at page 131008, version 0x01
[ 1.249802] Bad block table found at page 130944, version 0x01
[ 1.262136] 6 fixed-partitions partitions found on MTD device MT7621-NAND
[ 1.275659] Creating 6 MTD partitions on "MT7621-NAND":
[ 1.286073] 0x000000000000-0x000000080000 : "u-boot"
[ 1.297287] 0x000000080000-0x0000000e0000 : "u-boot-env"
[ 1.309091] 0x0000000e0000-0x000000140000 : "factory"
[ 1.320371] 0x000000140000-0x000000440000 : "kernel1"
[ 1.331513] 0x000000440000-0x000000740000 : "kernel2"
[ 1.342675] 0x000000740000-0x00000ff00000 : "ubi"
[ 1.356167] libphy: Fixed MDIO Bus: probed
[ 1.403995] libphy: mdio: probed
[ 1.410590] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[ 1.465112] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 20
[ 1.482422] i2c-mt7621 1e000900.i2c: clock 100 kHz
[ 1.495443] NET: Registered protocol family 10
[ 1.505900] Segment Routing with IPv6
[ 1.513277] NET: Registered protocol family 17
[ 1.522465] 8021q: 802.1Q VLAN Support v1.8
[ 1.534280] libphy: SFP I2C Bus: probed
[ 1.542165] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[ 3.573977] libphy: dsa slave smi: probed
[ 3.603655] mt7530 mdio-bus:00 eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[ 3.653649] mt7530 mdio-bus:00 eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[ 3.703649] mt7530 mdio-bus:00 eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 3.753649] mt7530 mdio-bus:00 eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[ 3.803651] mt7530 mdio-bus:00 eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[ 3.883647] mt7530 mdio-bus:00 eth5 (uninitialized): PHY [mdio-bus:07] driver [Atheros 8031 ethernet]
[ 3.903195] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[ 4.863628] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[ 5.113657] DSA: tree 0 setup
[ 5.119886] libphy: SFP I2C Bus: probed
[ 5.128045] libphy: SFP I2C Bus: probed
[ 5.136792] UBI: auto-attach mtd5
[ 5.143397] ubi0: attaching mtd5
[ 7.426889] ubi0: scanning is finished
[ 7.451732] ubi0: attached mtd5 (name "ubi", size 247 MiB)
[ 7.462706] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 7.476405] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 7.489918] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 7.503781] ubi0: good PEBs: 1982, bad PEBs: 0, corrupted PEBs: 0
[ 7.515912] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 7.530293] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1319621856
[ 7.548475] ubi0: available PEBs: 0, total reserved PEBs: 1982, PEBs reserved for bad PEB handling: 40
[ 7.567025] ubi0: background thread "ubi_bgt0d" started, PID 469
[ 7.568887] block ubiblock0_0: created from ubi0:0(rootfs)
[ 7.589937] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 7.603820] hctosys: unable to open rtc device (rtc0)
[ 7.619580] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 7.638175] Freeing unused kernel memory: 1248K
[ 7.647218] This architecture does not have kernel memory protection.
[ 7.660032] Run /sbin/init as init process
[ 8.179705] init: Console is alive
[ 8.186791] init: - watchdog -
[ 8.793250] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 8.919139] libphy: SFP I2C Bus: probed
[ 8.925704] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 8.943995] init: - preinit -
/etc/preinit: line 51: swconfig: not found
/etc/preinit: line 52: swconfig: not found
/etc/preinit: line 53: swconfig: not found
RTNETLINK answers: Network is down
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
sendto(): Network unreachable
sendto(): Network unreachable
[ 14.126655] UBIFS (ubi0:1): default file-system created
[ 14.138368] UBIFS (ubi0:1): Mounting in unauthenticated mode
[ 14.149953] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 547
[ 14.205614] random: procd: uninitialized urandom read (4 bytes read)
[ 14.264747] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 14.280355] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 14.300095] UBIFS (ubi0:1): FS size: 238968832 bytes (227 MiB, 1882 LEBs), journal size 11935744 bytes (11 MiB, 94 LEBs)
[ 14.321728] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 14.334899] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 777DBCD2-BC3C-4DBE-8048-76F9379B1F96, small LPT model
[ 14.360433] mount_root: overlay filesystem has not been fully initialized yet
[ 14.375092] mount_root: switching to ubifs overlay
[ 14.418413] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[ 14.439380] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 14.553374] procd: - early -
[ 14.559274] procd: - watchdog -
[ 15.103786] procd: - watchdog -
[ 15.110377] procd: - ubus -
[ 15.156200] random: ubusd: uninitialized urandom read (4 bytes read)
[ 15.174452] random: ubusd: uninitialized urandom read (4 bytes read)
[ 15.188399] procd: - init -
Please press Enter to activate this console.
[ 15.582982] urandom_read: 6 callbacks suppressed
[ 15.582993] random: jshn: uninitialized urandom read (4 bytes read)
[ 15.799015] kmodloader: loading kernel modules from /etc/modules.d/*
[ 15.973707] urngd: v1.0.2 started.
[ 16.134781] random: crng init done
[ 16.602493] tun: Universal TUN/TAP device driver, 1.6
[ 16.623432] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 16.640588] l2tp_core: L2TP core driver, V2.0
[ 16.651010] l2tp_netlink: L2TP netlink interface
[ 16.662780] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 16.677818] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 16.691570] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 16.704685] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 16.787179] i2c /dev entries driver
[ 16.797638] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[ 16.984237] pca953x 0-0025: interrupt support not compiled in
[ 16.998506] libphy: SFP I2C Bus: probed
[ 17.001273] Mirror/redirect action on
[ 17.028056] u32 classifier
[ 17.033463] input device check on
[ 17.040976] Actions configured
[ 17.043878] sfp sfp: Host maximum power 1.0W
[ 17.071950] GACT probability on
[ 17.083496] Simple TC action Loaded
[ 17.123860] sfp sfp: No tx_disable pin: SFP modules will always be emitting.
[ 17.275991] xt_time: kernel timezone is -0000
[ 17.291053] PPP generic driver version 2.4.2
[ 17.301304] NET: Registered protocol family 24
[ 17.313289] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.443715] sfp sfp: please wait, module slow to respond
[ 32.808665] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/trgmii link mode
[ 32.825088] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx
[ 33.003785] mt7530 mdio-bus:00 eth1: configuring for phy/gmii link mode
[ 33.083940] 8021q: adding VLAN 0 to HW filter on device eth1
[ 33.095483] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready
[ 33.108561] br-lan: port 1(eth1) entered blocking state
[ 33.119134] br-lan: port 1(eth1) entered disabled state
[ 33.193765] device eth1 entered promiscuous mode
[ 33.202962] device dsa entered promiscuous mode
[ 33.543726] mt7530 mdio-bus:00 eth2: configuring for phy/gmii link mode
[ 33.623948] 8021q: adding VLAN 0 to HW filter on device eth2
[ 33.636048] br-lan: port 2(eth2) entered blocking state
[ 33.646581] br-lan: port 2(eth2) entered disabled state
[ 33.783750] device eth2 entered promiscuous mode
[ 34.143642] mt7530 mdio-bus:00 eth3: configuring for phy/gmii link mode
[ 34.223812] 8021q: adding VLAN 0 to HW filter on device eth3
[ 34.235710] br-lan: port 3(eth3) entered blocking state
[ 34.246199] br-lan: port 3(eth3) entered disabled state
[ 34.463695] device eth3 entered promiscuous mode
[ 35.153665] sfp sfp: module FINISAR CORP. H8521-3-H3C rev 4 sn P98125E dc 060225
[ 35.172235] Atheros 8031 ethernet mdio-bus:07: SFP interface sgmii
[ 35.363639] mt7530 mdio-bus:00 eth4: configuring for phy/gmii link mode
[ 35.443807] 8021q: adding VLAN 0 to HW filter on device eth4
[ 35.455794] br-lan: port 4(eth4) entered blocking state
[ 35.466274] br-lan: port 4(eth4) entered disabled state
[ 35.743670] device eth4 entered promiscuous mode
[ 36.103650] mt7530 mdio-bus:00 eth5: configuring for phy/rgmii-rxid link mode
[ 36.193855] 8021q: adding VLAN 0 to HW filter on device eth5
[ 36.205744] br-lan: port 5(eth5) entered blocking state
[ 36.216224] br-lan: port 5(eth5) entered disabled state
[ 36.233702] at803x_config_aneg: fiber
[ 36.573657] device eth5 entered promiscuous mode
[ 37.073676] mt7530 mdio-bus:00 eth0: configuring for phy/gmii link mode
[ 37.323649] mt7530 mdio-bus:00 eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 37.353799] 8021q: adding VLAN 0 to HW filter on device eth0
[ 37.365316] br-lan: port 1(eth1) entered blocking state
[ 37.375794] br-lan: port 1(eth1) entered forwarding state
[ 37.523787] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
BusyBox v1.31.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r12553-3666c67a54
-----------------------------------------------------
root@OpenWrt:/# ip r
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
root@OpenWrt:/# [ 93.333782] br-lan: port 1(eth1) entered disabled state
[ 93.393653] mt7530 mdio-bus:00 eth1: Link is Down
[ 96.113673] mt7530 mdio-bus:00 eth5: Link is Up - 1Gbps/Full - flow control rx/tx
[ 96.128661] br-lan: port 5(eth5) entered blocking state
[ 96.139115] br-lan: port 5(eth5) entered forwarding state
root@OpenWrt:/# ping -c1 192.168.1.218
PING 192.168.1.218 (192.168.1.218): 56 data bytes
64 bytes from 192.168.1.218: seq=0 ttl=64 time=1.559 ms
--- 192.168.1.218 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.559/1.559/1.559 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment