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: sciops.net/downloads/rcore-wor…
- Add my repo to /etc/apk/repositories: sciops.net/downloads/alpine/ed…
- Add my pubkey to /etc/apk/keys: sciops.net/downloads/khm-6850e…
- apk add linux-rcore
- delete the /boot/extlinux directory
- put this file in /boot/boot.scr: sciops.net/downloads/rcore-boo…
- 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: sciops.net/downloads/rcore-ext…
- 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
khm
Unknown parent • • •yes, there's nothing but the kernel in my repo. I might add some version of the reform-tools package to it later. in a bit I'll post the APKBUILD for the kernel; I'm running another build at the moment to make sure it works.
the kernel source is at git.sr.ht/~khm/linux-rcore -- but this is just this kernel with these patches and the lpc driver merged in
linux/patches6.14/rk3588-mnt-reform2 · main · Reform / reform-debian-packages · GitLab
GitLabkhm
Unknown parent • • •oh, I forgot to answer the other question.
I'm not sure what Alpine's policy is on kernel packages for specific devices. My hope is that this one kernel can support both the Reform 2 and the Reform Next, and maybe they'd accept it like they do the -rpi kernel? no idea, but that's the dream.
In the meantime, I'll post all the pieces I used to build it so people don't have to rely on my server
khm
in reply to khm • • •~khm/aports - ports for alpine linux - sourcehut git
git.sr.htkhm
in reply to khm • • •reformation-rcore
, which currently contains a sway config you can use, with a status script for the bar, and an attempt to fix the ethernet reset loop, which does not work.crypt17
in reply to khm • • •khm
in reply to crypt17 • • •Reform / MNT Reform RK3588 U-Boot · GitLab
GitLab