2023-11-27 11:41:05 +01:00
|
|
|
# NixOS on RISC-V
|
2023-02-16 13:23:11 +01:00
|
|
|
|
2024-01-17 18:24:36 +01:00
|
|
|
To boot the system in QEMU, first enter the development shell:
|
2023-02-16 13:23:11 +01:00
|
|
|
|
2024-01-17 18:24:36 +01:00
|
|
|
```
|
|
|
|
$ nix develop
|
|
|
|
```
|
2023-02-16 13:23:11 +01:00
|
|
|
|
2024-01-17 18:24:36 +01:00
|
|
|
Then run the boot script:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ./boot.sh
|
|
|
|
```
|
2024-01-18 18:19:29 +01:00
|
|
|
|
|
|
|
In u-boot use the following to boot:
|
|
|
|
|
|
|
|
```
|
|
|
|
=> booti 0x84000000 - ${fdtcontroladdr}
|
|
|
|
```
|
2024-01-19 13:41:35 +01:00
|
|
|
|
|
|
|
## 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.
|