diff --git a/README.md b/README.md index a20697f..c37e2ba 100644 --- 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 index 6b8fb84..fe19e91 100755 --- 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"