qemu常用命令

命令

ctrl + a + x => 退出 qemu
ctrl + a + c => 进入 monitor

monitor 命令

info roms   => 可查看加载位置
			=> -bios 选项,会放在 NorFlash 中,-kernel 会放在 ddr 中

运行命令

qemu-system-arm -M vexpress-a9 -kernel ./u-boot -nographic -net nic -net tap,ifname=tap0,script=no,dscript=no

#加载 kernel
tftp 0x60003000 zImage;
tftp 0x60800000 vexpress-v2p-ca9.dtb;
setenv bootargs 'root=/dev/nfs rw nfsroot=192.168.33.145:/home/wjxh/linux/nfs/nfs.vexpress,proto=tcp,nfsvers=3,nolock init=/linuxrc ip=192.168.33.144 console=ttyAMA0';
bootz 0x60003000 - 0x60800000;
posted @ 2023-08-25 00:41  chumoath  阅读(1196)  评论(0)    收藏  举报