tbinfmt init, documented about toolchain - arm-sdk - os build toolkit for various embedded devices
HTML git clone https://git.parazyd.org/arm-sdk
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 0864bb294039d881a15459e5414ada411a886995
DIR parent 6a37a6901e64466009478f71db1be3770207b5d7
HTML Author: parazyd <parazyd@dyne.org>
Date: Thu, 21 Apr 2016 01:58:14 +0200
binfmt init, documented about toolchain
Diffstat:
M README.md | 5 +++--
M arm/init-arm | 4 ++++
2 files changed, 7 insertions(+), 2 deletions(-)
---
DIR diff --git a/README.md b/README.md
t@@ -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:
```
DIR diff --git a/arm/init-arm b/arm/init-arm
t@@ -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"