parch-riscv/README.md

37 lines
707 B
Markdown
Raw Normal View History

2025-02-07 21:59:47 +00:00
# Parch Linux RISC-V RootFS Builder
2022-09-15 14:45:23 +08:00
2025-02-07 21:59:47 +00:00
Useful scripts for building and running Parch Linux RISC-V Qcow image.
> This is only for Testing Parch Gnu/Linux on Risc-V.
This Script is forked from [Archriscv Scriptlet](https://github.com/CoelacanthusHex/archriscv-scriptlet)
2022-09-15 14:45:23 +08:00
## Prerequisite
* arch-install-scripts
* parted
2022-09-15 14:45:23 +08:00
* git
* qemu-img
* qemu-system-riscv
* riscv64-linux-gnu-gcc
* devtools-riscv64 ([AUR](https://aur.archlinux.org/packages/devtools-riscv64))
2022-09-15 14:45:23 +08:00
## Build Step
```bash
./mkrootfs
./mkimg
```
## Start QEMU
> [!IMPORTANT]
> You must use fallback initrd first, and re-generate initramfs with `mkinitcpio -P` to use non-fallback version later.
2022-09-15 14:45:23 +08:00
```bash
./startqemu.sh [qcow image file]
```