ROC-RK3566-PC (v1.2) - Dual Wi-Fi Setup / USB Wi-Fi Driver Compilation & Kernel Header Issue

Hi everyone,

I am working on a project using the Firefly ROC-RK3566-PC (v1.2) board and I need to connect to two separate Wi-Fi networks simultaneously:

  1. Using the onboard Wi-Fi module for Internet connectivity.

  2. Using an external USB Wi-Fi adapter to connect to a Wi-Fi Digital Microscope Camera for live video feed.

The Problem: When I connect to the microscope camera using the onboard Wi-Fi, I can receive the video stream fine, but the board loses its internet connection since the camera network does not provide internet access. To resolve this, I want to attach an external USB Wi-Fi adapter and split the network traffic.

However, when I try to compile the driver for the USB Wi-Fi adapter on the board (via DKMS or building from source using make), I hit a Kernel Headers dependency error. The board runs Linux kernel version 4.19.232, but I have not been able to install the matching linux-headers-4.19.232 packages on the system via the SDK or Ubuntu repositories.

Available USB Wi-Fi Dongles:

  • Realtek RTL8192EU

  • MediaTek MT7601U

Questions:

  1. How can I install or generate the Linux 4.19.232 kernel headers on the Firefly Ubuntu image/SDK to compile modules on-device?

  2. What are the steps to add the MT7601U or RTL8192EU drivers to the Firefly kernel configuration (make menuconfig) and compile them as modules via the SDK cross-compilation environment?

  3. Is there a different USB Wi-Fi chipset you would recommend that works out-of-the-box with Linux Kernel 4.19 on RK3566?

best regards
Alpaslan Sahan

Hi,

Regarding your questions:

1. Kernel headers: You can download the matching kernel headers from here:
https://community.t-firefly.com/en/doc/download/93

2 & 3. Driver configuration and compilation: If you have already downloaded the SDK, take a look at the files under the linux/drivers/net/wireless/ directory. In general, these drivers should be available and configurable there. You can also add the MT7601U or RTL8192EU driver to the kernel configuration — once added, just open the kernel configuration (e.g. via make menuconfig) and compile it as a kernel module.

Hope this helps!

Best regards

Linux-Headers Install | Firefly Community