Add load of unipi module and removal of pigpio.
authorBenjamin Braatz <bb@bbraatz.eu>
Mon, 20 Feb 2023 16:46:25 +0000 (17:46 +0100)
committerBenjamin Braatz <bb@bbraatz.eu>
Mon, 20 Feb 2023 16:46:25 +0000 (17:46 +0100)
doc/index.md
doc/unipi.md
unipi/etc/modules-load.d/unipi.conf [new file with mode: 0644]

index a0b387ad28f17cbdbcf095942df55e04e449010e..277dfbf604bf1082dde4c0ac74fe24aa10f9c18a 100644 (file)
@@ -121,6 +121,37 @@ $ sudo rsync -rlp boot /mnt/
 $ rsync -rlp home/pi /mnt/home/
 ```
 
+Dies installiert die folgenden Konfigurations-Dateien:
+```console
+etc/
+├── hostname
+├── localtime -> /usr/share/zoneinfo/Europe/Berlin
+├── modules-load.d
+│   └── i2c.conf
+├── resolv.conf -> /run/systemd/resolve/stub-resolv.conf
+├── ssh
+│   └── sshd_config.d
+│       └── NoRootNoPassword.conf
+├── sudoers.d
+│   └── wheel
+└── systemd
+    ├── resolved.conf.d
+    │   └── NoNegCache.conf
+    └── system
+        ├── controlpi.service
+        ├── multi-user.target.wants
+        │   ├── controlpi.service -> /etc/systemd/system/controlpi.service
+        │   └── pigpiod.service -> /usr/lib/systemd/system/pigpiod.service
+        └── pigpiod.service.d
+            └── override.conf
+boot/
+└── config.txt
+home/
+└── pi
+    ├── conf.json
+    └── resize-fs.sh
+```
+
 Innerhalb des chroot eventuell Berechtigungen und Eigentürmer reparieren:
 ```console
 # chmod o-r /etc/sudoers.d/wheel
index 0f91a2ecc93566320307928f14ed1c9b158d3410..aa801dcc810fe7b2fdbec551bb20a80a15daefc6 100644 (file)
@@ -45,7 +45,7 @@ Kompilieren und installieren von Kernel und Device-Tree:
 # su - pi
 $ git clone git://git.graph-it.com/graphit/unipi-kernel.git
 $ cd unipi-kernel/
-$ export LINUX_DIR_PATH=/lib/modules/5.15.90-1-rpi-ARCH/build
+$ export LINUX_DIR_PATH=/lib/modules/5.XX.YY-rpi-ARCH/build
 $ make
 $ sudo -E make install
 $ cd device_tree/
@@ -82,11 +82,20 @@ Im Einzelnen sind dies:
 unipi/
 ├── boot
 │   └── config.txt
+├── etc
+│   └── modules-load.d
+│       └── unipi.conf
 └── home
     └── pi
         └── conf.json
 ```
 
+Der `pigpio`-Daemon, der im generischen Image eingeschaltet ist, wird für
+das UniPi-Image ausgeschaltet:
+```console
+# rm /etc/systemd/sytem/multi-user.target.wants/pigpiod.service
+```
+
 Das Schließen und Aufspielen des Images funktioniert dann genau wie für das
 [generische Image](graphit/controlpi-image):
 ```console
diff --git a/unipi/etc/modules-load.d/unipi.conf b/unipi/etc/modules-load.d/unipi.conf
new file mode 100644 (file)
index 0000000..50acd26
--- /dev/null
@@ -0,0 +1 @@
+unipi