Raspberry Pi 5 compatibility

Hi everyone, I’m trying to establish connection between the Raspberry Pi 5 with the radiolink pixhawk V2 from the raspberry pi 5 but it seems like no serial connection is being detected by the mavproxy.

My goal is to able to run dronekit’s script in the pi and send the flight command to the pixhawk. I have been following instructions and tutorials but all of them are for Rpi4 or earlier model. I’m running the latest pi os on the pi. Did anyone manage to achieve that?

1 Like

Exactly the same issue.

I would start with an FC that’s supported by Ardupilot.

How did you connect the RPi to the FC? GPIO shouldn’t differ between RPi4 and 5, as far as I’m aware.

1 Like

I think its not about the flight controller, because I can easily get the data from flight controller with Raspberry Pi 3 and 4. By the way, I tried both flight controllers I have; Durandal and RadioLink MiniPix. They both can connect to RPi 3 and 4 but not the RPi 5.

Okay, looks like GPIO access did change between RPi4 and 5… read through this: https://forums.raspberrypi.com/viewtopic.php?t=362821

1 Like

Someone had new updates? I have the same problem!!!

As per the documentation at https://www.raspberrypi.com/documentation/computers/configuration.html#raspberry-pi-5, GPIO14/15 map to /dev/ttyAMA0 on the Pi5. It is enabled by putting dtparam=uart0 in /boot/firmware/config.txt

For me dont work. this is my config.txt

For more options and information see

http://rptl.io/configtxt

Some settings may impact device functionality. See link above for details

Uncomment some or all of these to enable the optional hardware interfaces

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

Enable audio (loads snd_bcm2835)

dtparam=audio=on

Additional overlays and parameters are documented

/boot/firmware/overlays/README

Automatically load overlays for detected cameras

camera_auto_detect=1

Automatically load overlays for detected DSI displays

display_auto_detect=1

Automatically load initramfs files, if found

auto_initramfs=1

Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d
max_framebuffers=2

Don’t have the firmware create an initial video= setting in cmdline.txt.

Use the kernel’s default instead.

disable_fw_kms_setup=1

Run in 64-bit mode

arm_64bit=1

Disable compensation for displays with overscan

disable_overscan=1

Run as fast as firmware / board allows

arm_boost=1

[cm4]

Enable host mode on the 2711 built-in XHCI USB controller.

This line should be removed if the legacy DWC2 controller is required

(e.g. for USB device mode) or if USB support is not required.

otg_mode=1

[cm5]
dtoverlay=dwc2,dr_mode=host

[all]
dtoverlay=uart0
enable_uart=1
dtoverlay=disable-bt
dtparam=uart0

There are quite a lot of comments, which is NOT commented in your config.

Can you upload the config file directly?

# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[cm5]
dtoverlay=dwc2,dr_mode=host

[all]
dtoverlay=uart0
dtoverlay=disable-bt
dtparam=uart0

this is my config! You can chat me on discord? matheusrodriguess

and another thing, if i try mavros connect it’s work! Just uxrce no, both are running in a docker container (different containers and not the same time)