I need to run the following instructions:
In my case, “the path to expanded folder” is home/sharon/savfl/ap-kernelmodule-1.0.14-13Run build.sh as follows from a terminal window, where /path/to /expanded/folder is where build.sh is located, i.e. /home/user /Desktop/ap-kernelmodule-1.0.14-13:
cd /path/to/expanded/folder
sudo ./build.sh --kernel-dir /lib/modules /$(uname -r)/build
Now, as for the kernel directory, I tried searching within almost all directories/folders and managed to find the nearest match whose path is:
So, I issued the following command:/usr/src/linux-headers-3.5.0.21-generic/kernel
And I got the following error message:sharon@sharon:~/savfl/ap-kernelmodule-1.0.14-13$ sudo ./build.sh home/sharon/usr/src/linux-headers-3.5.0.21-generic/kernel /lib/modules/3.5.0.21-generic/build
[sudo] password for sharon:
Can someone help me with this please?Unknown Option: home/sharon/usr/src/linux-headers-3.5.0.21-generic/kernel
Usage: build.sh [options]
Options:
--kernel-dir [DIRECTORY] : DIRECTORY is to set kernel headers/makefiles directory to build kernel modules
The default is /usr/src/kernels/3.5.0-21-generic-x86_64
--kernel-rel [RELEASE] : RELEASE is to set which kernel release the kernel modules are builded for
The default is the current kernel release(3.5.0-21-generic)
--debug : Build the kernel modules with debugging information
--clean : Delete all generated files
--version : Display the version number of the build script
--help : Display this help
Please note that prior to doing the above I have installed the linux-headers relevant to my current kernel version with the following command:
I am new to Linux and Ubuntu; hence detailed how-to instructions would be most welcome.sudo apt-get install linux-headers-3.5.0.21-generic build-essential
Thanks in advance.
Bookmarks