|
|
(54 intermediate revisions by 8 users not shown) |
Line 1: |
Line 1: |
| = Download the latest disk image =
| | The process of installing Fedora RISC-V might be target-dependent. Check out the relevant page for detailed information. |
|
| |
|
| Go [http://fedora-riscv.tranquillity.se/koji/tasks?state=closed&view=flat&method=createAppliance&order=-id to this link for the nightly builds] and select the most recent (top) build. Look for the <code>-sda.raw.xz</code> file and download it. It will usually be quite large, around 200-300 MB.
| | = Emulated hardware = |
|
| |
|
| <pre>
| | * [[Architectures/RISC-V/QEMU|QEMU]] |
| unxz Fedora-Developer-Rawhide-xxxx.n.0-sda.raw.xz
| |
| </pre>
| |
|
| |
|
| The disk image is partitioned, but usually we need a "naked" filesystem. There are several ways to get this, but the easiest is:
| | = Real hardware = |
|
| |
|
| <pre>
| | * [[Architectures/RISC-V/HiFive-Premier-P550|SiFive HiFive Premier P550]] |
| guestfish -a Fedora-Developer-Rawhide-xxxx.n.0-sda.raw \
| |
| run : download /dev/sda1 Fedora-Developer-Rawhide-xxxx.n.0-sda1.raw
| |
| </pre>
| |
| | |
| This creates a naked ext4 filesystem called <code>*-sda1.raw</code> which can be used in qemu or booted on the [https://www.sifive.com/products/hifive-unleashed/ HiFive Unleashed board].
| |
| | |
| = Boot under qemu =
| |
| | |
| You will need a very recent version of qemu. If in doubt, compile from upstream qemu sources.
| |
| | |
| Get [https://fedorapeople.org/groups/risc-v/disk-images/bbl bbl from here] or [https://github.com/rwmjones/fedora-riscv-kernel compile it from source].
| |
| | |
| <pre>
| |
| qemu-system-riscv64 \
| |
| -nographic \
| |
| -machine virt \
| |
| -smp 4 \
| |
| -m 2G \
| |
| -kernel bbl \
| |
| -object rng-random,filename=/dev/urandom,id=rng0 \
| |
| -device virtio-rng-device,rng=rng0 \
| |
| -append "console=ttyS0 ro root=/dev/vda" \
| |
| -device virtio-blk-device,drive=hd0 \
| |
| -drive file=Fedora-Developer-Rawhide-xxxx.n.0-sda1.raw,format=raw,id=hd0 \
| |
| -device virtio-net-device,netdev=usernet \
| |
| -netdev user,id=usernet,hostfwd=tcp::10000-:22
| |
| </pre>
| |
| | |
| = Install on the HiFive Unleashed SD card =
| |
| | |
| | |
| | |
| = Install on the HiFive Unleashed using NBD server =
| |