summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttie Grande <attie@attie.co.uk>2018-08-03 09:08:25 +0100
committerXECDesign <XECDesign@users.noreply.github.com>2018-08-03 12:21:26 +0100
commit330ce73491d2aa5d0ab5d9843fead3dc3025c458 (patch)
treec37b4497a18b23d67753f9fa73ec4cbb3537a3b2
parent02e4c733e37c3bd08eace0dbc51d679f05c74330 (diff)
added Troubleshooting section to README.md, and addressed binfmt_misc issues
-rwxr-xr-xREADME.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md
index 25067f7..c8b9e2b 100755
--- a/README.md
+++ b/README.md
@@ -249,3 +249,26 @@ follows:
* Once you're happy with the image you can remove the SKIP_IMAGES files and
export your image to test
+# Troubleshooting
+
+## `binfmt_misc`
+
+Linux is able execute binaries from other architectures, meaning that it should be
+possible to make use of `pi-gen` on an x86_64 system, even though it will be running
+ARM binaries. This requires support from the [`binfmt_misc`](https://en.wikipedia.org/wiki/Binfmt_misc)
+kernel module.
+
+You may see the following error:
+
+```
+update-binfmts: warning: Couldn't load the binfmt_misc module.
+```
+
+To resolve this, ensure that the following files are available (install them if necessary):
+
+```
+/lib/modules/$(uname -r)/kernel/fs/binfmt_misc.ko
+/usr/bin/qemu-arm-static
+```
+
+You may also need to load the module by hand - run `modprobe binfmt_misc`.