Files
Shen MintaoandClaude Opus 5.5 7ec1a4fbb1 fix: use monotonic snapshot versions for the Bazzite package
The spec used the pinned commit hash as Version, and rpm does not order
hashes by commit history: 51b7b6e sorts after c8327ea, and 13baa9b after
e93a7d2, so a newer snapshot could be treated as an older package.

Version snapshots as 1.0.0^<date>git<commit>, where 1.0.0 is the DKMS
PACKAGE_VERSION, and add Epoch 1 so every snapshot sorts after all of
the earlier hash versions. Checked with rpm 4.18: the spec parses and
the new EVR compares newer than every previous Version.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 14:03:16 +08:00
..

Intro

Hello.

Some instructions how to build rpm file and then install rpm file on Bazzite.

I saw video on Youtube about Asrock AMD BC-250, then I bought this motherboard.

On printables I found a case and recomendations about WIFI BT stick.

There is only one problem - Bazzite has read-only filesystem.

How to build from spec file.

Install the build tools, the development package for the running kernel, and the runtime mode-switch tools. Reboot once so the layered packages are active.

sudo rpm-ostree install rpm-build rpmdevtools gcc make "kernel-devel-$(uname -r)" usb_modeswitch util-linux
sudo systemctl reboot

Prepare rpmbuild folder

cd $HOME
rpmdev-setuptree

Copy aic8800d80.spec to rpmbuild/SPECS

cd $HOME/rpmbuild/SPECS
curl -LO -s https://raw.githubusercontent.com/shenmintao/aic8800d80/refs/heads/main/bazzite/aic8800d80.spec

Prepare and download required files.

spectool -g -R $HOME/rpmbuild/SPECS/aic8800d80.spec
rpmbuild -bs $HOME/rpmbuild/SPECS/aic8800d80.spec

Build SRPM package

rpmbuild --define "kver $(uname -r)" -bb $HOME/rpmbuild/SPECS/aic8800d80.spec

Install RPM package

rpm_path=$(find "$HOME/rpmbuild/RPMS/$(uname -m)" -maxdepth 1 -name 'aic8800d80-*.rpm' -printf '%T@ %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
sudo rpm-ostree install "$rpm_path"
sudo systemctl reboot

After reboot, the Wi-Fi module and firmware loader will be available. On combo adapters, Bluetooth is handled by the standard btusb kernel module after firmware initialization. USB device 368b:8d81 also autoloads the packaged aic_zlp_quirk companion module for its required Bluetooth ACL bulk TX zero packet behavior; the distribution's btusb module is not replaced.

This RPM is built for the kernel reported by uname -r. Rebuild and reinstall it after a Bazzite kernel upgrade.