qemu仿真

工程自带的qemu-native生成的qemu-arm似乎用不了
自己另外编译的qemu-system-arm

只仿真uboot

似乎需要先创建一个32MB/64MB的分区写入uboot,不然无法启动

#dd if=/dev/zero of=uboot.img bs=64k count=1024
#dd if=u-boot.bin of=uboot.img conv=notrunc
#qemu-system-arm -M ast2500-evb -m 512  -nographic -drive file=uboot.img,format=raw,if=mtd

仿真整体系统

#qemu-system-arm -M ast2500-evb -m 512  -nographic -drive file=xxx.static.mtd,format=raw,if=mtd

端口映射,访问bmc的ssh和web服务

映射bmc的22端口为2222,443端口为2443

#qemu-system-arm -M ast2500-evb -m 512  -nographic -drive file=xxx.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=tcp::2443-:443,hostfwd=tcp::2222-:22,hostname=qemu

完成启动后,网页输入https://127.0.0.1:2443即可打开bmc网页
ssh -p 2222 127.0.0.1可连接bmc的ssh服务

2500evb的flash是w25q256为32MB,编译的工程是64MB无法仿真?

修改ifmc的flash为64MB的型号

#qemu-system-arm -M ast2500-evb,fmc-model=w25q512jv -m 512  -nographic -drive file=xxx.static.mtd,format=raw,if=mtd 

posted on 2022-05-29 17:33  zlyang  阅读(425)  评论(0编辑  收藏  举报

导航