librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

ubuntu2204 kernel patches combined with scripts for downloading, patching, and building kernel modules

Open jpswensen opened this issue 3 years ago • 6 comments
trafficstars

This pull request includes two scripts and two patches. The scripts are for building the patched kernel modules on Ubuntu 22.04 (Jammy) for both Raspberry Pi 4 and for x86_64. The patches that are includes are a monolithic single patch for the baseline kernels on these two architectures, rather than the split up patches that are used for a lot of other platforms and Linux versions.

I also spent a considerably amount of time simplifying and commenting the patching scripts so that it could be used as a tutorial about what is actually going on during the patching process and included a preface that describes the differences between the RSUSB interface and the V4L interface. These are all details that are located at various places in the github Issues tracker, but though it would be a good idea to coalesce/distill them all in one place.

I also think that by not trying to target all versions of Ubuntu and all architectures that is makes the process a lot more simple and understandable to someone who is coming at this from scratch and might need to update it for a newer kernel. A lot of the stuff in the patch-realsense-ubuntu-lts.sh script is a bit confusing because some much of it is carryover from having to deal with very old kernels (e.g. pre 5.x kernels)

jpswensen avatar May 10 '22 05:05 jpswensen

Hi @jpswensen! Can you squash commits? Thanks.

dmipx avatar Jun 22 '22 13:06 dmipx

Hey @jpswensen, this would be wondeful to merge this so we can simply apt-install on ros rolling and humble. Thanks!

Minipada avatar Jul 06 '22 07:07 Minipada

Hi @jpswensen! Can you squash commits? Thanks.

I think I squashed those correctly. I am not a github expert, so I may have done that wrong.

jpswensen avatar Jul 09 '22 02:07 jpswensen

@jpswensen I tested on my pc and I think you need to:

# origin is IntelRealSense/librealsense
git fetch origin/master
git checkout origin/master

# Your fork branch, this one from this PR
git merge --squash jp/rpi4_ubuntu2204_kernel_patchescombined
git commit -m "YOUR_NEW_COMMIT_MESSAGE"

git log

Then you verify you have only one commit difference

image

Also you can check the commit content with git diff, ensure all your modifications are correct

git diff origin/master

If so you will need to git push force to this branch jp/rpi4_ubuntu2204_kernel_patchescombined once again. This will replace your 4 commits you currently have on it by a single one

Minipada avatar Jul 12 '22 09:07 Minipada

@dmipx Is this PR still relevant after we merged the Jammy patches?

Nir-Az avatar Sep 08 '22 18:09 Nir-Az

it seems that i need this driver to have my F200 camera work properly on Ubuntu 22.10...any luck with this for 22.04? can this be ported over to 22.10?

jdpc86 avatar Nov 01 '22 01:11 jdpc86