I've now got a LuCI web interface - what now? Is the image the "proper" image to run with?
Here is the serial console log from the manual FLASH operation.
DDR Calibration DQS reg = 00008888
U-Boot 1.1.3 (Oct 26 2019 - 17:46:11)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fac000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
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:Oct 26 2019 Time:17:46:11
============================================
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 =64 Mbytes
RESET MT7628 PHY!!!!!!gpiomode2 00000555.
continue to starting system.
0
U-Boot 1.1.3 (Oct 26 2019 - 17:41:51)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb8000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
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:Oct 26 2019 Time:17:41:51
============================================
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 =64 Mbytes
RESET MT7628 PHY!!! 0
TODO, Read MAC Address from Flash
switch BootType:
4: System Enter Boot Command Line Interface.
U-Boot 1.1.3 (Oct 26 2019 - 17:41:51)
MT7628 # tftpboot 81000000 sysupgrade.bin
netboot_common, argc= 3
NetTxPacket = 0x83FE7300
KSEG1ADDR(NetTxPacket) = 0xA3FE7300
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 192.168.10.168; our IP address is 192.168.10.166
Filename 'sysupgrade.bin'.
TIMEOUT_COUNT=10,Load address: 0x81000000
Loading: checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (00:21:70:b3:bf:a0)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############
done
Bytes transferred = 4063486 (3e00fe hex)
NetBootFileXferSize= 003e00fe
MT7628 # erase defined 50000 7a0000
Erase flash !!
From 0x50000 length 0x7A0000
............................................................................................................
MT7628 # cp.b 81000000 50000 7a0000
Copy 0x81000000 to 0x00050000, count 0x7A0000....
............................................................................................................
MT7628 # md 81000000
81000000: 00000003 2e726576 302e3220 ffffff00 ....ver. 2.0....
81000010: ffffffff ffffffff ffffffff ffffffff ................
81000020: ffffffff ffffffff ffffffff ffffffff ................
81000030: ffffffff 0100cd00 00000200 02000000 ................
81000040: 940fbe31 bb8a45d2 f51ebfbb d0a5985b 1....E......[...
81000050: 00000000 ffffffff ffffffff ffffffff ................
81000060: ffffffff ffffffff 80000000 80000000 ................
81000070: 00007a00 00020000 e1e51700 e4e71700 .z..............
81000080: 0ec02500 00000000 00000000 0001aa55 .%..........U...
81000090: 000000a5 ffffffff ffffffff ffffffff ................
810000a0: ffffffff ffffffff ffffffff ffffffff ................
810000b0: ffffffff ffffffff ffffffff ffffffff ................
810000c0: ffffffff ffffffff ffffffff ffffffff ................
810000d0: ffffffff ffffffff ffffffff ffffffff ................
810000e0: ffffffff ffffffff ffffffff ffffffff ................
810000f0: ffffffff ffffffff ffffffff ffffffff ................
MT7628 # md bc050000
bc050000: 00000003 2e726576 302e3220 ffffff00 ....ver. 2.0....
bc050010: ffffffff ffffffff ffffffff ffffffff ................
bc050020: ffffffff ffffffff ffffffff ffffffff ................
bc050030: ffffffff 0100cd00 00000200 02000000 ................
bc050040: 940fbe31 bb8a45d2 f51ebfbb d0a5985b 1....E......[...
bc050050: 00000000 ffffffff ffffffff ffffffff ................
bc050060: ffffffff ffffffff 80000000 80000000 ................
bc050070: 00007a00 00020000 e1e51700 e4e71700 .z..............
bc050080: 0ec02500 00000000 00000000 0001aa55 .%..........U...
bc050090: 000000a5 ffffffff ffffffff ffffffff ................
bc0500a0: ffffffff ffffffff ffffffff ffffffff ................
bc0500b0: ffffffff ffffffff ffffffff ffffffff ................
bc0500c0: ffffffff ffffffff ffffffff ffffffff ................
bc0500d0: ffffffff ffffffff ffffffff ffffffff ................
bc0500e0: ffffffff ffffffff ffffffff ffffffff ................
bc0500f0: ffffffff ffffffff ffffffff ffffffff ................
MT7628 #
MT7628 # reset
[04020D07][04020D08]
DDR Calibration DQS reg = 00008988
U-Boot 1.1.3 (Oct 26 2019 - 17:46:11)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fac000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
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:Oct 26 2019 Time:17:46:11
============================================
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 =64 Mbytes
RESET MT7628 PHY!!!!!!gpiomode2 00000555.
continue to starting system.
0
U-Boot 1.1.3 (Oct 26 2019 - 17:41:51)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb8000
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
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:Oct 26 2019 Time:17:41:51
============================================
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 =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.
0
disable switch phyport...
do_bootm:argc=2, addr=0xbc050000
## Booting image at bc050000 ...
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 4.14.167 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10911-c1550
[ 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] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Cudy WR1000 v2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 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] random: get_random_bytes called from 0x80481740 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 58816K/65536K available (3921K kernel code, 182K rwdata, 500K rodata, 1212K init, 20)
[ 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: 580MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007548] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.073514] pid_max: default: 32768 minimum: 301
[ 0.078181] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084537] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.096521] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000s
[ 0.106022] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.111961] pinctrl core: initialized pinctrl subsystem
[ 0.119504] NET: Registered protocol family 16
[ 0.228169] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[ 0.383507] PCI host bridge /pcie@10140000 ranges:
[ 0.388090] MEM 0x0000000020000000..0x000000002fffffff
[ 0.393106] IO 0x0000000010160000..0x000000001016ffff
[ 0.414569] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.420219] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.425729] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.432056] PCI host bridge to bus 0000:00
[ 0.435964] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.442646] pci_bus 0000:00: root bus resource [io 0xffffffff]
[ 0.448302] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.454870] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.462915] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.471337] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.477668] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.484440] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.490942] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[ 0.497929] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.504474] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[ 0.511552] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[ 0.518493] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.523299] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.529833] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
[ 0.541572] clocksource: Switched to clocksource MIPS
[ 0.547580] NET: Registered protocol family 2
[ 0.552712] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.559400] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.565592] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.571844] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.577446] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.583784] NET: Registered protocol family 1
[ 0.591235] Crashlog allocated RAM at address 0x3f00000
[ 0.597897] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.609684] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.615309] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, I.
[ 0.635003] io scheduler noop registered
[ 0.638733] io scheduler deadline registered (default)
[ 0.644636] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.653472] console [ttyS0] disabled
[ 0.656910] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.665688] console [ttyS0] enabled
[ 0.665688] console [ttyS0] enabled
[ 0.672688] bootconsole [early0] disabled
[ 0.672688] bootconsole [early0] disabled
[ 0.682225] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.703467] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.708380] 5 fixed-partitions partitions found on MTD device spi0.0
[ 0.714841] Creating 5 MTD partitions on "spi0.0":
[ 0.719706] 0x000000000000-0x000000030000 : "u-boot"
[ 0.725648] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.731940] 0x000000040000-0x000000050000 : "unknown"
[ 0.737883] 0x000000050000-0x0000007f0000 : "firmware"
[ 0.746853] 2 tplink-fw partitions found on MTD device firmware
[ 0.752930] Creating 2 MTD partitions on "firmware":
[ 0.757976] 0x000000000000-0x00000017e7e1 : "kernel"
[ 0.763898] 0x00000017e7e4-0x0000007a0000 : "rootfs"
[ 0.769679] mtd: device 5 (rootfs) set to be root filesystem
[ 0.776921] 1 squashfs-split partitions found on MTD device rootfs
[ 0.783269] 0x0000003e0000-0x0000007a0000 : "rootfs_data"
[ 0.789643] 0x0000007f0000-0x000000800000 : "factory"
[ 0.796307] libphy: Fixed MDIO Bus: probed
[ 0.812126] rt3050-esw 10110000.esw: link changed 0x00
[ 0.818899] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.829038] NET: Registered protocol family 10
[ 0.837676] Segment Routing with IPv6
[ 0.841497] NET: Registered protocol family 17
[ 0.846142] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your script.
[ 0.859304] 8021q: 802.1Q VLAN Support v1.8
[ 0.871501] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.885357] Freeing unused kernel memory: 1212K
[ 0.889952] This architecture does not have kernel memory protection.
[ 1.592608] init: Console is alive
[ 1.596304] init: - watchdog -
[ 2.261588] random: fast init done
[ 2.335527] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.471114] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.489001] init: - preinit -
[ 3.535789] rt3050-esw 10110000.esw: link changed 0x00
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
[ 3.706150] random: procd: uninitialized urandom read (4 bytes read)
[ 6.909559] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 6.942771] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.066253] procd: - early -
[ 7.069299] procd: - watchdog -
[ 7.212689] rt3050-esw 10110000.esw: link changed 0x08
[ 7.731613] procd: - watchdog -
[ 7.735192] procd: - ubus -
[ 7.891018] random: ubusd: uninitialized urandom read (4 bytes read)
[ 7.980046] random: ubusd: uninitialized urandom read (4 bytes read)
[ 7.987093] random: ubusd: uninitialized urandom read (4 bytes read)
[ 7.994645] procd: - init -
Please press Enter to activate this console.
[ 9.047286] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.234322] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.260243] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[ 9.267998] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[ 9.294067] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.319718] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 9.445136] xt_time: kernel timezone is -0000
[ 9.634762] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 9.739231] urngd: v1.0.2 started.
[ 9.937480] random: crng init done
[ 9.940933] random: 6 urandom warning(s) missed due to ratelimiting
[ 10.673823] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 10.679844] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 10.721594] mt76_wmac 10300000.wmac: firmware init done
[ 10.995710] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 11.002264] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 12.044579] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[ 12.059590] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 12.065239] mt76x2e 0000:01:00.0: Build: 1
[ 12.069392] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[ 12.091579] mt76x2e 0000:01:00.0: Firmware running!
[ 12.124316] PPP generic driver version 2.4.2
[ 12.131413] NET: Registered protocol family 24
[ 12.148344] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 26.525970] rt3050-esw 10110000.esw: link changed 0x00
[ 30.247983] rt3050-esw 10110000.esw: link changed 0x08
[ 31.658046] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 31.671850] jffs2_build_filesystem(): unlocking the mtd device...
[ 31.672684] done.
[ 31.680908] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 32.368079] br-lan: port 1(eth0.1) entered blocking state
[ 32.381232] br-lan: port 1(eth0.1) entered disabled state
[ 32.387250] device eth0.1 entered promiscuous mode
[ 32.392179] device eth0 entered promiscuous mode
[ 32.469974] br-lan: port 1(eth0.1) entered blocking state
[ 32.475528] br-lan: port 1(eth0.1) entered forwarding state
[ 32.481398] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 33.402095] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 44.663617] done.
[ 44.665618] jffs2: notice: (1210) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of x.
[ 44.864963] overlayfs: upper fs does not support tmpfile.