This is what the logs look like from an original board before patching…
U-Boot 1.1.3 (Jul 25 2023 - 15:43:13)
Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ffb8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: ef 40 18 0 0 (40180000)
find flash: W25Q128BV
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment
RT2880_GPIOMODE_REG addr: b0000060
mode value: 001a371c
============================================
show _ver_str Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 2048 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 256 MBytes
Flash component: SPI Flash
Date:Jul 25 2023 Time:15:43:13
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 580 MHZ ####
estimate memory size =256 Mbytes
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 bc050000 ...
raspi_read: from:50000 len:40
Image Name: MIPS OpenWrt Linux-5.10.161
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2210294 Bytes = 2.1 MB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:50040 len:21b9f6
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 256
Starting kernel ...
[ 0.000000] Linux version 5.10.161 (root@15131c0a4e65) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20028-43d71ad93e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Tue Jan 3 00:24:21 2023
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is MC-CLUSTERBOX
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 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] 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=0003740b
[ 0.000000] Readback ErrCtl register=0003740b
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 251020K/262144K available (5337K kernel code, 616K rwdata, 1132K rodata, 1224K init, 209K bss, 11124K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015578] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087811] pid_max: default: 32768 minimum: 301
[ 0.097206] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.111611] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.129761] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.149829] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.169318] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.182917] pinctrl core: initialized pinctrl subsystem
[ 0.194460] NET: Registered protocol family 16
[ 0.479304] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[ 0.492549] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.563013] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.574098] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.586686] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.597708] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.610315] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.621331] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.633932] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.644776] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.658344] i2c-ralink 10000900.i2c: clock 100KHz, re-start support
[ 0.685703] clocksource: Switched to clocksource systick
[ 0.697807] NET: Registered protocol family 2
[ 0.706770] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.722063] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.738699] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.753841] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.767848] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.780644] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.793559] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.807730] NET: Registered protocol family 1
[ 0.816326] PCI: CLS 0 bytes, default 32
[ 0.830392] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.845791] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.864060] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.875572] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.898811] file:drivers/pwm/pwm-gpio.c fun:gpio_pwms_get_devtree_pdata line:254 npwms:2
[ 0.914916] gpio-pwms gpio-pwms: get rpm labels successed
[ 0.925515] gpio-pwms gpio-pwms: get gdesc successed
[ 0.935390] gpio-pwms gpio-pwms: get rpm gpio irq successed
[ 0.946507] gpio-pwms gpio-pwms: request irq successed
[ 0.956694] gpio-pwms gpio-pwms: get rpm labels successed
[ 0.967394] gpio-pwms gpio-pwms: get gdesc successed
[ 0.977263] gpio-pwms gpio-pwms: get rpm gpio irq successed
[ 0.988356] gpio-pwms gpio-pwms: request irq successed
[ 0.998614] successed to request gpio
[ 1.005823] successed to request rpm gpio
[ 1.014073] successed to request gpio
[ 1.021239] successed to request rpm gpio
[ 1.029813] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 1.043610] printk: console [ttyS0] disabled
[ 1.052135] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 1.071785] printk: console [ttyS0] enabled
[ 1.071785] printk: console [ttyS0] enabled
[ 1.088344] printk: bootconsole [early0] disabled
[ 1.088344] printk: bootconsole [early0] disabled
[ 1.121451] spi spi0.0: force spi mode3
[ 1.130615] spi-nor spi0.0: w25q128 (16384 Kbytes)
[ 1.140310] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.153054] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.167662] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.182584] Creating 4 MTD partitions on "spi0.0":
[ 1.192189] 0x000000000000-0x000000030000 : "u-boot"
[ 1.204862] 0x000000030000-0x000000040000 : "u-boot-env"
[ 1.217011] 0x000000040000-0x000000050000 : "factory"
[ 1.230409] 0x000000050000-0x000001000000 : "firmware"
[ 1.242321] 2 uimage-fw partitions found on MTD device firmware
[ 1.254221] Creating 2 MTD partitions on "firmware":
[ 1.264144] 0x000000000000-0x00000021ba36 : "kernel"
[ 1.274040] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[ 1.293842] 0x00000021ba36-0x000000fb0000 : "rootfs"
[ 1.303821] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[ 1.323483] mtd: setting mtd5 (rootfs) as root device
[ 1.334870] 1 squashfs-split partitions found on MTD device rootfs
[ 1.347296] 0x000000930000-0x000000fb0000 : "rootfs_data"
[ 1.386052] gsw: ephy base address: 8
[ 1.394804] mtk_soc_eth 10100000.ethernet: generated random MAC address 0e:e5:14:ab:a5:84
[ 1.411175] mtk_soc_eth 10100000.ethernet: mdio-bus disabled
[ 1.422700] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.435324] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.456579] rtc-hym8563 0-0051: no valid clock/calendar values available
[ 1.470194] rtc-hym8563 0-0051: registered as rtc0
[ 1.480994] rtc-hym8563 0-0051: no valid clock/calendar values available
[ 1.494424] rtc-hym8563 0-0051: hctosys: unable to read the hardware clock
[ 1.508734] rt2880_wdt 10000120.watchdog: Initialized
[ 1.520213] NET: Registered protocol family 10
[ 1.534459] Segment Routing with IPv6
[ 1.541903] NET: Registered protocol family 17
[ 1.550940] 8021q: 802.1Q VLAN Support v1.8
[ 1.584349] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.605673] Freeing unused kernel memory: 1224K
[ 1.614739] This architecture does not have kernel memory protection.
[ 1.627597] Run /sbin/init as init process
[ 3.480458] init: Console is alive
[ 3.488020] init: - watchdog -
[ 4.837216] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.230642] usbcore: registered new interface driver usbfs
[ 5.241768] usbcore: registered new interface driver hub
[ 5.252504] usbcore: registered new device driver usb
[ 5.268229] usbcore: registered new interface driver usb_ch343
[ 5.279938] ch343: USB serial driver for ch342/ch343/ch344/ch347/ch9101/ch9102/ch9103/ch9104, etc.
[ 5.297805] ch343: V1.5 On 2022.12
[ 5.309367] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.324716] ehci-fsl: Freescale EHCI Host controller driver
[ 5.339084] ehci-platform: EHCI generic platform driver
[ 5.360140] phy phy-usbphy.0: remote usb device wakeup disabled
[ 5.371954] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 5.380819] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 5.392308] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 5.408276] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 5.428699] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 5.442438] hub 1-0:1.0: USB hub found
[ 5.451034] hub 1-0:1.0: 1 port detected
[ 5.468618] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.482929] ohci-platform: OHCI generic platform driver
[ 5.493953] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 5.507566] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 5.523515] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 5.562978] hub 2-0:1.0: USB hub found
[ 5.571645] hub 2-0:1.0: 1 port detected
[ 5.584208] uhci_hcd: USB Universal Host Controller Interface driver
[ 5.600922] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.619985] init: - preinit -
[ 8.069630] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.203085] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.530167] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.074174] 8021q: adding VLAN 0 to HW filter on device eth0
[ 10.135688] random: procd: 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
[ 12.006766] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 12.026062] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 12.336699] procd: - early -
[ 12.343011] procd: - watchdog -
[ 13.129405] procd: - watchdog -
[ 13.495678] procd: - ubus -
[ 14.035825] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.052237] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.065787] random: ubusd: uninitialized urandom read (4 bytes read)
[ 14.083989] procd: - init -
Please press Enter to activate this console.
[ 14.890560] rtc-hym8563 0-0051: no valid clock/calendar values available
[ 16.286898] kmodloader: loading kernel modules from /etc/modules.d/*
[ 16.593986] i2c /dev entries driver
[ 16.612960] pca953x 0-0024: using no AI
[ 16.621249] pca953x 0-0024: failed writing register
[ 16.647459] usbcore: registered new interface driver cdc_acm
[ 16.658822] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 16.684498] miop: module license 'MIXTILE' taints kernel.
[ 16.695306] Disabling lock debugging due to kernel taint
[ 16.839471] PPP generic driver version 2.4.2
[ 16.855341] NET: Registered protocol family 24
[ 16.885403] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 17.424174] random: jshn: uninitialized urandom read (4 bytes read)
[ 17.562242] random: jshn: uninitialized urandom read (4 bytes read)
[ 17.862095] random: jshn: uninitialized urandom read (4 bytes read)
[ 22.436762] random: crng init done
[ 22.443564] random: 40 urandom warning(s) missed due to ratelimiting
[ 26.933239] export_store: invalid GPIO 499
[ 26.947634] do_page_fault(): sending SIGSEGV to nodectl for invalid read access from 0000004c
[ 26.964692] epc = 77e9ef90 in libc.so[77e25000+a9000]
[ 26.974815] ra = 77e9ef88 in libc.so[77e25000+a9000]
[ 80.901234] 8021q: adding VLAN 0 to HW filter on device eth0
[ 80.960422] device eth0 entered promiscuous mode
[ 80.987473] br-lan: port 1(eth0.1) entered blocking state
[ 80.998302] br-lan: port 1(eth0.1) entered disabled state
[ 81.009523] device eth0.1 entered promiscuous mode
[ 81.146834] br-lan: port 1(eth0.1) entered blocking state
[ 81.157653] br-lan: port 1(eth0.1) entered forwarding state
[ 81.917166] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 94.552850] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 94.607380] jffs2_build_filesystem(): unlocking the mtd device...
[ 94.607395] done.
[ 94.623614] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 157.042040] done.
[ 157.060848] jffs2: notice: (2271) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 157.347047] overlayfs: upper fs does not support tmpfile.
Curiously, this version from the crowdfunding campaign uses a baud rate of 57600 the entire way.