When I trying to read from /dev/mtdblock* in spi-nand, the following errors are showed:
root@OpenWrt:~# strings /dev/mtdblock10
[26427.133154] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
[26427.134125] I/O error, dev mtdblock10, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 2
[26427.142240] I/O error, dev mtdblock10, sector 8 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2
[26427.151427] I/O error, dev mtdblock10, sector 16 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2
[26427.160440] I/O error, dev mtdblock10, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[26427.169619] I/O error, dev mtdblock10, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[26427.178083] Buffer I/O error on dev mtdblock10, logical block 0, async page read
This (MX35UF1G24AD) flash is handled with oob size=64 on the stock firmware, but it's registered with oob=128 in the Linux Kernel.
(The official datasheet: Number of Spare Bytes per Page: 128-byte)
pd-* initialization failed
Initialization of pd-1 and pd-2 failed due to the following errors:
I succeeded to resolve this issue by adding coherent_pool=2M to bootargs.
I also faced to the crashing issue of QCN6102, but it was resolved by editing BDF (addr: 0x45c, val: 0x3 ---> 0x0).
ref:
Finally, I succeeded to make the wlan adapters working. But ath11k consumes too large memory spaces and too few spaces are usable for users. As a result, OOM killer kills some system processes when accessed to LuCI.
So I disabled Wi-Fi related peripherals and reserved memory for it...
I am just finishing the glinet b3000 port and i noticed they build images for the 256 profile devices. I see a couple things here that may provide you with some hints. Have a look and if its at all helpful I'll send you the full package to assist you.
first not sure if you have the memory layout. I've posted the 512/1000 but never posted the 256mb, tho you may already have it, here it is
But IMO, ath11k occupies a large amount of RAM in addition to q6_mem_regions, so it may be hard to enable Wi-Fi on this device unless we add something like ath10k-(ct-)smallbuffers to reduce consumption.
latency of ping sent to/from on-link devices often spikes (WAN/LAN)
log
root@OpenWrt:~# ping 192.168.1.4
PING 192.168.1.4 (192.168.1.4): 56 data bytes
64 bytes from 192.168.1.4: seq=0 ttl=128 time=0.829 ms
64 bytes from 192.168.1.4: seq=1 ttl=128 time=0.785 ms
64 bytes from 192.168.1.4: seq=2 ttl=128 time=255.599 ms
64 bytes from 192.168.1.4: seq=3 ttl=128 time=0.757 ms
64 bytes from 192.168.1.4: seq=4 ttl=128 time=0.843 ms
64 bytes from 192.168.1.4: seq=5 ttl=128 time=319.881 ms
64 bytes from 192.168.1.4: seq=6 ttl=128 time=0.847 ms
64 bytes from 192.168.1.4: seq=7 ttl=128 time=0.793 ms
64 bytes from 192.168.1.4: seq=8 ttl=128 time=0.858 ms
64 bytes from 192.168.1.4: seq=9 ttl=128 time=0.804 ms
64 bytes from 192.168.1.4: seq=10 ttl=128 time=377.160 ms
64 bytes from 192.168.1.4: seq=11 ttl=128 time=0.770 ms
64 bytes from 192.168.1.4: seq=12 ttl=128 time=0.791 ms
64 bytes from 192.168.1.4: seq=13 ttl=128 time=462.614 ms
64 bytes from 192.168.1.4: seq=14 ttl=128 time=477.179 ms
64 bytes from 192.168.1.4: seq=15 ttl=128 time=0.935 ms
64 bytes from 192.168.1.4: seq=16 ttl=128 time=512.785 ms
64 bytes from 192.168.1.4: seq=17 ttl=128 time=529.616 ms
64 bytes from 192.168.1.4: seq=18 ttl=128 time=537.666 ms
64 bytes from 192.168.1.4: seq=19 ttl=128 time=548.486 ms
64 bytes from 192.168.1.4: seq=20 ttl=128 time=0.868 ms
64 bytes from 192.168.1.4: seq=21 ttl=128 time=0.786 ms
64 bytes from 192.168.1.4: seq=22 ttl=128 time=0.785 ms
64 bytes from 192.168.1.4: seq=23 ttl=128 time=0.744 ms
64 bytes from 192.168.1.4: seq=24 ttl=128 time=122.305 ms
64 bytes from 192.168.1.4: seq=25 ttl=128 time=0.817 ms
64 bytes from 192.168.1.4: seq=26 ttl=128 time=0.804 ms
64 bytes from 192.168.1.4: seq=27 ttl=128 time=0.798 ms
64 bytes from 192.168.1.4: seq=28 ttl=128 time=0.778 ms
64 bytes from 192.168.1.4: seq=29 ttl=128 time=0.763 ms
64 bytes from 192.168.1.4: seq=30 ttl=128 time=2.089 ms
64 bytes from 192.168.1.4: seq=31 ttl=128 time=0.892 ms
64 bytes from 192.168.1.4: seq=32 ttl=128 time=1001.156 ms
64 bytes from 192.168.1.4: seq=33 ttl=128 time=1.034 ms
64 bytes from 192.168.1.4: seq=34 ttl=128 time=0.841 ms
64 bytes from 192.168.1.4: seq=35 ttl=128 time=0.975 ms
64 bytes from 192.168.1.4: seq=36 ttl=128 time=50.597 ms
64 bytes from 192.168.1.4: seq=37 ttl=128 time=0.874 ms
64 bytes from 192.168.1.4: seq=38 ttl=128 time=0.799 ms
64 bytes from 192.168.1.4: seq=39 ttl=128 time=1001.153 ms
64 bytes from 192.168.1.4: seq=40 ttl=128 time=1.044 ms
64 bytes from 192.168.1.4: seq=41 ttl=128 time=1001.076 ms
64 bytes from 192.168.1.4: seq=42 ttl=128 time=0.964 ms
64 bytes from 192.168.1.4: seq=43 ttl=128 time=0.823 ms
64 bytes from 192.168.1.4: seq=44 ttl=128 time=0.934 ms
64 bytes from 192.168.1.4: seq=45 ttl=128 time=0.931 ms
64 bytes from 192.168.1.4: seq=46 ttl=128 time=1001.229 ms
64 bytes from 192.168.1.4: seq=47 ttl=128 time=1.111 ms
64 bytes from 192.168.1.4: seq=48 ttl=128 time=0.826 ms
64 bytes from 192.168.1.4: seq=49 ttl=128 time=0.899 ms
64 bytes from 192.168.1.4: seq=50 ttl=128 time=0.892 ms
64 bytes from 192.168.1.4: seq=51 ttl=128 time=0.874 ms
64 bytes from 192.168.1.4: seq=52 ttl=128 time=1001.138 ms
64 bytes from 192.168.1.4: seq=53 ttl=128 time=1.023 ms
64 bytes from 192.168.1.4: seq=54 ttl=128 time=0.813 ms
64 bytes from 192.168.1.4: seq=55 ttl=128 time=0.935 ms
64 bytes from 192.168.1.4: seq=56 ttl=128 time=0.928 ms
64 bytes from 192.168.1.4: seq=57 ttl=128 time=0.993 ms
64 bytes from 192.168.1.4: seq=58 ttl=128 time=1001.127 ms
64 bytes from 192.168.1.4: seq=59 ttl=128 time=1.034 ms
64 bytes from 192.168.1.4: seq=60 ttl=128 time=0.806 ms
64 bytes from 192.168.1.4: seq=61 ttl=128 time=0.910 ms
64 bytes from 192.168.1.4: seq=62 ttl=128 time=43.803 ms
64 bytes from 192.168.1.4: seq=63 ttl=128 time=1001.199 ms
64 bytes from 192.168.1.4: seq=64 ttl=128 time=1.068 ms
64 bytes from 192.168.1.4: seq=65 ttl=128 time=0.788 ms
64 bytes from 192.168.1.4: seq=66 ttl=128 time=1001.211 ms
64 bytes from 192.168.1.4: seq=67 ttl=128 time=1.093 ms
64 bytes from 192.168.1.4: seq=68 ttl=128 time=1001.104 ms
64 bytes from 192.168.1.4: seq=69 ttl=128 time=0.979 ms
64 bytes from 192.168.1.4: seq=70 ttl=128 time=1001.087 ms
64 bytes from 192.168.1.4: seq=71 ttl=128 time=0.977 ms