Repository navigation
Description
Use case
RISC-V is an upcoming CPU architecture which can similarly to ARM result in very energy-efficient processors. I won't start a discussion on benefits or issues related to RISC-V architecture; there are plenty out in the internet and in scientific environment.
Even though RISC-V is not very common for desktop or mobile devices yet, there is definitely momentum in the development RISC-V. Most major Linux and BSD distributions support RISC-V, such as Ubuntu, Debian or FreeBSD.
- Present: not many use cases. There are a few Linux-capable development boards as well as one fully featured desktop SoC available.
- Future: expectedly more. There's a lot of ongoing development in the RISC-V community.
And what makes Linux all-day usable: Flutter of course. I would like to have this issue as a tracker for possibly upcoming RISC-V support and implementation.
Proposal
Flutter currently supports amd64 and aarch64 on Linux. I'd propose to add support for RISC-V in addition.
This should mainly consist of:
- patches in the engine and Flutter tool to handle RISC-V
- pre-built Engine snapshots for RISC-V
Activity
mit-mit commentedon Apr 27, 2022
RISC-V now has experimental support in Dart, and is available for Linux SDKs from our beta channel: https://dart.dev/get-dart
maks commentedon Dec 4, 2022
Given the slow CPU and low performance I've seen on the Allwinner D1 when running the Dart compiler, which at the moment is in the cheapest and most readily available development board, I think it would be most useful to start with supporting Linux on RISC-V using the same approach as Flutter has for mobile OS's (Android/iOS) as it would be a much better developer experience vs trying to do on-device development the way Flutter currently supports on Linux (and MacOS, Windows).
xypron commentedon Mar 12, 2023
@maks Have a look at the StarFive VisionFive2 board which is more adequate for onboard development.
maks commentedon Mar 12, 2023
Thanks I do have the Vision five 2, but it's also too slow for reasonable on board development. Even a RPI4 is really too slow in terms of Dart compile times for decent DX when trying to do onboard development.
[build] Make analyze_snapshot GN target available for riscv64.
13 remaining items
Update Chromium sysroot to pick up RISC-V support. (#173671)
Update Chromium sysroot to pick up RISC-V support. (flutter#173671)
Update Chromium sysroot to pick up RISC-V support. (flutter#173671)
vhaudiquet commentedon Sep 19, 2025
Hello ! Given that almost a year has passed since the last comment on that issue, and that some recent commits are referencing it, is there any update ? Thank you :)
mit-mit commentedon Sep 24, 2025
I see some good progress from the community here:
https://www.industrialflutter.com/blogs/bringing-flutter-to-risc-v/
jwinarske commentedon Sep 24, 2025
AGL demonstrated Flutter running on RISC-V at Embedded World; which RISC-V support was merged last August (2024). AGL is based on meta-flutter.
https://youtu.be/49sRxkIkDC0?feature=shared
Meta-flutter work/patches are freely available for people to copy/use and write blog posts about.
Meta-flutter is a GitHub domain 100% not for profit paid for by me. Industrialflutter.com is backed by KDAB; a commercial entity.
cc @mit-mit
Update Chromium sysroot to pick up RISC-V support. (flutter#173671)
Update Chromium sysroot to pick up RISC-V support. (flutter#173671)
[ Tool ] Add support for linux riscv64 architecture (#178711)
Update Chromium sysroot to pick up RISC-V support. (#173671)
addpatch: plezy 2.21.0-1
docs(backlog): CON52 and CON48 close; a riscv64 Flutter engine is CON70
docs(backlog): CON52 and CON48 close; a riscv64 Flutter engine is CON70
Add support for riscv64 desktop linux engine (flutter#178712)
vhaudiquet commentedon Nov 16, 2026
I think this can be closed now. As a recap:
riscv64as a host or target architecture on LinuxIs there anything else blocking this?
I think pre-built engine snapshots are a whole other topic, but it might be another reason to leave this open as I think this is currently not in scope. But otherwise the patches part is fully done now! 🥳