# MNT Reform System Image V3 Beta

**URL:** <https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744>\
**Category:** MNT Reform\
**Created:** [January 28, 2022, 5:37pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744 "2022-01-28T17:37:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnys](https://community.mnt.re/user_avatar/community.mnt.re/bnys/32/35_2.png) [@bnys](https://community.mnt.re/u/bnys)\
**Post date:** [January 28, 2022, 5:37pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/1 "2022-01-28T17:37:39Z")

</div>

Hello Community! With all the issues with `apt upgrade` recently, it was decided a new system image was in order. This moves Reform to Linux kernel 5.17rc1, which has better support for the platform baked in, and removes the need for patching. Please try this out and let us know here if you catch any bugs!

**Some release notes:**

- NMTUI runs instead of Conman or gnome-control-center for network settings in sway.
- GPU glitches/freezes can occasionally happen (due to a mesa/new kernel issue).
- When first starting sway or another desktop as a new user, some font caching is done, which can take ~7 seconds.
- There is now hardware h264 video decoding available with the mpv player when using sway (it doesn’t work yet in GNOME). Switch to fullscreen by pressing `f` for full performance.
- There are now more display backlight brightness levels, esp. in the lower range, which is good for working at night.
- Suspend-to-RAM is now integrated with systemd, so it works with `systemctl suspend` or by choosing suspend from the power menu in GNOME, and to wake up you can use Circle + Space or select the option in the keyboard’s OLED menu.

**Fix for audio playback levels:**  
The finished image will incorporate boosted speaker levels but right now is not functioning properly. Run `systemctl restart reform-hw-setup` (as root / sudo) to apply the new default levels in alsamixer.

Build your own:

> **[Files · sysimage-v3 · Reform / reform-system-image](https://source.mnt.re/reform/reform-system-image/-/tree/sysimage-v3)**
>
> The scripts needed to build a bootable Debian GNU/Linux system image for Reform.

Or grab a prebuilt image:

> **[reform2-imx8mq · Artifacts · build (#583) · Jobs · Reform / reform-system-image](https://source.mnt.re/reform/reform-system-image/-/jobs/583/artifacts/browse/reform2-imx8mq/)**
>
> The scripts needed to build a bootable Debian GNU/Linux system image for Reform.

---

<div class="post-metadata">

**Author:** ![lord](https://community.mnt.re/user_avatar/community.mnt.re/lord/32/49_2.png) [@lord](https://community.mnt.re/u/lord)\
**Post date:** [January 29, 2022, 6:29pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/2 "2022-01-29T18:29:57Z")

</div>

Have ported new kernel image, suspend and audio fixes to my Arch Linux setup. Works well! Btw does suspend currently only disables WiFi and keyboard backlight or it really suspends Reform as any other device?

Also do I understand correctly that in suspend mode Reform could discharge at extreme voltage values just like before LPC fw update?

---

<div class="post-metadata">

**Author:** ![lord](https://community.mnt.re/user_avatar/community.mnt.re/lord/32/49_2.png) [@lord](https://community.mnt.re/u/lord)\
**Post date:** [January 29, 2022, 7:20pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/3 "2022-01-29T19:20:17Z")

</div>

@bnys @minute seems like WireGuard is broken just like on 5.12. You need to enable this kernel options:

```auto
CONFIG_NETFILTER_XT_CONNMARK=y
CONFIG_IP_NF_RAW=y
CONFIG_IP6_NF_RAW=y

```

---

<div class="post-metadata">

**Author:** ![ruff](https://community.mnt.re/user_avatar/community.mnt.re/ruff/32/306_2.png) [@ruff](https://community.mnt.re/u/ruff)\
**Post date:** [January 29, 2022, 7:53pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/4 "2022-01-29T19:53:06Z")

</div>

Suspend does put CPU at S3 state, however it does not put all the periphery, neither it puts RAM at LP state. So it does consume less in suspend but not drastically (about twice less power). LPC still monitors the batteries and executes SoM\_off when undervolted however it seems this off is not a full off so batteries are being drained faster in suspend-\>off state comparing to explicit off.

---

<div class="post-metadata">

**Author:** ![Tolstoevsky](https://community.mnt.re/user_avatar/community.mnt.re/tolstoevsky/32/834_2.png) [@Tolstoevsky](https://community.mnt.re/u/Tolstoevsky)\
**Post date:** [January 29, 2022, 7:53pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/5 "2022-01-29T19:53:35Z")

</div>

Hello.  
What am I doing wrong? My system is on nvme now. Made the following:

dd if=reform-system.img of=/dev/mmcblk1 (fresh SD card)  
reform-boot-config --emmc sd  
reform boot-config sd  
reboot

* * *

And, nope, it boots to rescue partition. Switched back to nvme. What I’ve missed?

---

<div class="post-metadata">

**Author:** ![bnys](https://community.mnt.re/user_avatar/community.mnt.re/bnys/32/35_2.png) [@bnys](https://community.mnt.re/u/bnys)\
**Post date:** [January 30, 2022, 9:43pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/6 "2022-01-30T21:43:33Z")

</div>

Were you using the eMMC to point to the NVMe? I found I had to turn the switch on the SoM off before I could get the SD to boot. I’m unsure if uboot can differentiate between internal eMMC or the SD card so it may fall back to the eMMC first if available.

---

<div class="post-metadata">

**Author:** ![lord](https://community.mnt.re/user_avatar/community.mnt.re/lord/32/49_2.png) [@lord](https://community.mnt.re/u/lord)\
**Post date:** [January 30, 2022, 10:10pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/7 "2022-01-30T22:10:10Z")

</div>

Do we still need custom FFmpeg to use hardware decoding with mpv? I cannot get it work on my Arch Linux setup.

---

<div class="post-metadata">

**Author:** ![Tolstoevsky](https://community.mnt.re/user_avatar/community.mnt.re/tolstoevsky/32/834_2.png) [@Tolstoevsky](https://community.mnt.re/u/Tolstoevsky)\
**Post date:** [January 31, 2022, 5:40am UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/8 "2022-01-31T05:40:39Z")

</div>

You’re right, thanks. SoM switch helped.  
New image looks good — more brightness levels makes the life much better, and suspend finally works fine. Will we be able to receive this updates via apt upgrade or the only way is to rsync to existing installation?

---

<div class="post-metadata">

**Author:** ![2disbetter](https://community.mnt.re/user_avatar/community.mnt.re/2disbetter/32/303_2.png) [@2disbetter](https://community.mnt.re/u/2disbetter)\
**Post date:** [January 31, 2022, 10:31am UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/9 "2022-01-31T10:31:15Z")

</div>

> [@Tolstoevsky](#):
>
> Will we be able to receive this updates via apt upgrade or the only way is to rsync to existing installation?

Very much would like to know this as well. Excellent work everyone!

---

<div class="post-metadata">

**Author:** ![Neelfyn](https://community.mnt.re/user_avatar/community.mnt.re/neelfyn/32/385_2.png) [@Neelfyn](https://community.mnt.re/u/Neelfyn)\
**Post date:** [February 2, 2022, 11:49pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/10 "2022-02-02T23:49:33Z")

</div>

> [@bnys](#):
>
> Or grab a prebuilt image:
> 
> [https://source.mnt.re/reform/reform-system-image/-/jobs/558/artifacts/browse/reform2-imx8mq/](https://source.mnt.re/reform/reform-system-image/-/jobs/558/artifacts/browse/reform2-imx8mq/)

I’m getting a 404 here, and the [build page](https://source.mnt.re/reform/reform-system-image/-/jobs/558) says that the artifacts were removed 4 days ago. Is that intended? Can/should I use the artifacts from the newer [job 583](https://source.mnt.re/reform/reform-system-image/-/jobs/583/artifacts/browse/reform2-imx8mq/) instead?

---

<div class="post-metadata">

**Author:** ![bnys](https://community.mnt.re/user_avatar/community.mnt.re/bnys/32/35_2.png) [@bnys](https://community.mnt.re/u/bnys)\
**Post date:** [February 3, 2022, 1:05am UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/11 "2022-02-03T01:05:36Z")

</div>

I think the artifacts expire after a time, so I’d say unless @minute has any reservations, that’s the newest image.

---

<div class="post-metadata">

**Author:** ![doctorhoo](https://community.mnt.re/user_avatar/community.mnt.re/doctorhoo/32/338_2.png) [@doctorhoo](https://community.mnt.re/u/doctorhoo)\
**Post date:** [February 5, 2022, 10:19pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/12 "2022-02-05T22:19:04Z")

</div>

Thank you so much for updating the system image and making maintenance easier in the long-term!

I’d be happy to test the changes in daily usage. Just wondering, is there an easy way to upgrade for anyone having installed the system on nvme already? i.e. is there any way around having to turn the switch on the SoM and booting from the SD first?

---

<div class="post-metadata">

**Author:** ![Kooda](https://community.mnt.re/user_avatar/community.mnt.re/kooda/32/313_2.png) [@Kooda](https://community.mnt.re/u/Kooda)\
**Post date:** [February 6, 2022, 12:07pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/13 "2022-02-06T12:07:21Z")

</div>

Are the updates also available in the debian repository? I would just need to switch to the new kernel but that’s fine.

---

<div class="post-metadata">

**Author:** ![8088mph](https://community.mnt.re/letter_avatar_proxy/v4/letter/8/a183cd/32.png) [@8088mph](https://community.mnt.re/u/8088mph)\
**Post date:** [February 9, 2022, 3:50pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/14 "2022-02-09T15:50:05Z")

</div>

I installed the V3 system image. It still has some packages that `apt` cannot upgrade. After installing `xfce4`, I no longer get the login prompt. I can bring up the login by pressing MNT+F1 and after logging in, everything works fine. I installed `xfce4` on the V2 system image and did not have this issue.

These were the steps I took to install the new system image. I am running without SD card, using NVMe for the system and eMMC for the boot loader and kernel.

Wrote the new system image to SD card

```auto
sudo su
dd if=reform-system.img of=/dev/mmcblk1

```

Wrote the rescue system image to the eMMC

```auto
echo 0 > /sys/class/block/mmcblk0boot0/force_ro
dd if=reform-rescue-system.img of=/dev/mmcblk0

```

Rebooted to rescue system and reformatted NVMe

```auto
# Format only if your data is backed up or on a separate partition
mkfs.ext4 -v -L SSD /dev/nvme0n1p1

```

Mounted NVMe and SD card

```auto
mount /dev/nvme0n1p1 /mnt/
mkdir /sdcard
mount /dev/mmcblk1p1 /sdcard/

```

Copied SD card to NVMe

```auto
# Trailing slash on source /sdcard/ is required
rsync -axHAWXS --numeric-ids --info=progress2 /sdcard/ /mnt/

```

Set NVMe as boot device and rebooted

```auto
echo nvme > /reform-boot-medium

```

---

<div class="post-metadata">

**Author:** ![jcstaudt](https://community.mnt.re/user_avatar/community.mnt.re/jcstaudt/32/1232_2.png) [@jcstaudt](https://community.mnt.re/u/jcstaudt)\
**Post date:** [February 12, 2022, 6:20am UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/15 "2022-02-12T06:20:17Z")

</div>

I noticed that job #583 has no warnings, unlike the ones at the bottom of the build logs for #639 and #642. To the casual observer, it’s unclear how severe they are or if it would adversely affect the integrity of the build. It may be good practice to either mark successful/releasable builds such as #583 for permanent retention/archival before they expire or to deploy them as formal releases.

---

<div class="post-metadata">

**Author:** ![lykso](https://community.mnt.re/user_avatar/community.mnt.re/lykso/32/354_2.png) [@lykso](https://community.mnt.re/u/lykso)\
**Post date:** [February 15, 2022, 7:36pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/16 "2022-02-15T19:36:42Z")

</div>

After a couple of days, I figured out how to get the latest v3 commit compiling and working with my eMMC+encrypted NVMe setup. In short:

- Replaced all “mmcblk1” with “mmcblk0” in mkuserland.sh, and added “init=/usr/sbin/reform-init rdinit=/usr/bin/reform-init” to the kernel args.
- Compiled the latest uboot from [Reform / reform-boundary-uboot · GitLab](https://source.mnt.re/reform/reform-boundary-uboot) and then changed mkimage.sh to copy flash.bin from the build directory instead of downloading it from GitLab.
- Flashed the resulting images, then booted into the rescue image on the eMMC and changed /usr/sbin/reform-init to use `/sbin/cryptsetup isLuks --disable-locks "$BOOTPART"` instead of grepping the output of blkid. Added the `--disable-locks` flag to the `luksOpen` call as well.
- Edited /etc/fstab on the NVMe to remove the “/boot” mount (upgrading rendered my machine unbootable again earlier, I suspect because kernel command line args there got overwritten somehow) and to mount /dev/mapper/cryptroot at / instead of /dev/mmcblk1p2.

Edit: Looks like regulatory.db isn’t getting loaded because cfg80211 is built-in, and so tries looking for the file before the root filesystem is loaded. Noticeably slower wifi, probably because my regulatory domain is now set to “world.” Can’t seem to change it, probably because regulatory.db isn’t loading.

```auto
[6.481327] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[6.481337] cfg80211: failed to load regulatory.db

```

---

<div class="post-metadata">

**Author:** ![mauro](https://community.mnt.re/user_avatar/community.mnt.re/mauro/32/919_2.png) [@mauro](https://community.mnt.re/u/mauro)\
**Post date:** [March 6, 2022, 2:11pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/17 "2022-03-06T14:11:22Z")

</div>

> [@8088mph](#):
>
> ```auto
> echo 0 > /sys/class/block/mmcblk0boot0/force_ro
> dd if=reform-rescue-system.img of=/dev/mmcblk0
> 
> ```

I managed to break my rescue system on this step. If I boot with the SD card (using the new image v3) it works as expected, but if I try to boot without the SD card the display stays blank and doesn’t boot. Any ideas how to fix/debug?

---

<div class="post-metadata">

**Author:** ![mauro](https://community.mnt.re/user_avatar/community.mnt.re/mauro/32/919_2.png) [@mauro](https://community.mnt.re/u/mauro)\
**Post date:** [March 6, 2022, 9:26pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/18 "2022-03-06T21:26:41Z")

</div>

I found a copy of the v2 image and decided to use that for the rescue system and that worked as expected. 😅

Looking at the image partitions and contents, I see quite a difference, and I’m wondering if this is the way it’s supposed to be. Mainly, I don’t see the “Image” file which is supposed to be read by eMMC (if I understand correctly how it works)

V2 image partitions

 ![v2](https://community.mnt.re/uploads/default/original/1X/f857272384110c210a4632defcc13bd5d186dc71.png)

V2 image contents

 ![v2p1](https://community.mnt.re/uploads/default/original/1X/f63967bc801c9ec489e283654034b460c17297b3.png)

V3 image partitions

 ![v3](https://community.mnt.re/uploads/default/original/1X/9b5054f8f6e20c09592cc866254488136518305c.png)

V3 Image contents

 ![v3p1](https://community.mnt.re/uploads/default/original/1X/d2a460c322050f0107522da7e140e591262e9c6c.png)  
 ![v3p2](https://community.mnt.re/uploads/default/original/1X/7a96dbc676edbc281c133f3e5f46e9424710402f.png)

---

<div class="post-metadata">

**Author:** ![8088mph](https://community.mnt.re/letter_avatar_proxy/v4/letter/8/a183cd/32.png) [@8088mph](https://community.mnt.re/u/8088mph)\
**Post date:** [March 10, 2022, 1:36pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/19 "2022-03-10T13:36:08Z")

</div>

I used this build, which was the latest passing job when I posted the instructions. [build (#583) · Jobs · Reform / reform-system-image · GitLab](https://source.mnt.re/reform/reform-system-image/-/jobs/583)

Perhaps something is broken now? I have not tried the latest jobs. There have been some changes made since then such as moving the kernel build to `reform-debian-packages` repo instead of `reform-system-image` and changing to the debian fork of the kernel. There were a bunch of changes made to the build scripts to support this and maybe there’s a bug.

---

<div class="post-metadata">

**Author:** ![bnys](https://community.mnt.re/user_avatar/community.mnt.re/bnys/32/35_2.png) [@bnys](https://community.mnt.re/u/bnys)\
**Post date:** [March 10, 2022, 5:34pm UTC](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744/20 "2022-03-10T17:34:56Z")

</div>

Weirdly enough, none of the most recent images have worked for me at all no matter how I flash them to an SD card. I’ve tried to build from source and it won’t complete…I also think there might be a bug.

[Next page](https://community.mnt.re/t/mnt-reform-system-image-v3-beta/744.md?page=2)
