ROS 2 on Raspberry 5 Saga

73 views
Skip to first unread message

Ross Lunan

unread,
Feb 21, 2024, 3:39:10 PMFeb 21
to HomeBrew Robotics Club
In the category of look over carefully before picking up a shiny new object: Thinking I could make advantageous use of this new,, faster Raspberry Pi % model, after purchase & powering up, I discovered that the only available images are its own Raspberry OS and Ubuntu 23.10, which is LTE Jan 24, i.e now.Eh?  In other words I cannot install native Ubuntu 22.04/ROS2 Humble. I checked a couple vendors and a forum with the answer from ubuntu.com respondents No, Ubuntu 22.04 does not support Raspberry Pi 5, and there are no plans to backport its support in 22.04. A potential valid action is to use Docker, which has potential advantages , which I did try. This provided a Canonical UB22/ROS 2 Humble "server" command line and with appropriate configuration can run GUI apps such as rviz. I now know way more about Docker than I did before I did this :) But in a word, its a hassle with another "learning curve" and I'd rather spend my time getting the robot working and not dealing with another layer of software complexity. The package was picked up by the Courier this morning back to the vendor, who make no reference in their specifications to this limitation. caveat emptor.

Alan Timm

unread,
Feb 21, 2024, 4:14:56 PMFeb 21
to HomeBrew Robotics Club
Aw man, I'm sorry to hear that.

There were similar pains when they introduced the 8gb raspi4.  but they eventually supported it.  :-(

If you're looking for another sbc I've had good luck with the indiedroid nova.
It uses the popular rockchip RK3588S, 4/8/16gb memory, 32/65gb emmc, and has that rockchip npu if you're feeling super adventurous (not well supported)

If you compare the pricing to what the raspi5s are going for online for they're not a bad deal.

Alan

Nathaniel Lewis

unread,
Feb 21, 2024, 5:16:47 PMFeb 21
to hbrob...@googlegroups.com
Disclaimer - I have not tried this myself yet.

Found this guide online, which suggests it's doable if you build ros2 from source.


I'm willing to do a group walkthrough of this at the next ROS discussion group if anyone is interested!

- Nathan
--
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.

Marco Walther

unread,
Feb 21, 2024, 5:21:08 PMFeb 21
to hbrob...@googlegroups.com, Nathaniel Lewis
On 2/21/24 14:04, Nathaniel Lewis wrote:
> Disclaimer - I have not tried this myself yet.
>
> Found this guide online, which suggests it's doable if you build ros2
> from source.
>
> https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html>
>
> I'm willing to do a group walkthrough of this at the next ROS discussion
> group if anyone is interested!

I'm running 22.04/Humble on my Pi5 with a 23.10 rt-kernel (and some
libs...), it seems to work pretty ok.

-- Marco

>
> - Nathan
>
> On Wed, Feb 21, 2024, at 1:14 PM, Alan Timm wrote:
>> Aw man, I'm sorry to hear that.
>>
>> There were similar pains when they introduced the 8gb raspi4.  but
>> they eventually supported it.  :-(
>>
>> If you're looking for another sbc I've had good luck with the
>> indiedroid nova.
>> https://www.indiedroid.us/index
>> https://ameridroid.com/products/indiedroid-nova?variant=44879975579927
>> It uses the popular rockchip RK3588S, 4/8/16gb memory, 32/65gb emmc,
>> and has that rockchip npu if you're feeling super adventurous (not
>> well supported)
>>
>> If you compare the pricing to what the raspi5s are going for online
>> for they're not a bad deal.
>>
>> Alan
>> On Wednesday, February 21, 2024 at 12:39:10 PM UTC-8 Ross Lunan wrote:
>>
>> In the category of look over carefully before picking up a shiny
>> new object: Thinking I could make advantageous use of this new,,
>> faster Raspberry Pi % model, after purchase & powering up, I
>> discovered that the only available images are its own Raspberry OS
>> and Ubuntu 23.10, which is LTE Jan 24, i.e now.Eh?  In other words
>> I cannot install native Ubuntu 22.04/ROS2 Humble. I checked a
>> couple vendors and a forum with the answer from ubuntu.com
>> <http://ubuntu.com> respondents No, Ubuntu 22.04 does not support
>> Raspberry Pi 5, and there are no plans
>> <https://forums.raspberrypi.com/viewtopic.php?t=359566#p2157713> to backport its support in 22.04. A potential valid action is to use Docker, which has potential advantages , which I did try. This provided a Canonical UB22/ROS 2 Humble "server" command line and with appropriate configuration can run GUI apps such as rviz. I now know way more about Docker than I did before I did this :) But in a word, its a hassle with another "learning curve" and I'd rather spend my time getting the robot working and not dealing with another layer of software complexity. The package was picked up by the Courier this morning back to the vendor, who make no reference in their specifications to this limitation. caveat emptor.
>>
>>
>> --
>> 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/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.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/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com?utm_medium=email&utm_source=footer>.

Nathaniel Lewis

unread,
Feb 21, 2024, 6:04:00 PMFeb 21
to hbrob...@googlegroups.com
Hi Marco,

Does the GPU/OpenGL work? Seems to be the main complaint for running the 23.10 kernel in 22.04 on the Pi 5.

- Nathan

Chris Albertson

unread,
Feb 21, 2024, 7:50:56 PMFeb 21
to hbrob...@googlegroups.com
On Feb 21, 2024, at 2:27 PM, Nathaniel Lewis <rob...@nrlewis.dev> wrote:

Hi Marco,

Does the GPU/OpenGL work? Seems to be the main complaint for running the 23.10 kernel in 22.04 on the Pi 5. o


I think the solution would be to launch any ROS2 nodes that use OpenGL on the local desktop/notebook PC (which has ROS2 installed and run the other nodes on the Robot’s Pi5.   I doubt anyone wants to run OpenGL on a headless Pi5 anyway.

This might work better in any case becaue if you run OpenGL on the (headless) Pi5, you’d have to export the graphics to the desktop but if you run ROS on the desktop you only export the ROS topics over the network and the grphiocs are generated on the desktop.

I think even with Pi4 many people do it this way

Marco Walther

unread,
Feb 21, 2024, 11:13:33 PMFeb 21
to hbrob...@googlegroups.com, Nathaniel Lewis
On 2/21/24 14:27, Nathaniel Lewis wrote:
> Hi Marco,
>
> Does the GPU/OpenGL work? Seems to be the main complaint for running the
> 23.10 kernel in 22.04 on the Pi 5.

OpenGL kind of works but as far as I know, the GPU support will come in
at some point:-(

ubuntu@ubuntu-2204-rpi5:~$ glmark2 -b build:duration=30:model=horse
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh
rate.
=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: llvmpipe (LLVM 15.0.7, 128 bits)
GL_VERSION: 4.5 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
=======================================================
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh
rate.
[build] duration=30:model=horse: FPS: 97 FrameTime: 10.309 ms
=======================================================
glmark2 Score: 97
=======================================================

-- Marco


>
> - Nathan
>
> On Wed, Feb 21, 2024, at 2:21 PM, Marco Walther wrote:
>> On 2/21/24 14:04, Nathaniel Lewis wrote:
>> > Disclaimer - I have not tried this myself yet.
>> >
>> > Found this guide online, which suggests it's doable if you build ros2
>> > from source.
>> >
>> >
>> https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html> <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html>>
>> >
>> > I'm willing to do a group walkthrough of this at the next ROS
>> discussion
>> > group if anyone is interested!
>>
>> I'm running 22.04/Humble on my Pi5 with a 23.10 rt-kernel (and some
>> libs...), it seems to work pretty ok.
>>
>> -- Marco
>>
>> >
>> > - Nathan
>> >
>> > On Wed, Feb 21, 2024, at 1:14 PM, Alan Timm wrote:
>> >> Aw man, I'm sorry to hear that.
>> >>
>> >> There were similar pains when they introduced the 8gb raspi4.  but
>> >> they eventually supported it.  :-(
>> >>
>> >> If you're looking for another sbc I've had good luck with the
>> >> indiedroid nova.
>> >> https://www.indiedroid.us/index <https://www.indiedroid.us/index>
>> >>
>> https://ameridroid.com/products/indiedroid-nova?variant=44879975579927
>> <https://ameridroid.com/products/indiedroid-nova?variant=44879975579927>
>> >> It uses the popular rockchip RK3588S, 4/8/16gb memory, 32/65gb emmc,
>> >> and has that rockchip npu if you're feeling super adventurous (not
>> >> well supported)
>> >>
>> >> If you compare the pricing to what the raspi5s are going for online
>> >> for they're not a bad deal.
>> >>
>> >> Alan
>> >> On Wednesday, February 21, 2024 at 12:39:10 PM UTC-8 Ross Lunan wrote:
>> >>
>> >>     In the category of look over carefully before picking up a shiny
>> >>     new object: Thinking I could make advantageous use of this new,,
>> >>     faster Raspberry Pi % model, after purchase & powering up, I
>> >>     discovered that the only available images are its own Raspberry OS
>> >>     and Ubuntu 23.10, which is LTE Jan 24, i.e now.Eh?  In other words
>> >>     I cannot install native Ubuntu 22.04/ROS2 Humble. I checked a
>> >>     couple vendors and a forum with the answer from ubuntu.com
>> >>     <http://ubuntu.com <http://ubuntu.com>> respondents No, Ubuntu
>> 22.04 does not support
>> >>     Raspberry Pi 5, and there are no plans
>> >>     <https://forums.raspberrypi.com/viewtopic.php?t=359566#p2157713
>> <https://forums.raspberrypi.com/viewtopic.php?t=359566#p2157713>> to
>> backport its support in 22.04. A potential valid action is to use
>> Docker, which has potential advantages , which I did try. This
>> provided a Canonical UB22/ROS 2 Humble "server" command line and with
>> appropriate configuration can run GUI apps such as rviz. I now know
>> way more about Docker than I did before I did this :) But in a word,
>> its a hassle with another "learning curve" and I'd rather spend my
>> time getting the robot working and not dealing with another layer of
>> software complexity. The package was picked up by the Courier this
>> morning back to the vendor, who make no reference in their
>> specifications to this limitation. caveat emptor.
>> >>
>> >>
>> >> --
>> >> 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%2Bunsu...@googlegroups.com>
>> >> <mailto:hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics%2Bunsu...@googlegroups.com>>.
>> >> To view this discussion on the web visit
>> >>
>> https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com> <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.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%2Bunsu...@googlegroups.com>
>> > <mailto:hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics%2Bunsu...@googlegroups.com>>.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com> <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.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/98b21057-75c3-452a-a23b-2a4bbcd09f70%40app.fastmail.com <https://groups.google.com/d/msgid/hbrobotics/98b21057-75c3-452a-a23b-2a4bbcd09f70%40app.fastmail.com?utm_medium=email&utm_source=footer>.

Marco Walther

unread,
Feb 21, 2024, 11:38:20 PMFeb 21
to hbrob...@googlegroups.com, Nathaniel Lewis
And half an hour later;-) Installing the new Mesa 24.1 from
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers?field.series_filter=jammy

ubuntu@ubuntu-2204-rpi5:~$ glmark2 -b build:duration=30:model=horse
=======================================================
glmark2 2021.02
=======================================================
OpenGL Information
GL_VENDOR: Broadcom
GL_RENDERER: V3D 7.1.7
GL_VERSION: 3.1 Mesa 24.1~git2402210600.2ad014~oibaf~j
(git-2ad0146 2024-02-21 jammy-oibaf-ppa)
=======================================================
[build] duration=30:model=horse: FPS: 426 FrameTime: 2.347 ms
=======================================================
glmark2 Score: 426
=======================================================

-- Marco

Marco Walther

unread,
Feb 27, 2024, 1:33:58 AMFeb 27
to hbrob...@googlegroups.com
If somebody wants to play with 22.04 on the Pi5. I tried to push all my
changes into two forked repos:

1. Build the RT kernel
https://github.com/mw46d/linux-real-time-kernel-builder
2. copy the created rpi4-rt-kernel-6.5.3-rt8.zip in the cache/ directory
of https://github.com/mw46d/linux-real-time-kernel-builder and build that

But before you do anything, compare my branch against the original!! At
least the second step wants to run as root on your workstation!!

I build things with the latest changes, but I did not try to use the
final image because my Pi5 is currently running with a SSD, so it's a
bit harder to 'just unplug & write a new image' :-(

-- Marco



On 2/21/24 14:27, Nathaniel Lewis wrote:
> Hi Marco,
>
> Does the GPU/OpenGL work? Seems to be the main complaint for running the
> 23.10 kernel in 22.04 on the Pi 5.
>
> - Nathan
>
> On Wed, Feb 21, 2024, at 2:21 PM, Marco Walther wrote:
>> On 2/21/24 14:04, Nathaniel Lewis wrote:
>> > Disclaimer - I have not tried this myself yet.
>> >
>> > Found this guide online, which suggests it's doable if you build ros2
>> > from source.
>> >
>> >
>> https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html> <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html <https://lkseng.github.io/posts/2024/01/07/ros-2-humble-on-raspberrypi-5.html>>
>> >
>> > I'm willing to do a group walkthrough of this at the next ROS
>> discussion
>> > group if anyone is interested!
>>
>> I'm running 22.04/Humble on my Pi5 with a 23.10 rt-kernel (and some
>> libs...), it seems to work pretty ok.
>>
>> -- Marco
>>
>> >
>> > - Nathan
>> >
>> > On Wed, Feb 21, 2024, at 1:14 PM, Alan Timm wrote:
>> >> Aw man, I'm sorry to hear that.
>> >>
>> >> There were similar pains when they introduced the 8gb raspi4.  but
>> >> they eventually supported it.  :-(
>> >>
>> >> If you're looking for another sbc I've had good luck with the
>> >> indiedroid nova.
>> >> https://www.indiedroid.us/index <https://www.indiedroid.us/index>
>> >>
>> https://ameridroid.com/products/indiedroid-nova?variant=44879975579927
>> <https://ameridroid.com/products/indiedroid-nova?variant=44879975579927>
>> >> It uses the popular rockchip RK3588S, 4/8/16gb memory, 32/65gb emmc,
>> >> and has that rockchip npu if you're feeling super adventurous (not
>> >> well supported)
>> >>
>> >> If you compare the pricing to what the raspi5s are going for online
>> >> for they're not a bad deal.
>> >>
>> >> Alan
>> >> On Wednesday, February 21, 2024 at 12:39:10 PM UTC-8 Ross Lunan wrote:
>> >>
>> >>     In the category of look over carefully before picking up a shiny
>> >>     new object: Thinking I could make advantageous use of this new,,
>> >>     faster Raspberry Pi % model, after purchase & powering up, I
>> >>     discovered that the only available images are its own Raspberry OS
>> >>     and Ubuntu 23.10, which is LTE Jan 24, i.e now.Eh?  In other words
>> >>     I cannot install native Ubuntu 22.04/ROS2 Humble. I checked a
>> >>     couple vendors and a forum with the answer from ubuntu.com
>> >>     <http://ubuntu.com <http://ubuntu.com>> respondents No, Ubuntu
>> 22.04 does not support
>> >>     Raspberry Pi 5, and there are no plans
>> >>     <https://forums.raspberrypi.com/viewtopic.php?t=359566#p2157713
>> <https://forums.raspberrypi.com/viewtopic.php?t=359566#p2157713>> to
>> backport its support in 22.04. A potential valid action is to use
>> Docker, which has potential advantages , which I did try. This
>> provided a Canonical UB22/ROS 2 Humble "server" command line and with
>> appropriate configuration can run GUI apps such as rviz. I now know
>> way more about Docker than I did before I did this :) But in a word,
>> its a hassle with another "learning curve" and I'd rather spend my
>> time getting the robot working and not dealing with another layer of
>> software complexity. The package was picked up by the Courier this
>> morning back to the vendor, who make no reference in their
>> specifications to this limitation. caveat emptor.
>> >>
>> >>
>> >> --
>> >> 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%2Bunsu...@googlegroups.com>
>> >> <mailto:hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics%2Bunsu...@googlegroups.com>>.
>> >> To view this discussion on the web visit
>> >>
>> https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com> <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/7256f152-f26b-4bd0-90dd-8a0d00f51c03n%40googlegroups.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%2Bunsu...@googlegroups.com>
>> > <mailto:hbrobotics+...@googlegroups.com
>> <mailto:hbrobotics%2Bunsu...@googlegroups.com>>.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com> <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/hbrobotics/bb30955d-0e72-4309-881c-d32c39405159%40app.fastmail.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/98b21057-75c3-452a-a23b-2a4bbcd09f70%40app.fastmail.com <https://groups.google.com/d/msgid/hbrobotics/98b21057-75c3-452a-a23b-2a4bbcd09f70%40app.fastmail.com?utm_medium=email&utm_source=footer>.

hipp...@gmail.com

unread,
Mar 5, 2024, 2:52:16 PMMar 5
to HomeBrew Robotics Club
I am using Armbian Jammy. It mostly works. Sometimes, it stuck at packages installation. I need to clear the lock and restart. But I am able to get through and bring up linorobot2. I believe the Armbian will improve with future releases.

Marco Walther 在 2024年2月26日 星期一晚上10:33:58 [UTC-8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages