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
|
2024-07-06 17:54:10 +08:00
|
|
|
* parted
|
2022-09-15 14:45:23 +08:00
|
|
|
* git
|
|
|
|
* qemu-img
|
|
|
|
* qemu-system-riscv
|
|
|
|
* riscv64-linux-gnu-gcc
|
2023-02-15 12:05:50 +00:00
|
|
|
* devtools-riscv64 ([AUR](https://aur.archlinux.org/packages/devtools-riscv64))
|
2022-09-15 14:45:23 +08:00
|
|
|
|
2025-02-07 22:06:28 +00:00
|
|
|
|
|
|
|
## Todo
|
|
|
|
|
|
|
|
- [ ] Add devtools-riscv64 to ppr
|
|
|
|
- [ ] Add Risc-v to ppr (the Arch)
|
|
|
|
- [ ] Write wiki page for Parch Risc-v
|
|
|
|
|
|
|
|
|
2022-09-15 14:45:23 +08:00
|
|
|
## Build Step
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./mkrootfs
|
|
|
|
./mkimg
|
|
|
|
```
|
|
|
|
|
|
|
|
## Start QEMU
|
|
|
|
|
2023-12-08 22:25:33 +08:00
|
|
|
> [!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]
|
|
|
|
```
|
|
|
|
|