Support for Comfast CF-EW72 V2 MT7621

ok, but where I have to put the DTS File and how can I select this for the first build?
I create a DTS file in ./target/linux/ramips/dts
what is next step to see this in make menuconfig?

ok I add now a profile to the imager builder.
But I get this error:

make[3]: *** No rule to make target '/openwrt-imagebuilder-21.02.2-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/comfast_cf-ew72-v2-kernel.bin',

what is missing...

I start new with this [https://openwrt.org/docs/guide-developer/adding_new_device]
(https://openwrt.org/docs/guide-developer/adding_new_device)

and was able to compile the image.

But this to the device, it shows only this, not able to boot.
@123serge123 is there something what I need to do in make menuconfig?

tftpboot 80001000 initramfs.bin
Using eth@1e100000 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'initramfs.bin'.
Load address: 0x80001000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####
         3.7 MiB/s
done
Bytes transferred = 5778430 (582bfe hex)
=> go 80001000
## Starting application at 0x80001000 ...

Ooops:
$ 0   : 00000000 00000000 0000002a be000c00
$ 4   : 00000001 87e9ef0c 87e9ef0c 00000001
$ 8   : 00000000 00000004 87fea3f0 0000000f
$12   : 000000cd 0000000d 00000004 00000002
$16   : 00000002 87e9ef08 80001000 87e9ef08
$20   : 87e9ef4c 00000002 00000020 00001000
$24   : 00000200 80001000
$28   : 443b6014 87e9eca0 80007b40 87fb3b28
Hi    : 00000041
Lo    : 01bb1190
epc   : 80001000 (text 78251000)
ra    : 87fb3b28 (text 80203b28)
Status: 00000006
Cause : d0008028 (ExcCode 0a)
PrId  : 0001992f
### ERROR ### Please RESET the board ###

For use standard (packed) initramfs image you need something like:

tftpboot 81000000 initramfs.bin
bootm 81000000
1 Like

ok now able too boot openwrt

openwrt serial boot log

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.08.05 15:31:44 =~=~=~=~=~=~=~=~=~=~=~=
bootm 81000000
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-5.4.188
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    5778366 Bytes = 5.5 MiB
   Load Address: 80001000
   Entry Point:  80001000
 Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
[    0.000000] Linux version 5.4.188 (freetz@freetz) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 SMP Sat Apr 16 12:59:34 2022
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Comfast CF-EW72 v2
[    0.000000] Initrd not found or empty - disabling initrd
[  00.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[  08<.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 14 pages/cpu s26736 r8192 d22416 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=0000fa60
[    0.000000] Readback ErrCtl register=0000fa60
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 117520K/131072K available (5830K kernel code, 201K rwdata, 1252K rodata, 4480K init, 230K bss, 13552K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[   08.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x36c/0x584 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000008] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007796] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.041989] pid_max: default: 32768 minimum: 301
[    0.046755] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.053977] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.064255] rcu: Hierarchical SRCU implementation.
[    0.069646] smp: Bringing up secondary CPUs ...
[    8.196522] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    8.196533] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    8.196544] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    8.196641] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.102366] Synchronize counters for CPU 1: done.
[    7.932363] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.932371] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.932379] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.932436] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.167010] Synchronize counters for CPU 2: done.
[    7.995963] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.995970] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.995978] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.996038] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.224864] Synchronize counters for CPU 3: done.
[    0.254735] smp: Brought up 1 node, 4 CPUs
[    0.263257] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.272932] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.279929] pinctrl core: initialized pinctrl subsystem
[    0.286603] NET: Registered protocol family 16
[    0.319168] clocksource: Switched to clocksource GIC
[    0.325794] NET: Registered protocol family 2
[    0.330278] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.337970] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[  r] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.353855] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.360859] TCP: Hash tables configured (established 1024 bind 1024)
[    0.367288] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.373767] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.380897] NET: Registered protocol family 1
[    0.385215] PCI: CLS 0 bytes, default 32
[    4.439137] 4 CPUs re-calibrate udelay(lpj = 1167360)
[   04.445862] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    4.454488] random: fast init done
[    4.464820] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    4.470588] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    4.483309] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    4.489110] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    4.494929] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    4.501173] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    4.508759] printk: console [ttyS0] disabled
[    4.513037] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    4.522015] printk: console [ttyS0] enabled
[  884.522015] printk: console [ttyS0] enabled
[    4.530273] printk: bootconsole [early0] disabled
[    4.530273] printk: bootconsole [early0] disabled
[    4.542195] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    4.548576] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    4.553790] 4 fixed-partitions partitions found on MTD device spi0.0
[    4.560158] Creating 4 MTD partitions on "spi0.0":
[    4.564952] 0x000000000000-0x000000030000 : "u-boot"
[    4.571166] 0x000000030000-0x000000040000 : "config"
[    4.577237] 0x000000040000-0x000000050000 : "factory"
[    4.583522] 0x000000050000-0x000001000000 : "firmware"
[    4.589995] 2 uimage-fw partitions found on MTD device firmware
[    4.595938] Creating 2 MTD partitions on "firmware":
[    4.601002] 0x000000000000-0x0000001ac104 : "kernel"
[    4.607095] 0x0000001ac104-0x000000fb0000 : "rootfs"
[    4.613133] mtd: device 5 (rootfs) set to be root filesystem
[    4.618880] 1 squashfs-split partitions found on MTD device rootfs
[    4.625060] 0x0000008b0000-0x000000fb0000 : "rootfs_data"
[    4.657869] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    4.666517] mtk_soc_eth 1e100000.ethernet: generated random MAC address 92:1c:31:e0:6c:9f
[    4.675629] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[   04.686114] mt7621-pci 1e140000.pcie: Parsing DT failed
[    4.693858] NET: Registered protocol family 10
[    4.699814] Segment Routing with IPv6
[    4.703633] NET: Registered protocol family 17
[    4.708422] 8021q: 802.1Q VLAN Support v1.8
[    4.714563] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    4.803354] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    4.813107] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    4.822817] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    4.832557] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    4.842261] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    4.851995] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    4.863218] DSA: tree 0 setup
[    4.866482] rt2880-pinmux pinctrl: pcie is already enabled
[    4.872106] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    4.879682] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    4.987080] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    4.992659] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    5.098160] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    5.105108] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    5.109974] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    5.114847] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    5.124288] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    5.130638] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    5.137499] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    5.144360] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.149870] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    5.155901] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    5.162158] pci 0000:00:00.0: reg 0x14: [mem 0x60500000-0x6050ffff]
[    5.168481] pci 0000:00:00.0: supports D1
[    5.172486] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    5.178559] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    5.184601] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    5.190857] pci 0000:00:01.0: reg 0x14: [mem 0x60510000-0x6051ffff]
[    5.197176] pci 0000:00:01.0: supports D1
[    5.201180] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    5.208437] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    5.214485] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    5.220877] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    5.228326] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    5.233554] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    5.239638] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    5.246409] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    5.253620] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    5.260413] pci 0000:02:00.0: [14c3:7663] type 00 class 0x000280
[    5.266465] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[    5.273689] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[    5.280909] pci 0000:02:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[    5.288230] pci 0000:02:00.0: supports D1 D2
[    5.292495] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    5.299141] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    5.314244] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    5.319476] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[   05.325556] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    5.332331] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x604fffff pref]
[    5.339542] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[  085.346191] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    5.352793] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    5.359742] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[  0 5.366338] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    5.373287] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    5.380064] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    5.387272] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    5.394045] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x604fffff pref]
[    5.401254] pci 0000:00:00.0: BAR 1: assigned [mem 0x60500000-0x6050ffff]
[    5.408036] pci 0000:00:01.0: BAR 1: assigned [mem 0x60510000-0x6051ffff]
[    5.414811] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    5.421587] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    5.428375] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    5.435152] pci 0000:00:00.0: PCI bridge to [bus 01]
[    5.440117] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    5.446888] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    5.453664] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    5.460880] pci 0000:02:00.0: BAR 0: assigned [mem 0x60300000-0x603fffff 64bit pref]
[    5.468621] pci 0000:02:00.0: BAR 2: assigned [mem 0x60400000-0x60403fff 64bit pref]
[    5.476361] pci 0000:02:00.0: BAR 4: assigned [mem 0x60404000-0x60404fff 64bit pref]
[    5.484097] pci 0000:00:01.0: PCI bridge to [bus 02]
[    5.489052] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    5.495827] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    5.502598] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x604fffff pref]
[    5.510337] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    5.510685] hctosys: unable to open rtc device (rtc0)
[    5.539422] Freeing unused kernel memory: 4480K
[    5.543961] This architecture does not have kernel memory protection.
[    5.550379] Run /init as init process
[    6.012612] init: Console is alive
[    6.016550] init: - watchdog -
[    6.032333] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.048648] usbcore: registered new interface driver usbfs
[    6.054276] usbcore: registered new interface driver hub
[    6.059722] usbcore: registered new device driver usb
[    6.074557] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vbus not found, using dummy regulator
[    6.083314] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[    6.092274] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.097609] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.111358] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    6.120581] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
[    6.127689] hub 1-0:1.0: USB hub found
[    6.131546] hub 1-0:1.0: 2 ports detected
[    6.136250] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.141594] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.149078] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[    6.155609] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.164616] hub 2-0:1.0: USB hub found
[    6.168476] hub 2-0:1.0: 1 port detected
[    6.177550] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.187480] init: - preinit -
[    6.322652] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    6.330947] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.339413] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.402992] random: jshn: uninitialized urandom read (4 bytes read)
[    6.467529] random: jshn: uninitialized urandom read (4 bytes read)
[   06.505992] random: jshn: uninitialized urandom read (4 bytes read)
[   r] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    6.732948] 8021q: adding VLAN 0 to HW filter on device lan1
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
[   10.881417] procd: - early -
[   10.884425] procd: - watchdog -
[   11.427330] procd: - watchdog -
[   11.430862] procd: - ubus -
[   11.490585] procd: - init -
Please press Enter to activate this console.
[   11.809574] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.828195] Loading modules backported from Linux version v5.10.110-0-g3238bffaf992
[   11.835854] Backport generated by backports.git v5.10.110-1-0-g1fbde860
[   11.857594] xt_time: kernel timezone is -0000
[   11.908848] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=23
[   11.914299] pci 0000:00:00.0: enabling device (0006 -> 0007)
[   11.919962] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[  11.926169] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   11.965915] urngd: v1.0.2 started.
[   12.104577] crng init done
[   12.107310] random: 7 urandom warning(s) missed due to ratelimiting
[   12.552076] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   12.557694] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   12.587154] mt7603e 0000:01:00.0: firmware init done
[   12.796406] PPP generic driver version 2.4.2
[   12.802921] NET: Registered protocol family 24
[   12.820889] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.33.2 (2022-04-16 12:59:34 UTC) built-in shell (ash)

  _______     0000 00080000   ________      08__
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 21.02.3, r16554-1d4dea6d4f
 -----------------------------------------------------
=== 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:/# 
1 Like

so wifi only the 2.4 ghz is working: MediaTek MT7603E 802.11bgn

so what are the next step?

LEDs:
Powerled is working
Lan0 and 1 is also working
Wifi looks like to work

At least you must find all LEDs and buttons gpios.
BTW I make dts-file for current version (22.03 and later). For 21.02 version the dts-file is incorrect in part of MACs.

&gmac0 {
    nvmem-cells = <&macaddr_factory_e000>;
    nvmem-cell-names = "mac-address";
};

need to be changed to:

&gmac0 {
mtd-mac-address = <&factory 0xe000>
};
1 Like

ok and what did you add to the mt7621.mk file?

I use the asus rt n56u b1 and changed it to:

define Device/comfast_cf-ew72-v2
  $(Device/dsa-migration)
  DEVICE_VENDOR := Comfast
  DEVICE_MODEL := CF-EW72
  DEVICE_VARIANT := V2
  IMAGE_SIZE := 16064k
  DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \
	kmod-usb-ledtrig-usbport
endef
TARGET_DEVICES += comfast_cf-ew72-v2

If I understand correctly your board have mediatek mt7613 wifi 5G. So remove kmod-mt76x2 and add kmod-mt7615e kmod-mt7663-firmware-ap

1 Like

ok now both wifi 2.4 and 5 is possible.

Can I flash this firmware allready, or only initramfs is safe?
And what is needed to make sysupgrade possible?

5G with max 80 Mhz channels. The drop down also shows 160 MHz, how can I remove this?

add device to mt7621.mk

define Device/comfast_cf-ew72-v2
  $(Device/dsa-migration)
  DEVICE_VENDOR := Comfast
  DEVICE_MODEL := CF-EW72
  DEVICE_VARIANT := V2
  IMAGE_SIZE := 16064k
  DEVICE_PACKAGES := kmod-mt7603 \
	kmod-mt7615e kmod-mt7663-firmware-ap \
	kmod-usb3 kmod-usb-ledtrig-usbport
endef
TARGET_DEVICES += comfast_cf-ew72-v2

New full serial openwrt 2boot log with 22.03 RC6

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.08.06 08:45:57 =~=~=~=~=~=~=~=~=~=~=~=
bootm 81000000
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-5.10.134
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    7295176 Bytes = 7 MiB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
[    0.000000] Linux version 5.10.134 (freetz@freetz) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19590-042d558536) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sun Jul 31 15:12:47 2022
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[  <0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Comfast CF-EW72 v2
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] percpu: Embedded 15 pages/cpu s30224 r8192 d23024 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=0000ba60
[    0.000000] Readback ErrCtl register=0000ba60
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 114940K/131072K available (6691K kernel code, 625K rwdata, 1356K rodata, 5652K init, 235K bss, 16132K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000011] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007937] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.016975] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.083145] pid_max: default: 32768 minimum: 301
[    0.087898] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.095099] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.105579] rcu: Hierarchical SRCU implementation.
[    0.110597] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.118672] smp: Bringing up secondary CPUs ...
[    0.123893] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.123902] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.123913] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.123987] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.178452] Synchronize counters for CPU 1: done.
[    0.210421] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.210430] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.210439] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.210485] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.269607] Synchronize counters for CPU 2: done.
[    0.300184] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.300193] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.300201] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.300251] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.354790] Synchronize counters for CPU 3: done.
[    0.384658] smp: Brought up 1 node, 4 CPUs
[    0.392712] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.402529] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.409533] pinctrl core: initialized pinctrl subsystem
[    0.417002] NET: Registered protocol family 16
[    0.423078] cpuidle: using governor teo
[    0.469798] clocksource: Switched to clocksource GIC
[    0.476426] NET: Registered protocol family 2
[    0.481136] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.489120] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.497487] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.505079] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.512069] TCP: Hash tables configured (established 1024 bind 1024)
[    0.518479] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.524958] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.532116] NET: Registered protocol family 1
[    0.536412] PCI: CLS 0 bytes, default 32
[    5.820446] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    5.831012] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.836757] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    5.848826] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    5.854730] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    5.860666] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    5.867079] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    5.875024] printk: console [ttyS0] disabled
[    5.879328] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    5.888328] printk: console [ttyS0] enabled
[    5.888328] printk: console [ttyS0] enabled
[    5.896585] printk: bootconsole [early0] disabled
[    5.896585] printk: bootconsole [early0] disabled
[    5.908684] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    5.915383] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    5.920634] 4 fixed-partitions partitions found on MTD device spi0.0
[    5.926958] Creating 4 MTD partitions on "spi0.0":
[    5.931746] 0x000000000000-0x000000030000 : "u-boot"
[    5.937668] 0x000000030000-0x000000040000 : "config"
[    5.943605] 0x000000040000-0x000000050000 : "factory"
[    5.949737] 0x000000050000-0x000001000000 : "firmware"
[    5.956137] 2 uimage-fw partitions found on MTD device firmware
[   05.962097] Creating 2 MTD partitions on "firmware":
[    5.967053] 0x000000000000-0x0000001ac104 : "kernel"
[    5.972046] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    5.981153] 0x0000001ac104-0x000000fb0000 : "rootfs"
[    5.986123] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    5.996046] mtd: device 5 (rootfs) set to be root filesystem
[    6.001868] 1 squashfs-split partitions found on MTD device rootfs
[    6.008043] 0x0000008b0000-0x000000fb0000 : "rootfs_data"
[    6.061331] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    6.070921] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    6.080235] i2c /dev entries driver
[    6.086043] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    6.092816] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    6.101613] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    6.109784] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    6.118022] mt7621-pci 1e140000.pcie: Parsing DT failed
[    6.125432] NET: Registered protocol family 10
[    6.131529] Segment Routing with IPv6
[    6.135287] NET: Registered protocol family 17
[    6.140157] 8021q: 802.1Q VLAN Support v1.8
[    6.147640] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    6.245765] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=26)
[    6.258077] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=27)
[    6.270294] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=28)
[   06.282489] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=29)
[    6.294828] mt7530 mdio-bus:1f wan (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=30)
[    6.307275] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    6.317707] DSA: tree 0 setup
[    6.320986] rt2880-pinmux pinctrl: pcie is already enabled
[    6.326526] mt7621-pci 1e140000.pcie: host bridge /pcie@1e140000 ranges:
[    6.333234] mt7621-pci 1e140000.pcie:   No bus range found for /pcie@1e140000, using [bus 00-ff]
[    6.342027] mt7621-pci 1e140000.pcie:      MEM 0x0060000000..0x006fffffff -> 0x0000000000
[    6.350195] mt7621-pci 1e140000.pcie:       IO 0x001e160000..0x001e16ffff -> 0x0000000000
[    6.358435] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    6.366192] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    6.373827] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[    6.481172] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    6.486738] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    6.592404] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    6.599339] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    6.604208] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    6.609068] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    6.618518] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    6.624884] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    6.631752] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    6.638599] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.644076] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] (bus address [0x00000000-0x0fffffff])
[    6.654271] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    6.660294] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    6.666538] pci 0000:00:00.0: reg 0x14: [mem 0x60500000-0x6050ffff]
[    6.672870] pci 0000:00:00.0: supports D1
[    6.676864] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    6.683133] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    6.689150] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    6.695418] pci 0000:00:01.0: reg 0x14: [mem 0x60510000-0x6051ffff]
[    6.701734] pci 0000:00:01.0: supports D1
[    6.705728] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    6.713077] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    6.719103] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    6.726149] pci 0000:01:00.0: reg 0x10: [mem size 0x00100000]
[    6.732034] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    6.739498] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    6.744765] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    6.750851] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    6.757612] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    6.764822] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.771676] pci 0000:02:00.0: [14c3:7663] type 00 class 0x000280
[    6.777700] pci 0000:02:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    6.784744] pci 0000:02:00.0: reg 0x10: [mem size 0x00100000 64bit pref]
[    6.791457] pci 0000:02:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    6.798474] pci 0000:02:00.0: reg 0x18: [mem size 0x00004000 64bit pref]
[    6.805174] pci 0000:02:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    6.812207] pci 0000:02:00.0: reg 0x20: [mem size 0x00001000 64bit pref]
[    6.818992] pci 0000:02:00.0: supports D1 D2
[    6.823258] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    6.829894] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    6.846090] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    6.851343] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    6.857412] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    6.864187] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x604fffff pref]
[    6.871399] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    6.878031] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    6.884639] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    6.891589] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    6.898172] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    6.905122] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    6.911907] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    6.919099] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    6.925875] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x604fffff pref]
[    6.933084] pci 0000:00:00.0: BAR 1: assigned [mem 0x60500000-0x6050ffff]
[    6.939867] pci 0000:00:01.0: BAR 1: assigned [mem 0x60510000-0x6051ffff]
[    6.946627] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    6.953402] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    6.960185] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    6.966946] pci 0000:00:00.0: PCI bridge to [bus 01]
[    6.971912] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    6.978672] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    6.985445] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    6.992664] pci 0000:02:00.0: BAR 0: assigned [mem 0x60300000-0x603fffff 64bit pref]
[    7.000406] pci 0000:02:00.0: BAR 2: assigned [mem 0x60400000-0x60403fff 64bit pref]
[    7.008127] pci 0000:02:00.0: BAR 4: assigned [mem 0x60404000-0x60404fff 64bit pref]
[    7.015861] pci 0000:00:01.0: PCI bridge to [bus 02]
[    7.020826] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    7.027586] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    7.034365] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x604fffff pref]
[    7.063810] Freeing unused kernel memory: 5652K
[    7.068344] This architecture does not have kernel memory protection.
[    7.074794] Run /init as init process
[    7.078860] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[    7.586170] init: Console is alive
[    7.590593] init: - watchdog -
[    7.607555] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.622228] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.649973] init: - preinit -
[    7.845081] random: jshn: uninitialized urandom read (4 bytes read)
[    7.922232] random: jshn: uninitialized urandom read (4 bytes read)
[    7.962058] random: jshn: uninitialized urandom read (4 bytes read)
[    8.213792] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    8.222194] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    8.230107] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    8.237539] 8021q: adding VLAN 0 to HW filter on device lan1
[    8.245904] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   12.395826] procd: - early -
[   12.398934] procd: - watchdog -
[   12.959815] procd: - watchdog -
[   12.963545] procd: - ubus -
[   12.973506] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.020355] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.027187] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.037022] procd: - init -
Please press Enter to activate this console.
[   13.397961] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.591951] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[   13.592367] urngd: v1.0.2 started.
[  013.599566] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[   13.662916] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=22
[   13.668390] pci 0000:00:00.0: enabling device (0006 -> 0007)
[   13.674088] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[   13.680288] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   13.783316] random: crng init done
[   13.786713] random: 30 urandom warning(s) missed due to ratelimiting
[   14.710484] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   14.716059] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   14.759591] mt7603e 0000:01:00.0: firmware init done
[   14.941156] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=23
[   14.946601] pci 0000:00:01.0: enabling device (0006 -> 0007)
[   14.952323] mt7615e 0000:02:00.0: enabling device (0000 -> 0002)
[   15.021174] PPP generic driver version 2.4.2
[   15.027339] NET: Registered protocol family 24
[   15.043191] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.784433] mt7615e 0000:02:00.0: mediatek/mt7663pr2h.bin not found, switching to mediatek/mt7663pr2h_rebb.bin
[   15.796509] mt7615e 0000:02:00.0: HW/SW Version: 0x65322d31, Build Time: 2009041715da1a1
[   15.796509] 
[   15.812987] mt7615e 0000:02:00.0: N9 Firmware Version: 7663mp1827, Build Time: 20200904171623
[   15.821632] mt7615e 0000:02:00.0: Region number: 0x3
[   15.826604] mt7615e 0000:02:00.0: Parsing tailer Region: 0
[   15.834897] mt7615e 0000:02:00.0: Region 0, override_addr = 0x00112c00
[   15.841458] mt7615e 0000:02:00.0: Parsing tailer Region: 1
[   15.847739] mt7615e 0000:02:00.0: Parsing tailer Region: 2
[   15.853628] mt7615e 0000:02:00.0: override_addr = 0x00112c00, option = 3
[   34.158707] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   34.173704] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   34.181995] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   34.185295] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   34.197606] 8021q: adding VLAN 0 to HW filter on device lan1
[   34.206229] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.213824] br-lan: port 1(lan1) entered blocking state
[   34.219078] br-lan: port 1(lan1) entered disabled state
[   34.225630] device lan1 entered promiscuous mode
[   34.230403] device eth0 entered promiscuous mode
[   34.257404] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   34.264614] 8021q: adding VLAN 0 to HW filter on device lan2
[   34.273760] br-lan: port 2(lan2) entered blocking state
[   34.279004] br-lan: port 2(lan2) entered disabled state
[   34.285729] device lan2 entered promiscuous mode
[   34.303871] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   34.311154] 8021q: adding VLAN 0 to HW filter on device lan3
[   34.320329] br-lan: port 3(lan3) entered blocking state
[   34.325591] br-lan: port 3(lan3) entered disabled state
[   34.332361] device lan3 entered promiscuous mode
[   34.350288] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   34.357490] 8021q: adding VLAN 0 to HW filter on device lan4
[   34.367364] br-lan: port 4(lan4) entered blocking state
[   34.372905] br-lan: port 4(lan4) entered disabled state
[   34.379954] device lan4 entered promiscuous mode
[   34.403603] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   34.410754] 8021q: adding VLAN 0 to HW filter on device wan
[   37.726160] mt7530 mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control off
[   37.733553] br-lan: port 4(lan4) entered blocking state
[   37.738759] br-lan: port 4(lan4) entered forwarding state
[   37.745224] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   51.151800] mt7530 mdio-bus:1f lan4: Link is Down
[   51.156622] br-lan: port 4(lan4) entered disabled state
[   54.148173] mt7530 mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control off
[   54.155565] br-lan: port 4(lan4) entered blocking state
[   54.160823] br-lan: port 4(lan4) entered forwarding state



BusyBox v1.35.0 (2022-07-31 15:12:47 UTC) built-in shell (ash)

0_______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
    0     |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03.0-rc6, r19590-042d558536
 -----------------------------------------------------
=== 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:/# 

can not set the wifi 5G MediaTek MT7613BE 802.11nac to channel 52, or higher.

Sun Jul 31 15:14:05 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Sun Jul 31 15:14:06 2022 kern.info kernel: [   92.374959] br-lan: port 2(wlan1) entered blocking state
Sun Jul 31 15:14:06 2022 kern.info kernel: [   92.380317] br-lan: port 2(wlan1) entered disabled state
Sun Jul 31 15:14:06 2022 kern.info kernel: [   92.386372] device wlan1 entered promiscuous mode
Sun Jul 31 15:14:06 2022 daemon.notice hostapd: Frequency 5260 (primary) not allowed for AP mode, flags: 0x97b NO-IR RADAR
Sun Jul 31 15:14:06 2022 daemon.err hostapd: Primary frequency not allowed
Sun Jul 31 15:14:06 2022 daemon.warn hostapd: wlan1: IEEE 802.11 Configured channel (52) or frequency (5260) (secondary_channel=1) not found from the channel list of the current mode (2) IEEE 802.11a
Sun Jul 31 15:14:06 2022 daemon.warn hostapd: wlan1: IEEE 802.11 Hardware does not support configured channel
Sun Jul 31 15:14:06 2022 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Sun Jul 31 15:14:06 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->DISABLED
Sun Jul 31 15:14:06 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Sun Jul 31 15:14:06 2022 daemon.err hostapd: wlan1: Unable to setup interface.
Sun Jul 31 15:14:06 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Sun Jul 31 15:14:06 2022 kern.info kernel: [   92.398905] device wlan1 left promiscuous mode
Sun Jul 31 15:14:06 2022 kern.info kernel: [   92.403710] br-lan: port 2(wlan1) entered disabled state
Sun Jul 31 15:14:06 2022 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Sun Jul 31 15:14:06 2022 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Sun Jul 31 15:14:06 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054): Command failed: ubus call hostapd config_add {"iface":"wlan1", "config":"/var/run/hostapd-phy1.conf"} (Invalid argument)
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054): Usage: ubus [<options>] <command> [arguments...]
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054): Options:
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  -s <socket>:		Set the unix domain socket to connect to
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  -t <timeout>:		Set the timeout (in seconds) for a command to complete
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  -S:			Use simplified output (for scripts)
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  -v:			More verbose output
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  -m <type>:		(for monitor): include a specific message type
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054): 			(can be used more than once)
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  -M <r|t>		(for monitor): only capture received or transmitted traffic
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054): Commands:
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - list [<path>]			List objects
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - call <path> <method> [<message>]	Call an object method
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - subscribe <path> [<path>...]	Subscribe to object(s) notifications
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - listen [<path>...]			Listen for events
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - send <type> [<message>]		Send an event
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - wait_for <object> [<object>...]	Wait for multiple objects to appear on ubus
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):  - monitor				Monitor ubus traffic
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054):
Sun Jul 31 15:14:06 2022 daemon.notice netifd: radio1 (3054): Device setup failed: HOSTAPD_START_FAILED
Sun Jul 31 15:14:06 2022 daemon.notice netifd: Wireless device 'radio1' set retry=0
Sun Jul 31 15:14:06 2022 daemon.crit netifd: Wireless device 'radio1' setup failed, retry=0
Sun Jul 31 15:14:06 2022 daemon.notice netifd: Wireless device 'radio1' is now down

Only 36 up to 48 is working:

Sun Jul 31 15:21:10 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Sun Jul 31 15:21:10 2022 kern.info kernel: [  516.510308] br-lan: port 2(wlan1) entered blocking state
Sun Jul 31 15:21:10 2022 kern.info kernel: [  516.515801] br-lan: port 2(wlan1) entered disabled state
Sun Jul 31 15:21:10 2022 kern.info kernel: [  516.521731] device wlan1 entered promiscuous mode
Sun Jul 31 15:21:10 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->HT_SCAN
Sun Jul 31 15:21:10 2022 kern.info kernel: [  516.852973] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Sun Jul 31 15:21:10 2022 kern.info kernel: [  516.859756] br-lan: port 2(wlan1) entered blocking state
Sun Jul 31 15:21:10 2022 kern.info kernel: [  516.865319] br-lan: port 2(wlan1) entered forwarding state
Sun Jul 31 15:21:10 2022 daemon.notice hostapd: wlan1: interface state HT_SCAN->ENABLED
Sun Jul 31 15:21:10 2022 daemon.notice hostapd: wlan1: AP-ENABLED
Sun Jul 31 15:21:11 2022 daemon.notice netifd: Wireless device 'radio1' is now up
Sun Jul 31 15:21:11 2022 daemon.notice netifd: Network device 'wlan1' link is up

ok, need to set the country code for the wifi interface.

No it looks like this, is this normal???

Sun Aug  7 20:38:24 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Sun Aug  7 20:38:24 2022 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Sun Aug  7 20:38:24 2022 daemon.notice hostapd: wlan1: interface state HT_SCAN->DFS
Sun Aug  7 20:38:24 2022 daemon.notice hostapd: wlan1: DFS-CAC-START freq=5260 chan=52 sec_chan=1, width=1, seg0=58, seg1=0, cac_time=60s
Sun Aug  7 20:38:24 2022 daemon.err hostapd: DFS start_dfs_cac() failed, -1
Sun Aug  7 20:38:24 2022 daemon.err hostapd: Interface initialization failed
Sun Aug  7 20:38:24 2022 daemon.notice hostapd: wlan1: interface state DFS->DISABLED
Sun Aug  7 20:38:24 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Sun Aug  7 20:38:25 2022 daemon.notice netifd: Wireless device 'radio1' is now up
Sun Aug  7 20:39:26 2022 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM

mt7613 is known to have issues with DFS processing (other than mt7612 or mt7615), while the situation has allegedly been improved, it's probably not perfect, yet (and may never be, due to hardware constraints). The easy solution would be to avoid DFS channels.

can it be possible to get a DFS channel up and running, like the 52, or not?
For me was not possible at the moment, but I can not reboot to check if this helps :wink:

This Firmware is loaded at the moment

[   13.808499] mt7615e 0000:02:00.0: mediatek/mt7663pr2h.bin not found, switching to mediatek/mt7663pr2h_rebb.bin
[   13.820382] mt7615e 0000:02:00.0: HW/SW Version: 0x65322d31, Build Time: 2009041715da1a1
[   13.820382]
[   13.836212] mt7615e 0000:02:00.0: N9 Firmware Version: 7663mp1827, Build Time: 20200904171623
[   13.844781] mt7615e 0000:02:00.0: Region number: 0x3
[   13.849723] mt7615e 0000:02:00.0: Parsing tailer Region: 0
[   13.857890] mt7615e 0000:02:00.0: Region 0, override_addr = 0x00112c00
[   13.864471] mt7615e 0000:02:00.0: Parsing tailer Region: 1
[   13.870642] mt7615e 0000:02:00.0: Parsing tailer Region: 2
[   13.876455] mt7615e 0000:02:00.0: override_addr = 0x00112c00, option = 3

is there a better solution, and how can I get it?

@123serge123 here ist the new DTS file:

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "mt7621.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
    compatible = "comfast,cf-ew72-v2", "mediatek,mt7621-soc";
    model = "Comfast CF-EW72 v2";

    aliases {
	label-mac-device = &wan;
	led-boot = &led_power;
	led-failsafe = &led_power;
	led-running = &led_power;
	led-upgrade = &led_power;
    };

    chosen {
	bootargs = "console=ttyS0,115200";
    };

    leds {
	compatible = "gpio-leds";

	led_power: wlan {
	    label = "blue:wlan";
	    gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
	};

    };

    keys {
	compatible = "gpio-keys";

	reset {
	    label = "reset";
	    gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
	    linux,code = <KEY_RESTART>;
	    debounce-interval = <60>;
	};
    };
};

&spi0 {
    status = "okay";

    flash@0 {
	compatible = "jedec,spi-nor";
	reg = <0>;
	spi-max-frequency = <50000000>;
	m25p,fast-read;

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

	    partition@0 {
		label = "u-boot";
		reg = <0x0 0x30000>;
		read-only;
	    };

	    partition@30000 {
		label = "config";
		reg = <0x30000 0x10000>;
		read-only;
	    };

	    factory: partition@40000 {
		label = "factory";
		reg = <0x40000 0x10000>;
		read-only;
	    };

	    partition@50000 {
		compatible = "denx,uimage";
		label = "firmware";
		reg = <0x50000 0xfb0000>;
	    };
	};
    };
};

&pcie {
    status = "okay";
};

&pcie0 {
    wifi@0,0 {
	compatible = "mediatek,mt76";
	reg = <0x0000 0 0 0 0>;
	mediatek,mtd-eeprom = <&factory 0x0000>;
	ieee80211-freq-limit = <2400000 2500000>;
    };
};

&pcie1 {
    wifi@0,0 {
	compatible = "mediatek,mt76";
	reg = <0x0000 0 0 0 0>;
	mediatek,mtd-eeprom = <&factory 0x8000>;
	ieee80211-freq-limit = <5000000 6000000>;
    };
};

&gmac0 {
    nvmem-cells = <&macaddr_factory_e000>;
    nvmem-cell-names = "mac-address";
};

&switch0 {
    ports {
	port@0 {
	    status = "okay";
	    label = "lan";
	};
	wan: port@4 {
	    status = "okay";
	    label = "wan";
	    nvmem-cells = <&macaddr_factory_e000>;
	    nvmem-cell-names = "mac-address";
	};
    };
};

&state_default {
    gpio {
	groups = "i2c", "uart2", "uart3", "sdhci", "jtag";
	function = "gpio";
    };
};

&factory {
    compatible = "nvmem-cells";
    #address-cells = <1>;
    #size-cells = <1>;

    macaddr_factory_4: macaddr@4 {
	reg = <0x4 0x6>;
    };

    macaddr_factory_8004: macaddr@8004 {
	reg = <0x8004 0x6>;
    };

    macaddr_factory_e000: macaddr@e000 {
	reg = <0xe000 0x6>;
    };
};

what needs to be done to check if the Partions fits to the chip, or is this all ready done?
And if yes, can I try to flash the AP?

No additional LEDs/buttons? Do MACs correspond to origianl firmware?

Compare to oem boot logs.

Yes, you can :slight_smile: