Ubuntu 22.04 64bit on RasPi5 ;-)

1,856 views
Skip to first unread message

Marco Walther

unread,
Dec 12, 2023, 11:43:31 PM12/12/23
to HomeBrew Robotics Club
Officially not supported but with a transplanted kernel from 23.10, it
actually works;-) At least, what I tried so far;-)

ubuntu@ubuntu-2204-rpi5:~$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
ubuntu@ubuntu-2204-rpi5:~$ uname -a
Linux ubuntu-2204-rpi5 6.5.0-1008-raspi #11-Ubuntu SMP PREEMPT_DYNAMIC
Wed Nov 22 19:08:26 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu-2204-rpi5:~$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics
fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x4
CPU part : 0xd0b
CPU revision : 1
...
Hardware : BCM2835
Revision : d04170
Serial : 4bb0157eba0a46c8
Model : Raspberry Pi 5 Model B Rev 1.0
ubuntu@ubuntu-2204-rpi5:~$ cat /proc/meminfo
MemTotal: 8130452 kB

;-)
-- Marco

Mark Johnston

unread,
Dec 13, 2023, 3:03:26 AM12/13/23
to hbrob...@googlegroups.com
Interesting and thanks.  I have the Pi5 running but have not attempted 64bit ROS2 on it yet.  It is at present 'an amusement'


--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hbrobotics/f2c69c48-321a-4cec-91a3-c8d4d155c169%40gmail.com.

James H Phelan

unread,
Dec 13, 2023, 6:37:51 AM12/13/23
to hbrob...@googlegroups.com

Marco,

Why does it need a transplanted kernel and how did you figure that out?

J

James H Phelan
"Nihil est sine ratione cur potius sit quam non sit"
Leibniz

"Here am I, the servent of the Lord;
let it be with me, according to your Word"
Luke 1:38

Chris Albertson

unread,
Dec 13, 2023, 10:22:20 AM12/13/23
to hbrob...@googlegroups.com
I’m not the one who did this but the answer is easy….  Need new kernel to support the new hardware and chips in the Pi5.   Ubuntu 22 would be fine on any hardware but the old kernel would lack new drivers found in the new kernel.

Marco Walther

unread,
Dec 13, 2023, 11:49:16 AM12/13/23
to hbrob...@googlegroups.com, Chris Albertson
On 12/13/23 07:22, Chris Albertson wrote:
> I’m not the one who did this but the answer is easy….  Need new kernel
> to support the new hardware and chips in the Pi5.   Ubuntu 22 would be
> fine on any hardware but the old kernel would lack new drivers found in
> the new kernel.
>
Yeah, normally kernels are not majorly upgraded during the lifetime of a
release. x86 Ubuntu LTS releases have a HWE (hardware enablement) repo,
which brings support for newer hardware. I'm currently running a 6.2
kernel on my laptop (22.04);-)

marcow@feather7:~$ dpkg -l | fgrep hwe
ii linux-generic-hwe-22.04 6.2.0.39.40~22.04.16
amd64 Complete Generic Linux kernel and headers
ii linux-headers-generic-hwe-22.04 6.2.0.39.40~22.04.16
amd64 Generic Linux kernel headers
ii linux-hwe-6.2-headers-6.2.0-37 6.2.0-37.38~22.04.1
all Header files related to Linux kernel
version 6.2.0
ii linux-hwe-6.2-headers-6.2.0-39 6.2.0-39.40~22.04.1
all Header files related to Linux kernel
version 6.2.0
ii linux-image-generic-hwe-22.04 6.2.0.39.40~22.04.16
amd64 Generic Linux kernel image
ii linux-modules-nvidia-535-generic-hwe-22.04 6.2.0-39.40~22.04.1
amd64 Extra drivers for nvidia-535 for the
generic-hwe-22.04 flavour
ii systemd-hwe-hwdb 249.11.3
all udev rules for hardware enablement (HWE)

That setup does not seem to exist for ARM/AARCH64. But that does not
mean, you can not make things work somewhat;-) The interfaces between
the kernel and the rest of the system are relatively narrow, so you can
replace the kernel up & down. The problems might show, where userland
programs want to play directly with the hardware (graphics?!, GPIO?!, ...)

The desktop shows and seems to work (that Pi5 actually `has` a
display/desktop installed;-)

Two links
https://ubuntu.com/download/raspberry-pi
https://forums.raspberrypi.com/viewtopic.php?t=359566 (all the responses
give good inside;-)

Have fun;-)
-- Marco

>
>
>> On Dec 13, 2023, at 3:37 AM, James H Phelan <jhph...@hal-pc.org> wrote:
>>
>> Marco,
>>
>> Why does it need a transplanted kernel and how did you figure that out?
>>
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hbrobotics/AFE36C91-EDC0-4874-86FF-EB9FD73DEEA8%40gmail.com <https://groups.google.com/d/msgid/hbrobotics/AFE36C91-EDC0-4874-86FF-EB9FD73DEEA8%40gmail.com?utm_medium=email&utm_source=footer>.

James H Phelan

unread,
Dec 14, 2023, 7:05:51 AM12/14/23
to hbrob...@googlegroups.com

Most interesting.  Thanks!

James H Phelan
"Nihil est sine ratione cur potius sit quam non sit"
Leibniz

"Here am I, the servent of the Lord;
let it be with me, according to your Word"
Luke 1:38

Alan Federman

unread,
Dec 14, 2023, 2:54:14 PM12/14/23
to hbrob...@googlegroups.com, James H Phelan
Has anyone tried the ROS Humble RTOS image for RPI 4? I think I posted the procedure and it is on the Ubiquity Robotics GitHub under ARM 64 notes.
 
The other approach is to start with a generic distro and see what's working, then tackle the issues one by one. There have to be drivers for the new hardware, it just means it isn't going to be an ' apt install 'or 'apt update' to fix.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org.

Marco Walther

unread,
Dec 14, 2023, 7:55:40 PM12/14/23
to hbrob...@googlegroups.com, Alan Federman, James H Phelan
On 12/14/23 11:53, Alan Federman wrote:
> Has anyone tried the ROS Humble RTOS image for RPI 4?
On the Pi5? No joy:-(

I took the image from
https://github.com/ros-realtime/ros-realtime-rpi4-image/releases/tag/22.04.3_v5.15.98-rt62-raspi_ros2_humble

and tried to boot it. Some output (see the attached screen shot (hard to
read:-()

So I added the os_check=0 to config.txt and even the bcm2712-rpi-5-b.dtb
to the boot partition. Still no joy:-( Now the screen is just blank (but
still not disabled) and no blinking or anything on the board. Even after
20 minutes (accounting for the first-boot steps), no joy:-(

So, I believe, the 5.15 kernel is simply too old.

> I think I posted
> the procedure and it is on the Ubiquity Robotics GitHub under ARM 64 notes.


> The other approach is to start with a generic distro and see what's
> working, then tackle the issues one by one. There have to be drivers for
> the new hardware, it just means it isn't going to be an ' apt install
> 'or 'apt update' to fix.

It pretty much was 'finding the needed set of packages' and 'dpkg -i ..'
;-) for the kernel etc;-) I don't know yet, how updates will work and if
the different connectors do what they are supposed to, but the [mostly]
22.04 is up and should be able to do simple ROS 2 stuff;-)

Overall, I would much rather build a 6.5 RT kernel if I needed it than
trying to back-port the Pi5 support of the old kernel.

-- Marco
>> https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org <https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hbrobotics/1421250738.817625.1702583628237%40connect.xfinity.com <https://groups.google.com/d/msgid/hbrobotics/1421250738.817625.1702583628237%40connect.xfinity.com?utm_medium=email&utm_source=footer>.
20231214_162526_HDR.jpg

Alan Federman

unread,
Dec 15, 2023, 4:11:52 PM12/15/23
to hbrob...@googlegroups.com, Marco Walther, James H Phelan
Well shoot!  I guess we will have to wait for an Ubuntu release for Pi 5.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.

Marco Walther

unread,
Dec 15, 2023, 6:03:33 PM12/15/23
to Alan Federman, hbrob...@googlegroups.com, James H Phelan
On 12/15/23 13:11, Alan Federman wrote:
> Well shoot!  I guess we will have to wait for an Ubuntu release for Pi 5.

23.10 should work now (with some issues around snap at least)
24.04 will work (at least, as far as I understand the plan)

But currently only 22.04 is supported by ROS[2]. And I don't really want
to rebuild all of ROS 2 for 23.10 . So, the hacked 22.04 seemed the
easier way to go. I don't know, how far I get with it. But we will see;-)

-- Marco

>> On 12/14/2023 4:55 PM PST Marco Walther <marc...@gmail.com
>> <mailto:marc...@gmail.com>> wrote:
>> On 12/14/23 11:53, Alan Federman wrote:
>>> Has anyone tried the ROS Humble RTOS image for RPI 4?
>> On the Pi5? No joy:-(
>> I took the image from
>> https://github.com/ros-realtime/ros-realtime-rpi4-image/releases/tag/22.04.3_v5.15.98-rt62-raspi_ros2_humble <https://github.com/ros-realtime/ros-realtime-rpi4-image/releases/tag/22.04.3_v5.15.98-rt62-raspi_ros2_humble>
>> and tried to boot it. Some output (see the attached screen shot (hard to
>> read:-()
>> So I added the os_check=0 to config.txt and even the bcm2712-rpi-5-b.dtb
>> to the boot partition. Still no joy:-( Now the screen is just blank (but
>> still not disabled) and no blinking or anything on the board. Even after
>> 20 minutes (accounting for the first-boot steps), no joy:-(
>> So, I believe, the 5.15 kernel is simply too old.
>>> I think I posted
>>> the procedure and it is on the Ubiquity Robotics GitHub under ARM 64
>>> notes.
>>> The other approach is to start with a generic distro and see what's
>>> working, then tackle the issues one by one. There have to be drivers for
>>> the new hardware, it just means it isn't going to be an ' apt install
>>> 'or 'apt update' to fix.
>> It pretty much was 'finding the needed set of packages' and 'dpkg -i ..'
>> ;-) for the kernel etc;-) I don't know yet, how updates will work and if
>> the different connectors do what they are supposed to, but the [mostly]
>> 22.04 is up and should be able to do simple ROS 2 stuff;-)
>> Overall, I would much rather build a 6.5 RT kernel if I needed it than
>> trying to back-port the Pi5 support of the old kernel.
>> -- Marco
>> >> On 12/14/2023 4:05 AM PST James H Phelan <jhph...@hal-pc.org
>> <https://ubuntu.com/download/raspberry-pi>
>> >>> https://forums.raspberrypi.com/viewtopic.php?t=359566
>> <https://forums.raspberrypi.com/viewtopic.php?t=359566> (all the
>> >>> responses give good inside;-)
>> >>>
>> >>> Have fun;-)
>> >>> -- Marco
>> >>>
>> >>>>
>> >>>>
>> >>>>> On Dec 13, 2023, at 3:37 AM, James H Phelan <jhph...@hal-pc.org
>> <mailto:jhph...@hal-pc.org>>
>> >>>>> wrote:
>> >>>>>
>> >>>>> Marco,
>> >>>>>
>> >>>>> Why does it need a transplanted kernel and how did you figure that
>> >>>>> out?
>> >>>>>
>> >>>>>
>> >>>>
>> >>>> --
>> >>>> You received this message because you are subscribed to the Google
>> >>>> Groups "HomeBrew Robotics Club" group.
>> >>>> To unsubscribe from this group and stop receiving emails from it,
>> >>>> send an email to hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics+...@googlegroups.com>
>> >>>> <mailto:hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics+...@googlegroups.com>>.
>> >>>> To view this discussion on the web visit
>> >>>>
>> https://groups.google.com/d/msgid/hbrobotics/AFE36C91-EDC0-4874-86FF-EB9FD73DEEA8%40gmail.com <https://groups.google.com/d/msgid/hbrobotics/AFE36C91-EDC0-4874-86FF-EB9FD73DEEA8%40gmail.com> <https://groups.google.com/d/msgid/hbrobotics/AFE36C91-EDC0-4874-86FF-EB9FD73DEEA8%40gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/AFE36C91-EDC0-4874-86FF-EB9FD73DEEA8%40gmail.com?utm_medium=email&utm_source=footer>>.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "HomeBrew Robotics Club" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an email to hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics+...@googlegroups.com>
>> >> <mailto:hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics+...@googlegroups.com>>.
>> >> To view this discussion on the web visit
>> >>
>> https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org <https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org> <https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/572077ae-83ee-4ad0-9ddc-b3bb52290baf%40hal-pc.org?utm_medium=email&utm_source=footer>>.
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "HomeBrew Robotics Club" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to hbrobotics+...@googlegroups.com
>>> <mailto:hbrobotics+...@googlegroups.com>
>>> <mailto:hbrobotics+...@googlegroups.com
>>> <mailto:hbrobotics+...@googlegroups.com>>.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/hbrobotics/1421250738.817625.1702583628237%40connect.xfinity.com <https://groups.google.com/d/msgid/hbrobotics/1421250738.817625.1702583628237%40connect.xfinity.com> <https://groups.google.com/d/msgid/hbrobotics/1421250738.817625.1702583628237%40connect.xfinity.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/1421250738.817625.1702583628237%40connect.xfinity.com?utm_medium=email&utm_source=footer>>.
>> --
>> You received this message because you are subscribed to the Google
>> Groups "HomeBrew Robotics Club" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics+...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/hbrobotics/86175e07-56a6-419a-b726-9ef67c5f9e6e%40gmail.com <https://groups.google.com/d/msgid/hbrobotics/86175e07-56a6-419a-b726-9ef67c5f9e6e%40gmail.com>.

Reply all
Reply to author
Forward
0 new messages