how to boot alpine linux on your mnt reform 2 with the rcore module:

- Install alpine in a chroot
- enable the main and community repos (libgpiod is in community)
- packages I installed in my chroot: http://sciops.net/downloads/rcore-world
- Add my repo to /etc/apk/repositories: http://sciops.net/downloads/alpine/edge/testing/aarch64/
- Add my pubkey to /etc/apk/keys: http://sciops.net/downloads/khm-6850e797.rsa.pub
- apk add linux-rcore
- delete the /boot/extlinux directory
- put this file in /boot/boot.scr: http://sciops.net/downloads/rcore-boot.scr
- format an sdcard with two partitions: partition number one vfat, partition number two ext4
- copy /boot from the chroot to the sdcard's vfat partition
- copy everything else to the sdcard's ext4 partition
- insert the sd card and turn on the computer
- log in as root
- run rmmod dwmac_rk; gpioset -c 3 -t 100ms,100ms,0ms 23=1; modprobe dwmac_rk
- plug an ethernet cable in the computer if you don't have wifi
- install to nvme via setup-alpine
- check the resulting /boot/extlinux/extlinux.conf
- reference: http://sciops.net/downloads/rcore-extlinux.conf
- boot up / rock out

TODO:
- publish the APKBUILD and config for the kernel package
- try out some different kernel versions (lts and stable?)
- make a 'reformations' package that does gpioset on boot and contains some useful sway config
- fix bugs
0

If you have a fediverse account, you can quote this note from your own instance. Search https://hj.9fs.net/khm/p/1750378257.144987 on your instance and quote it. (Note that quoting is not supported in Mastodon.)