binfmt init, documented about toolchain

This commit is contained in:
parazyd 2016-04-21 01:58:14 +02:00
parent 6a37a6901e
commit 0864bb2940
No known key found for this signature in database
GPG Key ID: BB5E2E35B92E373E
2 changed files with 7 additions and 2 deletions

View File

@ -25,8 +25,9 @@ First clone the SDK repository:
``` ```
; git clone https://github.com/dyne/arm-sdk.git ; git clone https://github.com/dyne/arm-sdk.git
``` ```
Edit the `config` file to match your crosscompile toolchain. Consult
Then run ZSh. In case you have conflicting extensions on your zsh `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: configuration, it may be needed to run from a vanilla one, using:
``` ```

View File

@ -30,6 +30,10 @@ init() {
return 1 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 # Build scripts are mapped to a device name here
arm_map=( arm_map=(
"raspi2" "$R/arm/scripts/raspberry-pi-2.sh" "raspi2" "$R/arm/scripts/raspberry-pi-2.sh"