On 2025-03-26, Andreas Enge wrote:
> Am Sun, Mar 23, 2025 at 04:54:15PM -0700 schrieb Vagrant Cascadian:
>> Tested on MNT Reform2 with rk3588 module (other variants *might* work too!)
>
> I own an original Reform with the imx8mq module (I think)
...
> Would you mind sending me a configuration file and line-by-line
> instructions on what to do? I suppose it is a "guix system image"
> followed by a "dd" to the SD card?

I originally used "guix system init" to install mine from the booted
Debian system. "guix system image" at least used to assume
cross-compilation, so I have not tried it, but maybe that would work to
cross-build an image from an x86_64 system that you could then DD to the
SD card.

You could adapt:

  
https://codeberg.org/vagrantc/mnt-reform-guix-config/src/branch/main/config-mnt-reform.scm

First I would boot your MNT Reform with whatever OS you have now. You
will need to make some changes to kernel-arguments (check the contents
of /proc/cmdline) and initrd-modules (check lsmod output).

My guess for kernel-arguments:

  (kernel-arguments '("no_console_suspend"
                      "cryptomgr.notests"
                      "loglevel=3"
                      "console=ttymxc0,115200"
              "cma=512M"
              "pci=nomsi"))

For the initrd-modules, you should be able to just add all the modules
you get from lsmod. Probably overkill, but hopefully will work! :)

You should also probably adjust the hostname, username, and probably
remove the file-system entry for /tmp, and definitely the file-system
entry for / rootfs. This is all standard guix system stuff so I am not
going to get into specifics. :)

Remove the u-boot-mnt-reform-rk3588 to save yourself some useless build
time, since that is for a different platform anyways!


> Hm, but where would the uboot come from then?

You might need to manually install u-boot on the SD card, unless you are
lucky and it is installed on the eMMC built into the imx8mq module:

  https://source.mnt.re/reform/reform-handbook/-/issues/2

Let us hope you are lucky. :)

Otherwise, you will need to download or build an appropriate u-boot
image and then manually dd to the SD card at a specific offset I do not
recall off the top of my head, but luckily it is documented:

  https://source.mnt.re/reform/reform-boundary-uboot/-/blob/master/flash.sh

If there is a flash.bin in your current /boot, you might be able to use
that, either installing it to eMMC or installing it to the new SD card.


When you try to boot it, you will probably want to connect to the serial
console, unless you are even luckier and need to do no further
debugging!


Hopefully that is enough to get started. :)


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature

Reply via email to