erikarn / athp

freebsd ath10k port

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No wlan interface after loading kernel module

k0pernicus opened this issue · comments

I am running FreeBSD RELEASE 12.0 on my laptop, which requires a QCA6174 firmware for the network card (to get wifi).

Based on issues #11 and #20, I was able to compile on RELEASE 12.0 both kernel modules & binaries.

After rebooting, I loaded the following modules using those commands:

kldload athp_QCA6174_hw3.0_board.bin
kldload athp_QCA6174_hw3.0_firmware-4.bin
kldload if_athp

No crash after the last command... but no output either (even using dmesg).

When I launch ifconfig to get my network interfaces, I only get l0, and no another one.

If I try to create a wlan interface, using the following command: ifconfig wlan0 create wlandev athp0 wlanmode hostap, I get the following error: ifconfig: SIOCIFCREATE2: Device not configured.

Did I missed something after the last kldload command?

I dont think so, can you get me a full dmesg or syslog please?

Please find below the output of dmesg -a after my kldload commands:

---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-RELEASE r341666 GENERIC amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
VT(efifb): resolution 1920x1080
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (1992.08-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x806ea  Family=0x6  Model=0x8e  Stepping=10
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x29c67af<FSGSBASE,TSCADJ,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  Structured Extended Features3=0x9c000000<IBPB,STIBP,L1DFL,SSBD>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16250204160 (15497 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <DELL   CBX3   >
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-119 on motherboard
Launching APs: 1 2 6 3 7 4 5
Timecounter "TSC" frequency 1992075842 Hz quality 1000
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff810f9770, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
[ath_dfs] loaded
[ath_rate] loaded
[ar9300] loaded
[ar5212] loaded
[ar5416] loaded
[ar5211] loaded
[ar5210] loaded
[ath] loaded
nexus0
efirtc0: <EFI Realtime Clock> on motherboard
efirtc0: registered as a time-of-day clock, resolution 1.000000s
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard
acpi0: <DELL CBX3   > on motherboard
acpi0: Power Button (fixed)
unknown: memory range not supported
cpu0: <ACPI CPU> on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 24000000 Hz quality 950
Event timer "HPET" frequency 24000000 Hz quality 550
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x6e> port 0x930,0x934 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0xdb000000-0xdbffffff,0x50000000-0x5fffffff at device 2.0 on pci0
vgapci0: Boot video device
xhci0: <Intel Sunrise Point-LP USB 3.0 controller> mem 0xdc210000-0xdc21ffff at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms> at device 22.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <unknown> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 28.4 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 0.0 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 0.0 on pci3
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 1.0 on pci3
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 2.0 on pci3
pci6: <ACPI PCI bus> on pcib6
pcib7: <PCI-PCI bridge> at device 4.0 on pci3
pci7: <PCI bus> on pcib7
pcib8: <ACPI PCI-PCI bridge> at device 29.0 on pci0
pci8: <ACPI PCI bus> on pcib8
nvme0: <Generic NVMe Device> mem 0xdc000000-0xdc003fff at device 0.0 on pci8
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
pci0: <memory> at device 31.2 (no driver attached)
hdac0: <Intel Kabylake-LP HDA Controller> mem 0xdc228000-0xdc22bfff,0xdc200000-0xdc20ffff at device 31.3 on pci0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
est0: <Enhanced SpeedStep Frequency Control> on cpu0
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
ugen0.1: <0x8086 XHCI root HUB> at usbus0
uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
nvd0: <CA3-8D512-Q11 NVMe LITEON 512GB> NVMe namespace
nvd0: 488386MB (1000215216 512 byte sectors)
hdacc0: <Realtek ALC299 HDA CODEC> at cad 0 on hdac0
GEOM_ELI: Device nvd0p4.eli created.
hdaa0: GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI:     Crypto: hardware
<Realtek ALC299 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC299 (Analog)> at nid 23 and 18 on hdaa0
pcm1: <Realtek ALC299 (Right Analog Headphones)> at nid 33 on hdaa0
hdacc1: <Intel Kabylake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kabylake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kabylake (HDMI/DP 8ch)> at nid 3 on hdaa1
Trying to mount root from zfs:zroot/ROOT/default []...
Root mount waiting for: usbus0
uhub0: 18 ports with 18 removable, self powered
Root mount waiting for: usbus0
ugen0.2: <CN0FFMHCLOG0089AB1VAA01 IntegratedWebcamHD> at usbus0
Root mount waiting for: usbus0
ugen0.3: <HTMicroelectronics Goodix Fingerprint Device> at usbus0
lo0: link state changed to UP
umodem0 on uhub0
umodem0: <HTMicroelectronics Goodix Fingerprint Device, class 239/2, rev 2.00/1.00, addr 2> on usbus0
umodem0: data interface 1, has no CM over data, has no break

ifconfig output after my kldload commands:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
	inet 127.0.0.1 netmask 0xff000000 
	groups: lo 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

I dont see athp loading in your dmesg, whats the syslog look like?
if you would like to contact me on hangouts I can try to help you faster, gloveless@jqluv.com is my email/gmail

@Geramy Do you have any command propositions to run on my computer please?
Do you want something in /var/log ?

Did you copy over the bin files as well and the .ko files?
I'm trying to figure out why you now have no logging at all regarding athp if you can find another log file with information please upload it as a file, I do not know the naming conventions by heart in freebsd

I just checked and yes, I copied over /boot/kernel all the .ko files generated, and in /boot/modules the .bin files generated as well...
The five files (for both hw_2.1 + hw_3.0 + if_athp) have been created and moved at the same time.

There really should be more logs then that an you try to unload and reload a couple of times and see if it generates any logs? Try syslog or messages.log or uhm shoot anything really, so what I would do is go through the logs and do something like this: cat /var/log/lognamehere | grep athp
and see which log file spits out results and then send that to me haha :)

are you sure it is present and recognised by the system?
with

pciconf -v -l | grep Ath -a3

does it show it ?
you should have something like

none@pci0:4:0:0:       class=0x028000 card=0x00000000 chip=0x003c168c rev=0x00 hdr=0x00
    vendor     = 'Qualcomm Atheros'
    device     = 'QCA986x/988x 802.11ac Wireless Network Adapter'
    class      = network

Hello guys,

I have the same problem as k0pernicus, nothing is shown in the dmesg or any other log file.
I have an dell g3 with a QCA9377. the pciconf is bellow.
There's something else that I can do to help the test/development of the driver?

pciconf -v -l | grep Ath -a3
    class      = network
    subclass   = ethernet
none9@pci0:3:0:0:     class=0x028000 card=0x18101028 chip=0x0042168c rev=0x31 hdr=0x00
    vendor     = 'Qualcomm Atheros'
    device     = 'QCA9377 802.11ac Wireless Network Adapter'
    class      = network

Hey guys I know it's been a while I'm about a week out from being available to work on this I'm sorry. If I have extra time this week I will do my best to help. Please open a new ticket @marioolofo