qemu调试linux内核

qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 4 -m 2048 --append "console=ttyAMA0" --kernel ~/work/src/linux.git/arch/arm64/boot/Image --initrd ~/work/buildroot-2018.05/output/images/rootfs.cpio.bz2

qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 4 -m 2048 --append "console=ttyAMA0" --kernel aarch64-linux-3.16-buildroot-gdb.img -fsdev local,id=r,path=/home/schspa/work/src/signal-test,security_model=none -device virtio-9p-device,fsdev=r,mount_tag=r -s -S

compile qem
./configure --target-list=aarch64-softmmu --enable-virtfs
make -j8

mount -t 9p -o trans=virtio r /mnt

http://www.voidcn.com/article/p-xlgkygpv-p.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注