Quantcast
Viewing all articles
Browse latest Browse all 5139

C/C++ • Re: How to Cross Compile a C++ Program on Ubuntu for 32-bit PiOS on Raspberry Pi 2B?

I'm very curious, since the Raspberry Pi 2B uses the ARMv7 architecture, why is an ARMv6 toolchain used?
Because the original Raspberry Pi used an ARMv6 CPU, most of the software compiled for the Pi used to be compiled for ARMv6. The resulting binaries are also compatible ARMv7 core in the Pi 2B. Since there's only "half" a generation of Pis that use an ARMv7 architecture (the Pi 2B v1.2 uses ARMv8), it's often not worth maintaining a separate version for ARMv7.

I do have an ARMv7 toolchain that I used for another SBC, but I've never tried it on a Pi 2B v1.1: https://github.com/tttapa/toolchains
I made a mistake; in fact, my device is an RPi 1 Model B+.
In this case, you have to use the ARMv6 toolchain Image may be NSFW.
Clik here to view.
:)


Glad to hear that the tools proved useful!

Statistics: Posted by tttapa — Thu Aug 15, 2024 4:48 pm



Viewing all articles
Browse latest Browse all 5139

Trending Articles