A fork of git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/boot-wrapper-aarch64.git
Core contents:
- model.lds.S
- boot.S
- Makefile
Build your kernel (using this cross-compiler toolchain) and symlink the following files:
-
Image: symlink to /arch/arm64/boot/Image
-
dtc: symlink to to /scripts/dtc/dtc
-
foundation-v8.dts: symlink to /arch/arm64/boot/dts/foundation-v8.dts
-
Foundation_v8 and libarmctlmodel.so are part of the ARM foundation model, which can be downloaded from the website: ARM website
-
raring-rootfs is available from http://people.debian.org/~wookey/bootstrap/rootfs/
-
linaro-rootfs is available from http://releases.linaro.org/15.06/openembedded/aarch64/
Once the make target linux-system.axf is built from the kernel image, run the emulator like:
$ ./Foundation_v8 --image linux-system.axf --cores 4 --block-device linaro-rootfs
Notice the kernel parameter root=/dev/vda
in the Makefile: the
linaro-rootfs supplied on command-line is exposed as a virtio
block device.