Issue fixed (LZMA error 1 fix)
The only change in the files is that the baudrate of the serial console in mt7628an_yj_lw928ag.dts is now 57600.
The partitions probably need changing as they don't seem right.
I don't know how to figure out the led and button config and change the Ethernet order (they appear reversed in luci, the furthest from the wan port is the wan in software, and the wan is port 4 of the switch ethernet).
Bootlog:
[04020C0E][04020D07]
DDR Calibration DQS reg = 00008888
U-Boot 1.1.3 (Jun 15 2016 - 14:46:50)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 4.3.0.1
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Jun 15 2016 Time:14:46:50
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
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.
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 (10.10.10.123) ==:10.10.10.123
Input server IP (10.10.10.3) ==:10.10.10.3
Input Linux Kernel filename () ==:test.bin
netboot_common, argc= 3
NetTxPacket = 0x83FE4A40
KSEG1ADDR(NetTxPacket) = 0xA3FE4A40
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 10.10.10.3; our IP address is 10.10.10.123
Filename 'test.bin'.
TIMEOUT_COUNT=10,Load address: 0x80a00000
Loading: checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (d0:c0:bf:42:28:01)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################Got ARP REQUEST, return our IP
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
####################
done
Bytes transferred = 5757925 (57dbe5 hex)
NetBootFileXferSize= 0057dbe5
Erasing SPI Flash...
.
Writing to SPI Flash...
.
done
Automatic boot of image at addr 0x80A00000 ...
## Booting image at 80a00000 ...
Image Name: MIPS OpenWrt Linux-5.15.150
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 5757861 Bytes = 5.5 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64
Starting kernel ...
[ 0.000000] Linux version 5.15.150 (osboxes@osboxes) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23809-234f1a2efa) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Fri Mar 22 22:09:42 2024
[ 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 MT7628AN ver:1 eco:2
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is YJ-LW928AG
[ 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-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] Writing ErrCtl register=0007edee
[ 0.000000] Readback ErrCtl register=0007edee
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 52704K/65536K available (5553K kernel code, 600K rwdata, 1196K rodata, 4544K init, 207K bss, 12832K 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] intc: using register map from devicetree
[ 0.000000] CPU Clock: 575MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6647862422 ns
[ 0.000002] sched_clock: 32 bits at 287MHz, resolution 3ns, wraps every 7469508094ns
[ 0.015460] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[ 0.087614] pid_max: default: 32768 minimum: 301
[ 0.097912] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.112269] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.136573] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.155978] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.169612] pinctrl core: initialized pinctrl subsystem
[ 0.181923] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.198084] rt2880-pinmux pinctrl: invalid group "jtag" for function "gpio"
[ 0.229863] clocksource: Switched to clocksource MIPS
[ 0.241600] NET: Registered PF_INET protocol family
[ 0.251494] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.266656] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.283335] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.298569] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.313717] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.327645] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.340384] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.353257] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.367433] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.378625] PCI: CLS 0 bytes, default 32
[ 1.149077] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 1.168930] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.180423] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.203631] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 1.215005] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 1.226424] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 1.238033] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 1.251971] printk: console [ttyS0] disabled
[ 1.260458] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 1.278279] printk: console [ttyS0] enabled
[ 1.278279] printk: console [ttyS0] enabled
[ 1.294753] printk: bootconsole [early0] disabled
[ 1.294753] printk: bootconsole [early0] disabled
[ 1.315109] spi-mt7621 10000b00.spi: sys_freq: 191666666
[ 1.334260] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[ 1.344137] 6 fixed-partitions partitions found on MTD device spi0.0
[ 1.356787] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.371329] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.386211] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.400774] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.415792] Creating 6 MTD partitions on "spi0.0":
[ 1.425354] 0x000000000000-0x000000030000 : "Bootloader"
[ 1.437913] 0x000000030000-0x000000040000 : "Config"
[ 1.449343] 0x000000040000-0x000000050000 : "Factory"
[ 1.461155] 0x000000050000-0x000000800000 : "firmware"
[ 1.472927] 2 uimage-fw partitions found on MTD device firmware
[ 1.484763] Creating 2 MTD partitions on "firmware":
[ 1.494614] 0x000000000000-0x0000000f7429 : "kernel"
[ 1.504452] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[ 1.522525] 0x0000000f7429-0x0000007b0000 : "rootfs"
[ 1.532456] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[ 1.552040] mtd: setting mtd5 (rootfs) as root device
[ 1.562357] 1 squashfs-split partitions found on MTD device rootfs
[ 1.574657] 0x0000003e0000-0x0000007b0000 : "rootfs_data"
[ 1.586803] 0x000000800000-0x000000eb8bd7 : "rootfs"
[ 1.596745] mtd: partition "rootfs" is out of reach -- disabled
[ 1.610225] 0x000000ff0000-0x0000013c0000 : "rootfs_data"
[ 1.620996] mtd: partition "rootfs_data" is out of reach -- disabled
[ 1.659002] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[ 1.674416] mtk_soc_eth 10100000.ethernet: generated random MAC address 56:8c:9f:3e:05:94
[ 1.691456] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.710637] NET: Registered PF_INET6 protocol family
[ 2.359015] Segment Routing with IPv6
[ 2.366517] In-situ OAM (IOAM) with IPv6
[ 2.374532] NET: Registered PF_PACKET protocol family
[ 2.384730] 8021q: 802.1Q VLAN Support v1.8
[ 5.048254] rt3050-esw 10110000.esw: port 3 link up
[ 8.171840] Freeing unused kernel image (initmem) memory: 4544K
[ 8.183623] This architecture does not have kernel memory protection.
[ 8.196397] Run /init as init process
[ 8.967757] init: Console is alive
[ 8.975313] init: - watchdog -
[ 9.011675] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 9.043601] usbcore: registered new interface driver usbfs
[ 9.054664] usbcore: registered new interface driver hub
[ 9.065382] usbcore: registered new device driver usb
[ 9.083528] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 9.099719] fsl-ehci: Freescale EHCI Host controller driver
[ 9.112993] ehci-platform: EHCI generic platform driver
[ 9.133940] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 9.147250] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 9.157604] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 9.169073] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 9.184934] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 9.219887] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 9.233646] hub 1-0:1.0: USB hub found
[ 9.242129] hub 1-0:1.0: 1 port detected
[ 9.258802] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 9.272955] ohci-platform: OHCI generic platform driver
[ 9.283897] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 9.297445] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 9.313328] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 9.395098] hub 2-0:1.0: USB hub found
[ 9.403672] hub 2-0:1.0: 1 port detected
[ 9.418460] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 9.443536] init: - preinit -
[ 9.802410] random: jshn: uninitialized urandom read (4 bytes read)
[ 9.933582] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.136134] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.457469] rt3050-esw 10110000.esw: port 3 link 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
[ 12.803705] procd: - early -
[ 12.809834] procd: - watchdog -
[ 13.502789] procd: - watchdog -
[ 13.509495] procd: - ubus -
[ 13.526593] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.565780] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.579143] random: ubusd: uninitialized urandom read (4 bytes read)
[ 13.596527] procd: - init -
Please press Enter to activate this console.
[ 13.799694] rt3050-esw 10110000.esw: port 3 link up
[ 14.465828] kmodloader: loading kernel modules from /etc/modules.d/*
[ 15.073320] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[ 15.088243] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[ 15.284206] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 15.296587] mt76_wmac 10300000.wmac: Invalid MAC address, using random address 0a:04:a9:14:ca:ec
[ 16.361371] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 16.373185] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 16.449875] mt76_wmac 10300000.wmac: firmware init done
[ 16.913210] PPP generic driver version 2.4.2
[ 16.961097] NET: Registered PF_PPPOX protocol family
[ 17.050348] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 17.455315] urngd: v1.0.2 started.
[ 17.668999] random: jshn: uninitialized urandom read (4 bytes read)
[ 18.208237] random: jshn: uninitialized urandom read (4 bytes read)
[ 18.997948] random: jshn: uninitialized urandom read (4 bytes read)
[ 19.247632] random: jshn: uninitialized urandom read (4 bytes read)
[ 21.266201] random: crng init done
[ 21.273063] random: 27 urandom warning(s) missed due to ratelimiting
[ 35.144776] rt3050-esw 10110000.esw: port 3 link down
[ 38.487245] rt3050-esw 10110000.esw: port 3 link up
[ 44.248466] br-lan: port 1(eth0.2) entered blocking state
[ 44.259286] br-lan: port 1(eth0.2) entered disabled state
[ 44.270419] device eth0.2 entered promiscuous mode
[ 44.279968] device eth0 entered promiscuous mode
[ 44.356050] br-lan: port 1(eth0.2) entered blocking state
[ 44.366846] br-lan: port 1(eth0.2) entered forwarding state
[ 45.270588] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
BusyBox v1.36.1 (2024-03-22 22:09:42 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 23.05.3, r23809-234f1a2efa
-----------------------------------------------------
=== 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:/#