[PPML] Upgrade Kernel version to 5.14 in build from kernel (#4255)
* Upgrade Kernel version to 5.14 in build from kernel * Add 5.13 nfs issue
This commit is contained in:
parent
93ea53e1e4
commit
6309dbd16b
1 changed files with 6 additions and 5 deletions
|
|
@ -1,8 +1,8 @@
|
|||
# Building Linux Kernel from Source with SGX Enabled
|
||||
|
||||
SGX driver is merged to Linux Kernel from 5.11. After enable SGX feature during kernel building, we don't have to install SGX driver anymore.
|
||||
SGX driver is merged to Linux Kernel from 5.11+. After enable SGX feature during kernel building, we don't have to install SGX driver anymore.
|
||||
|
||||
In this guide, we show how to build Kernel 5.13 from souce and enable SGX feature on Ubuntu 18.04.
|
||||
In this guide, we show how to build Kernel 5.14 from souce and enable SGX feature on Ubuntu 18.04. You can change kernel version, i.e., 5.14 if necessary.
|
||||
|
||||
|
||||
## Prerequisite
|
||||
|
|
@ -24,7 +24,7 @@ mkdir kernel && cd kernel
|
|||
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
|
||||
cd linux
|
||||
# You can change this version
|
||||
git checkout v5.13
|
||||
git checkout v5.14
|
||||
```
|
||||
|
||||
Build Kernel from source code with SGX enabled.
|
||||
|
|
@ -42,7 +42,7 @@ Install kernel from deb and reboot
|
|||
|
||||
```
|
||||
cd ..
|
||||
sudo dpkg -i linux-headers-5.13.0_5.13.0-1_amd64.deb linux-image-5.13.0_5.13.0-1_amd64.deb
|
||||
sudo dpkg -i linux-headers-5.14.0_5.14.0-1_amd64.deb linux-image-5.14.0_5.14.0-1_amd64.deb
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ $ ls -l /dev/ | grep sgx
|
|||
Uninstall kernel with dpkg (if you want to change back to previous kernel)
|
||||
|
||||
```bash
|
||||
sudo dpkg --purge linux-image-5.13.0 linux-headers-5.13.0
|
||||
sudo dpkg --purge linux-image-5.14.0 linux-headers-5.14.0
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
|
|
@ -66,3 +66,4 @@ sudo reboot
|
|||
|
||||
* Building on Ubuntu 5.4.X may encounter "make[2]: *** No rule to make target 'debian/certs/benh@debian.org.cert.pem', needed by 'certs/x509_certificate_list'. Stop.". Pls refer to [CONFIG_SYSTEM_TRUSTED_KEYS](https://askubuntu.com/questions/1329538/compiling-the-kernel-5-11-11).
|
||||
* In some kernels, SGX option is `CONFIG_INTEL_SGX`.
|
||||
* 5.13 Kernel may encounter nfs problem [Can't mount NFS-shares from Linux-5.13.0](https://forums.gentoo.org/viewtopic-p-8629887.html?sid=f7359b869fb71849d64f3e69bb48503a)
|
||||
|
|
|
|||
Loading…
Reference in a new issue