arm64 study

Table of Contents

Next: , Up: (dir)   [Contents]

arm64 study

This manual is for program, version version.


Next: , Previous: , Up: Top   [Contents]

1 arm64 study environment

install toolchain
sudo apt-get install g++-aarch64-linux-gnu

get code
git clone https://github.com/sys-build/env_arm64_study.git

build & run
aarch64-linux-gnu-gcc -o main hello.s main.c -static
qemu-aarch64 main


Previous: , Up: Top   [Contents]

2 arm64 study

change to directory arm64_code make // based on the previous chapter
qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1 -m 2048 -kernel out/arch/arm64/boot/Image --append "console=ttyAMA0" -fsdev local,id=r,path=./arm64_code,security_model=none -device virtio-9p-device,fsdev=r,mount_tag=r

mkdir /mnt
mount -t 9p -o trans=virtio r /mnt
cd /mnt
./hello1
./hello2
./hello3