Richard W.M. Jones: Fedora/RISC-V: Runnable stage 4 disk images

We’ve now got:

  1. An autobuilder.
  2. A multithreaded QEMU.
  3. A Fedora RPMs repository.
  4. A bootable disk image.

It’s unpolished and minimal at the moment, but what you can do today (if you have a Fedora 27+ x86_64 host):

  1. Enable the rjones/riscv copr and install riscv-qemu.
  2. Download the stage4-disk.img, and bbl and uncompress the disk image.
  3. Run this command:
    qemu-system-riscv64 
        -nographic -machine virt -m 2G -smp 4 
        -kernel bbl 
        -append "console=ttyS0 ro root=/dev/vda init=/init" 
        -device virtio-blk-device,drive=hd0 
        -drive file=stage4-disk.img,format=raw,id=hd0 
        -device virtio-net-device,netdev=usernet 
        -netdev user,id=usernet
    
  4. Inside the guest drop a repo file into /etc/yum.repos.d containing:
    [local]
    name=RPMS
    baseurl=https://fedorapeople.org/groups/risc-v/RPMS/
    enabled=1
    gpgcheck=0
    
  5. Use tdnf --releasever 27 install ... to install more packages.


Source From: fedoraplanet.org.
Original article title: Richard W.M. Jones: Fedora/RISC-V: Runnable stage 4 disk images.
This full article can be read at: Richard W.M. Jones: Fedora/RISC-V: Runnable stage 4 disk images.

Advertisement


Random Article You May Like

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*