Jump to content

[Armbian build PR] - Raspberry Pi: Added rpi5 support and removed flash-kernel dependency


Recommended Posts

Posted

Description

This PR adds a board config file for RPi 5. While on it, the PR also removes dependency on flash-kernel. Instead some custom scripts are added into the bsp package for installation of updated dtb, kernel and initrd files. Using both rpi4b and rpi5b will produce images compatible with rpi5, but the image created with BOARD=rpi5b will not run on older hardware. The kernel config, patches etc are shared between both boards. To prevent creating new family for RPI5 specific kernel, I have added support for something I call kernel variants. This is basically going to be almost same kernel with extremely small changes that doesn't justify creating new family and yet still needs a different kernel deb file. This is being achieved by adding a suffix to the kernel similar to how we add suffix to bsp files when using flash-kernel among other things.

Lastly I have also changed config.txt and cmdline.txt to match official raspberry pi versions as much as possible

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • [X] Tested booting on both RPi4 and RPi5 using mantic as RELEASE

Checklist:

  • [X] My code follows the style guidelines of this project
  • [X] I have performed a self-review of my own code
  • [X] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [X] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines