Zircon+qemu环境搭建

这几天科-学上网工具不好使,下面这两个zircon都下不下来

git clone https://fuchsia.googlesource.com/zircon
git clone https://github.com/fuchsia-mirror/zircon.git

在fuchsia中文社区里面下了源码,按照大部分的中文博客写的用make来build,但是不行。继续查了一些官方手册和比较新的博客说用gn build项目,我寻思从妹见过这玩意儿啊,估计是过去项目用的make,现在改了。

gn是generate_ninja,而且使的时候好像必须针对有git分支的本地仓,反正怎么都没整好。

https://github.com/PanQL/zircon
https://github.com/xinyu391/zircon

 在gayhub上随手搜了zircon发现还是有人弄了make build的项目的,就是上面这两个, 直接跟着项目说明做很容易成功。值得注意的是qemu的版本,之前用apt安装的qemu是2.5.0版本,报了下面这个错

./scripts/run-zircon-x64 -z ./out/legacy-image-x64.zbi -t ./out/multiboot.bin CMDLINE: TERM=xterm-256color kernel.serial=legacy kernel.entropy-mixin=38c15aaba825a204b70076df492ae6195757ee560ecbef75c471d9ace05c2a3e kernel.halt-on-panic=true + exec qemu-system-x86_64 -kernel /home/src/zircon/./out/multiboot.bin -initrd /home/src/zircon/./out/legacy-image-x64.zbi -m 2048 -nographic -net none -smp 4,threads=2 -machine q35 -device isa-debug-exit,iobase=0xf4,iosize=0x04 -cpu Haswell,+smap,-check,-fsgsbase -append 'TERM=xterm-256color kernel.serial=legacy kernel.entropy-mixin=38c15aaba825a204b70076df492ae6195757ee560ecbef75c471d9ace05c2a3e kernel.halt-on-panic=true '
qemu-system-x86_64: CPU feature check not found
Makefile:8: recipe for target 'run' failed
make: *** [run] Error 1`

作者提示我关注qemu版本,就用源码重装的方式更新了qemu到4.2.0。就整得挺好了。

这两个微内核还不一样,有一个没ps命令,后续再看。

 

猜你喜欢

转载自www.cnblogs.com/lovelybunny/p/11953554.html