did you? (sorry if stupid question)
I did not. Should I?
yes. you should be able to login to the shell using that console and use that to debug your build.
i am going to assume that going forward you are going to be working from [openwrt master + the diff you included under the label "Patch file:"]. i think it would be easier for commenters if you put that in github (or similar) so we can easily link/comment/see change history
log looks like you should have ethernet up (not wireless, we'll work on that later). you should connect something to router via ethernet and verify in serial console. iirc your build wont have the luci webserver installed unless you manually select it during build.
your mtd16 is ubi_factory_data. i think you need mtd14 (ubi_rootfs), or remove this since its picking it up fine already?
more comments when i get time. need to check on that "Failed to find NVMEM device" error and verify the flash layout in your dts.
Even after removing that and trying a build I see no difference in the logs. Still the last statement is:
[ 25.502442] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode
[ 25.503279] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
The ethernet port on my laptop shows connected. But plugging and unplugging the ethernet port on the router does not generate any logs like "plugged in" or something similar.
I have not really made any informed changes in the dts file from the patch that I am following. Blindly copying and changing the obvious is what I have done until now.
Note that I am using a board file also from the PR which I am almost certain will need edits.. I am just not sure what.
Also can you validate my build steps? I just want to make sure I am testing what I think I am testing.
make menuconfig
- select my device.. and leave all other options as defaults.
- save the config into say
m9.config
copy m9.config .config
./scripts/feeds update -a
./scripts/feeds install -a
make download
make -j 6
- using the
.itb
that is generated.
Sounds reasonable ?
draft PR:
sounds good to me.
it doesnt matter yet since you are just using the initramfs output to boot from ram via uboot, but if you built with make V=s 2>&1 | tee build.log | grep -i -E "^make.*(error|[12345]...Entering directory)"
, you would see that the factory and sysupgrade builds are failing, but thats easily fixed by pointing to an updated version of firmware-utils that supports m9+, like my github's 11bba9dcb2fa8639f57c0195cdbbee0d36f7419c (see example of how to point build at different firmware-utils version here: https://github.com/openwrt/openwrt/commit/5233bd674d5eee84c053e9e20ff513c4c94df571)
how did that 'pressing enter' go?
gotta fix this, or else no MTDs.
judging by stock logs, the device actually has a nand chip.
my guess is that we are supposed to read that stock log and copy/paste a nand entry into the dts from somewhere...
while i hand-wave about dts and nand and hope adult supervision is coming to tell us how to get info to determine what to put in dts for nand, i did leave some nitpicky comments in your draft pr.
SPI chip on the board
https://www.mouser.com/ProductDetail/Winbond/W29N01HVSINF?qs=qSfuJ%252Bfl%2Fd68d%2FhchnSqAQ%3D%3D&srsltid=AfmBOorlw7EDfNz8KNqNXj65_moOW42Ocj89EL28gEaMlwVn_NWX9RgF
It seems one thing that is needed is a patch like this for the flash I mentioned above and target 6.6 kernel.
From: DropDemBits <r3usrlnd@gmail.com>
Subject: mtd/spi-nor/xmc: add support for XMC XM25QH256B
The XMC XM25QH256B is a 32MB SPI NOR chip, which is used in some
Deco M5 v3 and v320 models.
Datasheet is available at:
https://www.xmcwh.com/uploads/424/XM25QH(QU)256B_Ver.G.pdf
Signed-off-by: DropDemBits <r3usrlnd@gmail.com>
---
drivers/mtd/spi-nor/xmc.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/mtd/spi-nor/xmc.c
+++ b/drivers/mtd/spi-nor/xmc.c
@@ -22,6 +22,8 @@ static const struct flash_info xmc_nor_p
{ "XM25QH128C", INFO(0x204018, 0, 64 * 1024, 256,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ { "XM25QH256B", INFO(0x206019, 0, 64 * 1024, 512,
+ SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
};
const struct spi_nor_manufacturer spi_nor_xmc = {
ohh.. this chip is a nand flash not a nor flash.. so something very close to:
@robimarko do you have any ideas ?
Also I think the dts also needs to be similar to:
using the nand@ stanza and what not..
sad that I don't know anything about these things.. but I think I am getting close.
Gotten this far and I am sure of two entries in this below(see comments):
SPINAND_INFO("W29N01HV",
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xf1), // This is as per datasheet
NAND_MEMORG(1, 2048, 96, 64, 1024, 20, 1, 1, 1), // need to verify
NAND_ECCREQ(4, 512), // This is correct
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
&write_cache_variants,
&update_cache_variants), //hopefully this is also correct.
0,
SPINAND_ECCINFO(&w25n01kv_ooblayout, w25n02kv_ecc_get_status)), // This is the hard one and I don't really know what this is supposed to be.
Well, it aint working for sure if its spi-nand as you declare it as spi-nor in the DTS, start by fixing that first.
under the theory that sometimes the best way to get good feedback on the internet
is to make ignorant suggestions that have to be corrected, here is my suggested fix:
this looks suspiciously similar to the nand_pins section from openwrt's files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-wpj419.dts (and probably others)
nand_pins: nand_pins {
pullups {
pins = "gpio52", "gpio53", "gpio58", "gpio59";
function = "qpic";
bias-pull-up;
};
pulldowns {
pins = "gpio54", "gpio55", "gpio56",
"gpio57", "gpio60", "gpio61",
"gpio62", "gpio63", "gpio64",
"gpio65", "gpio66", "gpio67",
"gpio68", "gpio69";
function = "qpic";
bias-pull-down;
};
};
so lets add that into the tlmm section and then reference it in a new nand section, something like this:
&nand {
pinctrl-0 = <&nand_pins>;
pinctrl-names = "default";
status = "okay";
nand@0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "0:SBL1";
reg = <0x00000000 0x00010000>;
read-only;
};
<fill in other partitions based on stock partition layout from stock log...>
};
};
};
or im completely wrong and its spi-nand and we just need to change "compatible = "jedec,spi-nor";
to compatible = "spi-nand";
. how to tell?
EDIT TO ADD: i think i can answer my own question. the stock uboot dts defines nand0=nand0,nand2=spi0.0
and on boot it reports Creating 1 MTD partitions on "nand0":
and Device nand2 not found!
, so i believe this is confirmation that it is not accessed via SPI
What is your opinion on how to implement parts of the patch below? IIUC, the kernel does not support the chip on this board..and I have the board opened up on my desk.. the chip is winbond W29N01HV.
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
&write_cache_variants,
&update_cache_variants), //hopefully this is also correct.
SPINAND_ECCINFO(&w25n01kv_ooblayout, w25n02kv_ecc_get_status)), // This is the hard one and I don't really know what this is supposed to be.
Wait a second, that is just ONFI NAND, so there is nothing specific for it to support.
Its not even on a SPI bus, look at other devices using the &nandc
node
Well.. I am not sure but I think there some progress now.. pushed another commit:
Now the initramfs image drops into a busybox terminal.
I cannot ping the other side but I can set an ip address:
eth0 Link encap:Ethernet HWaddr 02:22:A7:77:DB:75
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::22:a7ff:fe77:db75/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1269 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:283646 (276.9 KiB)
Base address:0x8000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1421 errors:0 dropped:0 overruns:0 frame:0
TX packets:1421 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:130816 (127.7 KiB) TX bytes:130816 (127.7 KiB)
root@OpenWrt:/# ping 192.168.101.1e[Je[Je[J.10
PING 192.168.10.10 (192.168.10.10): 56 data bytes
^C
--- 192.168.10.10 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:/# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
64 bytes from 192.168.10.1: seq=0 ttl=64 time=0.303 ms
64 bytes from 192.168.10.1: seq=1 ttl=64 time=0.254 ms
64 bytes from 192.168.10.1: seq=2 ttl=64 time=0.234 ms
^C
--- 192.168.10.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.234/0.263/0.303 ms
root@OpenWrt:/# cat /re[Jpr
root@OpenWrt:/# cat /proc/e[Jmtd
dev: size erasesize name
root@OpenWrt:/# top
e[He[JMem: 47536K used, 458252K free, 14648K shrd, 0K buff, 14648K cached
CPU: 0% usr 2% sys 0% nic 97% idle 0% io 0% irq 0% sirq
Load average: 0.00 0.00 0.00 1/100 3120
e[7m PID PPID USER STAT VSZ %VSZ %CPU COMMANDe[m
3120 1693 root R 1140 0% 2% top
1157 1128 network S 2984 1% 0% /usr/sbin/hostapd -s -g /var/run/hosta
1158 1129 network S 2948 1% 0% /usr/sbin/wpa_supplicant -n -s -g /var
1565 1 root S 2096 0% 0% {ntpd} /sbin/ujail -t 5 -n ntpd -U ntp
931 1 root S 2096 0% 0% {dnsmasq} /sbin/ujail -t 5 -n dnsmasq
1129 1 root S 2096 0% 0% {wpa_supplicant} /sbin/ujail -t 5 -n w
1128 1 root S 2096 0% 0% {hostapd} /sbin/ujail -t 5 -n hostapd
2438 1 root S 1616 0% 0% /sbin/netifd
774 1 logd S 1556 0% 0% /sbin/logd -S 128
1 0 root S 1344 0% 0% /sbin/procd
947 931 dnsmasq S 1236 0% 0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq.
1693 205 root S 1128 0% 0% -ash
1588 1565 ntp S 1124 0% 0% /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd
3106 2438 root S 1124 0% 0% udhcpc -p /var/run/udhcpc-eth0.pid -s
205 1 root S 1124 0% 0% /bin/login -f root
1311 1 root S 1016 0% 0% /usr/sbin/odhcpd
1024 1 root S 888 0% 0% /usr/sbin/dropbear -F -P /var/run/drop
204 1 ubus S 884 0% 0% /sbin/ubusd
3108 2438 root S 812 0% 0% odhcp6c -s /lib/netifd/dhcpv6.script -
240 1 root S 800 0% 0% /sbin/urngd
^C
root@OpenWrt:/#
bootlog:
[ 0.000000] Linux version 6.6.58 (nitin@kali1) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 13.3.0 r27914-63ea5710d9) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Wed Dec 4 04:59:45 2024
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TP-Link Deco M9Plus v2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] OF: reserved mem: 0x87e00000..0x87e7ffff (512 KiB) nomap non-reusable smem@87e00000
[ 0.000000] OF: reserved mem: 0x87e80000..0x87ffffff (1536 KiB) nomap non-reusable tz@87e80000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000080000000-0x000000009fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x0000000087dfffff]
[ 0.000000] node 0: [mem 0x0000000087e00000-0x0000000087ffffff]
[ 0.000000] node 0: [mem 0x0000000088000000-0x000000009fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fffffff]
[ 0.000000] percpu: Embedded 13 pages/cpu s21076 r8192 d23980 u53248
[ 0.000000] pcpu-alloc: s21076 r8192 d23980 u53248 alloc=13*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Kernel command line:
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 492476K/524288K available (7406K kernel code, 641K rwdata, 1944K rodata, 13312K init, 240K bss, 31812K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, 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: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[ 0.000001] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[ 0.000018] Switching to timer-based delay loop, resolution 20ns
[ 0.000316] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[ 0.000339] CPU: Testing write buffer coherency: ok
[ 0.000393] pid_max: default: 32768 minimum: 301
[ 0.010384] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.010408] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.018964] qcom_scm: convention: smc legacy
[ 0.020445] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.020618] Setting up static identity map for 0x80300000 - 0x8030003c
[ 0.020820] rcu: Hierarchical SRCU implementation.
[ 0.020827] rcu: Max phase no-delay instances is 1000.
[ 0.021529] smp: Bringing up secondary CPUs ...
[ 0.025208] smp: Brought up 1 node, 4 CPUs
[ 0.025232] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[ 0.025245] CPU: All CPU(s) started in SVC mode.
[ 0.032601] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.032780] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.032810] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.037848] pinctrl core: initialized pinctrl subsystem
[ 0.041984] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.042335] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.043894] thermal_sys: Registered thermal governor 'step_wise'
[ 0.043999] cpuidle: using governor ladder
[ 0.044040] cpuidle: using governor menu
[ 0.061171] cryptd: max_cpu_qlen set to 1000
[ 0.067639] usbcore: registered new interface driver usbfs
[ 0.067720] usbcore: registered new interface driver hub
[ 0.067778] usbcore: registered new device driver usb
[ 0.067859] pps_core: LinuxPPS API ver. 1 registered
[ 0.067867] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.067897] PTP clock support registered
[ 0.070445] clocksource: Switched to clocksource arch_sys_counter
[ 0.081196] NET: Registered PF_INET protocol family
[ 0.081465] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.083236] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.083277] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.083298] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.083360] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.083512] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.084594] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.084988] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.085053] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.085783] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.085840] PCI: CLS 0 bytes, default 64
[ 0.087431] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.089794] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.089818] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.336281] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[ 0.336397] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[ 0.336488] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[ 0.336578] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[ 0.336981] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.337987] msm_serial 78af000.serial: msm_serial: detected port #0
[ 0.338031] msm_serial 78af000.serial: uartclk = 1843200
[ 0.338405] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 31, base_baud = 115200) is a MSM
[ 0.338441] msm_serial: console setup on port #0
[ 0.338496] printk: console [ttyMSM0] enabled
[ 0.912184] msm_serial 78b0000.serial: msm_serial: detected port #1
[ 0.915922] msm_serial 78b0000.serial: uartclk = 1843200
[ 0.922360] 78b0000.serial: ttyMSM1 at MMIO 0x78b0000 (irq = 32, base_baud = 115200) is a MSM
[ 0.927942] msm_serial: driver initialized
[ 0.943389] loop: module loaded
[ 1.030107] ipqess-edma c080000.ethernet: using random MAC address 02:22:a7:77:db:75
[ 1.056850] i2c_dev: i2c /dev entries driver
[ 1.057133] i2c_qup 78b7000.i2c: using default clock-frequency 100000
[ 1.063315] sdhci: Secure Digital Host Controller Interface driver
[ 1.066543] sdhci: Copyright(c) Pierre Ossman
[ 1.072702] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.080691] NET: Registered PF_INET6 protocol family
[ 1.084969] Segment Routing with IPv6
[ 1.087796] In-situ OAM (IOAM) with IPv6
[ 1.091463] NET: Registered PF_PACKET protocol family
[ 1.095537] 8021q: 802.1Q VLAN Support v1.8
[ 1.100272] Registering SWP/SWPB emulation handler
[ 1.141128] qca8k-ipq4019 c000000.switch: configuring for fixed/internal link mode
[ 1.141543] qca8k-ipq4019 c000000.switch: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1.342353] qca8k-ipq4019 c000000.switch lan (uninitialized): PHY [90000.mdio-1:03] driver [Qualcomm QCA8072] (irq=POLL)
[ 1.421277] qca8k-ipq4019 c000000.switch wan (uninitialized): PHY [90000.mdio-1:04] driver [Qualcomm QCA8072] (irq=POLL)
[ 1.422484] ipqess-edma c080000.ethernet eth0: entered promiscuous mode
[ 1.431379] DSA: tree 0 setup
[ 1.440107] clk: Disabling unused clocks
[ 1.466062] Freeing unused kernel image (initmem) memory: 13312K
[ 1.466394] Run /init as init process
[ 1.471198] with arguments:
[ 1.471207] /init
[ 1.471217] with environment:
[ 1.471223] HOME=/
[ 1.471229] TERM=linux
[ 1.869286] init: Console is alive
[ 1.869665] init: - watchdog -
[ 1.883163] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 1.885900] gpio_button_hotplug: loading out-of-tree module taints kernel.
[ 2.130907] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.130997] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.135565] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000008002000010
[ 2.142984] xhci-hcd xhci-hcd.0.auto: irq 59, io mem 0x08a00000
[ 2.152512] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.158155] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.163739] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 2.172109] hub 1-0:1.0: USB hub found
[ 2.177902] hub 1-0:1.0: 1 port detected
[ 2.183116] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.186427] hub 2-0:1.0: USB hub found
[ 2.195206] hub 2-0:1.0: 1 port detected
[ 2.198407] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.201450] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 2.206949] xhci-hcd xhci-hcd.1.auto: USB3 root hub has no ports
[ 2.214244] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000008002000010
[ 2.220548] xhci-hcd xhci-hcd.1.auto: irq 60, io mem 0x06000000
[ 2.230603] hub 3-0:1.0: USB hub found
[ 2.235542] hub 3-0:1.0: 1 port detected
[ 2.242414] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.251381] init: - preinit -
[ 6.380456] random: crng init done
[ 11.043328] procd: - early -
[ 11.043565] procd: - watchdog -
[ 11.581033] procd: - watchdog -
[ 11.581866] procd: - ubus -
[ 11.636618] procd: - init -
[ 12.009116] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.018377] Loading modules backported from Linux version v6.11.2-0-g7aa21fec187b
[ 12.018436] Backport generated by backports.git v6.1.110-1-32-gc61f71fe0942
[ 12.140523] PPP generic driver version 2.4.2
[ 12.142801] NET: Registered PF_PPPOX protocol family
[ 12.861686] urngd: v1.0.2 started.
[ 13.056274] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 13.056348] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 13.068265] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[ 13.101079] ath10k_ahb a000000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000,variant=TP-Link_Deco_M9 from ath10k/QCA4019/hw1.0/board-2.bin
[ 13.348764] ath10k_ahb a000000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[ 13.348852] ath10k_ahb a000000.wifi: failed to fetch board file: -12
[ 13.358380] ath10k_ahb a000000.wifi: could not probe fw (-12)
[ 14.264369] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 14.264448] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 14.276381] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[ 14.308897] ath10k_ahb a800000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000,variant=TP-Link_Deco_M9 from ath10k/QCA4019/hw1.0/board-2.bin
[ 14.524517] ath10k_ahb a800000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[ 14.524599] ath10k_ahb a800000.wifi: failed to fetch board file: -12
[ 14.533016] ath10k_ahb a800000.wifi: could not probe fw (-12)
[ 14.545959] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 24.791737] platform 79b0000.nand-controller: deferred probe pending
[ 31.493697] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode
[ 31.494579] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1122.910333] ipqess-edma c080000.ethernet eth0: Link is Down
[ 1127.727408] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode
[ 1127.728374] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1480.417096] ipqess-edma c080000.ethernet eth0: Link is Down
[ 1506.831806] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode
[ 1506.833586] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
root@OpenWrt:/# %
I can actually ping my laptop from the board.. ethernet is up:
[10128.041969] qca8k-ipq4019 c000000.switch wan: configuring for phy/psgmii link mode
root@OpenWrt:/# ifconfig
eth0 Link encap:Ethernet HWaddr 02:22:A7:77:DB:75
inet6 addr: fe80::22:a7ff:fe77:db75/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:1 overruns:0 frame:0
TX packets:3860 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1151518 (1.0 MiB)
Base address:0x8000
lan Link encap:Ethernet HWaddr 02:22:A7:77:DB:75
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3228 errors:0 dropped:0 overruns:0 frame:0
TX packets:3228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:272104 (265.7 KiB) TX bytes:272104 (265.7 KiB)
wan Link encap:Ethernet HWaddr 02:22:A7:77:DB:75
inet addr:192.168.10.2 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# [10131.190953] qca8k-ipq4019 c000000.switch wan: Link is Up - 1Gbps/Full - flow control off
root@OpenWrt:/# ping 192.168.10.10
PING 192.168.10.10 (192.168.10.10): 56 data bytes
^C
--- 192.168.10.10 ping statistics ---
13 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:/# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
64 bytes from 192.168.10.1: seq=0 ttl=64 time=0.303 ms
64 bytes from 192.168.10.1: seq=1 ttl=64 time=0.242 ms
^C
--- 192.168.10.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.242/0.272/0.303 ms
root@OpenWrt:/# ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2): 56 data bytes
64 bytes from 192.168.10.2: seq=0 ttl=64 time=0.303 ms
64 bytes from 192.168.10.2: seq=1 ttl=64 time=0.253 ms
64 bytes from 192.168.10.2: seq=2 ttl=64 time=0.239 ms
64 bytes from 192.168.10.2: seq=3 ttl=64 time=0.250 ms
64 bytes from 192.168.10.2: seq=4 ttl=64 time=0.237 ms
64 bytes from 192.168.10.2: seq=5 ttl=64 time=0.232 ms
^C
--- 192.168.10.2 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.232/0.252/0.303 ms
root@OpenWrt:/# ping 192.168.10.10
PING 192.168.10.10 (192.168.10.10): 56 data bytes
^C
--- 192.168.10.10 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:/# ping --help
BusyBox v1.36.1 (2024-10-27 11:45:16 UTC) multi-call binary.
Usage: ping [OPTIONS] HOST
Send ICMP ECHO_REQUESTs to HOST
-4,-6 Force IP or IPv6 name resolution
-c CNT Send only CNT pings
-s SIZE Send SIZE data bytes in packets (default 56)
-i SECS Interval
-A Ping as soon as reply is received
-t TTL Set TTL
-I IFACE/IP Source interface or IP address
-W SEC Seconds to wait for the first response (default 10)
(after all -c CNT packets are sent)
-w SEC Seconds until ping exits (default:infinite)
(can exit earlier with -c CNT)
-q Quiet, only display output at start/finish
-p HEXBYTE Payload pattern
root@OpenWrt:/# ping -I wan 192.168.10.10
PING 192.168.10.10 (192.168.10.10): 56 data bytes
64 bytes from 192.168.10.10: seq=0 ttl=64 time=0.976 ms
64 bytes from 192.168.10.10: seq=1 ttl=64 time=0.636 ms
64 bytes from 192.168.10.10: seq=2 ttl=64 time=0.603 ms
64 bytes from 192.168.10.10: seq=3 ttl=64 time=0.611 ms
64 bytes from 192.168.10.10: seq=4 ttl=64 time=0.586 ms
^C
--- 192.168.10.10 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.586/0.682/0.976 ms
I cannot get wifi to work.. I am seeing these errors..
[ 13.598007] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 13.609977] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[ 13.642736] ath10k_ahb a000000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA4019/hw1.0/board-2.bin
[ 13.860023] ath10k_ahb a000000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[ 13.860088] ath10k_ahb a000000.wifi: failed to fetch board file: -12
[ 13.868575] ath10k_ahb a000000.wifi: could not probe fw (-12)
[ 14.778599] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 14.778672] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 14.790764] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[ 14.823309] ath10k_ahb a800000.wifi: failed to fetch board data for bus=ahb,vendor=0000,device=0000,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA4019/hw1.0/board-2.bin
[ 15.040194] ath10k_ahb a800000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[ 15.040272] ath10k_ahb a800000.wifi: failed to fetch board file: -12
[ 15.048708] ath10k_ahb a800000.wifi: could not probe fw (-12)
ethernet is working..
something still looks weird with nand detection. i would expect to see something like Creating ## MTD partitions on "xxxxxxx"
and a list of the partitions.
what does cat /proc/mtd
look like? (empty i assume)