sdr0: AP-ENABLED but could not find "openwifi" on phones and computers as 'quick start' on zcu102.
Closed this issue · 0 comments
-
Could you send email to xianjun.jiao@ugent.be to introduce your self?
Yes, already sent. -
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". -
What is your own modification?
No modification -
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. -
Board/hardware type
ZCU102, FMCOMMS3 -
WiFi channel number
Default -
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/openwifi# ./wgd.sh
root@analog:
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
- ifconfig sdr0 down
sdr0: ERROR while getting interface flags: No such device - rmmod sdr
rmmod: ERROR: Module sdr is not currently loaded - rmmod openofdm_rx
rmmod: ERROR: Module openofdm_rx is not currently loaded - rmmod openofdm_tx
rmmod: ERROR: Module openofdm_tx is not currently loaded - rmmod rx_intf
rmmod: ERROR: Module rx_intf is not currently loaded - rmmod tx_intf
rmmod: ERROR: Module tx_intf is not currently loaded - rmmod xpu
rmmod: ERROR: Module xpu is not currently loaded - sleep 1
- '[' -f .//system_top.bit.bin ']'
- echo 0
- mkdir -p /lib/firmware
- cp .//system_top.bit.bin /lib/firmware/ -rf
- echo system_top.bit.bin
- '[' xlnx,zynqmp-zcu102-rev1.0xlnx,zynqmp-zcu102xlnx,zynqmp '!=' xlnx,zynq-7000 ']'
- SPI_DEVNAME=spi1.0
- DDS_DEVNAME=99024000.cf-ad9361-dds-core-lpc
- ADC_DEVNAME=99020000.cf-ad9361-lpc
- '[' '!' -d /sys/bus/spi/drivers/ad9361/spi1.0 ']'
- cd /sys/bus/spi/drivers/ad9361/
- echo spi1.0
- echo spi1.0
- '[' '!' -d /sys/bus/platform/drivers/cf_axi_adc/99020000.cf-ad9361-lpc ']'
- cd /sys/bus/platform/drivers/cf_axi_adc/
- echo 99020000.cf-ad9361-lpc
- echo 99020000.cf-ad9361-lpc
- set +x
tx_offset_tuning_enable 0
openwifi_ad9361_fir_tx_0MHz_11n.ftr tx_fir_enable 1
Found openwifi_ad9361_fir_tx_0MHz_11n.ftr - test -f /sys/bus/iio/devices/iio:device0/in_voltage_rf_bandwidth
- test -f /sys/bus/iio/devices/iio:device1/in_voltage_rf_bandwidth
- cd /sys/bus/iio/devices/iio:device1/
- set +x
FIR Rx: 48,1 Tx: 48,1
1
1
rx0 agc fast_attack
slow_attack
fast_attack
rx1 agc fast_attack
slow_attack
fast_attack
40000000
25215513
40000000
25215414
rssi
112.50 dB
110.75 dB
rx0 gain to 70
73.000000 dB
./rf_init_11n.sh: 101: echo: echo: I/O error
73.000000 dB
rx1 gain to 70
60.000000 dB
./rf_init_11n.sh: 106: echo: echo: I/O error
60.000000 dB
tx0 gain -89dB
-10.000000 dB
-89.000000 dB
tx1 gain 0dB
-10.000000 dB
0.000000 dB
rmmod: ERROR: Module tx_intf is not currently loaded - insmod .//tx_intf.ko
tx_intf is loaded!
rmmod: ERROR: Module rx_intf is not currently loaded - insmod .//rx_intf.ko
rx_intf is loaded!
rmmod: ERROR: Module openofdm_tx is not currently loaded - insmod .//openofdm_tx.ko
openofdm_tx is loaded!
rmmod: ERROR: Module openofdm_rx is not currently loaded - insmod .//openofdm_rx.ko
openofdm_rx is loaded!
rmmod: ERROR: Module xpu is not currently loaded - insmod .//xpu.ko
xpu is loaded!
rmmod: ERROR: Module sdr is not currently loaded - insmod .//sdr.ko test_mode=0
sdr is loaded!
the end
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:a0 and ssid "openwifi"
sdr0: interface state COUNTRY_UPDATE->ENABLED
sdr0: AP-ENABLED
Could not find "openwifi" on phones and computers.
- 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 arch_ti 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 nwl_pci 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_ pkt_intr
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
-
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# -
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/openwifi# ./fosdem.sh
root@analog:
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 arch_ti 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 nwl_pci 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_ pkt_intr
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)