Hello,
Is it possible to have the platformio/toolchain-riscv for linux arm64 please?
Thank you!
Hello,
Is it possible to have the platformio/toolchain-riscv for linux arm64 please?
Thank you!
Can you download + unpack https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v14.2.0-1/xpack-riscv-none-elf-gcc-14.2.0-1-linux-arm64.tar.gz and see if bin/riscv-none-elf-gcc --version
is executable efor you?
If yes, you can easily redirect the missing package to the folder where you have downloaded that toolchain.
thanks,
How do I redirect the missing package?
In the extracted compiler’s root folder, you can put the package.json
{
"name": "toolchain-riscv",
"version": "1.130200.2",
"description": "GNU toolchain for RISC-V, including GCC",
"keywords": [
"build tools",
"compiler",
"assembler",
"linker",
"preprocessor",
"risc-v"
],
"license": "GPL-2.0-or-later",
"system": [
"linux_aarch64"
],
"repository": {
"type": "git",
"url": "https://github.com/riscv/riscv-gnu-toolchain"
}
}
And then localy modify the affected platform’s platform.json
so use a symlink://
to your folder.
If we’re e.g. talking about the SiFive platform, it e.g. has
this file should be on your local drive (~/.platformio/platforms/sifive/platform.json
). You can simply replace this with
"toolchain-riscv": {
"type": "toolchain",
"owner": "platformio",
"version": "symlink:///home/myuser/Downloads/riscvtoolchain"
},
(appropriate path should be used.)
this looks hacky! Thanks, I didn’t know that version could be a path!
is it something i can publish with pio pkg publish?
You can publish yor own packages but they will not show up under the owner name platformio
so it won’t really be of help (the original platform.json won’t pick them).
What exact platform are you working with? platform = sifive
? Open an issue there, or ping the issue if it already exists, and ask for a toolchain package upload.
Did you verify the release from https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases works fine and produces executable code?
Yes, it’s for sifive.
I didn’t check the provided toolchain yet.
Thanks for your help!