Next: arm64 study environment, Up: (dir) [Contents]
This manual is for program, version version.
• arm64 study environment: | ||
• arm64 study: |
Next: arm64 study, Previous: Top, Up: Top [Contents]
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: arm64 study environment, Up: Top [Contents]
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