Got it tftp booted. No wifi thou. Must look deeper
edit: And I've looked . mt76 doesn't support mt7981 yet .There is some patches in Daniel's 'gl-mt3000' branch but that didn't work and wifi stays undetected.
U-Boot 2022.07-rc3 (Dec 20 2022 - 07:58:32 +0000), Build: jenkins-WR3000-18
CPU: MediaTek MT7981
Model: mt7981-rfb
DRAM: 256 MiB
Core: 39 devices, 15 uclasses, devicetree: embed
Loading Environment from nowhere... OK
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - 86:89:ba:16:2e:9c
eth0: ethernet@15100000
*** U-Boot Boot Menu ***
1. Startup system (Default)
2. Upgrade firmware
3. Upgrade ATF BL2
4. Upgrade ATF FIP
5. Upgrade single image
6. Load image
0. U-Boot console
Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
*** Loading image ***
Input load address: 0x46000000
Available load methods:
0 - TFTP client (Default)
1 - Xmodem
2 - Ymodem
3 - Kermit
4 - S-Record
5 - RAM
Select (enter for default):
Input U-Boot's IP address: 192.168.10.1
Input TFTP server's IP address: 192.168.10.22
Input IP netmask: 255.255.255.0
Input file name: 4.bin
Using ethernet@15100000 device
TFTP from server 192.168.10.22; our IP address is 192.168.10.1
Filename '4.bin'.
Load address: 0x46000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##################################
2.9 MiB/s
done
Bytes transferred = 7165712 (6d5710 hex)
Saving Environment to nowhere... not possible
*** Loaded 7165712 (0x6d5710) bytes at 0x46000000 ***
Run loaded data now? (Y/n): y
## Loading kernel from FIT Image at 46000000 ...
Using 'config-1' configuration
Trying 'kernel-1' kernel subimage
Description: ARM64 OpenWrt Linux-5.15.106
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x460000ec
Data Size: 3831671 Bytes = 3.7 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x48000000
Entry Point: 0x48000000
Hash algo: crc32
Hash value: 26a603d5
Hash algo: sha1
Hash value: b772270875ae9080edc29ee3500c4784593e43d8
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 46000000 ...
Using 'config-1' configuration
Trying 'initrd-1' ramdisk subimage
Description: ARM64 OpenWrt cudy_wr3000 initrd
Type: RAMDisk Image
Compression: Unknown Compression
Data Start: 0x463a799c
Data Size: 3299132 Bytes = 3.1 MiB
Architecture: AArch64
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Hash algo: crc32
Hash value: 69c7f895
Hash algo: sha1
Hash value: 203f9ae780495bb2ede134d5df5a49005dd0d00a
Verifying Hash Integrity ... crc32+ sha1+ OK
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 46000000 ...
Using 'config-1' configuration
Trying 'fdt-1' fdt subimage
Description: ARM64 OpenWrt cudy_wr3000 device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x466cd1e0
Data Size: 32768 Bytes = 32 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: d0d41b92
Hash algo: sha1
Hash value: b8eee15db5a7b5360f7093f90791ad850b55e7fb
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x466cd1e0
Uncompressing Kernel Image
Loading Ramdisk to 4f4d4000, end 4f7f973c ... OK
Loading Device Tree to 000000004f4c9000, end 000000004f4d3fff ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.15.106 (user@chuwi14) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 unknown) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Thu Apr 13 09:32:39 2023
[ 0.000000] Machine model: CUDY WR3000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000040000000-0x000000004fffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x0000000042ffffff]
[ 0.000000] node 0: [mem 0x0000000043000000-0x000000004302ffff]
[ 0.000000] node 0: [mem 0x0000000043030000-0x0000000047c7ffff]
[ 0.000000] node 0: [mem 0x0000000047c80000-0x0000000047ffffff]
[ 0.000000] node 0: [mem 0x0000000048000000-0x000000004fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000004fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 17 pages/cpu s29592 r8192 d31848 u69632
[ 0.000000] pcpu-alloc: s29592 r8192 d31848 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64512
[ 0.000000] Kernel command line:
[ 0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 237976K/262144K available (8064K kernel code, 886K rwdata, 2152K rodata, 384K init, 286K bss, 24168K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 640 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[ 0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[ 0.000129] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[ 0.000140] pid_max: default: 32768 minimum: 301
[ 0.000226] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.000236] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.001272] rcu: Hierarchical SRCU implementation.
[ 0.001381] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.001598] smp: Bringing up secondary CPUs ...
[ 0.001903] Detected VIPT I-cache on CPU1
[ 0.001926] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[ 0.001952] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.002016] smp: Brought up 1 node, 2 CPUs
[ 0.002029] SMP: Total of 2 processors activated.
[ 0.002034] CPU features: detected: 32-bit EL0 Support
[ 0.002039] CPU features: detected: CRC32 instructions
[ 0.002122] CPU: All CPU(s) started at EL2
[ 0.002133] alternatives: patching kernel code
[ 0.004497] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.004519] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.004602] pinctrl core: initialized pinctrl subsystem
[ 0.005156] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.005411] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.005438] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.005463] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.005748] thermal_sys: Registered thermal governor 'fair_share'
[ 0.005752] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.005757] thermal_sys: Registered thermal governor 'step_wise'
[ 0.005761] thermal_sys: Registered thermal governor 'user_space'
[ 0.005906] ASID allocator initialised with 65536 entries
[ 0.014577] cryptd: max_cpu_qlen set to 1000
[ 0.016617] SCSI subsystem initialized
[ 0.016778] libata version 3.00 loaded.
[ 0.017709] clocksource: Switched to clocksource arch_sys_counter
[ 0.018178] NET: Registered PF_INET protocol family
[ 0.018262] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.018544] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.018565] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.018574] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.018593] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.018622] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.018679] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.018696] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.018792] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.018813] PCI: CLS 0 bytes, default 64
[ 0.019053] Unpacking initramfs...
[ 0.020795] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[ 0.023615] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.023630] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.065600] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.066161] printk: console [ttyS0] disabled
[ 0.086341] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 17, base_baud = 2500000) is a ST16650V2
[ 0.684746] printk: console [ttyS0] enabled
[ 0.689691] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.699115] loop: module loaded
[ 0.704195] spi-nor spi0.0: XM25QH128C (16384 Kbytes)
[ 0.972242] Freeing initrd memory: 3220K
[ 0.982938] 6 fixed-partitions partitions found on MTD device spi0.0
[ 0.989596] Creating 6 MTD partitions on "spi0.0":
[ 0.994385] 0x000000000000-0x000000040000 : "BL2"
[ 0.999586] 0x000000040000-0x000000050000 : "u-boot-env"
[ 1.005208] 0x000000050000-0x000000060000 : "Factory"
[ 1.010735] 0x000000060000-0x000000070000 : "bdinfo"
[ 1.016032] 0x000000070000-0x0000000f0000 : "FIP"
[ 1.021393] 0x0000000f0000-0x000001000000 : "firmware"
[ 1.026952] 2 fit-fw partitions found on MTD device firmware
[ 1.032638] 0x0000000f0000-0x000000430000 : "kernel"
[ 1.037952] 0x000000430000-0x000001000000 : "rootfs"
[ 1.043226] mtd: setting mtd7 (rootfs) as root device
[ 1.048363] 1 squashfs-split partitions found on MTD device rootfs
[ 1.054537] 0x000000d50000-0x000001000000 : "rootfs_data"
[ 1.222611] MediaTek MT7981 PHY mdio-bus:00: TX-VCM SW cal result: 0x2
[ 1.232021] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009180000, irq 81
[ 1.241635] i2c_dev: i2c /dev entries driver
[ 1.247374] NET: Registered PF_INET6 protocol family
[ 1.253188] Segment Routing with IPv6
[ 1.256869] In-situ OAM (IOAM) with IPv6
[ 1.260855] NET: Registered PF_PACKET protocol family
[ 1.266211] 8021q: 802.1Q VLAN Support v1.8
[ 1.316534] mt7530 mdio-bus:1f: no interrupt support
[ 1.343224] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[ 1.351899] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 1.361103] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.380967] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.400680] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.420396] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=POLL)
[ 1.431860] DSA: tree 0 setup
[ 1.436055] Freeing unused kernel memory: 384K
[ 1.477804] Run /init as init process
[ 1.481463] with arguments:
[ 1.484418] /init
[ 1.486679] with environment:
[ 1.489820] HOME=/
[ 1.492168] TERM=linux
[ 1.628500] init: Console is alive
[ 1.635806] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 1.646347] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 1.662554] init: - preinit -
[ 1.718478] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 1.726916] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 1.737609] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 1.749603] 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
[ 3.789392] procd: - early -
[ 4.312379] procd: - ubus -
[ 4.317480] random: ubusd: uninitialized urandom read (4 bytes read)
[ 4.364870] random: ubusd: uninitialized urandom read (4 bytes read)
[ 4.371386] random: ubusd: uninitialized urandom read (4 bytes read)
[ 4.378787] procd: - init -
Please press Enter to activate this console.
[ 4.491863] urngd: v1.0.2 started.
[ 4.518605] random: crng init done
[ 4.522012] random: 23 urandom warning(s) missed due to ratelimiting
[ 4.532121] kmodloader: loading kernel modules from /etc/modules.d/*
[ 4.547696] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[ 4.569768] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[ 4.577334] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[ 4.622151] PPP generic driver version 2.4.2
[ 4.627043] NET: Registered PF_PPPOX protocol family
[ 4.635216] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 9.468196] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 9.480725] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[ 9.490348] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[ 9.491624] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 9.506587] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.514087] br-lan: port 1(lan1) entered blocking state
[ 9.519350] br-lan: port 1(lan1) entered disabled state
[ 9.526030] device lan1 entered promiscuous mode
[ 9.530686] device eth0 entered promiscuous mode
[ 9.544413] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[ 9.553856] br-lan: port 2(lan2) entered blocking state
[ 9.559138] br-lan: port 2(lan2) entered disabled state
[ 9.566177] device lan2 entered promiscuous mode
[ 9.575879] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[ 9.583390] br-lan: port 3(lan3) entered blocking state
[ 9.588644] br-lan: port 3(lan3) entered disabled state
[ 9.590916] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[ 9.597152] device lan3 entered promiscuous mode
[ 9.608517] br-lan: port 3(lan3) entered blocking state
[ 9.613750] br-lan: port 3(lan3) entered forwarding state
[ 9.619920] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 9.642702] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
BusyBox v1.36.0 (2023-04-13 09:32:39 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, unknown
-----------------------------------------------------
=== 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:/# [ 2958.010978] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[ 2958.018493] br-lan: port 3(lan3) entered blocking state
[ 2958.023710] br-lan: port 3(lan3) entered forwarding state
root@OpenWrt:/#
root@OpenWrt:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 120788 17068 103720 14% /
tmpfs 120788 56 120732 0% /tmp
tmpfs 512 0 512 0% /dev
root@OpenWrt:/# cat /proc/m
meminfo misc modules mounts mtd
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "BL2"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "Factory"
mtd3: 00010000 00010000 "bdinfo"
mtd4: 00080000 00010000 "FIP"
mtd5: 00f10000 00010000 "firmware"
mtd6: 00340000 00010000 "kernel"
mtd7: 00bd0000 00010000 "rootfs"
mtd8: 002b0000 00010000 "rootfs_data"
root@OpenWrt:/# [ 3051.608891] br-lan: port 3(lan3) entered disabled state
[ 3051.614393] mt7530 mdio-bus:1f lan3: Link is Down
[ 3054.730977] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[ 3054.738494] br-lan: port 3(lan3) entered blocking state
[ 3054.743710] br-lan: port 3(lan3) entered forwarding state