No edit summary |
|||
Line 1: | Line 1: | ||
= Configuring Banani Pi / Jupiter as a Koji Builder = | = Configuring Banani Pi / Jupiter as a Koji Builder = | ||
== Prepare Fedora == | == Prepare Fedora == | ||
* Download https://openkoji.iscas.ac.cn/pub/dist-repos/dl/Milk-V/Jupiter/images/latest/k1-fedora-minimal.img.gz | * Download the image: `wget https://openkoji.iscas.ac.cn/pub/dist-repos/dl/Milk-V/Jupiter/images/latest/k1-fedora-minimal.img.gz` | ||
* | * Extract it: `gzip -d k1-fedora-minimal.img.gz` | ||
* Recommended: Resize `/boot` | * Write it to an SD Card`dd if=k1-fedora-minimal.img of=/dev/sdX bs=64M status=progress` | ||
* Recommended: Move `/` to an NVME disk | * Recommended: Resize `/boot`. The image only has a 256MB /boot partition, which is too small for installing multiple kernels. | ||
* Recommended: Move `/` to an NVME disk and resize it. | |||
* Boot | * Boot | ||
* Replace `/etc/yum.repos.d/. | * Replace `/etc/yum.repos.d/fedora-riscv-koji.repo` with | ||
<pre> | <pre> | ||
[fedora-riscv-koji] | [fedora-riscv-koji] | ||
Line 21: | Line 22: | ||
</pre> | </pre> | ||
* `dnf -y update` | * `dnf -y update` | ||
== Optional: Install updated SpacemiT kernel repo == | |||
Rust projects have been observed failing to build with 6.1 kernel that comes on the image. It also does not have selinux enabled, or modules necessary for firewalld to run. | |||
I am attempting to maintain and keep up to date an LTS 6.6 kernel that more closely resembles a Fedora config with patches from https://gitee.com/bianbu-linux/linux-6.6/ until we have a proper mainline kernel. The Bianbu repo is based off 6.6.36. At the time of writing I have been able to keep it up to the current LTS release, 6.6.52. | |||
* Add `/etc/yum.repos.d/spacemit.repo` | |||
<pre> | <pre> | ||
[spacemit] | [spacemit] | ||
Line 37: | Line 43: | ||
baseurl=https://people.redhat.com/jmontleo/fedora/linux/releases/41/spacemit/source/tree | baseurl=https://people.redhat.com/jmontleo/fedora/linux/releases/41/spacemit/source/tree | ||
</pre> | </pre> | ||
* extlinux update script | |||
* edit set selinux permissive | |||
* touch /.autorelabel | |||
* `dnf -y install ... ... ... ...` | |||
* `dnf -y remove ... ... ... ...` | |||
* reboot, let relabel complete | |||
* set selinux enforing | |||
== Install and Configure Koji == | == Install and Configure Koji == |
Revision as of 00:51, 26 September 2024
Configuring Banani Pi / Jupiter as a Koji Builder
Prepare Fedora
- Download the image:
wget https://openkoji.iscas.ac.cn/pub/dist-repos/dl/Milk-V/Jupiter/images/latest/k1-fedora-minimal.img.gz
- Extract it:
gzip -d k1-fedora-minimal.img.gz
- Write it to an SD Card
dd if=k1-fedora-minimal.img of=/dev/sdX bs=64M status=progress
- Recommended: Resize
/boot
. The image only has a 256MB /boot partition, which is too small for installing multiple kernels. - Recommended: Move
/
to an NVME disk and resize it. - Boot
- Replace
/etc/yum.repos.d/fedora-riscv-koji.repo
with
[fedora-riscv-koji] name=Fedora RISC-V Koji baseurl=http://fedora.riscv.rocks/repos/f41-build/latest/riscv64/ enabled=1 gpgcheck=0 [fedora-riscv-openkoji] name=Fedora RISC-V Koji baseurl=http://openkoji.iscas.ac.cn/kojifiles/repos/f41-build/latest/riscv64/ enabled=0 gpgcheck=0
dnf -y update
Optional: Install updated SpacemiT kernel repo
Rust projects have been observed failing to build with 6.1 kernel that comes on the image. It also does not have selinux enabled, or modules necessary for firewalld to run.
I am attempting to maintain and keep up to date an LTS 6.6 kernel that more closely resembles a Fedora config with patches from https://gitee.com/bianbu-linux/linux-6.6/ until we have a proper mainline kernel. The Bianbu repo is based off 6.6.36. At the time of writing I have been able to keep it up to the current LTS release, 6.6.52.
- Add
/etc/yum.repos.d/spacemit.repo
[spacemit] name=spacemit enabled=1 gpgcheck=0 baseurl=https://people.redhat.com/jmontleo/fedora/linux/releases/41/spacemit/riscv64/ priority=98 [spacemit-source] name=spacemit-source enabled=0 gpgcheck=0 baseurl=https://people.redhat.com/jmontleo/fedora/linux/releases/41/spacemit/source/tree
- extlinux update script
- edit set selinux permissive
- touch /.autorelabel
dnf -y install ... ... ... ...
dnf -y remove ... ... ... ...
- reboot, let relabel complete
- set selinux enforing
Install and Configure Koji
- Add
/etc/yum.repos.d/koji.repo
(Nothing past 1.33 works right or me with the current server)
[koji] name=koji enabled=1 gpgcheck=0 baseurl=https://people.redhat.com/jmontleo/fedora/linux/releases/41/koji/riscv64/ priority=98 [koji-source] name=koji-source enabled=0 gpgcheck=0 baseurl=https://people.redhat.com/jmontleo/fedora/linux/releases/41/koji/source/tree
dnf -y install ... ... ...
- ...
- ...