Funny. I am trying to apply the the v11 ath10k LED patch after being away for a week (so I tried v4 last time).
I do not seem to be able to get the leds properly defined:
/sys/class/leds/ has no trace of the two LEDs for ath10k.
I suspect that the reason is Kconfig changes in v10, so that the LED support needs to be specifically enabled for ath10k. I have tried adding config-y += ATH10K_LEDS to mac80211 Makefile, but that does not seem to produce the LEDs into the system.
Has anybody got v10-v11 successfully applied and LEDs enabled?
@dissent1 I've added the PCI patches to k4.14, except 0071-4-PCIE-designware-Fixed-PCI-host-init.patch, because it wasn't present on your branch (is it necessary?).
It's compiling ok, but the kernel size remains an issue. In fact, after commit 46c49d8 (optimize for performance) it's worst, because now I have 5 devices failing the image size-check.
Some statistics:
As you can see, even on the best case with kernel 4.14, only ~1.5kB remains free, and the R7800 is always failing.
@hnyman I've read several times that we should not modify the mtd partitions, but what can we do here? Compression might help if all devices support it.
I've just rebases my k4.14 branch against master. The numbers changed a little, but image creation is still failing.
It is quite surprising that the results for d7800 and r7800 differ that much, if I don't miss anything obvious, both should result in identical images (given that they share the same DTS, the same DEVICE_PACKAGES and the same kernel, given that the VDSL modem of the d7800 isn't supported so far).
Fix the following warning from the kbuild test robot:
In file included from drivers/net/wireless/ath/ath10k/core.c:29:0:
drivers/net/wireless/ath/ath10k/core.h:815:13: warning: 'ath10k_unregister_gpio_chip' used but never defined
static void ath10k_unregister_gpio_chip(struct ath10k *ar);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Have you been able to get the R7800 LEDs working with recent versions, v8-v12?
If yes, please share you changes/patches. I tried several recent versions yesterday, and did not get the LEDs working properly.
Yeah, I tried applying the v8 patch to 17.01 and got compile errors. I didn't look further into it, as it is kernel 4.4 and I see this mostly as forwardlooking kernel 4.9 and 4.14 stuff.
sounds nasty that we are reaching kernel size limits with 4.14 for ipq806x.
In R7800 it might be possible to reacllocate the current flash space of kernel+rootfs (2+30?) to e.g. 3+27 and still keep the separate Netgear partition intact. That would leave flashback to OEM firmware possible. But even that might make it difficult to upgrade from 17.01 to master, as the kernel size changes, so it might require TFTP flashing via factory image (due to the nature of having separately kernel and rootfs inside the sysupgrade file). This likely requires input from the core devs. I think that @blogic and @mkresin have most experience with ipq806x deep stuff.
Regarding your reference to my earlier comments: It would be yet quite another additional thing to start taking space from the unused Netgear partition, as that might remove compatibility with Netgear OEM firmware, so it might be that OEM firmware would not work any more. So I do not like that option as the default option for the built firmware image.
Seems to work ok for me. I only tried up to v8 as v9 and later modified the build files and it seems like it’s patching against later revisions of the Linux kernel. Haven’t had time to modify against lede-17.01 4.4 builds.
I had got ok the other context changes in v8, but had overlooked the kernel-version dependent change below (which was behind a dependency check in v7, but which check was removed for v8). That caused the compilation problem I mentioned earlier.
After correcting that, I got the v8 patch applied and compiled ok for 17.01.
However, it seems that the initialisation of the LEDs is sporadic. I have rebooted the 17.01 router four times and have seen so far three outcomes: both LEDs dark, both LEDs work, only 5GHz LED works.
non-existent ubiquiti-specific device spec has been removed
context corrected for debugfs stuff
kernel version dependent change of gpio->gchip.dev = ar->dev; as 17.01 is with old kernel 4.4 (and not 4.5+)
patch line numbers refreshed for 17.01
I did not attach the LED definitions in the gist, as those can be done manually.
The needed code for etc/board.d/01_leds (if you want to do it by script):