How to install drivers for Wifi USB Stick and Onboard Camera

  1. I have two systems: on two RPI 3B+ sd cards . I am getting errors
Linux OpenWrt 4.14.180 #0 SMP Sat May 16 18:32:20 2020 aarch64 GNU/Linux
Linux OpenWrt 5.4.87 #0 SMP Thu Jan 14 13:06:00 2021 aarch64 GNU/Linux

But No USB Stick for wifi 802.11ac is detected. I cannot do make as per

git clone
cd rtw88
make -C /lib/modules/5.4.87/build M=/root/rtw88 modules
make[1]: *** /lib/modules/5.4.87/build: No such file or directory.  Stop.
make: *** [Makefile:79: all] Error 2

I have the following output:

       0bda:b812 Realtek Semiconductor Corp. 
Fri Jan 15 06:51:09 2021 kernel: [  297.032612] usb 1-1.3: new high-speed USB device number 7 using dwc_otg
Fri Jan 15 06:51:09 2021 kernel: [  297.163794] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=b812
Fri Jan 15 06:51:09 2021 kernel: [  297.172381] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Fri Jan 15 06:51:09 2021 kernel: [  297.181427] usb 1-1.3: Product: 802.11ac NIC
Fri Jan 15 06:51:09 2021 kernel: [  297.187386] usb 1-1.3: Manufacturer: Realtek
Fri Jan 15 06:51:09 2021 kernel: [  297.193312] usb 1-1.3: SerialNumber: 123456

No video detected. Camera is installed on RPI 3B+ camera port.

root@OpenWrt:~# v4l2-ctl --list-devices
Cannot open device /dev/video0, exiting.

I am new to OpenWrt. I installed the OS Linux OpenWrt 4.14.180 from source downloaded image. Second Image I build on Debian (Ubuntu 18.04) Desktop.
I really need to get the USB Wifi Working on 802.11AC and the camera working.

If you downloaded an image, you didn't build it from source, so which one is it?

It is Linux OpenWrt 4.14.180 #0 SMP Sat May 16 18:32:20 2020 aarch64 GNU/Linu

Both Onboard Camera(Attached with the camera port RPI 3B+) and Wifi USB Stick
0bda:b812 Realtek Semiconductor Corp not working. I am getting same kind of error-build failed.

For the camera you probably need kmod-video-core and kmod-camera-bcm2835.

The builtin wifi, such as it is, does support 5 GHz and ac.

Though it is technically possible on larger systems like the Pi, C compiling in place on the target really isn't commonly done on OpenWrt. The best 80211ac USB chip for OpenWrt is the MT7612U. It has a driver in mainline Linux which is already ported.

1 Like

Hello, Thank you for your replies. Heres what I did to solve the camera issue.
1.Download and install: openwrt-19.07.5-brcm2708-bcm2710-rpi-3-ext4-factory
2. After login and update and installation of kmod-video-core and kmod-camera-bcm2835 I was getting the same issue:
ls /dev/video*
ls: /dev/video*: No such file or directory
bcm2835-v4l2: error -1 while loading driver
root@OpenWrt:~# v4l2-ctl --list-devices
Cannot open device /dev/video0, exiting.
2. So, copied these files from Already Installed Raspbian-OS in another PI:
start-x.elf and fixup-x.dat and renamed them as start.elf and fixup.dat resp.
3. in openwrt: cd to boot : backup:
mv fixup.dat fixup.dat_back
mv start.elf start.elf_backup
4. Copied the files start.elf and fixup.dat from Raspbian to OPenwrt
5.Rebbot OPenwrt
6.root@OpenWrt:~# modprobe bcm2835-v4l2
bcm2835-v4l2 is already loaded
root@OpenWrt:~# v4l2-ctl --list-devices
mmal service 16.1 (platform:bcm2835-v4l2):
7.All the apps for camera are working now

I need to work on USB stick now. Thanks

Hi @mk24 - so does a MT7612U adapter work plug and play? Or anything to install in OpenWRT via opkg?

I am on 21.03

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.