Rodrigo Arias Mallo
1fda5d7710
In QEMU the kernel is loaded at the ${kernel_addr_r} address and we need to use booti instead of bootm. |
||
---|---|---|
examples | ||
visionfive2 | ||
.gitignore | ||
base.nix | ||
boot.sh | ||
configuration.nix | ||
flake.lock | ||
flake.nix | ||
kernel.nix | ||
old-flake.lock | ||
old-flake.nix | ||
overlay.nix | ||
README.md | ||
vm.nix |
NixOS on RISC-V
To boot the system in QEMU, first enter the development shell:
$ nix develop
Then run the boot script:
$ ./boot.sh
In u-boot use the following to boot:
=> booti 0x84000000 - ${fdtcontroladdr}
Notes
- With only 1 CPU some thigs are soo slow to work. For example, the ttyS0 device doesn't arrive on time and the login fails. Or the SSH daemon doesn't start until the third try. With -smp 32 seems to work ok.