I was able to update my kernel to 6.2.0-1004-raspi by installing the package linux-image-6.2.0-1004-raspi using apt. This updated my kernel with precompiled images.
I was able to access this package by adding Ubuntu lunar sources to /etc/apt/sources-list
. I added the following lines:
# adding this to get the new 6.2.x kernel from lunar
deb http://ports.ubuntu.com/ubuntu-ports lunar main restricted
deb http://ports.ubuntu.com/ubuntu-ports lunar-updates main restricted
deb http://ports.ubuntu.com/ubuntu-ports lunar universe
deb http://ports.ubuntu.com/ubuntu-ports lunar-updates universe
deb http://ports.ubuntu.com/ubuntu-ports lunar multiverse
deb http://ports.ubuntu.com/ubuntu-ports lunar-updates multiverse
deb http://ports.ubuntu.com/ubuntu-ports lunar-backports main restricted
universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports lunar-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports lunar-security universe
deb http://ports.ubuntu.com/ubuntu-ports lunar-security multiverse
I then simply did sudo apt update
and sudo apt install linux-image-6.2.0-1004-raspi
, and rebooted when the installation was done.
atticus@rospi:~
$ uname -a
Linux rospi 6.2.0-1004-raspi #5-Ubuntu SMP PREEMPT Mon Apr 3 11:15:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
The updated kernel did not solve the problem I set out to fix, as my Raspberry Pi Camera Module 3 still does not work on this Ubuntu install, despite the correct drivers being present, but I will create a new post regarding that.
atticus@rospi:~
$ libcamera-hello
Preview window unavailable
[0:13:33.922153143] [5185] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+19-960d0c1e
[0:13:33.961853643] [5186] ERROR V4L2 v4l2_device.cpp:93 'imx708': Failed to open V4L2 device '': No such file or directory
[0:13:33.961984865] [5186] ERROR RPI vc4.cpp:209 Failed to register camera imx708: -22
ERROR: *** no cameras available ***