open-sdr / openwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
GNU Affero General Public License v3.0
3.68k stars 627 forks source link

sdr0: AP-ENABLED but could not find "openwifi" on phones and computers as 'quick start' on zcu102. #388

Closed 2018boyan closed 5 months ago

2018boyan commented 5 months ago
  1. Could you send email to xianjun.jiao@ugent.be to introduce your self? Yes, already sent.

  2. Our image is used directly or you build your own image? Your image is used directly. I used the image "openwifi-1.4.0-notter.img" unzipped from "openwifi-1.4.0-notter.img.xz".

  3. What is your own modification? No modification

  4. Versions: OS, Vivado, openwifi/openwifi-hw repo branch and commit revision Ubuntu 20.04, Just use openwifi-1.4.0-notter.img for Quick start.

  5. Board/hardware type ZCU102, FMCOMMS3

  6. WiFi channel number Default

  7. Steps to reproduce the issue, and the related error message, screenshot, etc Just followed "Quick start" and use files in "BOOT\openwifi\zcu102_fmcs2" root@analog:~# cd openwifi root@analog:~/openwifi# ./wgd.sh usage: Script for load (or download+load) different driver and FPGA img without reboo ting no argument: Load .ko driver files and FPGA img (if system_top.bit.bin exist) in current dir with test_mode=0. 1st argument: If it is a NUMBER, it will be assigned to test_mode. Then load e verything from current dir. 1st argument: If it is a string called "remote", it will download driver/FPGA and load everything.

    • 2nd argument (if exist) is the target directory name for downloading and rel oading
    • 3rd argument (if exist) is the value for test_mode 1st argument: neither NUMBER nor "remote" nor a .tar.gz file, it is regarded a s a directory and load everything from it.
    • 2nd argument (if exist) is the value for test_mode 1st argument: a .tar.gz file, it will be unpacked then load from that unpacked directory
    • 2nd argument (if exist) is the value for test_mode

insmod: ERROR: could not insert module ad9361_drv.ko: Invalid module format Module Size Used by xilinx_dma 32768 0 8021q 28672 0 uio_pdrv_genirq 16384 0 TARGET_DIR ./ DOWNLOAD_FLAG 0 test_mode 0 tx_offset_tuning_enable 0 $TARGET_DIR is found!

hostapd: no process found dhcpd: no process found sdr0: ERROR while getting interface flags: No such device rmmod: ERROR: Module sdr is not currently loaded ./load_fpga_img.sh: line 14: warning: command substitution: ignored null byte in input xlnx,zynqmp-zcu102-rev1.0xlnx,zynqmp-zcu102xlnx,zynqmp .//system_top.bit.bin system_top.bit.bin

Could not find "openwifi" on phones and computers.

  1. Describe your debug efforts by Linux native tools, such as tcpdump and "cat /proc/interrupts"

root@analog:~# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 11: 36251 67065 27275 11895 GICv2 30 Level archti mer 14: 0 0 0 0 GICv2 67 Level zynqmp ipi 15: 0 0 0 0 GICv2 175 Level arm-pmu 16: 0 0 0 0 GICv2 176 Level arm-pmu 17: 0 0 0 0 GICv2 177 Level arm-pmu 18: 0 0 0 0 GICv2 178 Level arm-pmu 20: 0 0 0 0 GICv2 156 Level zynqmp- dma 21: 0 0 0 0 GICv2 157 Level zynqmp- dma 22: 0 0 0 0 GICv2 158 Level zynqmp- dma 23: 0 0 0 0 GICv2 159 Level zynqmp- dma 24: 0 0 0 0 GICv2 160 Level zynqmp- dma 25: 0 0 0 0 GICv2 161 Level zynqmp- dma 26: 0 0 0 0 GICv2 162 Level zynqmp- dma 27: 0 0 0 0 GICv2 163 Level zynqmp- dma 30: 0 0 0 0 GICv2 95 Level eth0, e th0 32: 595 0 0 0 GICv2 49 Level cdns-i2 c 33: 802 0 0 0 GICv2 50 Level cdns-i2 c 34: 0 0 0 0 GICv2 42 Level ff96000 0.memory-controller 35: 0 0 0 0 GICv2 57 Level axi-pmo n, axi-pmon 36: 0 0 0 0 GICv2 155 Level axi-pmo n, axi-pmon 37: 0 0 0 0 GICv2 150 Level nwlpci e:misc 42: 5946 0 0 0 GICv2 47 Level ff0f000 0.spi 43: 0 0 0 0 GICv2 58 Level ffa6000 0.rtc 44: 0 0 0 0 GICv2 59 Level ffa6000 0.rtc 45: 0 0 0 0 GICv2 165 Level ahci-ce va[fd0c0000.ahci] 46: 12040 0 0 0 GICv2 81 Level mmc0 47: 227388 0 0 0 GICv2 51 Level ff04000 0.spi 48: 497 0 0 0 GICv2 53 Level xuartps 51: 0 0 0 0 GICv2 88 Level ams-irq 52: 0 0 0 0 GICv2 154 Level fd4c000 0.dma-controller 53: 0 0 0 0 GICv2 151 Level fd4a000 0.display 55: 0 0 0 0 GICv2 122 Edge sdr,rx pktintr **57: 262 0 0 0 GICv2 126 Edge sdr,tx itrpt 58: 262 0 0 0 GICv2 127 Level xilinx- dma-controller 59: 0 0 0 0 GICv2 128 Level xilinx- dma-controller 60: 0 0 0 0 GICv2 123 Level xilinx- dma-controller 61: 0 0 0 0 GICv2 124 Level xilinx- dma-controller 62: 0 0 0 0 GICv2 97 Level dwc3 63: 1 0 0 0 GICv2 101 Level dwc3-ot g 64: 0 0 0 0 GICv2 107 Level usb-wak eup 65: 0 0 0 0 zynq-gpio 22 Edge sw19 IPI0: 471 421 487 385 Rescheduling interrupts IPI1: 7098 128468 54709 23299 Function call interrupts IPI2: 0 0 0 0 CPU stop interrupts IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 0 0 Timer broadcast interrupt s IPI5: 0 0 0 0 IRQ work interrupts IPI6: 0 0 0 0 CPU wake-up interrupts Err: 0 root@analog:~# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 11: 37375 68058 28086 14066 GICv2 30 Level arch_timer 14: 0 0 0 0 GICv2 67 Level zynqmp_ipi 15: 0 0 0 0 GICv2 175 Level arm-pmu 16: 0 0 0 0 GICv2 176 Level arm-pmu 17: 0 0 0 0 GICv2 177 Level arm-pmu 18: 0 0 0 0 GICv2 178 Level arm-pmu 20: 0 0 0 0 GICv2 156 Level zynqmp-dma 21: 0 0 0 0 GICv2 157 Level zynqmp-dma 22: 0 0 0 0 GICv2 158 Level zynqmp-dma 23: 0 0 0 0 GICv2 159 Level zynqmp-dma 24: 0 0 0 0 GICv2 160 Level zynqmp-dma 25: 0 0 0 0 GICv2 161 Level zynqmp-dma 26: 0 0 0 0 GICv2 162 Level zynqmp-dma 27: 0 0 0 0 GICv2 163 Level zynqmp-dma 30: 0 0 0 0 GICv2 95 Level eth0, eth0 32: 595 0 0 0 GICv2 49 Level cdns-i2c 33: 802 0 0 0 GICv2 50 Level cdns-i2c 34: 0 0 0 0 GICv2 42 Level ff960000.memory-controller 35: 0 0 0 0 GICv2 57 Level axi-pmon, axi-pmon 36: 0 0 0 0 GICv2 155 Level axi-pmon, axi-pmon 37: 0 0 0 0 GICv2 150 Level nwl_pcie:misc 42: 5946 0 0 0 GICv2 47 Level ff0f0000.spi 43: 0 0 0 0 GICv2 58 Level ffa60000.rtc 44: 0 0 0 0 GICv2 59 Level ffa60000.rtc 45: 0 0 0 0 GICv2 165 Level ahci-ceva[fd0c0000.ahci] 46: 13536 0 0 0 GICv2 81 Level mmc0 47: 227398 0 0 0 GICv2 51 Level ff040000.spi 48: 568 0 0 0 GICv2 53 Level xuartps 51: 0 0 0 0 GICv2 88 Level ams-irq 52: 0 0 0 0 GICv2 154 Level fd4c0000.dma-controller 53: 0 0 0 0 GICv2 151 Level fd4a0000.display 55: 0 0 0 0 GICv2 122 Edge sdr,rx_pkt_intr 57: 524 0 0 0 GICv2 126 Edge sdr,tx_itrpt 58: 524 0 0 0 GICv2 127 Level xilinx-dma-controller** 59: 0 0 0 0 GICv2 128 Level xilinx-dma-controller 60: 0 0 0 0 GICv2 123 Level xilinx-dma-controller 61: 0 0 0 0 GICv2 124 Level xilinx-dma-controller 62: 0 0 0 0 GICv2 97 Level dwc3 63: 1 0 0 0 GICv2 101 Level dwc3-otg 64: 0 0 0 0 GICv2 107 Level usb-wakeup 65: 0 0 0 0 zynq-gpio 22 Edge sw19 IPI0: 548 498 563 440 Rescheduling interrupts IPI1: 7409 129387 55039 23563 Function call interrupts IPI2: 0 0 0 0 CPU stop interrupts IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 0 0 Timer broadcast interrupts IPI5: 0 0 0 0 IRQ work interrupts IPI6: 0 0 0 0 CPU wake-up interrupts Err: 0

  1. Describe your debug efforts by: https://github.com/open-sdr/openwifi/blob/master/doc/README.md#Debug-methods root@analog:~/openwifi# ./sdrctl dev sdr0 set reg drv_tx 7 1 reg cat: 8 reg addr: 0008001c reg val: 00000001 root@analog:~/openwifi# ./sdrctl dev sdr0 set reg drv_tx 7 2 reg cat: 8 reg addr: 0008001c reg val: 00000002 root@analog:~/openwifi# ./sdrctl dev sdr0 set reg drv_tx 7 3 reg cat: 8 reg addr: 0008001c reg val: 00000003 root@analog:~/openwifi#

  2. Any other thing we need to know for helping you better? I also try another way from internet: root@analog:~/openwifi# ifconfig sdr sdr-ad-hoc-join.sh sdrctl sdr.ko sdr-ad-hoc-up.sh sdrctl_src/ root@analog:~/openwifi# ifconfig sdr0 up root@analog:~/openwifi# iwlist sdr0 scan sdr0 Failed to read scan data : Resource temporarily unavailable

root@analog:~/openwifi# ifconfig sdr0 up root@analog:~/openwifi# ./fosdem.sh hostapd: no process found rm: cannot remove '/var/run/dhcpd.pid': No such file or directory Job for isc-dhcp-server.service failed because the control process exited with e rror code. See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details. Configuration file: hostapd-openwifi.conf sdr0: interface state UNINITIALIZED->COUNTRY_UPDATE Using interface sdr0 with hwaddr 66:55:44:33:22:63 and ssid "openwifi" sdr0: interface state COUNTRY_UPDATE->ENABLED sdr0: AP-ENABLED root@analog:~/openwifi# iwlist sdr0 scan sdr0 Interface doesn't support scanning : Operation not supported

root@analog:~/openwifi# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 11: 171165 261754 174057 114415 GICv2 30 Level archti mer 14: 0 0 0 0 GICv2 67 Level zynqmp ipi 15: 0 0 0 0 GICv2 175 Level arm-pmu 16: 0 0 0 0 GICv2 176 Level arm-pmu 17: 0 0 0 0 GICv2 177 Level arm-pmu 18: 0 0 0 0 GICv2 178 Level arm-pmu 20: 0 0 0 0 GICv2 156 Level zynqmp- dma 21: 0 0 0 0 GICv2 157 Level zynqmp- dma 22: 0 0 0 0 GICv2 158 Level zynqmp- dma 23: 0 0 0 0 GICv2 159 Level zynqmp- dma 24: 0 0 0 0 GICv2 160 Level zynqmp- dma 25: 0 0 0 0 GICv2 161 Level zynqmp- dma 26: 0 0 0 0 GICv2 162 Level zynqmp- dma 27: 0 0 0 0 GICv2 163 Level zynqmp- dma 30: 0 0 0 0 GICv2 95 Level eth0, e th0 32: 595 0 0 0 GICv2 49 Level cdns-i2 c 33: 802 0 0 0 GICv2 50 Level cdns-i2 c 34: 0 0 0 0 GICv2 42 Level ff96000 0.memory-controller 35: 0 0 0 0 GICv2 57 Level axi-pmo n, axi-pmon 36: 0 0 0 0 GICv2 155 Level axi-pmo n, axi-pmon 37: 0 0 0 0 GICv2 150 Level nwlpci e:misc 42: 5946 0 0 0 GICv2 47 Level ff0f000 0.spi 43: 0 0 0 0 GICv2 58 Level ffa6000 0.rtc 44: 0 0 0 0 GICv2 59 Level ffa6000 0.rtc 45: 0 0 0 0 GICv2 165 Level ahci-ce va[fd0c0000.ahci] 46: 18476 0 0 0 GICv2 81 Level mmc0 47: 1248921 0 0 0 GICv2 51 Level ff04000 0.spi 48: 609 0 0 0 GICv2 53 Level xuartps 51: 0 0 0 0 GICv2 88 Level ams-irq 52: 0 0 0 0 GICv2 154 Level fd4c000 0.dma-controller 53: 0 0 0 0 GICv2 151 Level fd4a000 0.display 55: 1 0 0 0 GICv2 122 Edge sdr,rx pktintr **57: 1921 0 0 0 GICv2 126 Edge sdr,tx itrpt 58: 1921 0 0 0 GICv2 127 Level xilinx- dma-controller 59: 0 0 0 0 GICv2 128 Level xilinx- dma-controller 60: 0 0 0 0 GICv2 123 Level xilinx- dma-controller 61: 1 0 0 0 GICv2 124 Level xilinx- dma-controller 62: 0 0 0 0 GICv2 97 Level dwc3 63: 1 0 0 0 GICv2 101 Level dwc3-ot g 64: 0 0 0 0 GICv2 107 Level usb-wak eup 65: 0 0 0 0 zynq-gpio 22 Edge sw19 IPI0: 1367 1234 1286 1181 Rescheduling interrupts IPI1: 15776 502109 373058 265325 Function call interrupts IPI2: 0 0 0 0 CPU stop interrupts IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 0 0 Timer broadcast interrupt s IPI5: 0 0 0 0 IRQ work interrupts IPI6: 0 0 0 0 CPU wake-up interrupts Err: 0 root@analog:~/openwifi# cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 11: 171304 262491 174189 114619 GICv2 30 Level arch_timer 14: 0 0 0 0 GICv2 67 Level zynqmp_ipi 15: 0 0 0 0 GICv2 175 Level arm-pmu 16: 0 0 0 0 GICv2 176 Level arm-pmu 17: 0 0 0 0 GICv2 177 Level arm-pmu 18: 0 0 0 0 GICv2 178 Level arm-pmu 20: 0 0 0 0 GICv2 156 Level zynqmp-dma 21: 0 0 0 0 GICv2 157 Level zynqmp-dma 22: 0 0 0 0 GICv2 158 Level zynqmp-dma 23: 0 0 0 0 GICv2 159 Level zynqmp-dma 24: 0 0 0 0 GICv2 160 Level zynqmp-dma 25: 0 0 0 0 GICv2 161 Level zynqmp-dma 26: 0 0 0 0 GICv2 162 Level zynqmp-dma 27: 0 0 0 0 GICv2 163 Level zynqmp-dma 30: 0 0 0 0 GICv2 95 Level eth0, eth0 32: 595 0 0 0 GICv2 49 Level cdns-i2c 33: 802 0 0 0 GICv2 50 Level cdns-i2c 34: 0 0 0 0 GICv2 42 Level ff960000.memory-controller 35: 0 0 0 0 GICv2 57 Level axi-pmon, axi-pmon 36: 0 0 0 0 GICv2 155 Level axi-pmon, axi-pmon 37: 0 0 0 0 GICv2 150 Level nwl_pcie:misc 42: 5946 0 0 0 GICv2 47 Level ff0f0000.spi 43: 0 0 0 0 GICv2 58 Level ffa60000.rtc 44: 0 0 0 0 GICv2 59 Level ffa60000.rtc 45: 0 0 0 0 GICv2 165 Level ahci-ceva[fd0c0000.ahci] 46: 18542 0 0 0 GICv2 81 Level mmc0 47: 1248923 0 0 0 GICv2 51 Level ff040000.spi 48: 680 0 0 0 GICv2 53 Level xuartps 51: 0 0 0 0 GICv2 88 Level ams-irq 52: 0 0 0 0 GICv2 154 Level fd4c0000.dma-controller 53: 0 0 0 0 GICv2 151 Level fd4a0000.display 55: 1 0 0 0 GICv2 122 Edge sdr,rx_pkt_intr 57: 1991 0 0 0 GICv2 126 Edge sdr,tx_itrpt 58: 1991 0 0 0 GICv2 127 Level xilinx-dma-controller** 59: 0 0 0 0 GICv2 128 Level xilinx-dma-controller 60: 0 0 0 0 GICv2 123 Level xilinx-dma-controller 61: 1 0 0 0 GICv2 124 Level xilinx-dma-controller 62: 0 0 0 0 GICv2 97 Level dwc3 63: 1 0 0 0 GICv2 101 Level dwc3-otg 64: 0 0 0 0 GICv2 107 Level usb-wakeup 65: 0 0 0 0 zynq-gpio 22 Edge sw19 IPI0: 1387 1239 1309 1198 Rescheduling interrupts IPI1: 15846 502173 373114 265377 Function call interrupts IPI2: 0 0 0 0 CPU stop interrupts IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 0 0 Timer broadcast interrupts IPI5: 0 0 0 0 IRQ work interrupts IPI6: 0 0 0 0 CPU wake-up interrupts Err:

root@analog:~/openwifi# wpa_supplicant -i sdr0 -c wpa-openwifi.conf Successfully initialized wpa_supplicant nl80211: kernel reports: Match already configured nl80211: Could not configure driver mode nl80211: deinit ifname=sdr0 disabled_11b_rates=0 sdr0: INTERFACE-DISABLED sdr0: INTERFACE-ENABLED nl80211: kernel reports: key not allowed Failed to set beacon parameters sdr0: Failed to initialize driver interface root@analog:~/openwifi# iw reg get global country BE: DFS-ETSI (2400 - 2483 @ 40), (N/A, 20), (N/A) (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS (5725 - 5875 @ 80), (N/A, 13), (N/A) (57000 - 66000 @ 2160), (N/A, 40), (N/A)