uboot编译:
make CROSS_COMPILE=aarch64-none-elf- qemu_arm64_defconfig
make CROSS_COMPILE=aarch64-none-elf- menuconfig
make CROSS_COMPILE=aarch64-none-elf- all
qemu启动u-boot:
qemu-system-aarch64 -machine virt -cpu cortex-a53 -smp 4 -m 512 -kernel u-boot -nographic
ctrl+a x退出模拟环境
内核编译:
make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- bcmrpi3_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- menuconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf-
hello应用程序模拟
aarch64-none-linux-gnu-gcc --static hello.c -o hello
qemu-aarch64 hello
rootfs构建: