Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yorickvP
Last active August 23, 2019 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorickvP/05038cf0b26ec5e095173a85c267bb6f to your computer and use it in GitHub Desktop.
Save yorickvP/05038cf0b26ec5e095173a85c267bb6f to your computer and use it in GitHub Desktop.
let
# point to recent (08/23) nixpkgs
native = import (<nixpkgs>) {};
pkgs = import (<nixpkgs>) {
crossSystem = {
config = "riscv32-none-elf";
libc = "newlib";
platform = (native.platforms.riscv-multiplatform "32") // { gcc.arch = "rv32i"; };
};
};
in
pkgs.mkShell {
nativeBuildInputs = with native; [
pkgs.buildPackages.gdb
nextpnr yosys icestorm
wishbone-tool dfu-util
screen
];
hardeningDisable = [ "all" ];
shellHook = ''
alias fomu-reboot="wishbone-tool 0xe0006000 0xac"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment