Code Monkey home page Code Monkey logo

nixos-riscv's Introduction

NixOS RISC-V

An ongoing effort porting NixOS to the RISC-V architecture through cross compilation

Supported Boards

VisionFive 2

Build

nix build .#hydraJobs.visionfive2

May have to change

hardware.deviceTree.name = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";

as appropriate if your board is v1.2a

Info

Prebuilt image is available at https://hydra.nichi.co/job/nixos/riscv/visionfive2/latest

The resulting image includes u-boot, see VisionFive 2 Single Board Computer Quick Start Guide for instructions on booting from sdcard.

Known Issues

Ethernet ports do work to a certain extent, but far from approaching the rated 1Gbps, could be due to misconfigurations in the device tree.

Drivers for PCIe, USB and GPU (and many other peripherals) are not included yet.

Acknowledgement

This work is sponsored by PLCT Lab.

nixos-riscv's People

Contributors

github-actions[bot] avatar nickcao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nixos-riscv's Issues

nixos-hardware: switch to u-boot upstream

I noticed you forked nixos-hardware. I am curious if you're trying to build the july RC of u-boot for starfive2? I would prefer to use it over the starfive fork. Figured I'd ask instead of potentially duplicating efforts.

It seems like the build process around the opensbi/dynamic_fw.img is a bit changed, I haven't quite gotten it all building yet.

Milk-V Duo Support?

Lately I've been working with the Milk-V Duo, which is a low-cost Pico-sized SBC with some solid capabilities. The current build system uses Buildroot as well as some other tools to build a custom image. The only real problem with this system is it's only effective if you clean out the repository and clone it again. Do you think that it would be feasible and more effective to port NixOS to the Duo as opposed to using the Buildroot system?

can not build "error: anonymous function"

the fcff4f7 introduced a bug witch result in:

error: anonymous function at /nix/store/5c6y44wg6vpp0r6kpxl4c2abmrwm4b1q-source/starfive/visionfive/v2/opensbi.nix:1:1 called with unexpected argument 'withPayload'

       at /nix/store/wvms094v8gmkff7wfs05p1zmzdvzc4mk-source/lib/customisation.nix:74:16:

           73|     let
           74|       result = f origArgs;
             |                ^
           75|
(use '--show-trace' to show detailed location information)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.