Add OCB mode 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 (openwrt/build_dir/ target_x86_64_musl/linux-x86_64/linux-4.14.81/net/wireless) to the one I am interested in.
country DE: DFS-ETSI
        # entries 279004 and 280006
        (2400 - 2483.5 @ 40), (100 mW)
        # entry 303005, 304002 and 305002
        (5150 - 5350 @ 80), (100 mW), NO-OUTDOOR
        # entries 308002, 309001 and 310003
        (5470 - 5725 @ 80), (500 mW), DFS
        # For ITS-G5 evaluation
        (5850 - 5925 @ 20), (100 mW), NO-CCK, OCB-ONLY
        # 60 gHz band channels 1-4, ref: Etsi En 302 567
        (57240 - 65880 @ 2160), (40), NO-OUTDOOR
  • 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 set DE" and "iw reg get DE" I obtain the right answer, I mean the frequencies changed in the db.txt that are added previously.

But I do not obtain an answer for simple commands as "iw list" or "iw phy", so the wireless card is not working properly.

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.

Does anyone know what the problem is? Am I following the right steps?

Thank you so much for your help :slight_smile:

P.

(Moved to the For Developers section.)

1 Like