I have a computer that I just updated the motherboard running Debian 9. The version of Debian I have doesn't support my network card (I219V) so I need to download and compile the drivers myself from the intel website. My original idea was just to put the source code on a USB stick and compile the driver on that computer but I started running into dependency problems which couldn't be solved (within a reasonable time) without internet access. I've seen suggestions on the internet to use a WiFi USB dongle or tethering but both of these solutions require drivers that I need internet access to download so I'd be in the same situation.
So my plan was to try and compile the drivers on another computer and put the module on a USB stick. I downloaded the appropriate header files but now I'm stuck. I've tried make with the -C flag specifying the headers I want to use, but I get the following error message:
Code: Select all
sudo make -C /usr/src/linux-headers-4.9.0-11-common/
make: Entering directory '/usr/src/linux-headers-4.9.0-11-common'
scripts/Makefile.build:44: scripts/basic/Makefile: No such file or directory
make[2]: *** No rule to make target 'scripts/basic/Makefile'. Stop.
make[1]: *** [Makefile:445: scripts_basic] Error 2
make: *** No rule to make target 'scripts/link-vmlinux.sh', needed by 'vmlinux'. Stop.
make: Leaving directory '/usr/src/linux-headers-4.9.0-11-common'
I noticed that the command doesn't work even with my current header directory so I know I'm running the wrong command but the problem is I have no idea what the right command is.
Can anyone help me out?