Install OCB mode in APU2

Hey there,

I am trying to install OCB mode in an APU2 but I am facing some problems.
The method I am following, correct me if I am wrong please, is the next one:

  • Select on the menuconfig the target, subtarget, drivers for ath9k, mac80211, lib80211, cfg80211, wireless-tools among others that I believe do not influence my purpose.

  • Change the .config (CONFIG_CFG80211=y) so that I can select afterwards the option CONFIG_CFG80211_INTERNAL_REGDB. I also changed the db.txt to the one I am interested in.

  • After compiling, I added driver modifications for ath9k to work at higher frequencies.

When I try this new image on the APU the following message appears:

[    9.605686] kmodloader: dependency not loaded cfg80211
[    9.610959] kmodloader: - ath - 1
[    9.614489] kmodloader: dependency not loaded mac80211
[    9.619787] kmodloader: dependency not loaded ath9k_hw
[    9.625135] kmodloader: dependency not loaded ath9k_common
[    9.630779] kmodloader: dependency not loaded cfg80211
[    9.636066] kmodloader: dependency not loaded ath
[    9.641052] kmodloader: - ath9k - 5
[    9.644675] kmodloader: dependency not loaded cfg80211
[    9.650012] kmodloader: dependency not loaded ath9k_hw
[    9.655384] kmodloader: dependency not loaded ath
[    9.660221] kmodloader: - ath9k_common - 3
[    9.664428] kmodloader: dependency not loaded mac80211
[    9.669835] kmodloader: dependency not loaded ath9k_hw
[    9.675216] kmodloader: dependency not loaded ath9k_common
[    9.680884] kmodloader: dependency not loaded ath
[    9.685756] kmodloader: dependency not loaded cfg80211
[    9.691143] kmodloader: - ath9k_htc - 5
[    9.695178] kmodloader: dependency not loaded ath
[    9.700111] kmodloader: - ath9k_hw - 1
[    9.703966] kmodloader: - cfg80211 - 0
[    9.707922] kmodloader: dependency not loaded cfg80211
[    9.713336] kmodloader: - mac80211 - 1
[    9.717306] kmodloader: dependency not loaded mac80211
[    9.722701] kmodloader: dependency not loaded cfg80211

The db.txt is loaded correctly since by typing "iw reg get" I obtain the right answer:

country DE: DFS-ETSI
        (2400 - 2483 @ 40), (N/A, 20), (N/A)
        (5150 - 5350 @ 80), (N/A, 20), (N/A), NO-OUTDOOR
        (5470 - 5725 @ 80), (N/A, 27), (0 ms), DFS
        (5850 - 5925 @ 20), (N/A, 20), (N/A), NO-CCK
        (57240 - 65880 @ 2160), (N/A, 40), (N/A), NO-OUTDOOR

But I do not obtain an answer for simple commands as "iw list" or "iw phy".

I also tried to do the same process without setting the CONFIG_CFG80211_INTERNAL_REGDB and the previous two commands worked perfectly.
I know that the problem has nothing to do with the driver modifications since I tried to do the whole process without modifying them and I got the same problems with the modules not loaded and without answer to some of the iw commands.

I would be very pleased if someone could help me.