How to update rustc and cargo for armel architecture

Hi All,

I'm very much a newbie, not really looking to program in Rust (at least not yet...baby steps...) but I'm looking to install something that has rust dependencies, and the version of Rust on my installation is too old. I'm running Debian 12 (bookworm) on an armel (Kirkwood) architecture. I need to upgrade Rust, but from what I can see, my architecture isn't supported by rustup, and I can't install any new version of Debian that has support for my architecture, because it looks like after Debian 12, support will be removed.

How can I go about getting an updated version of rustc and cargo on my machine? From what I understand, I need to cross compile rustc and cargo for my architecture on another supported machine, and then port it over somehow, but I'm really lost on where to begin that process. Any help would be greatly appreciated!

Is that not the arm-unknown-linux-gnueabi target? It is tier 2 with host tools, so rustup should work with it.

I tried rustup with the following command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

and I get this error: error: unknown CPU type: armv5tel

I don't personally know about Arm versions, but Platform Support - The rustc book says arm-unknown-linux-gnueabi is “Armv6 Linux”, which is presumably different from armv5-whatever.

It looks like, once you have set up to build rustc at all, you would follow the instructions for Adding a new target to add a suitable armv5tel- target and cross-compile rustc for it.

1 Like