Background:
Google renamed the kernel of Fuchsia from Magenta to Zircon days ago. What tutorial you can find is based on Magenta except Google's official one. However, some steps may do not work in your machine. I just cannot install prebuilt qemu. So, this tutorial will guide you to build Zircon on Ubuntu 16.04 SUCCESSFULLY(or not).
Here we go
On Ubuntu this should obtain the necessary pre-reqs:
sudo apt-get install texinfo libglib2.0-dev autoconf libtool libsdl-dev build-essential
Install Toolchains
./scripts/download-toolchain
Build Zircon
cd $SRC/zircon
# for aarch64
make -j32 zircon-qemu-arm64
# for x86-64
make -j32 zircon-pc-x86-64
Build results will be in $SRC/zircon/build-{qemu-arm64,pc-x86-64}
Build QEMU
cd $SRC
git clone --recursive https://fuchsia.googlesource.com/third_party/qemu
cd qemu
./configure --target-list=arm-softmmu,aarch64-softmmu,x86_64-softmmu
make -j32
sudo make install
Run
# for aarch64
./scripts/run-zircon-arm64
# for x86-64
./scripts/run-zircon-x86-64
You may get this in terminal
[00000.962] 01282.01342> vc: new input device /dev/class/input/001
[00010.249] 01044.01360> devmgr: appmgr not launched in 10s, closing svc handle
and nothing happens!
Don't worry, just enter a ENTER.
Booooooooooom! Here we are!

Reference: https://fuchsia.googlesource.com/zircon/+/HEAD/docs/getting_started.md
网友评论