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 not loaded on ANTSDR E310 #357

Closed remydemy closed 8 months ago

remydemy commented 8 months ago

Hei, I'm trying to get openwifi working on my Antsdr E310. But the wgd.sh script fails and therefore the fosdem.sh script also fails. I flashed the openwifi-1.4.0-notter.imgonto a 32GB SD card using Ubuntu and put the three files that are in the antsdr into the base folder of BOOT. I also checked for the kernel_modules and interfaces.new which did not exist. After running raspi-config --expand-rootfs and ./openwifi/setup_once.sh, which ran without problems, I proceeded to execute ./wdg.sh in the openwifi-Folder. Now here comes the problem. I get following output: root@analog:~/openwifi# ./wgd.sh usage: Script for load (or download+load) different driver and FPGA img without rebooting 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 everything from current dir. 1st argument: If it is a string called "remote", it will download driver/FPGA and load everything.

Module Size Used by mac80211 565248 0 libarc4 16384 1 mac80211 xilinx_dma 28672 0 ad9361_drv 163840 2 cfg80211 319488 1 mac80211 8021q 24576 0 mwipcore 16384 0 mwipcore_iio_streaming 16384 1 mwipcore mwipcore_dma_streaming 20480 1 mwipcore mathworks_ip_common 16384 1 mwipcore ipv6 397312 28 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,zynq-7000 .//system_top.bit.bin system_top.bit.bin

It says at the end that sdr is loaded. But obviously it is not because a couple lines above it's not correctly loaded.

When I then run ./fosdem.sh I get: 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 error 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:61 and ssid "openwifi" sdr0: interface state COUNTRY_UPDATE->ENABLED sdr0: AP-ENABLED

Running systemctl status isc-dhcp-server.service results in: root@analog:~/openwifi# systemctl status isc-dhcp-server.service ● isc-dhcp-server.service - LSB: DHCP server Loaded: loaded (/etc/init.d/isc-dhcp-server; generated) Active: failed (Result: exit-code) since Thu 2023-02-09 10:58:20 GMT; 44s ago Docs: man:systemd-sysv-generator(8) Process: 13048 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE) CPU: 349ms CGroup: /system.slice/isc-dhcp-server.service └─13066 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf

What can I do, so that the sdr is loaded correctly and the dhcp server runs?

On a side note: While running the setup_once.sh the output said make: warning: Clock skew detected. Your build may be incomplete., but I'm not sure if that is relevant.

Thanks for any help! Best regards, Emily

JiaoXianjun commented 8 months ago

I don't see any issue with your log. Can you connect the SSID openwifi from your phone/laptop?

remydemy commented 8 months ago

Yes ok nvm. I was so confused by the output saying sdr0 is not loaded, that I did not try if I can connect to the ssid. Which I now tried and I can. Sorry for the bother nad thanks for the quick reply!

Btw whats the reason for it saying that sdr0 is not loaded correctly?