Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.84 KB

README.md

File metadata and controls

74 lines (48 loc) · 1.84 KB

Fedora-RISCV-Builder

Getting Started

Supported Devices

Build Manually

  1. LicheePi 4A
git clone https://github.com/chainsx/fedora-riscv-builder.git && cd fedora-riscv-builder
bash build_lpi4a.sh
  1. Starfive Visionfive 2
git clone https://github.com/chainsx/fedora-riscv-builder.git && cd fedora-riscv-builder
bash build_visionfive2.sh
  1. QEMU
git clone https://github.com/chainsx/fedora-riscv-builder.git && cd fedora-riscv-builder
bash build_qemu.sh

Download Pre-built Systems

Release

  • Username: root
  • Password: fedora

Instructions

The project requires a file named fedora-39-core-rootfs.tar.gz to be built using a Fedora 39 host or docker with the RISC-V architecture. The build process is as follows. If you do not wish to build it yourself, you can use the pre-built file provided by the project.

sudo su && cd ~
WORKDIR=$(pwd)

cd $WORKDIR
mkdir rootfs
mkdir -p rootfs/var/lib/rpm
rpm --root  $WORKDIR/rootfs/ --initdb

rpm -ivh --nodeps --root $WORKDIR/rootfs/ http://fedora.riscv.rocks/repos-dist/f39/latest/riscv64/Packages/f/fedora-release-39-0.21.noarch.rpm

mkdir -p $WORKDIR/rootfs/etc/yum.repos.d
cp <this_repo_dir>./repo/*repo $WORKDIR/rootfs/etc/yum.repos.d
sed -i "s|f38|f39|g" $WORKDIR/rootfs/etc/yum.repos.d/fedora-riscv.repo
sed -i "s|f38|f39|g" $WORKDIR/rootfs/etc/yum.repos.d/fedora-riscv-koji.repo  # for fedora 39
dnf --installroot=$WORKDIR/rootfs/ install dnf --nogpgcheck -y

cd $WORKDIR/rootfs
tar -zcvf fedora-39-core-rootfs.tar.gz .

This way, you will obtain the fedora-39-core-rootfs.tar.gz file required for the project script in the /root directory.

Reference && Thanks

fedora.riscv.rocks