Installing a Wireless USB adapter

Hello Everybody.

I’m trying to install an USB wireless that I just got. However, it is not a straightforward installation. I’m following the installation guide with no success.

I’m getting the following error.

ubuntu@tegra-ubuntu:~/Downloads/rtl8192CU_linux_v2.0.1042.20100902$ sudo make
[sudo] password for ubuntu: 
cp: cannot stat ‘/autoconf_rtl8192c_usb_linux.h’: No such file or directory
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.10.24-g6a2d13a/build M=/home/ubuntu/Downloads/rtl8192CU_linux_v2.0.1042.20100902  modules
make: *** /lib/modules/3.10.24-g6a2d13a/build: No such file or directory.  Stop.
make: *** [modules] Error 2
ubuntu@tegra-ubuntu:~/Downloads/rtl8192CU_linux_v2.0.1042.20100902$

I tried to create the file and check if I have the directory, the outcome was as following below.

ubuntu@tegra-ubuntu:~/Downloads/rtl8192CU_linux_v2.0.1042.20100902$ uname -r
3.10.24-g6a2d13a
ubuntu@tegra-ubuntu:~/Downloads/rtl8192CU_linux_v2.0.1042.20100902$ sudo mkdir /lib/modules/3.10.24-g6a2d13a/build
[sudo] password for ubuntu: 
mkdir: cannot create directory ‘/lib/modules/3.10.24-g6a2d13a/build’: File exists
ubuntu@tegra-ubuntu:~/Downloads/rtl8192CU_linux_v2.0.1042.20100902$

Does anybody know how to fix this problem?
Thank you fellows.

First, I see it has CROSS_COMPILE (although empty) in the “make” command. Is this a cross compile, or native on Jetson?

Second, if autoconf is involved (and this is part of the missing header file error) then there was probably some sort of “configure” stage required before running make…is there any sort of “configure” script there?

Third, the “/lib/modules/uname -r/build” directory is traditionally a symbolic link to the real kernel source which would be at “/usr/src/kernels/uname -r”. Does the module “build” subdirectory point to the real source? Is the real source configured to match the running kernel?

Thank you linuxdev. I just installed the new Linux For Tegra R21.2 with the [CustomKernel] The Grinch 21.2.1 for Jetson TK1. Works great with wireless adapters. However I’m having troubles with the OpenCV compilation.

Thank you for your help.