Ideally for this case a utility would detach the filesystem and run in memory and then write only p3. p0 can be written from running p3. You are back to serial if anything goes wrong.
That's what sysupgrade does, and what I added to just touch the p1 and p3, and recover the overlay afterwards.
For the ath9k, can you provide your full dmesg? I'm curious as to why it's failing, because it seems to be recognized properly and such, but for some reason it just doesn't work
[ 19.953447] ath: phy1: Unable to initialize hardware; initialization status: -5
[ 19.960880] ath9k 0000:02:00.0: Failed to initialize device
[ 19.966560] ath9k: probe of 0000:02:00.0 failed with error -5
Are these them?
168C:0030
168C:003C
At least the faster one is working. I have a MT7621 based Linksys router here I use that I think does the hardware acceleration and is pretty strong with wifi, so I am still using that one.
Maybe I have a slightly different hardware than you? I am going to be working on a youtube video about obscure openwrt installs today with pictures of my hardware. I have a cold so I hope my voice gets better enough to work on it.
Yes, seems like the issue is caused by the kernel config PCIEASPM being set per this.
To rule this out, run make kernel_menuconfig, navigate to Device Drivers -> PCI support -> PCI Express ASPM control. See if it's NOT set (i.e. ). If it's set, press space bar until its not set, exit the config and save changes, and build again. That should fix it.
Oh I didn't even know that menu existed, but rrrrrr nope that does not seem to be it. Really I kind of like the idea of leaving it alone now that it is back together, but I was going to update p1 with the kernel for you. Have you used sysupgrade? With which output file, the squash combined one? There are 2 I think efi and non efi.
Good question, but I don't know. I'm not expert on the ath9k driver. My "p2" (i.e. config partition, mounted as /boot on OpenWRT) contains just these files:
Note that cal/calData_11ac.bin is the calibration data for ath10k and it's REALLY required; if you have the 5GHz then that file has been detected and works. You can see there's another for the 2GHz, but it's not used because mine never asked for that... maybe we need to force it?
Can anyone else from this forum that knows about ath9k chime in here?
Have you used sysupgrade? With which output file, the squash combined one? There are 2 I think efi and non efi.
Yes, I've made it work with the "combined" images. Use the squashfs-combined.img (not gz). You can feed that file through LuCI if you have it enabled. Otherwise just copy the combined file to the modem's /tmp and run "sysupgrade /tmp/openwrt-blabala-combined.img".
When I use dd I am afraid of incomplete writes so I always say bs=512 in dd, and I think that is how I got this. I think I am ok because block devices have partitions with 512n sizes. But it occurred to me when I dd the squashfile it is not 512x necessarily so I just left out bs-512.
to move p6 to p2 something has to look for a partition with a certain tag, or tell it it has moved.
That's fine, no need to set bs. Won't corrupt it. It should be a ext2 by default (from the original firmware). On OpenWRT, the p2 (which should be the same thing as this file) is mounted on /boot.
[ 193.939678] ath9k: ath9k: Driver unloaded
[ 207.968248] ath: phy2: Unable to initialize hardware; initialization status: -5
[ 207.975637] ath9k 0000:02:00.0: Failed to initialize device
[ 207.981325] ath9k: probe of 0000:02:00.0 failed with error -5
One thing I found weird is p2 is in fact mounted according to df. Maybe I need to unmount it before write? Why does it let me? Perhaps it thinks it is EFI boot?
I mostly left the menuconfig defaults but added a few things like mii or something phy on block or something. Maybe that had an effect or I am missing something. Maybe there is a subtle difference between our hardware. I consider it ok with just the AC since it is superior. On my main router here I have some legacy devices I connect to the 2Ghz.
I am actually currently set up to communicate with the DCP by 5Ghz wifi. It is just in the room plugged in. It is client to my wifi.
The USB DEFINITELY works, that is how I ran Linux in the first place to install it. I also just copied that image from a mounted stick. I think it had some issues with the end of the flash, or maybe just writing a lot to it at once. You don't see those errors now because it isn't trying to write. I am hoping it just involved wiping the flash blocks and not corrupting anything. Think switch shows connections.
So far it seems the LEDs are working, but I have not done a serious analysis. When it starts up it does the openwrt quick bleeps. The wifi activity is there.