I’m trying to compile a driver for a USB3 <–> Ethernet device I have, but I’ve run into some problems.
I have followed the instructions on the vendor web site but when I run ‘sudo make’, I get the following error:
make: *** /lib/modules/3.10.24-g6a2d13a/build: No such file or directory. Stop.
make: *** [default] Error 2
When I look in the library, the “build” part was in red. Deleting it and making am empty gives me another error, which tells me that I don’t know what I’m doing.
I downloaded and compiled this…no errors. Worked first time without warnings. However, it does require kernel source to be in place AND configured to the current kernel, and also possibly requires temporary write permission to /lib/modules/uname -r/build/, sudo should be used.
Is kernel source installed at /usr/src/kernels/uname -r/ ? Did you copy and unzip /proc/config.gz to the kernel dir, make prepare and make modules_prepare (or just make for the whole thing)? Likely this will clear it up.