• Hardware
  • OAK-D-CM4 Flashing Image - Wi-Fi Not Working

Hi,

I currently have a OAK-D-CM4 where it does not have the wifi module on the Raspberry Pi Board so I was given a Wi-Fi dongle inside the box which currently does not work so i reached out to Luxonis who sent me another Wi-FI dongle which is a Tenda Model W311MI which doesn't work. I was then told I need to flash a new image to my raspberry pi following this guide here: https://docs.luxonis.com/projects/hardware/en/latest/pages/guides/raspberrypi/#flashing-an-image-to-the-emmc

Where I have moved the header pin so the EN is being enabled and plugged in the micro USB and then the 5V power jack. And the tutorial links to this guide for setting up the USB Boot.

I am running windows 10 so I installed Cygwin and installed the packages of git, make, gcc-g++, pkg config and libusb.

I then ran the following commands:

git clone --depth=1 https://github.com/raspberrypi/usbboot

cd usbboot

make

./rpiboot

When I ran the program i get the following output:

RPIBOOT: build-date Dec 13 2023 version 20221215~105525 922f3863

Waiting for BCM2835/6/7/2711...

Loading embedded: bootcode4.bin

Loading embedded: bootcode4.bin

Loading embedded: bootcode4.bin

And the loading embedded repeats for ever.

I was wondering if anyone could helpme resolve my Wi-Fi issue so I can connect my raspberry pi to wifi.

Thanks

    Marcus changed the title to OAK-D-CM4 Flashing Image - Wi-Fi Not Working .

    Hi Marcus
    Just to be sure:

    • device powered off
    • boot pin set to EN position
    • plug device into usb port (maybe try a different port)
    • run the ./rpiboot
    • plug in the 5V jack
      .
      .
    • check if you have a new drive detected

    I will check on my home windows machine today/tomorrow. Will report back.

    Sorry for the inconvenience.
    Thanks,
    Jaka

      jakaskerl

      Hi Jaka,

      I tried those steps and it didn't work and even tried a new USB cable but same result

        Hi Marcus
        Have you tried using WSL, doesn't look like it's working properly on cygwin. Best to open up an issue at raspberrypi/usbboot, in the meantime try with ubuntu.

        Thanks,
        Jaka

          9 days later

          jakaskerl Hi Jaka, I have tried WSL and only get to

          RPIBOOT: build-date Dec 27 2023 version 20221215~105525 20a431c6

          Waiting for BCM2835/6/7/2711/2712...

          and thats it.

            Hi Marcus
            Did some digging around. The usb devices aren't automatically visible to WSL. If you run lsusb you will not see the device present even though it is physically connected.

            Follow this guide.
            https://devblogs.microsoft.com/commandline/connecting-usb-devices-to-wsl/

            minor corrections:

            • run usbipd bind -b [ID] before attaching
            • instead of wsl, use -w.
            • usbipd attach -w -a -b [ID] - this will tell the usbipd to automatically reconnect.

            Now the device should work.

            Thanks,
            Jaka

            Hi @Marcus
            V10 was updated to have Wifi drivers for Tenda dongle. In case it doesn't work, these commands were run to install the drivers, perhaps try redoing it:

            sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
            git clone https://github.com/McMCCRU/rtl8188gu.git
            cd rtl8188gu
            make
            sudo make install
            sudo apt install --reinstall linux-firmware
            sudo reboot

            Thanks,
            Jaka