Update Linux framework laptop for AMD board.

Unfortunately, FreeBSD does not seem to boot so it is not being updated in this commit.
This commit is contained in:
Tom Alexander 2023-12-06 21:14:38 -05:00
parent 9d54609a12
commit a7fe6ff42d
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
9 changed files with 56 additions and 7 deletions

View File

@ -12,11 +12,11 @@ network_rc: "odofreebsd_network.conf"
rc_conf: "odofreebsd_rc.conf" rc_conf: "odofreebsd_rc.conf"
loader_conf: "odofreebsd_loader.conf" loader_conf: "odofreebsd_loader.conf"
install_graphics: true install_graphics: true
graphics_driver: "intel" graphics_driver: "amd"
cputype: "intel" cputype: "amd"
cpu_opt: tigerlake cpu_opt: tigerlake
hwpstate: true hwpstate: true
cores: 8 cores: 16
build_user: build_user:
name: talexander name: talexander
group: talexander group: talexander

View File

@ -21,7 +21,7 @@ zfs_snapshot_datasets:
- path: zroot/linux/archmain/be - path: zroot/linux/archmain/be
- path: zroot/data/bridge/family_disks - path: zroot/data/bridge/family_disks
install_graphics: true install_graphics: true
graphics_driver: "intel" graphics_driver: "amd"
build_user: build_user:
name: talexander name: talexander
group: talexander group: talexander
@ -30,9 +30,9 @@ enabled_wireguard:
- wgh - wgh
- drmario - drmario
- colo - colo
cputype: "intel" cputype: "amd"
hwpstate: true hwpstate: true
cores: 8 cores: 16
sway_conf_files: sway_conf_files:
- rofimoji - rofimoji
docker_storage_driver: overlay2 # alternatively zfs docker_storage_driver: overlay2 # alternatively zfs

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
#
# If something is very wrong in pacman, this removes the keyring and the entire custom repo, then sets up pacman's keyring again. Running the ansible playbook is necessary to get the custom repo added.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
doas rm -rf /var/cache/pacman/custom/ /etc/pacman.d/conf.d/aurutils.conf
doas rm -rf /etc/pacman.d/gnupg
doas pacman-key --init
doas pacman-key --populate archlinux
doas pacman -S archlinux-keyring

View File

@ -111,6 +111,8 @@
loop: loop:
- src: aurutils-purge - src: aurutils-purge
dest: /usr/local/bin/aurutils-purge dest: /usr/local/bin/aurutils-purge
- src: aurutils-nuke
dest: /usr/local/bin/aurutils-nuke
- src: aurutils-sync - src: aurutils-sync
dest: /usr/local/bin/aurutils-sync dest: /usr/local/bin/aurutils-sync
- src: aurutils-update-devel-packages - src: aurutils-update-devel-packages

View File

@ -0,0 +1,5 @@
- name: Install packages
package:
name:
- powertop
state: present

View File

@ -0,0 +1,20 @@
# TODO: decide between amdgpu_top, nvtop, and radeontop
# TODO: Should I enable APM?
- name: Install packages
package:
name:
- linux-firmware # Arch wiki claims this is needed to boot
- mesa
- lib32-mesa
- vulkan-radeon
- lib32-vulkan-radeon
- libva-mesa-driver # Accelerated video decoding
- lib32-libva-mesa-driver # Accelerated video decoding
- mesa-vdpau # Accelerated video decoding
- lib32-mesa-vdpau # Accelerated video decoding
- vulkan-icd-loader
- lib32-vulkan-icd-loader
- libva-utils # for vainfo
- vdpauinfo # for vdpauinfo
- vulkan-tools # For vulkaninfo
state: present

View File

@ -0,0 +1,10 @@
- name: Install scripts
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0755
owner: root
group: wheel
loop:
- src: cast_file_vaapi
dest: /usr/local/bin/cast_file

View File

@ -6,5 +6,5 @@
owner: root owner: root
group: wheel group: wheel
loop: loop:
- src: cast_file_intel - src: cast_file_vaapi
dest: /usr/local/bin/cast_file dest: /usr/local/bin/cast_file