Add RaspberryPi 5 support#275
Conversation
|
It ended with: The gadget patch has to be adjusted to this kernel first... |
|
We need to use same kernel version across different RPi to make it easy to manage. I have a change locally on top of the buildroot upgrade PR, I can push today so you don't have to redo the patch at least. |
|
Great! |
|
Thanks... giving a try... |
|
@manio I will try to use the same branch "pi5", could you let me know how did you run the build, did you use raspberrypi5_defconfig directly? |
|
Facing this issue on rpi5 branch. @manio |
|
@sree3333 I have exactly same problem. It seems that but
I am not using it directly but I am building in Docker with Edit: |
|
@manio are you making changes in post_build.sh? acc to |
|
I just did this: diff --git a/aa_wireless_dongle/configs/raspberrypi5_defconfig b/aa_wireless_dongle/configs/raspberrypi5_defconfig
index e0ee78c..7fe2286 100644
--- a/aa_wireless_dongle/configs/raspberrypi5_defconfig
+++ b/aa_wireless_dongle/configs/raspberrypi5_defconfig
@@ -15,6 +15,7 @@ BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc1
BR2_LINUX_KERNEL_DEFCONFIG="bcm2712"
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/board/common/kernel.config"
BR2_LINUX_KERNEL_LZ4=y
+BR2_LINUX_KERNEL_ZIMAGE=y
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
# Build the DTB from the kernel sourcesBut doesn't work - same error :( |
|
@manio is buildroot different from before? |
What you mean? |
|
Sorry... due to other important tasks I have to leave this as it is for now... We are hopefully really close to the complete Pi5 Image (the problem is only with correct kernel |
|
@manio @nisargjhaveri I resolved the issue and successfully built the sdimage, also I have flashed to the sdcard and it is running properly as I can connect the device's bluetooth to phone. But the problems lies in USB connection now as the main usb point that is connected with the headunit is not able to power up the rpi5 properly due to the power requirements. I powered up rpi5 with another usb power cable to type C and connected the headunit to rpi5 type A usb but it is not working with that. Any suggestions? |
|
How you fixed this? Copying the image? :) |
|
@manio In the Rpi5 branch of your's , you are using the raspberrypi5_defconfig but the config,cmdline, post-build and post-image as of raspberrypi. @nisargjhaveri released a buildroot supporting rpi5 config. I replaced existing configs with those and made neccessary changes in defconfig and it worked. |
|
That easy... OK... checking that out... |
|
@manio @nisargjhaveri I have forked my changes https://github.com/sree3333/WirelessAndroidAutoDonglePi5 Please check this out if you are facing any issues. |
|
Ok... so the final conclusion seems to be that the problem was not a buildroot version, but a missing config files for Rpi5... |
|
#270 was merged to main. You can rebase on top. |
|
Thank you! |
|
@nisargjhaveri |
|
Does |
|
OK pushed the changes and can see the CI started over... |
|
Oh... I'll try to also use common config.txt... (wondering about |
|
Ok... it seems that separate config is needed because it failed before (that Edit: done :) |
Yeah, this makes sense. We can try using conditionals in the common config.txt, if the majority of the rest of the config is still applicable. If not, separate config is fine. |
|
Good idea, do you know how to condition this |
|
https://www.raspberrypi.com/documentation/computers/config_txt.html#conditional-filters should help. I think something like this should work? |
|
Hmmm... is seems that post-image doesn't like this (or I did it wrong): |
Haha! This is going to be interesting. post-image.sh seems to be doing this to figure out which kernel file to include in the image. Which seems to be failing now? :) Maybe let's just have separate file. We can try to keep them as close as possible so easier to maintain in future? |
Closes: nisargjhaveri#123 Credits: @sree3333
|
Sure, trying it now... |
|
Seems it's fine :) |
|
Thanks! :) |
This was separated initialy because of problems with pointing to correct kernel image: nisargjhaveri/WirelessAndroidAutoDongle#275 (comment) it is not an issue anymore, so use a common config Credits: @juggie

Adding initial work for Pi5 support. The work is still in progress, but creating PR so maybe something finally comes out of this...