sudo apt install linux-headers-$(uname -r)

Where are the linux-headers for the Tegra?

I’m trying to build a driver for the EDImax EW-7811UAC/DAC using the following instructions:

I get the following error:

nusantao@Nano:~ sudo apt install linux-headers-(uname -r)
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-4.9.140-tegra
E: Couldn’t find any package by glob ‘linux-headers-4.9.140-tegra’
E: Couldn’t find any package by regex ‘linux-headers-4.9.140-tegra’

I just downloaded and installed the latest Jetpack which you recommended to get the EDImax wireless working.

Kind Regards,

Vince

See:
https://devtalk.nvidia.com/default/topic/1050013/jetson-tx2/r32-1-tx2-how-can-i-build-extra-module-in-the-tegra-device/post/5332292/#5332292