-
Notifications
You must be signed in to change notification settings - Fork 4.9k
enable kernel patch for Ubuntu 22.04 #10625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
scripts/patch-utils.sh
Outdated
;; | ||
"5.15") | ||
echo hwe-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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message should also contain kernel versions 5.13, 5.15?
scripts/patch-utils.sh
Outdated
;; | ||
*) | ||
#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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Focal -> jammy, kernel version 5.15..
scripts/patch-utils.sh
Outdated
esac | ||
|
||
else | ||
echo -e "\e[31mUnsupported distribution $2, kernel version $1 . The patches are maintained for Ubuntu 16/18/20 LTS\e[0m" >&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ubuntu 22 includes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.