enable kernel patch for Ubuntu 22.04 - #10625
Conversation
ea944ce to
fdb4e49
Compare
|
https://github.com/IntelRealSense/librealsense/blame/master/doc/installation.md#L70 |
|
@mengyui I tried on clean ubuntu22, patch finished with following message, looks like module was not signed during build dmesg: |
|
@mengyui , since the changes are in the main script file, this PR needs to be verified for regressions for Ubuntu 16/18 and 20 at least with the latests LTS kernel for each distribution. |
|
Hi @dmipx, if the signed modules are required, they should be signed by another script. so, please turn off "Secure Boot" in BIOS. Thanks, @ev-mp |
|
@ev-mp - Please note the authur comment This means it will not work for Ubuntu 22 default kernel right? |
|
@mengyui , you need to verify the script againt the older distros (16,18 and 20) as mentioned above. |
|
Hi @ev-mp @Nir-Az @dmipx It is a very odd issue. I remember there is a version of the kernel source that works with this script when I create this PR. |
|
Hi @mengyui! scripts/patch-realsense-ubuntu-lts.sh -> scripts/patch-realsense-ubuntu-lts-hwe.sh so this will not require regression tests for legacy versions. |
on older kernels - Makefile changed and set "CONFIG_MODULE_SIG=n" |
fdb4e49 to
e56db63
Compare
| ;; | ||
| *) | ||
| #error message shall be redirected to stderr to be printed properly | ||
| echo -e "\e[31mUnsupported kernel version $1 . The Focal patches are maintained for Ubuntu LTS with kernel 5.4, 5.8, 5.11 only\e[0m" >&2 |
There was a problem hiding this comment.
message should also contain kernel versions 5.13, 5.15?
| ;; | ||
| *) | ||
| #error message shall be redirected to stderr to be printed properly | ||
| echo -e "\e[31mUnsupported kernel version $1 . The Focal patches are maintained for Ubuntu LTS with kernel 5.4, 5.8, 5.11 only\e[0m" >&2 |
| esac | ||
|
|
||
| else | ||
| echo -e "\e[31mUnsupported distribution $2, kernel version $1 . The patches are maintained for Ubuntu 16/18/20 LTS\e[0m" >&2 |
Nir-Az
left a comment
There was a problem hiding this comment.
Looks good, we will follow by another PR for updating the installation guides
build kernel patch for Ubuntu 22.04
move to new kernel repo URL
remove some “sudo” command
BTW, there should be some issue in the kernel source repo for 5.15.0-39. In my environment, I can't insert the kernel module the system.