diff options
| author | Malte Voos <git@mal.tc> | 2026-11-17 23:11:06 +0100 |
|---|---|---|
| committer | Malte Voos <git@mal.tc> | 2026-11-18 14:43:08 +0100 |
| commit | 3266f5c6f33dd043a2c3aaed3c38eca0382e6c2f (patch) | |
| tree | ecab393d1869071433554fa949bb7e57dcd4381b | |
| parent | 2b423e82a420cafd406e32334fffa61ad0ef8555 (diff) | |
| download | reMder-3266f5c6f33dd043a2c3aaed3c38eca0382e6c2f.tar.gz reMder-3266f5c6f33dd043a2c3aaed3c38eca0382e6c2f.zip | |
auto reboot on kernel panic (e.g. xochitl crash -> init dead)
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | server.nix | 18 |
3 files changed, 18 insertions, 5 deletions
@@ -1,2 +1,3 @@ result -foo.* +*.rmdoc +*.pdf @@ -6,7 +6,7 @@ interface's PDF rendering functionality to render your documents. As a result, it should be able to render any reMarkable document, in particular those created on newer firmware versions. -Currently, reMder uses firmware version v3.27.1.0. +Currently, reMder uses firmware version v3.29.1.0. ## Building @@ -12,13 +12,13 @@ writeScript, }: let - updateName = "remarkable-production-image-3.27.1.0-rm2-public"; + updateName = "remarkable-production-image-3.29.1.0-rm2-public"; updateArchive = fetchurl { url = # TODO: this is not an official source. might be worth authenticating the updates "https://remarkable-software.s3.us-east-2.amazonaws.com/${updateName}.swu"; - hash = "sha256-QPS2n/S1RqkXe0Tg8bAODnvcG5aUOYsAtPvKYwEYGsI="; + hash = "sha256-egr0Fz2QuuCt8MWp6U5+r16Gz3QeOL2+xON4gxXJ2m8="; }; xochitlConfig = writeText "xochitl.conf" '' @@ -73,6 +73,15 @@ let LD_PRELOAD=/usr/lib/libfakefbdev.so exec xochitl --system ''; + # without systemd as PID 1, D-Bus has to launch timedated itself. xochitl + # crashes if it can't read the Timezone property from timedate1. + timedateDbusService = writeText "org.freedesktop.timedate1.service" '' + [D-BUS Service] + Name=org.freedesktop.timedate1 + Exec=/lib/systemd/systemd-timedated + User=root + ''; + doNothing = writeScript "do-nothing" '' #!/bin/sh ''; @@ -113,6 +122,8 @@ let upload ${fakefbdev}/lib/libfakefbdev.so /usr/lib/libfakefbdev.so chmod 0755 /usr/lib/libfakefbdev.so + upload ${timedateDbusService} /usr/share/dbus-1/system-services/org.freedesktop.timedate1.service + # prevent xochitl from changing root password upload ${doNothing} /usr/sbin/usermod chmod 0755 /usr/sbin/usermod @@ -152,7 +163,8 @@ writeShellApplication { -device virtio-blk-device,drive=hd \ -netdev user,net=10.11.99.0/27,host=10.11.99.2,dhcpstart=10.11.99.1,hostfwd=tcp::${toString sshPort}-:22,hostfwd=tcp::${toString httpPort}-:80,id=net \ -device virtio-net-device,netdev=net \ - -append "console=ttyAMA0 rootfstype=ext4 root=/dev/vda2 rw rootwait init=/sbin/init" \ + -append "console=ttyAMA0 panic=-1 rootfstype=ext4 root=/dev/vda2 rw rootwait init=/sbin/init" \ + -no-reboot \ -serial mon:stdio \ -nographic ''; |