Skip to content

Commit

Permalink
added Troubleshooting section to README.md, and addressed binfmt_misc…
Browse files Browse the repository at this point in the history
… issues
  • Loading branch information
attie authored and XECDesign committed Aug 3, 2018
1 parent 02e4c73 commit 330ce73
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit 330ce73

Please sign in to comment.