Skip to content

Support for Linux RISC-V #99963

Open
Open

Description

@TheOneWithTheBraid

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

Related:

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    engineflutter/engine related. See also e: labels.
    platform-linuxBuilding on or for Linux specifically
    and removed
    in triagePresently being triaged by the triage team
    on Mar 11, 2022
  2. added
    P3Issues that are less important to the Flutter project
    on Mar 14, 2022
  3. mit-mit commented on Apr 27, 2022

    @mit-mit
    Member

    RISC-V now has experimental support in Dart, and is available for Linux SDKs from our beta channel: https://dart.dev/get-dart

  4. maks commented on Dec 4, 2022

    @maks
    Contributor

    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).

  5. xypron commented on Mar 12, 2023

    @xypron

    Given the [slow CPU and low performance I've seen on the Allwinner D1 when running the Dart compiler]

    @maks Have a look at the StarFive VisionFive2 board which is more adequate for onboard development.

  6. maks commented on Mar 12, 2023

    @maks
    Contributor

    Given the [slow CPU and low performance I've seen on the Allwinner D1 when running the Dart compiler]

    @maks Have a look at the StarFive VisionFive2 board which is more adequate for onboard development.

    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.

  7. 13 remaining items

  8. vhaudiquet commented on Sep 19, 2025

    @vhaudiquet
    Contributor

    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 :)

  9. mit-mit commented on Sep 24, 2025

    @mit-mit
    Member
  10. jwinarske commented on Sep 24, 2025

    @jwinarske
    Contributor

    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

  11. added a commit that references this issue on Sep 28, 2026
  12. vhaudiquet commented on Nov 16, 2026

    @vhaudiquet
    Contributor

    I think this can be closed now. As a recap:

    Is there anything else blocking this?

    This should mainly consist of:

    • patches in the engine and Flutter tool to handle RISC-V
    • pre-built Engine snapshots for RISC-V

    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! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions