@xabolcs' custom builds for ramips/rt305x Sunvalleytek Tripmate devices: stock compatible flash layout for HooToo HT-TM01, HT-TM02 and RAVPower RP-WD02

It works.

First boot dmesg:

BusyBox v1.33.2 (2023-03-30 12:18:04 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 21.02.7, r16847-f8282da11e
 -----------------------------------------------------
 | Machine: HooToo HT-TM02                           |
 | Uptime: 0d, 00:03:38                              |
 | Load: 0.55 0.52 0.23                              |
 | Flash: total: 3.4MB, free: 3.2MB, used: 5%        |
 | Memory: total: 27.2MB, free: 12.7MB, used: 53%    |
 | WAN:                                              |
 | LAN: 192.168.1.1, leases: 1                       |
 -----------------------------------------------------
=== 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 ~ # dmesg 
[    0.000000] Linux version 5.4.238 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16847-f8282da11e)) #0 Mon Apr 17 13:15:36 2023
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is HooToo HT-TM02
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000000] Writing ErrCtl register=0006f41f
[    0.000000] Readback ErrCtl register=0006f41f
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 26588K/32768K available (3706K kernel code, 165K rwdata, 516K rodata, 1236K init, 194K bss, 6180K 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: 360MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 10618113593 ns
[    0.000017] sched_clock: 32 bits at 180MHz, resolution 5ns, wraps every 11930464253ns
[    0.015892] Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
[    0.060052] pid_max: default: 32768 minimum: 301
[    0.069607] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.084109] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.110466] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.129879] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.143442] pinctrl core: initialized pinctrl subsystem
[    0.158735] NET: Registered protocol family 16
[    0.245773] rt2880_gpio 10000600.gpio: registering 22 gpios
[    0.256973] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[    0.283571] clocksource: Switched to clocksource MIPS
[    0.296656] NET: Registered protocol family 2
[    0.305918] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.322317] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.339078] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.354322] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.368313] TCP: Hash tables configured (established 1024 bind 1024)
[    0.381329] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.394397] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.408959] NET: Registered protocol family 1
[    0.426269] rt-timer 10000100.timer: maximum frequency is 3662Hz
[    0.445278] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.473279] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.484902] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.547201] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.565281] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.585107] printk: console [ttyS0] disabled
[    0.593761] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.613509] printk: console [ttyS0] enabled
[    0.630091] printk: bootconsole [early0] disabled
[    0.680313] spi spi0.0: force spi mode3
[    0.690037] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    0.700232] 8 fixed-partitions partitions found on MTD device spi0.0
[    0.713019] Creating 8 MTD partitions on "spi0.0":
[    0.722672] 0x000000000000-0x000000030000 : "u-boot"
[    0.735076] 0x000000030000-0x000000040000 : "config"
[    0.747741] 0x000000040000-0x000000050000 : "factory"
[    0.760556] 0x000000050000-0x0000001d0000 : "kernel"
[    0.773235] 0x0000001d0000-0x0000001e0000 : "u-boot-env"
[    0.786394] 0x0000001e0000-0x0000001f0000 : "userbackup"
[    0.799823] 0x0000001f0000-0x000000200000 : "user"
[    0.812086] 0x000000200000-0x000000800000 : "rootfs"
[    0.824669] mtd: device 7 (rootfs) set to be root filesystem
[    0.862072] 1 squashfs-split partitions found on MTD device rootfs
[    0.874614] 0x000000494000-0x000000800000 : "rootfs_data"
[    0.901509] rt3050-esw 10110000.esw: link changed 0x00
[    0.916419] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.934288] rt2880_wdt 10000120.watchdog: Initialized
[    0.948015] NET: Registered protocol family 10
[    0.970054] Segment Routing with IPv6
[    0.977879] NET: Registered protocol family 17
[    0.987041] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.012997] 8021q: 802.1Q VLAN Support v1.8
[    1.036759] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.063971] Freeing unused kernel memory: 1236K
[    1.073109] This architecture does not have kernel memory protection.
[    1.086005] Run /sbin/init as init process
[    4.973189] init: Console is alive
[    4.980943] init: - watchdog -
[    7.162200] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.719066] usbcore: registered new interface driver usbfs
[    7.730526] usbcore: registered new interface driver hub
[    7.741558] usbcore: registered new device driver usb
[    7.767338] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.783289] fsl-ehci: Freescale EHCI Host controller driver
[    7.798936] ehci-platform: EHCI generic platform driver
[    7.820261] phy phy-usbphy.0: remote usb device wakeup disabled
[    7.832161] phy phy-usbphy.0: UTMI 16bit 30MHz
[    7.841101] ehci-platform 101c0000.ehci: EHCI Host Controller
[    7.852725] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    7.868898] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    7.895661] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    7.910922] hub 1-0:1.0: USB hub found
[    7.920095] hub 1-0:1.0: 1 port detected
[    7.941313] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.957272] ohci-platform: OHCI generic platform driver
[    7.968461] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    7.982286] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    7.998455] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    8.074170] hub 2-0:1.0: USB hub found
[    8.083265] hub 2-0:1.0: 1 port detected
[    8.104047] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    8.129669] init: - preinit -
[    8.183759] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    9.247058] hub 1-1:1.0: USB hub found
[    9.783869] hub 1-1:1.0: 4 ports detected
[   10.257833] random: jshn: uninitialized urandom read (4 bytes read)
[   10.340199] random: procd: uninitialized urandom read (4 bytes read)
[   10.450656] random: jshn: uninitialized urandom read (4 bytes read)
[   11.793244] rt3050-esw 10110000.esw: link changed 0x00
[   13.416508] rt3050-esw 10110000.esw: link changed 0x10
[   16.633263] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   16.656969] urandom-seed: Seed file not found (/etc/urandom.seed)
[   16.752390] procd: - early -
[   16.758636] procd: - watchdog -
[   18.106939] procd: - watchdog -
[   18.115104] procd: - ubus -
[   18.640942] random: ubusd: uninitialized urandom read (4 bytes read)
[   18.658425] random: ubusd: uninitialized urandom read (4 bytes read)
[   18.672926] random: ubusd: uninitialized urandom read (4 bytes read)
[   18.699036] procd: - init -
[   20.192080] random: jshn: uninitialized urandom read (4 bytes read)
[   20.228157] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.241745] random: ubus: uninitialized urandom read (4 bytes read)
[   21.193107] kmodloader: loading kernel modules from /etc/modules.d/*
[   21.294925] Loading modules backported from Linux version v5.10.168-0-g707c48210a53
[   21.310383] Backport generated by backports.git v5.10.168-1-0-gd990acb2
[   21.444912] xt_time: kernel timezone is -0000
[   21.833364] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[   21.847984] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   21.863603] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[   21.877746] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   21.960061] urngd: v1.0.2 started.
[   22.004691] kmodloader: done loading kernel modules from /etc/modules.d/*
[   23.007044] random: crng init done
[   23.014020] random: 21 urandom warning(s) missed due to ratelimiting
[   89.909234] rt3050-esw 10110000.esw: link changed 0x00
[   91.548193] rt3050-esw 10110000.esw: link changed 0x10
[   98.659461] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   98.688118] jffs2_build_filesystem(): unlocking the mtd device... 
[   98.688135] done.
[   98.704531] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[  104.256413] br-lan: port 1(eth0) entered blocking state
[  104.281965] br-lan: port 1(eth0) entered disabled state
[  104.293257] device eth0 entered promiscuous mode
[  104.501838] br-lan: port 1(eth0) entered blocking state
[  104.512421] br-lan: port 1(eth0) entered forwarding state
[  105.227805] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  143.753666] done.
[  143.757694] jffs2: notice: (1491) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  144.127289] overlayfs: upper fs does not support tmpfile.