Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5381

General discussion • Re: Is any chance for just replace linux kernel of older buildroot Pi 4 image for Pi5

$
0
0
If you want to build for a Pi5, you will need to build a 64-bit kernel of version 6.1 or later.
That requires a later version of gcc to compile it.
So you'll end up needing buildroot-2023 or later.

If you're using Qt4, then that was sadly deprecated in buildroot quite a while ago (2015-ish?). Even when adding it manually to buildroot-2023, I couldn't get it to build due to problems with the newer GCC version, and it wouldn't build in 64-bit mode. Maybe it is possible to modify it to build in this environment, but I gave up.

Sadly, buildroot does not cater for building mixed 32/64 bit apps. So I ended up using buildroot-2014 to build my Qt4 32-bit app (so this requires minimal to no modification), and buildroot-2023 to build the 64-bit kernel.

Another tip is to specify any Qt font-sizes in Pixels rather than Points, otherwise you will find them being the wrong size on the Pi5.

Statistics: Posted by procount — Fri Jun 28, 2024 11:03 am



Viewing all articles
Browse latest Browse all 5381

Trending Articles