51

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Tak, initramfs od WR3000S bootuje się w pełni, i ethernet działa, ale tylko port LAN. Ten router ma fizycznie 2 porty, LAN i WAN. Jak zrobię swój własny initramfs bazując na WR3000S, to nie mam ethernetu w ogóle, mimo że w dts-ach zdefiniowałem wszystko tak samo. Initramfs pobrany z twojej strony od WR3000S działa tylko pokazuje mi 4 porty lan i 1 wan.

52

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Bardziej mi chodziło o to, czy dało by się to przepisać używając gotowych już źródeł z innych modelów cudy ?

53

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary, dało by się sklecic działający initramfs z tego co zapostowałem tutaj ? Bo chyba sam za cienki na to jestem...

54

(91 odpowiedzi, napisanych Sprzęt / Hardware)

No dołączyłem to. Skopiowałem wszystkie dts-y od wr3000s praktycznie jeden do jednego. Od siebie zmieniłem ledy, które oczywiście wszystkie nie będą działały i dołożyłem node od pcie bo tego używa modem.

55

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Zrobiłem wszystko tak jak jest w dts-ach od wr3000s, ale dalej nie mam portów. Nie wiem co robię źle...

F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 0252 [010F]
Jump to BL

NOTICE:  BL2: v2.7(release):f0ff4aea06-dirty
NOTICE:  BL2: Built : 11:23:05, Sep 18 2025
NOTICE:  WDT: disabled
NOTICE:  EMI: Using DDR3 settings

dump toprgu registers data:
1001c000 | 00000000 0000ffe0 00000000 00000000
1001c010 | 00000fff 00000000 00f00000 00000000
1001c020 | 00000000 00000000 00000000 00000000
1001c030 | 003c0003 003c0003 00000000 00000000
1001c040 | 00000000 00000000 00000000 00000000
1001c050 | 00000000 00000000 00000000 00000000
1001c060 | 00000000 00000000 00000000 00000000
1001c070 | 00000000 00000000 00000000 00000000
1001c080 | 00000000 00000000 00000000 00000000

dump drm registers data:
1001d000 | 00000000 00000000 00000000 00000000
1001d010 | 00000000 00000000 00000000 00000000
1001d020 | 00000000 00000000 00000000 00000000
1001d030 | 00a083f1 000003ff 00100000 00000000
1001d040 | 00000000 00000000 00020303 000000ff
1001d050 | 00000000 00000000 00000000 00000000
1001d060 | 00000002 00000000 00000000 00000000
drm: 500 = 0x8
[DDR Reserve] ddr reserve mode not be enabled yet
DDR RESERVE Success 0
[EMI] ComboMCP not ready, using default setting
BYTE_swap:0
BYTE_swap:0
Window Sum 576, worse bit 0, min window 72
Window Sum 588, worse bit 8, min window 72
Window Sum 388, worse bit 0, min window 48
Window Sum 374, worse bit 8, min window 46
Window Sum 398, worse bit 2, min window 48
Window Sum 382, worse bit 9, min window 46
Window Sum 408, worse bit 1, min window 50
Window Sum 398, worse bit 9, min window 48
Window Sum 416, worse bit 5, min window 50
Window Sum 404, worse bit 9, min window 48
Window Sum 426, worse bit 3, min window 52
Window Sum 416, worse bit 9, min window 50
Window Sum 440, worse bit 2, min window 54
Window Sum 424, worse bit 9, min window 52
Window Sum 434, worse bit 14, min window 52
Window Sum 454, worse bit 1, min window 56
Window Sum 442, worse bit 9, min window 54
Window Sum 456, worse bit 2, min window 56
Window Sum 456, worse bit 9, min window 56
Window Sum 466, worse bit 3, min window 56
Window Sum 460, worse bit 9, min window 56
Window Sum 476, worse bit 3, min window 58
Window Sum 466, worse bit 8, min window 58
Window Sum 482, worse bit 1, min window 60
Window Sum 476, worse bit 9, min window 58
Window Sum 490, worse bit 2, min window 60
Window Sum 478, worse bit 14, min window 58
Window Sum 482, worse bit 8, min window 60
NOTICE:  EMI: Detected DRAM size: 256MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  CPU: MT7981 (1300MHz)
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0x8c
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  Initializing NMBM ...
NOTICE:  Signature found at block 1023 [0x07fe0000]
NOTICE:  First info table with writecount 0 found in block 960
NOTICE:  Second info table with writecount 0 found in block 963
NOTICE:  NMBM has been successfully attached in read-only mode
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):f0ff4aea06-dirty
NOTICE:  BL31: Built : 11:23:05, Sep 18 2025
NOTICE:  Hello BL31!!!


U-Boot 2022.07-rc3 (Sep 18 2025 - 11:23:05 +0000), Build: jenkins-mtk_mt7981_router_v2.4-46

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  256 MiB
Core:  48 devices, 20 uclasses, devicetree: embed

Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: ESMT SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached

Loading Environment from MTD... *** Warning - bad CRC, using default environment

In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - 02:94:86:da:d6:63
eth0: ethernet@15100000
gpio: pin 6 (gpio 6) value is 0
gpio: pin 8 (gpio 8) value is 0
RESET button is pressed for:  2 second(s)
LED 'oem:green:internet' not found (err=-19)

*** Upgrading oem fit Firmware ***

Using ethernet@15100000 device
TFTP from server 192.168.1.88; our IP address is 192.168.1.112
Filename 'recovery.bin'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
MT7981> tftpboot openwrt-mediatek-filogic-cudy_p2-v1-initramfs-kernel.bin
Using ethernet@15100000 device
TFTP from server 192.168.1.88; our IP address is 192.168.1.112
Filename 'openwrt-mediatek-filogic-cudy_p2-v1-initramfs-kernel.bin'.
Load address: 0x46000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################################
         12.4 MiB/s
done
Bytes transferred = 9437184 (900000 hex)
MT7981> bootm
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-6.18.21
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x460000e8
     Data Size:    4663409 Bytes = 4.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48000000
     Entry Point:  0x48000000
     Hash algo:    crc32
     Hash value:   b382cfb6
     Hash algo:    sha1
     Hash value:   b49f0bc777ecbc78c1af746b50d4c12fa0aa5305
   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_p2-v1 initrd
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x46472a90
     Data Size:    4698340 Bytes = 4.5 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    crc32
     Hash value:   b6d57e0d
     Hash algo:    sha1
     Hash value:   52953adb99d4fcab4ed8c411570ce8956f68a0a4
   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_p2-v1 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x468edc7c
     Data Size:    22817 Bytes = 22.3 KiB
     Architecture: AArch64
     Load Address: 0x44000000
     Hash algo:    crc32
     Hash value:   9c672257
     Hash algo:    sha1
     Hash value:   90929b8bfabbe14b0107ca9f4c7640331e0f6c02
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x468edc7c to 0x44000000
   Booting using the fdt blob at 0x44000000
   Uncompressing Kernel Image
   Loading Ramdisk to 4f380000, end 4f7fb0e4 ... OK
   Loading Device Tree to 000000004f377000, end 000000004f37f920 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.18.21 (lukasz@lukasz-mint) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r34136-8ef7b4ee4b) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Fri Apr 24 19:08:24 2026
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Cudy P2 v1
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] OF: reserved mem: 0x0000000047c80000..0x0000000047d7ffff (1024 KiB) nomap non-reusable wmcpu-reserved@47c80000
[    0.000000] OF: reserved mem: 0x0000000047d80000..0x0000000047dbffff (256 KiB) nomap non-reusable wo-emi@47d80000
[    0.000000] OF: reserved mem: 0x0000000047dc0000..0x0000000047ffffff (2304 KiB) nomap non-reusable wo-data@47dc0000
[    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 20 pages/cpu s43480 r8192 d30248 u81920
[    0.000000] pcpu-alloc: s43480 r8192 d30248 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GICv3 CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line:
[    0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[    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] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 0MB
[    0.000000] software IO TLB: mapped [mem 0x000000004fe4a000-0x000000004feca000] (0MB)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65536
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    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] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_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] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTLR.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer 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.000087] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000096] pid_max: default: 32768 minimum: 301
[    0.002489] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.002497] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.007518] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.008293] rcu: Hierarchical SRCU implementation.
[    0.008301] rcu:     Max phase no-delay instances is 1000.
[    0.008519] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.008726] smp: Bringing up secondary CPUs ...
[    0.009113] Detected VIPT I-cache on CPU1
[    0.009160] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.009188] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.009265] smp: Brought up 1 node, 2 CPUs
[    0.009270] SMP: Total of 2 processors activated.
[    0.009272] CPU: All CPU(s) started at EL2
[    0.009275] CPU features: detected: 32-bit EL0 Support
[    0.009279] CPU features: detected: CRC32 instructions
[    0.009304] alternatives: applying system-wide alternatives
[    0.009442] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.009571] Memory: 231024K/262144K available (9664K kernel code, 1014K rwdata, 2972K rodata, 960K init, 295K bss, 29412K reserved, 0K cma-reserved)
[    0.012839] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012867] posixtimers hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.012894] futex hash table entries: 512 (32768 bytes on 1 NUMA nodes, total 32 KiB, linear).
[    0.012933] 28992 pages in range for non-PLT usage
[    0.012936] 520512 pages in range for PLT usage
[    0.014512] pinctrl core: initialized pinctrl subsystem
[    0.015703] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.015997] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.016022] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.016043] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.016434] thermal_sys: Registered thermal governor 'fair_share'
[    0.016438] thermal_sys: Registered thermal governor 'bang_bang'
[    0.016441] thermal_sys: Registered thermal governor 'step_wise'
[    0.016443] thermal_sys: Registered thermal governor 'user_space'
[    0.016506] ASID allocator initialised with 65536 entries
[    0.017185] pstore: Using crash dump compression: deflate
[    0.017192] pstore: Registered ramoops as persistent store backend
[    0.017194] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.018784] /soc/interrupt-controller@c000000: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.020103] /soc/pcie@11280000: Fixed dependency cycle(s) with /soc/pcie@11280000/interrupt-controller
[    0.037859] SCSI subsystem initialized
[    0.038016] libata version 3.00 loaded.
[    0.039657] clocksource: Switched to clocksource arch_sys_counter
[    0.042118] NET: Registered PF_INET protocol family
[    0.042216] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.043284] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.043298] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.043312] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.043331] TCP bind hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.043380] TCP: Hash tables configured (established 2048 bind 2048)
[    0.043682] MPTCP token hash table entries: 256 (order: 1, 6144 bytes, linear)
[    0.043787] UDP hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.043807] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.044011] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.044043] PCI: CLS 0 bytes, default 64
[    0.044257] Unpacking initramfs...
[    0.050576] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.055668] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.055677] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.059552] cryptd: max_cpu_qlen set to 1000
[    0.114299] gpio-export gpio_export: 5 gpio(s) exported
[    0.116554] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.116578] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.116591] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    0.121453] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.122722] printk: legacy console [ttyS0] disabled
[    0.143102] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 72, base_baud = 2500000) is a ST16650V2
[    0.143146] printk: legacy console [ttyS0] enabled
[    0.966435] mtk_rng trng: registered RNG driver
[    0.971202] random: crng init done
[    0.977914] loop: module loaded
[    0.991511] spi-nand spi0.0: calibration result: 0x3
[    0.996605] spi-nand spi0.0: ESMT SPI NAND was found.
[    1.001709] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.010366] Signature found at block 1023 [0x07fe0000]
[    1.015506] NMBM management region starts at block 960 [0x07800000]
[    1.022906] First info table with writecount 0 found in block 960
[    1.032091] Second info table with writecount 0 found in block 963
[    1.038285] NMBM has been successfully attached
[    1.362603] Freeing initrd memory: 4588K
[    1.372129] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.378737] Creating 6 MTD partitions on "spi0.0":
[    1.383547] 0x000000000000-0x000000100000 : "BL2"
[    1.389523] 0x000000100000-0x000000180000 : "u-boot-env"
[    1.395663] 0x000000180000-0x000000380000 : "Factory"
[    1.403200] 0x000000380000-0x0000003c0000 : "bdinfo"
[    1.408992] 0x0000003c0000-0x0000005c0000 : "FIP"
[    1.415778] 0x0000005c0000-0x0000045c0000 : "ubi"
[    1.471903] ubi0: default fastmap pool size: 25
[    1.476436] ubi0: default fastmap WL pool size: 12
[    1.481244] ubi0: attaching mtd5
[    1.747908] ubi0: scanning is finished
[    1.756793] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 17, need 19
[    1.767200] ubi0: attached mtd5 (name "ubi", size 64 MiB)
[    1.772623] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.779487] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.786271] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.793226] ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[    1.799220] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    1.806436] ubi0: max/mean erase counter: 7/3, WL threshold: 4096, image sequence number: 1792215068
[    1.815557] ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 17
[    1.824775] ubi0: background thread "ubi_bgt0d" started, PID 211
[    1.825516] block ubiblock0_1: created from ubi0:1(rootfs)
[    1.836277] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    1.848162] mtk_soc_eth 15100000.ethernet: legacy DT: using hard-coded SRAM offset.
[    1.856108] mtk_soc_eth 15100000.ethernet: legacy DT: missing interrupt-names.
[    2.001640] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc081500000, irq 75
[    2.011521] i2c_dev: i2c /dev entries driver
[    2.017652] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.026493] NET: Registered PF_INET6 protocol family
[    2.032223] Segment Routing with IPv6
[    2.035905] In-situ OAM (IOAM) with IPv6
[    2.039895] NET: Registered PF_PACKET protocol family
[    2.045130] 8021q: 802.1Q VLAN Support v1.8
[    2.067482] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.074836] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.081160] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    2.168579] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[    2.177338] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.195303] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=78)
[    2.220841] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=79)
[    2.246189] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=80)
[    2.271556] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=81)
[    2.296897] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=82)
[    2.312443] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    2.319177] DSA: tree 0 setup
[    2.322649] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.329820] clk: Disabling unused clocks
[    2.329995] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.334137] PM: genpd: Disabling unused power domains
[    2.340143] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    2.354227] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.361573] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.367836] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    2.376920] Freeing unused kernel memory: 960K
[    2.381465] Run /init as init process
[    2.385117]   with arguments:
[    2.388073]     /init
[    2.390343]   with environment:
[    2.393473]     HOME=/
[    2.395821]     TERM=linux
[    2.611597] init: Console is alive
[    2.615124] init: - watchdog -
[    2.622601] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.629956] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    2.638687] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.646051] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.652351] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    2.661525] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.668844] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.675147] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    2.684213] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.701771] init: - preinit -
[    2.807718] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    2.816363] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.847720] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
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
[    7.065636] procd: - early -
[    7.068571] procd: - watchdog -
[    7.595908] procd: - watchdog -
[    7.599201] procd: - ubus -
[    7.653544] procd: - init -
Please press Enter to activate this console.
[    7.841452] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.858950] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    7.881238] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    7.888558] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    7.894855] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    7.905040] Loading modules backported from Linux version v6.18.7-0-g5dfbc5357
[    7.912303] Backport generated by backports.git c8a37ce
[    7.931338] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    7.938659] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    7.944959] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    8.054971] urngd: v1.0.2 started.
[    8.249878] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20240823161240a
[    8.270254] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20240823161304
[    8.310024] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20240823161841
[    8.417385] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    8.424759] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    8.431069] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    8.463357] PPP generic driver version 2.4.2
[    8.468619] NET: Registered PF_PPPOX protocol family
[    8.476716] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.906813] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   14.061293] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   14.070504] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   19.050066] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[   19.057390] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[   19.063674] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000

56

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Po zbootowaniu initramfs z wr300s mam to:

kern.warn kernel: [    1.857728] ubi0 warning: 0xffffffc0805d9908: cannot reserve enough PEBs for bad PEB handling, reserved 17, need 19




Thu Jan  1 01:01:22 1970 daemon.notice netifd: Network device 'lan1' link is down
Thu Jan  1 01:01:22 1970 kern.info kernel: [   82.348631] br-lan: port 1(lan1) entered disabled state
Thu Jan  1 01:01:22 1970 kern.info kernel: [   82.348749] mt7530-mdio mdio-bus:1f lan1: Link is Down
Thu Jan  1 01:01:23 1970 daemon.notice netifd: bridge 'br-lan' link is down
Thu Jan  1 01:01:23 1970 daemon.notice netifd: Interface 'lan' has link connectivity loss
Thu Jan  1 01:01:23 1970 daemon.warn odhcpd[2292]: rfc9096: br-lan: stale fdda:c3a7:a63e::1/60
Thu Jan  1 01:01:23 1970 daemon.warn odhcpd[2292]: No default route present, setting ra_lifetime to 0!
Thu Jan  1 01:01:23 1970 daemon.warn odhcpd[2292]: rfc9096: br-lan: piofile updated
Thu Jan  1 01:01:37 1970 daemon.notice netifd: Network device 'wan' link is up
Thu Jan  1 01:01:37 1970 daemon.notice netifd: Interface 'wan' has link connectivity
Thu Jan  1 01:01:37 1970 daemon.notice netifd: Interface 'wan' is setting up now
Thu Jan  1 01:01:37 1970 daemon.notice netifd: Interface 'wan6' has link connectivity
Thu Jan  1 01:01:37 1970 daemon.notice netifd: Interface 'wan6' is setting up now
Thu Jan  1 01:01:37 1970 kern.info kernel: [   97.565315] mt7530-mdio mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx



[    2.296020] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
[    2.304747] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    2.323773] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=79)
[    2.345933] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=80)
[    2.367950] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=81)
[    2.389999] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=82)
[    2.412039] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7531 PHY] (irq=83)
[    2.423326] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    2.430096] DSA: tree 0 setup

Sprawdziłem porty i LAN działa, WAN nie

57

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Po przerobieniu mojego dts i zrobieniu switcha mt753x z dwoma portami, moje porty ethernet nie działają. Ktoś coś ?

58

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Spróbowałem initramfs z wr3000s i ten się załadował. Adresy mac też się zgadzają.

59

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Czyli wi-fi jest wykrywane, partycje się zgadzają, tylko te porty do zrobienia i modem no i ledy.

60

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Próba bootowania initramfs z m3000:

MT7981> tftpboot luci-25.12-snapshot-r32909-7014bb7ee2-mediatek-filogic-cudy_m3000-v1-initramfs-kernel.bin
Using ethernet@15100000 device
TFTP from server 192.168.1.88; our IP address is 192.168.1.112
Filename 'luci-25.12-snapshot-r32909-7014bb7ee2-mediatek-filogic-cudy_m3000-v1-initramfs-kernel.bin'.
Load address: 0x46000000
Loading: ##T ###############################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################
         1.7 MiB/s
done
Bytes transferred = 10813440 (a50000 hex)
MT7981> bootm
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-6.12.85
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x460000e8
     Data Size:    4301332 Bytes = 4.1 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48000000
     Entry Point:  0x48000000
     Hash algo:    crc32
     Hash value:   beaaea05
     Hash algo:    sha1
     Hash value:   ab526856d131b1ffb02a78ecc881a5fc774325a6
   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_m3000-v1 initrd
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x4641a434
     Data Size:    6460552 Bytes = 6.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    crc32
     Hash value:   5975d922
     Hash algo:    sha1
     Hash value:   be7d41e32ffe1f70a38f973cf3dd922ddd3a9ef4
   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_m3000-v1 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46a439c8
     Data Size:    21980 Bytes = 21.5 KiB
     Architecture: AArch64
     Load Address: 0x44000000
     Hash algo:    crc32
     Hash value:   00a7d57e
     Hash algo:    sha1
     Hash value:   81af15ba6d3a892c2e9765a8505a429f0b7f6a36
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x46a439c8 to 0x44000000
   Booting using the fdt blob at 0x44000000
   Uncompressing Kernel Image
   Loading Ramdisk to 4f1d1000, end 4f7fa488 ... OK
   Loading Device Tree to 000000004f1c8000, end 000000004f1d05db ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.12.85 (cezary@eko.one.pl) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r32355-02f9e71dd2) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Sat May  2 22:14:43 2026
[    0.000000] Machine model: Cudy M3000 v1/v2
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] OF: reserved mem: 0x0000000047c80000..0x0000000047d7ffff (1024 KiB) nomap non-reusable wmcpu-reserved@47c80000
[    0.000000] OF: reserved mem: 0x0000000047d80000..0x0000000047dbffff (256 KiB) nomap non-reusable wo-emi@47d80000
[    0.000000] OF: reserved mem: 0x0000000047dc0000..0x0000000047ffffff (2304 KiB) nomap non-reusable wo-data@47dc0000
[    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 20 pages/cpu s42584 r8192 d31144 u81920
[    0.000000] pcpu-alloc: s42584 r8192 d31144 u81920 alloc=20*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] alternatives: applying boot alternatives
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 65536
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 0MB
[    0.000000] software IO TLB: mapped [mem 0x000000004fe4c000-0x000000004fecc000] (0MB)
[    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] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_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] Root IRQ handler: 0xffffffc080010080
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    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.000073] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000081] pid_max: default: 32768 minimum: 301
[    0.003026] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003033] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.005130] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.005929] rcu: Hierarchical SRCU implementation.
[    0.005936] rcu:     Max phase no-delay instances is 1000.
[    0.006127] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.006355] smp: Bringing up secondary CPUs ...
[    0.006706] Detected VIPT I-cache on CPU1
[    0.006753] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.006781] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.006864] smp: Brought up 1 node, 2 CPUs
[    0.006870] SMP: Total of 2 processors activated.
[    0.006873] CPU: All CPU(s) started at EL2
[    0.006875] CPU features: detected: 32-bit EL0 Support
[    0.006879] CPU features: detected: CRC32 instructions
[    0.006903] alternatives: applying system-wide alternatives
[    0.007031] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.007156] Memory: 231104K/262144K available (9536K kernel code, 992K rwdata, 1832K rodata, 512K init, 316K bss, 29396K reserved, 0K cma-reserved)
[    0.010031] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010049] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.010106] 29424 pages in range for non-PLT usage
[    0.010109] 520944 pages in range for PLT usage
[    0.011607] pinctrl core: initialized pinctrl subsystem
[    0.013973] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.014277] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.014303] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.014324] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.014717] thermal_sys: Registered thermal governor 'fair_share'
[    0.014720] thermal_sys: Registered thermal governor 'bang_bang'
[    0.014723] thermal_sys: Registered thermal governor 'step_wise'
[    0.014726] thermal_sys: Registered thermal governor 'user_space'
[    0.014774] ASID allocator initialised with 65536 entries
[    0.015654] pstore: Using crash dump compression: deflate
[    0.015659] pstore: Registered ramoops as persistent store backend
[    0.015661] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.017046] /soc/interrupt-controller@c000000: Fixed dependency cycle(s) with /soc/interrupt-controller@c000000
[    0.033421] cryptd: max_cpu_qlen set to 1000
[    0.034674] SCSI subsystem initialized
[    0.034846] libata version 3.00 loaded.
[    0.036497] clocksource: Switched to clocksource arch_sys_counter
[    0.038740] NET: Registered PF_INET protocol family
[    0.038839] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.040152] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.040168] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.040179] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.040197] TCP bind hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.040247] TCP: Hash tables configured (established 2048 bind 2048)
[    0.040440] MPTCP token hash table entries: 256 (order: 1, 6144 bytes, linear)
[    0.040542] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.040558] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.040741] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.040773] PCI: CLS 0 bytes, default 64
[    0.040983] Unpacking initramfs...
[    0.048031] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.053125] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.053134] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.109211] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.120356] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.123968] printk: legacy console [ttyS0] disabled
[    0.144379] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 72, base_baud = 2500000) is a ST16650V2
[    0.144421] printk: legacy console [ttyS0] enabled
[    0.926854] random: crng init done
[    0.932956] loop: module loaded
[    0.947252] spi-nand spi0.0: ESMT SPI NAND was found.
[    0.952308] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.961101] Signature found at block 1023 [0x07fe0000]
[    0.966243] NMBM management region starts at block 960 [0x07800000]
[    0.973652] First info table with writecount 0 found in block 960
[    0.982890] Second info table with writecount 0 found in block 963
[    0.989106] NMBM has been successfully attached
[    1.921109] Freeing initrd memory: 6308K
[    1.932625] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.938995] Creating 6 MTD partitions on "spi0.0":
[    1.943778] 0x000000000000-0x000000100000 : "BL2"
[    1.949746] 0x000000100000-0x000000180000 : "u-boot-env"
[    1.956024] 0x000000180000-0x000000380000 : "Factory"
[    1.963395] 0x000000380000-0x0000003c0000 : "bdinfo"
[    1.969208] 0x0000003c0000-0x0000005c0000 : "FIP"
[    1.975902] 0x0000005c0000-0x0000045c0000 : "ubi"
[    2.390400] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc081580000, irq 75
[    2.400275] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc081580000, irq 75
[    2.410223] i2c_dev: i2c /dev entries driver
[    2.416088] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.424904] NET: Registered PF_INET6 protocol family
[    2.430777] Segment Routing with IPv6
[    2.434459] In-situ OAM (IOAM) with IPv6
[    2.438436] NET: Registered PF_PACKET protocol family
[    2.443505] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.456788] 8021q: 802.1Q VLAN Support v1.8
[    2.480170] UBI: auto-attach mtd5
[    2.483494] ubi0: default fastmap pool size: 25
[    2.488032] ubi0: default fastmap WL pool size: 12
[    2.492813] ubi0: attaching mtd5
[    2.754757] ubi0: scanning is finished
[    2.763667] ubi0 warning: 0xffffffc080616068: cannot reserve enough PEBs for bad PEB handling, reserved 17, need 19
[    2.774583] ubi0: attached mtd5 (name "ubi", size 64 MiB)
[    2.780002] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.786871] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.793647] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.800606] ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[    2.806609] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    2.813818] ubi0: max/mean erase counter: 7/3, WL threshold: 4096, image sequence number: 1792215068
[    2.822940] ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 17
[    2.832162] ubi0: background thread "ubi_bgt0d" started, PID 616
[    2.832876] block ubiblock0_1: created from ubi0:1(rootfs)
[    2.843653] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    2.850708] clk: Disabling unused clocks
[    2.854888] PM: genpd: Disabling unused power domains
[    2.860276] Freeing unused kernel memory: 512K
[    2.864754] Run /init as init process
[    2.868424]   with arguments:
[    2.871380]     /init
[    2.873642]   with environment:
[    2.876778]     HOME=/
[    2.879127]     TERM=linux
[    3.149566] init: Console is alive
[    3.153080] init: - watchdog -
[    3.162168] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.169542] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.179762] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.196965] init: - preinit -
[    3.316553] mtk_soc_eth 15100000.ethernet eth1: PHY [mdio-bus:00] driver [MediaTek MT7981 PHY] (irq=POLL)
[    3.329727] mtk_soc_eth 15100000.ethernet eth1: configuring for phy/gmii link mode
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
[    7.528846] procd: - early -
[    7.531790] procd: - watchdog -
[    8.062738] procd: - watchdog -
[    8.066031] procd: - ubus -
[    8.120462] procd: - init -
Please press Enter to activate this console.
[    8.323222] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.341183] tun: Universal TUN/TAP device driver, 1.6
[    8.350910] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[    8.370717] Loading modules backported from Linux version v6.18.7-0-g5dfbc5357
[    8.378026] Backport generated by backports.git c8a37ce
[    8.527343] urngd: v1.0.2 started.
[    8.706701] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20240823161240a
[    8.727104] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20240823161304
[    8.766809] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20240823161841
[    8.864425] mt798x-wmac 18000000.wifi: registering led 'mt76-phy0'
[    8.918341] mt798x-wmac 18000000.wifi: registering led 'mt76-phy1'
[    9.011355] mtdblock: MTD device 'bdinfo' is NAND, please consider using UBI block devices instead.
[    9.025891] PPP generic driver version 2.4.2
[    9.031342] NET: Registered PF_PPPOX protocol family
[    9.038895] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    9.046756] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    9.060653] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.151116] mtdblock: MTD device 'bdinfo' is NAND, please consider using UBI block devices instead.
[   14.422477] mtk_soc_eth 15100000.ethernet eth1: PHY [mdio-bus:00] driver [MediaTek MT7981 PHY] (irq=POLL)
[   14.435922] mtk_soc_eth 15100000.ethernet eth1: configuring for phy/gmii link mode
[   14.448989] br-lan: port 1(eth1) entered blocking state
[   14.454226] br-lan: port 1(eth1) entered disabled state
[   14.459528] mtk_soc_eth 15100000.ethernet eth1: entered allmulticast mode
[   14.466471] mtk_soc_eth 15100000.ethernet eth1: entered promiscuous mode
[   14.485489] mtk_soc_eth 15100000.ethernet eth0: validation of  with support 00,00000000,00000000,00006000 and advertisement 00,00000000,00000000,00000000 failed: -EINVAL
[   14.606864] mtk_soc_eth 15100000.ethernet eth0: mtk_open: could not attach PHY: -22

61

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Log z konsoli do startowania kernela:

F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 0252 [010F]
Jump to BL

NOTICE:  BL2: v2.7(release):f0ff4aea06-dirty
NOTICE:  BL2: Built : 11:23:05, Sep 18 2025
NOTICE:  WDT: disabled
NOTICE:  EMI: Using DDR3 settings

dump toprgu registers data:
1001c000 | 00000000 0000ffe0 00000000 00000000
1001c010 | 00000fff 00000000 00f00000 00000000
1001c020 | 00000000 00000000 00000000 00000000
1001c030 | 003c0003 003c0003 00000000 00000000
1001c040 | 00000000 00000000 00000000 00000000
1001c050 | 00000000 00000000 00000000 00000000
1001c060 | 00000000 00000000 00000000 00000000
1001c070 | 00000000 00000000 00000000 00000000
1001c080 | 00000000 00000000 00000000 00000000

dump drm registers data:
1001d000 | 00000000 00000000 00000000 00000000
1001d010 | 00000000 00000000 00000000 00000000
1001d020 | 00000000 00000000 00000000 00000000
1001d030 | 00a083f1 000003ff 00100000 00000000
1001d040 | 00000000 00000000 00020303 000000ff
1001d050 | 00000000 00000000 00000000 00000000
1001d060 | 00000002 00000000 00000000 00000000
drm: 500 = 0x8
[DDR Reserve] ddr reserve mode not be enabled yet
DDR RESERVE Success 0
[EMI] ComboMCP not ready, using default setting
BYTE_swap:0
BYTE_swap:0
Window Sum 576, worse bit 0, min window 72
Window Sum 588, worse bit 8, min window 72
Window Sum 384, worse bit 0, min window 48
Window Sum 372, worse bit 8, min window 46
Window Sum 394, worse bit 2, min window 48
Window Sum 378, worse bit 9, min window 46
Window Sum 406, worse bit 1, min window 50
Window Sum 396, worse bit 9, min window 48
Window Sum 412, worse bit 2, min window 50
Window Sum 404, worse bit 9, min window 48
Window Sum 426, worse bit 3, min window 50
Window Sum 418, worse bit 9, min window 50
Window Sum 438, worse bit 0, min window 54
Window Sum 422, worse bit 9, min window 52
Window Sum 444, worse bit 3, min window 54
Window Sum 434, worse bit 9, min window 52
Window Sum 452, worse bit 1, min window 56
Window Sum 442, worse bit 9, min window 54
Window Sum 458, worse bit 2, min window 56
Window Sum 450, worse bit 14, min window 54
Window Sum 462, worse bit 3, min window 56
Window Sum 458, worse bit 9, min window 56
Window Sum 474, worse bit 3, min window 58
Window Sum 466, worse bit 8, min window 58
Window Sum 478, worse bit 4, min window 58
Window Sum 486, worse bit 2, min window 60
Window Sum 478, worse bit 8, min window 58
Window Sum 484, worse bit 8, min window 60
NOTICE:  EMI: Detected DRAM size: 256MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  CPU: MT7981 (1300MHz)
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0x8c
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  Initializing NMBM ...
NOTICE:  Signature found at block 1023 [0x07fe0000]
NOTICE:  First info table with writecount 0 found in block 960
NOTICE:  Second info table with writecount 0 found in block 963
NOTICE:  NMBM has been successfully attached in read-only mode
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):f0ff4aea06-dirty
NOTICE:  BL31: Built : 11:23:05, Sep 18 2025
NOTICE:  Hello BL31!!!


U-Boot 2022.07-rc3 (Sep 18 2025 - 11:23:05 +0000), Build: jenkins-mtk_mt7981_router_v2.4-46

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  256 MiB
Core:  48 devices, 20 uclasses, devicetree: embed

Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: ESMT SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached

Loading Environment from MTD... *** Warning - bad CRC, using default environment

In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - da:48:69:2d:82:47
eth0: ethernet@15100000
gpio: pin 6 (gpio 6) value is 0
gpio: pin 8 (gpio 8) value is 0
ubi0: attaching mtd7
ubi0: scanning is finished
ubi0: attached mtd7 (name "ubi", size 64 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 7/3, WL threshold: 4096, image sequence number: 1792215068
ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 19
Reading from volume 'kernel' to 0x46000000, size 0x0 ... OK
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.4.246
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x460000c0
     Data Size:    3254572 Bytes = 3.1 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48080000
     Entry Point:  0x48080000
     Hash algo:    crc32
     Hash value:   7db14024
     Hash algo:    sha1
     Hash value:   0ab4ab82785f183fe653c836e14abddc141c8f63
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt R91 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x4631ab20
     Data Size:    19273 Bytes = 18.8 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   971a1b41
     Hash algo:    sha1
     Hash value:   f4b79b3f810395192052a2c102b1a42891ec8cf6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x4631ab20
   Uncompressing Kernel Image
   Loading Device Tree to 000000004f7f1000, end 000000004f7f8b48 ... OK

Starting kernel ...

EDIT: Aby dostać się do konsoli, trzeba trzymać przycisk reset podczas bootowania routera.

Warning: ethernet@15100000 (eth0) using random MAC address - 4e:c7:4c:8e:ba:26
eth0: ethernet@15100000
gpio: pin 6 (gpio 6) value is 0
gpio: pin 8 (gpio 8) value is 0
RESET button is pressed for:  2 second(s)
LED 'oem:green:internet' not found (err=-19)

*** Upgrading oem fit Firmware ***

Using ethernet@15100000 device
TFTP from server 192.168.1.88; our IP address is 192.168.1.112
Filename 'recovery.bin'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
MT7981> help
?         - alias for 'help'
base      - print or set address offset
bdinfo    - print Board Info structure
blkcache  - block cache diagnostics and control
boot      - boot default, i.e., run 'bootcmd'
bootd     - boot default, i.e., run 'bootcmd'
bootefi   - Boots an EFI payload from memory
bootelf   - Boot from an ELF image in memory
bootflow  - Boot flows
booti     - boot Linux kernel 'Image' format from memory
bootm     - boot application image from memory
bootmenu  - ANSI terminal bootmenu
bootp     - boot image via network using BOOTP/TFTP protocol
bootvx    - Boot vxWorks from an ELF image
button    - manage buttons
cmp       - memory compare
coninfo   - print console devices and information
cp        - memory copy
crc32     - checksum calculation
custombtn - custom button check
echo      - echo args to console
editenv   - edit environment variable
env       - environment handling commands
erase     - erase FLASH memory
fdt       - flattened device tree utility commands
flinfo    - print FLASH memory information
go        - start application at address 'addr'
gpio      - query and control gpio pins
gzwrite   - unzip and write memory to block device
help      - print command description/usage
iminfo    - print header information for application image
imxtract  - extract a part of a multi-image
itest     - return true/false on integer compare
led       - manage LEDs
ledblink  - led blink
loadb     - load binary file over serial line (kermit mode)
loads     - load S-Record file over serial line
loadx     - load binary file over serial line (xmodem mode)
loady     - load binary file over serial line (ymodem mode)
loop      - infinite loop on address range
lzmadec   - lzma uncompress a memory region
md        - memory display
mm        - memory modify (auto-incrementing address)
mtd       - MTD utils
mtkautoboot- Display MediaTek bootmenu
mtkboardboot- Boot MTK firmware
mtkload   - MTK image loading utility
mtkupgrade- MTK firmware/bootloader upgrading utility
mtkupgrade_oem- MTK firmware/bootloader upgrading utility for oem firmware
mw        - memory write (fill)
nand      - NAND utility
net       - NET sub-system
nfs       - boot image via network using NFS protocol
nm        - memory modify (constant address)
nmbm      - NMBM utility commands
panic     - Panic with optional message
ping      - send ICMP ECHO_REQUEST to network host
pinmux    - show pin-controller muxing
printenv  - print environment variables
protect   - enable or disable FLASH write protection
pwm       - control pwm channels
random    - fill memory with random pattern
reset     - Perform RESET of the CPU
run       - run commands in an environment variable
saveenv   - save environment variables to persistent storage
setenv    - set environment variables
setexpr   - set environment variable as the result of eval expression
sf        - SPI flash sub-system
sleep     - delay execution for some time
smc       - Issue a Secure Monitor Call
source    - run script from memory
tftpboot  - boot image via network using TFTP protocol
unlz4     - lz4 uncompress a memory region
unzip     - unzip a memory region
version   - print monitor, compiler and linker version
MT7981>
MT7981> printenv
baudrate=115200
bootdelay=2
ethact=ethernet@15100000
ethaddr=4e:c7:4c:8e:ba:26
fdtcontroladdr=4ffc3b30
ipaddr=192.168.1.112
loadaddr=0x46000000
netmask=255.255.255.0
serverip=192.168.1.88
stderr=serial@11002000
stdin=serial@11002000
stdout=serial@11002000

62

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Dobra, mam dostęp do UART. Zdjęcie dla potomnych:

https://zapodaj.net/plik-0VVTlzSskh

63

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Zrobiłem jakiś próbny dts, ale nie wiem czy będzie poprawny:

// SPDX-License-Identifier: (GPL-2.0 OR MIT)

/dts-v1/;

#include "mt7981b.dtsi"

/ {
    aliases {
        label-mac-device = &gmac0;
        led-boot = &led_status;
        led-failsafe = &led_status;
        led-running = &led_status;
        led-upgrade = &led_status;
        serial0 = &uart0;
    };

    chosen {
        stdout-path = "serial0:115200n8";
    };

    gpio-keys {
        compatible = "gpio-keys";

        reset {
            label = "reset";
            gpios = <&pio 1 GPIO_ACTIVE_LOW>;
            linux,code = <KEY_RESTART>;
        };

        wps {
            label = "wps";
            gpios = <&pio 0 GPIO_ACTIVE_LOW>;
            linux,code = <KEY_WPS_BUTTON>;
        };
    };

    gpio_export {
        compatible = "gpio-export";
        #size-cells = <0>;

        voip_pwr {
            gpio-export,name = "voip_pwr";
            gpio-export,output = <0>;
            gpios = <&pio 4 GPIO_ACTIVE_LOW>;
        };

        voip_volte {
            gpio-export,name = "voip_volte";
            gpio-export,output = <1>;
            gpios = <&pio 5 GPIO_ACTIVE_LOW>;
        };

        modem_pwr {
            gpio-export,name = "modem_pwr";
            gpio-export,output = <0>;
            gpios = <&pio 6 GPIO_ACTIVE_LOW>;
        };
        
        usb5g {
            gpio-export,name = "4g";
            gpio-export,output = <0>;
            gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
        };
        
        ant {
            gpio-export,name = "ant";
            gpio-export,output = <0>;
            gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
        };
    };

    leds {
        compatible = "gpio-leds";

        led_status {
            function = LED_FUNCTION_STATUS;
            color = <LED_COLOR_ID_GREEN>;
            gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
        };

        wifi {
            function = LED_FUNCTION_WIFI;
            color = <LED_COLOR_ID_GREEN>;
            gpios = <&pio 13 GPIO_ACTIVE_HIGH>;
        };

        blue {
            function = LED_FUNCTION_;
            color = <LED_COLOR_ID_BLUE>;
            gpios = <&pio 14 GPIO_ACTIVE_HIGH>;
        };

        yellow {
            label = "oem:green:yellow";
            gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
        };

        red {
            label = "oem:green:red";
            gpios = <&pio 26 GPIO_ACTIVE_HIGH>;
        };

        signal-low {
            function = LED_FUNCTION_SIGNAL_LOW;
            color = <LED_COLOR_ID_RED>;
            gpios = <&pio 27 GPIO_ACTIVE_HIGH>;
        };

        signal-mid {
            function = LED_FUNCTION_SIGNAL_MID;
            color = <LED_COLOR_ID_YELLOW>;;
            gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
        };

        signal-high {
            function = LED_FUNCTION_SIGNAL_HIGH;
            color = <LED_COLOR_ID_WHITE>;
            gpios = <&pio 30 GPIO_ACTIVE_LOW>;
        };

    };
};

&uart0 {
    status = "okay";
};

&watchdog {
    status = "okay";
};

&eth {
    pinctrl-names = "default";
    pinctrl-0 = <&mdio_pins>;

    status = "okay";

    gmac0: mac@0 {
        compatible = "mediatek,eth-mac";
        reg = <0>;
        phy-mode = "2500base-x";

        nvmem-cell-names = "mac-address";
        nvmem-cells = <&macaddr_bdinfo_de00 0>;

        fixed-link {
            speed = <2500>;
            full-duplex;
            pause;
        };
    };

    gmac1: mac@1 {
        compatible = "mediatek,eth-mac";
        reg = <1>;
        status = "disabled";
    };
};

&mdio_bus {
    switch: switch@1f {
        compatible = "mediatek,mt7531";
        reg = <31>;
        reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
    };
};

&switch {
    ports {
        #address-cells = <1>;
        #size-cells = <0>;

        port@0 {
            reg = <0>;
            label = "wan";

            nvmem-cell-names = "mac-address";
            nvmem-cells = <&macaddr_bdinfo_de00 1>;
        };

        port@1 {
            reg = <1>;
            label = "lan";
        };

        port@6 {
            reg = <6>;
            label = "cpu";
            ethernet = <&gmac0>;
            phy-mode = "2500base-x";

            fixed-link {
                speed = <2500>;
                full-duplex;
                pause;
            };
        };
    };
};

&spi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_flash_pins>;
    status = "okay";

    spi_nand: spi_nand@0 {
        compatible = "spi-nand";
        reg = <0>;

        spi-max-frequency = <52000000>;
        spi-tx-bus-width = <4>;
        spi-rx-bus-width = <4>;

        mediatek,nmbm;
        mediatek,bmt-max-ratio = <1>;
        mediatek,bmt-max-reserved-blocks = <64>;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "BL2";
                reg = <0x0000000 0x0100000>;
                read-only;
            };

            partition@100000 {
                label = "u-boot-env";
                reg = <0x0100000 0x0080000>;
            };

            factory: partition@180000 {
                label = "Factory";
                reg = <0x0180000 0x0200000>;
                read-only;
            };

            bdinfo: partition@380000 {
                label = "bdinfo";
                reg = <0x0380000 0x0040000>;
                read-only;

                nvmem-layout {
                    compatible = "fixed-layout";
                    #address-cells = <1>;
                    #size-cells = <1>;

                    macaddr_bdinfo_de00: macaddr@de00 {
                        #nvmem-cell-cells = <1>;
                        compatible = "mac-base";
                        reg = <0xde00 0x6>;
                    };
                };
            };

            partition@3c0000 {
                label = "FIP";
                reg = <0x03c0000 0x0200000>;
                read-only;
            };

            partition@5c0000 {
                label = "ubi";
                reg = <0x05c0000 0x4000000>;
            };
        };
    };
};

&pio {
    spi0_flash_pins: spi0-pins {
        mux {
            function = "spi";
            groups = "spi0", "spi0_wp_hold";
        };

        conf-pu {
            pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
            drive-strength = <MTK_DRIVE_8mA>;
            bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
        };

        conf-pd {
            pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
            drive-strength = <MTK_DRIVE_8mA>;
            bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
        };

        pcie_pins: pcie-pins {
            mux {
                function = "pcie";
                groups = "pcie_clk", "pcie_wake", "pcie_perst";
            };

        };
    };
};

&xhci {
    vbus-supply = <&usb_vbus>;
    status = "okay";
};

&pcie {
    pinctrl-names = "default";
    pinctrl-0 = <&pcie_pins>;
    status = "okay";
};

&wifi {
    status = "okay";
    mediatek,mtd-eeprom = <&factory 0x0>;
};

64

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Teoretycznie jak by dobrze rozpisać te porty, to mógłbym go sflashować bezpośrednio. I mógłbym potem wrócić do oryginalnego firmware. Rozkład partycji jest ten sam jak w M3000.

65

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Udało mi się wyciągnąć też dts z pliku sysupgrade od cudy:


/dts-v1/;

/ {
    #address-cells = <0x01>;
    #size-cells = <0x01>;
    compatible = "mediatek,mt7981\0mediatek,mt7981-rfb";
    interrupt-parent = <0x01>;
    model = "mt7981-rfb";

    apmixedsys@1001e000 {
        #clock-cells = <0x01>;
        compatible = "mediatek,mt7981-fixed-plls";
        phandle = <0x03>;
        reg = <0x1001e000 0x1000>;
        u-boot,dm-pre-reloc;
    };

    chosen {
        stdout-path = "/serial@11002000";
        tick-timer = "/timer@10008000";
    };

    config {
        gpio_power_clr = <0x06 0x08>;
        reset_led = "oem:green:internet";
        system_led = "oem:green:status";
    };

    cpus {
        #address-cells = <0x01>;
        #size-cells = <0x00>;

        cpu@0 {
            compatible = "arm,cortex-a53";
            device_type = "cpu";
            reg = <0x00>;
        };

        cpu@1 {
            compatible = "arm,cortex-a53";
            device_type = "cpu";
            reg = <0x01>;
        };
    };

    ethernet@15100000 {
        #address-cells = <0x01>;
        #size-cells = <0x00>;
        compatible = "mediatek,mt7981-eth\0syscon";
        mediatek,ethsys = <0x09>;
        mediatek,gmac-id = <0x00>;
        mediatek,sgmiisys = <0x0a>;
        mediatek,switch = "mt7531";
        phy-mode = "sgmii";
        reg = <0x15100000 0x20000>;
        reset-gpios = <0x0b 0x27 0x00>;
        reset-names = "fe";
        resets = <0x09 0x06>;
        status = "okay";

        fixed-link {
            full-duplex;
            speed = <0x3e8>;
        };
    };

    gpio-keys-polled {
        compatible = "gpio-keys";

        reset-button {
            gpios = <0x0b 0x01 0x01>;
            label = "reset";
        };
    };

    gpt_dummy20m {
        #clock-cells = <0x00>;
        clock-frequency = <0xc65d40>;
        compatible = "fixed-clock";
        phandle = <0x02>;
        u-boot,dm-pre-reloc;
    };

    infracfg@10001000 {
        #clock-cells = <0x01>;
        clock-parent = <0x05>;
        compatible = "mediatek,mt7981-infracfg";
        phandle = <0x04>;
        reg = <0x10001000 0x30>;
        u-boot,dm-pre-reloc;
    };

    infracfg_ao@10001000 {
        #clock-cells = <0x01>;
        clock-parent = <0x04>;
        compatible = "mediatek,mt7981-infracfg_ao";
        phandle = <0x06>;
        reg = <0x10001000 0x80>;
        u-boot,dm-pre-reloc;
    };

    interrupt-controller@c000000 {
        #interrupt-cells = <0x03>;
        compatible = "arm,gic-v3";
        interrupt-controller;
        interrupt-parent = <0x01>;
        interrupts = <0x01 0x09 0x04>;
        phandle = <0x01>;
        reg = <0xc000000 0x40000 0xc080000 0x200000>;
    };

    leds {
        compatible = "gpio-leds";

        led@0 {
            gpios = <0x0b 0x02 0x00>;
            label = "oem:green:status";
        };

        led@1 {
            gpios = <0x0b 0x0d 0x00>;
            label = "oem:green:wifi";
        };

        led@2 {
            gpios = <0x0b 0x0e 0x00>;
            label = "oem:green:blue";
        };

        led@3 {
            gpios = <0x0b 0x0f 0x00>;
            label = "oem:green:yellow";
        };

        led@4 {
            gpios = <0x0b 0x1a 0x00>;
            label = "oem:green:red";
        };

        led@5 {
            gpios = <0x0b 0x1b 0x00>;
            label = "oem:green:siglow";
        };

        led@6 {
            gpios = <0x0b 0x1c 0x00>;
            label = "oem:green:sigmid";
        };

        led@7 {
            gpios = <0x0b 0x1e 0x01>;
            label = "oem:green:sighigh";
        };
    };

    memory@40000000 {
        device_type = "memory";
        reg = <0x40000000 0x20000000>;
    };

    mmc@11230000 {
        assigned-clock-parents = <0x05 0x1c 0x05 0x02>;
        assigned-clocks = <0x05 0x55 0x05 0x54>;
        clock-names = "source\0hclk\0source_cg";
        clocks = <0x05 0x34 0x05 0x33 0x06 0x1f>;
        compatible = "mediatek,mt7981-mmc";
        interrupts = <0x00 0x8f 0x04>;
        reg = <0x11230000 0x1000 0x11c20000 0x1000>;
        status = "disabled";
    };

    pinctrl@11d00000 {
        compatible = "mediatek,mt7981-pinctrl";
        reg = <0x11d00000 0x1000 0x11c00000 0x1000 0x11c10000 0x1000 0x11d20000 0x1000 0x11e00000 0x1000 0x11e20000 0x1000 0x11f00000 0x1000 0x11f10000 0x1000 0x1000b000 0x1000>;
        reg-names = "gpio_base\0iocfg_rt_base\0iocfg_rm_base\0iocfg_rb_base\0iocfg_lb_base\0iocfg_bl_base\0iocfg_tm_base\0iocfg_tl_base\0eint";

        gpio-controller {
            #gpio-cells = <0x02>;
            gpio-controller;
            phandle = <0x0b>;
        };

        one-pwm-pins {

            mux {
                function = "pwm";
                groups = "pwm0_1";
            };
        };

        spi0-pins-func-1 {
            phandle = <0x0c>;

            conf-pd {
                bias-pull-down = <0x67>;
                drive-strength = <0x08>;
                pins = "SPI0_CLK\0SPI0_MOSI\0SPI0_MISO";
            };

            conf-pu {
                bias-pull-up = <0x67>;
                drive-strength = <0x08>;
                pins = "SPI0_CS\0SPI0_HOLD\0SPI0_WP";
            };

            mux {
                function = "flash";
                groups = "spi0\0spi0_wp_hold";
            };
        };

        spi1-pins-func-1 {

            mux {
                function = "spi";
                groups = "spi1_1";
            };
        };

        spi1-pins-func-3 {
            phandle = <0x08>;

            mux {
                function = "uart";
                groups = "uart1_2";
            };
        };

        three-pwm-pins {

            mux {
                function = "pwm";
                groups = "pwm0_1\0pwm1_0\0pwm2";
            };
        };

        two-pwm-pins {
            phandle = <0x07>;

            mux {
                function = "pwm";
                groups = "pwm0_1\0pwm1_0";
            };
        };
    };

    pwm@10048000 {
        #clock-cells = <0x01>;
        #pwm-cells = <0x02>;
        assigned-clock-parents = <0x05 0x00>;
        assigned-clocks = <0x05 0x51>;
        clock-names = "top\0main\0pwm1\0pwm2\0pwm3";
        clocks = <0x04 0x05 0x06 0x2d 0x06 0x03 0x06 0x04 0x06 0x04>;
        compatible = "mediatek,mt7981-pwm";
        interrupts = <0x00 0x89 0x04>;
        pinctrl-0 = <0x07>;
        pinctrl-names = "default";
        reg = <0x10048000 0x1000>;
        status = "okay";
    };

    serial@11002000 {
        assigned-clock-parents = <0x05 0x00 0x04 0x01>;
        assigned-clocks = <0x05 0x50 0x06 0x25>;
        clocks = <0x06 0x12>;
        compatible = "mediatek,hsuart";
        interrupts = <0x00 0x7b 0x04>;
        mediatek,force-highspeed;
        reg = <0x11002000 0x400>;
        status = "okay";
        u-boot,dm-pre-reloc;
    };

    serial@11003000 {
        assigned-clock-parents = <0x05 0x00 0x04 0x01>;
        assigned-clocks = <0x05 0x50 0x06 0x26>;
        clocks = <0x06 0x13>;
        compatible = "mediatek,hsuart";
        interrupts = <0x00 0x7c 0x04>;
        mediatek,force-highspeed;
        pinctrl-0 = <0x08>;
        pinctrl-names = "default";
        reg = <0x11003000 0x400>;
        status = "disabled";
    };

    serial@11004000 {
        assigned-clock-parents = <0x05 0x00 0x04 0x01>;
        assigned-clocks = <0x05 0x50 0x06 0x27>;
        clocks = <0x06 0x14>;
        compatible = "mediatek,hsuart";
        interrupts = <0x00 0x7c 0x04>;
        mediatek,force-highspeed;
        reg = <0x11004000 0x400>;
        status = "disabled";
    };

    snand@11005000 {
        assigned-clock-parents = <0x05 0x06 0x05 0x06>;
        assigned-clocks = <0x05 0x4d 0x05 0x4c>;
        clock-names = "pad_clk\0nfi_clk\0nfi_hclk";
        clocks = <0x06 0x18 0x06 0x17 0x06 0x19>;
        compatible = "mediatek,mt7986-snand";
        reg = <0x11005000 0x1000 0x11006000 0x1000>;
        reg-names = "nfi\0ecc";
        status = "disabled";
    };

    spi@11009000 {
        assigned-clock-parents = <0x05 0x02 0x05 0x02>;
        assigned-clocks = <0x05 0x4e 0x04 0x28>;
        clock-names = "sel-clk\0spi-clk";
        clocks = <0x06 0x1a 0x05 0x4e>;
        compatible = "mediatek,ipm-spi";
        interrupts = <0x00 0x8e 0x04>;
        reg = <0x11009000 0x100>;
        status = "disabled";
    };

    spi@1100a000 {
        #address-cells = <0x01>;
        #size-cells = <0x00>;
        assigned-clock-parents = <0x05 0x02 0x05 0x02>;
        assigned-clocks = <0x05 0x4e 0x04 0x28>;
        clock-names = "sel-clk\0spi-clk";
        clocks = <0x06 0x1a 0x05 0x4e>;
        compatible = "mediatek,ipm-spi";
        dma_ext;
        enhance_timing;
        interrupts = <0x00 0x8c 0x04>;
        ipm_design;
        must_tx;
        pinctrl-0 = <0x0c>;
        pinctrl-names = "default";
        reg = <0x1100a000 0x100>;
        sample_sel = <0x00>;
        status = "okay";
        support_quad;
        tick_dly = <0x02>;

        spi_nand@0 {
            compatible = "spi-nand";
            reg = <0x00>;
            spi-max-frequency = <0x3197500>;
        };
    };

    spi@1100b000 {
        compatible = "mediatek,ipm-spi";
        interrupts = <0x00 0x8d 0x04>;
        reg = <0x1100b000 0x100>;
        status = "disabled";
    };

    syscon@10060000 {
        #clock-cells = <0x01>;
        compatible = "mediatek,mt7986-sgmiisys\0syscon";
        phandle = <0x0a>;
        pn_swap;
        reg = <0x10060000 0x1000>;
    };

    syscon@10070000 {
        #clock-cells = <0x01>;
        compatible = "mediatek,mt7986-sgmiisys\0syscon";
        reg = <0x10070000 0x1000>;
    };

    syscon@15000000 {
        #clock-cells = <0x01>;
        #reset-cells = <0x01>;
        clock-parent = <0x05>;
        compatible = "mediatek,mt7981-ethsys\0syscon";
        phandle = <0x09>;
        reg = <0x15000000 0x1000>;
    };

    timer {
        arm,cpu-registers-not-fw-configured;
        clock-frequency = <0xc65d40>;
        compatible = "arm,armv8-timer";
        interrupt-parent = <0x01>;
        interrupts = <0x01 0x0d 0x08 0x01 0x0e 0x08 0x01 0x0b 0x08 0x01 0x0a 0x08>;
    };

    timer@10008000 {
        clock-names = "gpt-clk";
        clocks = <0x02>;
        compatible = "mediatek,mt7986-timer";
        interrupts = <0x00 0x82 0x04>;
        reg = <0x10008000 0x1000>;
        u-boot,dm-pre-reloc;
    };

    topckgen@1001b000 {
        #clock-cells = <0x01>;
        clock-parent = <0x03>;
        compatible = "mediatek,mt7981-topckgen";
        phandle = <0x05>;
        reg = <0x1001b000 0x1000>;
        u-boot,dm-pre-reloc;
    };

    watchdog@1001c000 {
        #reset-cells = <0x01>;
        compatible = "mediatek,mt7986-wdt";
        interrupts = <0x00 0x6e 0x04>;
        reg = <0x1001c000 0x1000>;
        status = "disabled";
    };
};

66

(91 odpowiedzi, napisanych Sprzęt / Hardware)

Jak w tytule nabyłem ten wynalazek z myślą o potencjalnym zrobieniu OpenWRT do tego. Napisałem do Cudy i podesłali mi soft przejściowy, i referencyjny dts którego użyli. DTS wstawię tutaj, a log na pastebin. Soc to mt7981b, ram 256, flash 128, 2 porty 1 gigabit. Modem 5g to Quectel RG500U-EB, sterownik który to obsługuję w sofcie cudy to quectel sprd pcie. Modem jest na pcie0, tak się przedstawia, daje porty ttyUSB0-4. Potężny minus jest taki, że nie mam dostępu do uart, może jest pod chłodzeniem, ale jeszcze go nie rozebrałem do tego stopnia. Rozkład partycji za to jest taki sam jak w Cudy M3000. Może komuś się to info przyda, albo chociaż mnie nakieruję, jak zdefiniować porty ethernet.

DTS:

/dts-v1/;
#include "mt7981.dtsi"
/ {
    model = "MediaTek MT7981 RFB/R91";
    compatible = "mediatek,mt7981-spim-snand-rfb";
    chosen {
        bootargs = "console=ttyS0,115200n1 loglevel=8  \
                earlycon=uart8250,mmio32,0x11002000";
    };

    memory {
        // fpga ddr2: 128MB*2
        reg = <0 0x40000000 0 0x10000000>;
    };

    gsw: gsw@0 {
                compatible = "mediatek,mt753x";
                mediatek,ethsys = <&ethsys>;
                #address-cells = <1>;
                #size-cells = <0>;
    };

    gpio-leds {
        compatible = "gpio-leds";
        status {
            label = "oem:green:status";
            gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
        };

        wifi {
            label = "oem:green:wifi";
            gpios = <&pio 13 GPIO_ACTIVE_HIGH>;
        };

        blue {
            label = "oem:green:blue";
            gpios = <&pio 14 GPIO_ACTIVE_HIGH>;
        };

        yellow {
            label = "oem:green:yellow";
            gpios = <&pio 15 GPIO_ACTIVE_HIGH>;
        };

        red {
            label = "oem:green:red";
            gpios = <&pio 26 GPIO_ACTIVE_HIGH>;
        };

        siglow {
            label = "oem:green:siglow";
            gpios = <&pio 27 GPIO_ACTIVE_HIGH>;
        };

        sigmid {
            label = "oem:green:sigmid";
            gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
        };

        sighigh {
            label = "oem:green:sighigh";
            gpios = <&pio 30 GPIO_ACTIVE_LOW>;
        };
    };

    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;

        reset {
            label = "reset";
            gpios = <&pio 1 GPIO_ACTIVE_LOW>;
            linux,code = <KEY_RESTART>;
        };

        wps {
            label = "wps";
            gpios = <&pio 0 GPIO_ACTIVE_LOW>;
            linux,code = <KEY_WPS_BUTTON>;
        };
    };

    gpio_export {
        compatible = "gpio-export";
        #size-cells = <0>;

        voippwr {
            gpio-export,name = "voippwr";
            gpio-export,output = <0>;
            gpios = <&pio 4 GPIO_ACTIVE_LOW>;
        };

        voip_volte {
            gpio-export,name = "voip_volte";
            gpio-export,output = <1>;
            gpios = <&pio 5 GPIO_ACTIVE_LOW>;
        };

        5gpwr {
            gpio-export,name = "pwr";
            gpio-export,output = <0>;
            gpios = <&pio 6 GPIO_ACTIVE_LOW>;
        };
        
        usb5g {
            gpio-export,name = "4g";
            gpio-export,output = <0>;
            gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
        };
        
        ant {
            gpio-export,name = "ant";
            gpio-export,output = <0>;
            gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
        };
    };

    nmbm_spim_nand {
        compatible = "generic,nmbm";

        #address-cells = <1>;
        #size-cells = <1>;

        lower-mtd-device = <&spi_nand>;
        forced-create;

        partitions {
            compatible = "fixed-partitions";
            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "BL2";
                reg = <0x00000 0x0100000>;
                read-only;
            };

            partition@100000 {
                label = "u-boot-env";
                reg = <0x0100000 0x0080000>;
            };

            partition@180000 {
                label = "Factory";
                reg = <0x180000 0x0200000>;
            };
            
            bdinfo: partition@380000 {
                label = "bdinfo";
                reg = <0x380000 0x0040000>;
            };

            partition@3C0000 {
                label = "FIP";
                reg = <0x3C0000 0x0200000>;
            };

            partition@5C0000 {
                label = "ubi";
                reg = <0x5C0000 0x4000000>;
            };
        };
    };

    sound_wm8960 {
        compatible = "mediatek,mt79xx-wm8960-machine";
        mediatek,platform = <&afe>;
        audio-routing = "Headphone", "HP_L",
                "Headphone", "HP_R",
                "LINPUT1", "AMIC",
                "RINPUT1", "AMIC";
        mediatek,audio-codec = <&wm8960>;
        status = "disabled";
    };

    sound_si3218x {
        compatible = "mediatek,mt79xx-si3218x-machine";
        mediatek,platform = <&afe>;
        mediatek,ext-codec = <&proslic_spi>;
        status = "disabled";
    };
};

&afe {
    pinctrl-names = "default";
    pinctrl-0 = <&pcm_pins>;
    status = "okay";
};

&i2c0 {
    pinctrl-names = "default";
    pinctrl-0 = <&i2c_pins>;
    status = "disabled";

    wm8960: wm8960@1a {
        compatible = "wlf,wm8960";
        reg = <0x1a>;
    };
};

&uart0 {
    status = "okay";
};

&watchdog {
    status = "okay";
};

&eth {
        status = "okay";
        lower-mtd-name = "bdinfo";

        gmac0: mac@0 {
            compatible = "mediatek,eth-mac";
            reg = <0>;
            mtd-mac-address = <&bdinfo 0xDE00>;
            phy-mode = "2500base-x";

            fixed-link {
                speed = <2500>;
                full-duplex;
                pause;
            };
        };
        
        mdio: mdio-bus {
            #address-cells = <1>;
            #size-cells = <0>;
        };
};

&gsw {
        mediatek,mdio = <&mdio>;
        mediatek,portmap = "wllll";
        mediatek,mdio_master_pinmux = <1>;
        reset-gpios = <&pio 39 0>;
        interrupt-parent = <&pio>;
        interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
        status = "okay";

        port6: port@6 {
                compatible = "mediatek,mt753x-port";
                reg = <6>;
                phy-mode = "sgmii";
                fixed-link {
                        speed = <2500>;
                        full-duplex;
                };
        };
};

&hnat {
    mtketh-wan = "eth0.2";
    mtketh-lan = "eth0.1";
    mtketh-ppd = "eth0";
    mtketh-max-gmac = <1>;
    status = "okay";
};

&spi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_flash_pins>;
    status = "okay";
    spi_nand: spi_nand@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "spi-nand";
        reg = <0>;
        spi-max-frequency = <52000000>;
        spi-tx-bus-width = <4>;
        spi-rx-bus-width = <4>;
    };
};

&spi1 {
    pinctrl-names = "default";
    pinctrl-0 = <&spic_pins>;
    status = "disabled";

    proslic_spi: proslic_spi@0 {
        compatible = "silabs,proslic_spi";
        reg = <0>;
        spi-max-frequency = <10000000>;
        spi-cpha = <1>;
        spi-cpol = <1>;
        channel_count = <1>;
        debug_level = <4>;       /* 1 = TRC, 2 = DBG, 4 = ERR */
        reset_gpio = <&pio 15 0>;
        ig,enable-spi = <1>;     /* 1: Enable, 0: Disable */
    };
};

&pio {

    i2c_pins: i2c-pins-g0 {
                mux {
                        function = "i2c";
                        groups = "i2c0_0";
                };
        };

        pcm_pins: pcm-pins-g0 {
                mux {
                        function = "pcm";
                        groups = "pcm";
                };
        };

        pwm0_pin: pwm0-pin-g0 {
                mux {
                        function = "pwm";
                        groups = "pwm0_0";
                };
        };

        pwm1_pin: pwm1-pin-g0 {
                mux {
                        function = "pwm";
                        groups = "pwm1_0";
                };
        };

        pwm2_pin: pwm2-pin {
                mux {
                        function = "pwm";
                        groups = "pwm2";
                };
        };

    spi0_flash_pins: spi0-pins {
        mux {
            function = "spi";
            groups = "spi0", "spi0_wp_hold";
        };

        conf-pu {
            pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
            drive-strength = <MTK_DRIVE_8mA>;
            bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
        };

        conf-pd {
            pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
            drive-strength = <MTK_DRIVE_8mA>;
            bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
        };
    };

    spic_pins: spi1-pins {
        mux {
            function = "spi";
            groups = "spi1_1";
        };
    };

    uart1_pins: uart1-pins-g1 {
                mux {
                        function = "uart";
                        groups = "uart1_1";
                };
        };

    uart2_pins: uart2-pins-g1 {
        mux {
                        function = "uart";
                        groups = "uart2_1";
                };
        };

    pcie_pins: pcie-pins {
        mux {
            function = "pcie";
            groups = "pcie_clk", "pcie_wake", "pcie_pereset";
        };

    };

};

&xhci {
    phys = <&u2port0 PHY_TYPE_USB2>;
    status = "okay";
};

&pcie {
    pinctrl-names = "default";
    pinctrl-0 = <&pcie_pins>;
    status = "okay";
};

Link do bootlogu:  https://pastebin.com/B6yTU1g5

67

(642 odpowiedzi, napisanych Sprzęt / Hardware)

Dopiero teraz miałem czas aby zrobić obraz i przetestować. Twoje paczki są lepsze w tym, że przypisują DNS-y operatora, to po pierwsze, po drugie, obciążają oba rdzenie jednocześnie, więc super. Co do prędkości to o 16.50 w Play, miałem 390-400 download, a upload był 100-110. Także jak dla mnie super. Te paczki są zdecydowanie lepsze od moich co ci podesłałem smile

Cezary, zrobiłem nowy obraz 25.12 dla GL-MT3000, ale gdy próbuję go wgrać mam błąd image verification check failed, no space left on device, mimo że mam 200mb wolnego miejsca. Coś było też o sysupgrade.tar, ale nie pamiętam co.

69

(642 odpowiedzi, napisanych Sprzęt / Hardware)

Da się wyjąć spokojnie, tylko trzeba lekko zmodyfikować Makefile, bo teraz jest to powiązane z całym qmodem. Swoją drogą, w forku też to jest quectel-cm-5g-m.

70

(642 odpowiedzi, napisanych Sprzęt / Hardware)

Najbardziej to mnie wkurza ten luci-proto-quectel. Nie działa to z żadną inną wersją quectel-cm. Sam quectel-cm-5g-m, bo tak to się nazywa w qmodem, można wyjąć i kompiluje się bez problemu. Natomiast to luci-proto-quectel, nawet jak się skompiluje, to nie widać protokołu w luci...

71

(642 odpowiedzi, napisanych Sprzęt / Hardware)

Udało mi się skompilować obraz z pakietami od QModem, i co ciekawe na tym obrazie podczas speed-testu pobierania zużycie procka to ok. 80 procent. Nie dobija do 90-100 procent jak na tych moich pakietach od Quectela. Także, to na pewno wina skopanego quectel-cm.

EDIT:

Ten pakiet QModem jest znacznie lepszy. Z włączonym hardware offloadingiem, zużycie CPU to 65-75 procent podczas speed-testu i udało mi się dojść do 550 download.

72

(1,014 odpowiedzi, napisanych Sprzęt / Hardware)

Dobra, po odblokowaniu mtd14 ustawiłem te zmienne, i router restartuje bez problemu.

73

(1,014 odpowiedzi, napisanych Sprzęt / Hardware)

Unlocking /dev/mtd14 ...

74

(1,014 odpowiedzi, napisanych Sprzęt / Hardware)

Teraz mam to:

insmod mtd-rw.ko i_want_a_brick=1
failed to insert /lib/modules/6.12.74/mtd-rw.ko

75

(1,014 odpowiedzi, napisanych Sprzęt / Hardware)

Oto wynik:

root@AW1000-NSS-WWAN:~# fw_printenv
baudrate=115200
bootargs=console=ttyMSM0,115200n8 pcie_dev=RG50
bootcmd=bootipq
bootdelay=2
fdtcontroladdr=4a9727a0
flash_type=2
ipaddr=192.168.1.254
machid=8010008
netmask=255.255.255.0
serverip=192.168.1.2
soc_version_major=2
soc_version_minor=0
stderr=serial@78B3000
stdin=serial@78B3000
stdout=serial@78B3000
bootcount=0