LinuxSMB3 build backport: Difference between revisions
From SambaWiki
(Created page with "To view the list of patches which are included in the backports, see https://github.com/smfrench/smb3-backported-patches.git To build the current (all relevant patches to cif...") |
m (fix typo in "make C=1 -C /usr/src/Linux-headers-`uname-r` M=`pwd` modules") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
git clone https://github.com/smfrench/smb3-cifs-linux-stable-backports.git |
* git clone https://github.com/smfrench/smb3-cifs-linux-stable-backports.git |
||
cd smb3-cifs-linux-stable-backports |
* cd smb3-cifs-linux-stable-backports |
||
[verify which branch you want to check out, which kernel you are trying to build] |
[verify which branch you want to check out, which kernel you are trying to build] |
||
cat /proc/version (to see what kernel you are running) |
* cat /proc/version (to see what kernel you are running) |
||
[if you do not have the kernel headers installed they can be downloaded e.g. from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D] |
[if you do not have the kernel headers installed they can be downloaded e.g. from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D] |
||
git branch (to see the cifs backport branches, currently 4.9 through 4.15) |
* git branch (to see the cifs backport branches, currently 4.9 through 4.15) |
||
git checkout 4.11-full-backport (as an example if you were trying to build for 4.11 kernel) |
* git checkout 4.11-full-backport (as an example if you were trying to build for 4.11 kernel) |
||
[verify that you are booted to a matching kernel version, in this case some version of 4.11 e.g. cat /proc/version] |
[verify that you are booted to a matching kernel version, in this case some version of 4.11 e.g. cat /proc/version] |
||
cd fs/cifs |
* cd fs/cifs |
||
make C=1 -C /usr/src/ |
* make C=1 -C /usr/src/linux-headers-`uname -r` M=`pwd` modules |
||
sudo modprobe cifs (if needed, e.g. to load any required loadable module dependencies for cifs.ko) |
* sudo modprobe cifs (if needed, e.g. to load any required loadable module dependencies for cifs.ko) |
||
sudo rmmod cifs |
* sudo rmmod cifs |
||
sudo insmod ./cifs.ko (to load the module built a few steps above) |
* sudo insmod ./cifs.ko (to load the module built a few steps above) |
||
Enjoy ... (and test ... let us know on the mailing list if any problems) |
* Enjoy ... (and test ... let us know on the mailing list if any problems) |
Latest revision as of 03:30, 29 October 2018
To view the list of patches which are included in the backports, see https://github.com/smfrench/smb3-backported-patches.git
To build the current (all relevant patches to cifs.ko that are accepted in mainline Linux, ie all CIFS/SMB3 fixes and features except those that are the result of global changes to the kernel or the VFS interface) cifs.ko:
- git clone https://github.com/smfrench/smb3-cifs-linux-stable-backports.git
- cd smb3-cifs-linux-stable-backports
[verify which branch you want to check out, which kernel you are trying to build]
- cat /proc/version (to see what kernel you are running)
[if you do not have the kernel headers installed they can be downloaded e.g. from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D]
- git branch (to see the cifs backport branches, currently 4.9 through 4.15)
- git checkout 4.11-full-backport (as an example if you were trying to build for 4.11 kernel)
[verify that you are booted to a matching kernel version, in this case some version of 4.11 e.g. cat /proc/version]
- cd fs/cifs
- make C=1 -C /usr/src/linux-headers-`uname -r` M=`pwd` modules
- sudo modprobe cifs (if needed, e.g. to load any required loadable module dependencies for cifs.ko)
- sudo rmmod cifs
- sudo insmod ./cifs.ko (to load the module built a few steps above)
- Enjoy ... (and test ... let us know on the mailing list if any problems)