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

Start with Openwifi #317

Open Maxelectronics opened 1 year ago

Maxelectronics commented 1 year ago

I am currently trying to implement Openwifi on an ADRV9361-Z7035-BOB board and I would like to know where exactly we should copy the BOOT.bin and devicetree.tdb files? One more thing, when we want to connect the board to our PC, should the Ethernet cable from our PC be connected to the board? Or should we leave it connected to the router and then change its address?

JiaoXianjun commented 1 year ago

Can you fill in the template? We need more information to understand the circumstances. Normally you don't need to do manual copy of .bin and .dtb. You can follow this: https://github.com/open-sdr/openwifi#update-fpga

Normally we connect the board to PC directly via Ethernet cable. But this is standard ip/ethernet thing, you can decide your way.

Maxelectronics commented 1 year ago

I don't see where it says to build the FPGA. I followed the instructions, but I encounter an error when running wgd.sh.

cd openwifi root@analog:~/openwifi# ./wgd.sh usage: Script for load (or download+load) different driver and FPGA img without rebog no argument: Load .ko driver files and FPGA img (if system_top.bit.bin exist. 1st argument: If it is a NUMBER, it will be assigned to test_mode. Then load . 1st argument: If it is a string called "remote", it will download driver/FPGA.

insmod: ERROR: could not load module ad9361_drv.ko: No such file or directory insmod: ERROR: could not load module xilinx_dma.ko: No such file or directory modprobe: FATAL: Module mac80211 not found in directory /lib/modules/5.10.0-982y Module Size Used by 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
.//system_top.bit.bin not found. Skip reloading FPGA.
tx_offset_tuning_enable 0
openwifi_ad9361_fir_tx_0MHz_11n.ftr tx_fir_enable 1
Found openwifi_ad9361_fir_tx_0MHz_11n.ftr

JiaoXianjun commented 1 year ago

The error implies essential issue. In most cases, it is due to some wrong operations.

  1. Please fill the issue template.
  2. Please describe in details about the exact operation and its output step by step to reproduce this issue. Description should start from you download our SD card img file, and how do you flash it to SD card with all info (OS version, etc, as listed in our issue template).
Maxelectronics commented 1 year ago

I need to update my FPGA before this steps ?

raspi-config --expand-rootfs (Only needed when your SD card > 16GB. Run and reboot) ./openwifi/setup_once.sh (Reboot the board. Only need to run once for new board) cd openwifi ./wgd.sh ./fosdem.sh (Use "./wgd.sh 1" to enable experimental AMPDU aggregation on top of 11n) (Use "./fosdem-11ag.sh" to force 11a/g mode)

JiaoXianjun commented 1 year ago
  1. Please fill the issue template.
  2. Please describe in details about the exact operation and its output step by step to reproduce this issue. Description should start from you download our SD card img file, and how do you flash it to SD card with all info (OS version, etc, as listed in our issue template).