commit 0864bb294039d881a15459e5414ada411a886995
parent 6a37a6901e64466009478f71db1be3770207b5d7
Author: parazyd <parazyd@dyne.org>
Date: Thu, 21 Apr 2016 01:58:14 +0200
binfmt init, documented about toolchain
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -25,8 +25,9 @@ First clone the SDK repository:
```
; git clone https://github.com/dyne/arm-sdk.git
```
-
-Then run ZSh. In case you have conflicting extensions on your zsh
+Edit the `config` file to match your crosscompile toolchain. Consult
+`arm/README.md` if you're in a need of a precompiled one, then
+run ZSh. In case you have conflicting extensions on your zsh
configuration, it may be needed to run from a vanilla one, using:
```
diff --git a/arm/init-arm b/arm/init-arm
@@ -30,6 +30,10 @@ init() {
return 1
}
+ # Initialize binfmt_misc if not already, needed to run qemu
+ [[ -d /proc/sys/fs/binfmt_misc ]] || modprobe binfmt_misc
+ [[ -f /proc/sys/fs/binfmt_misc/register ]] || mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+
# Build scripts are mapped to a device name here
arm_map=(
"raspi2" "$R/arm/scripts/raspberry-pi-2.sh"