天天看點

Zircon building tutorial

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:

Install Toolchains

Build Zircon

cd $SRC/zircon

# for aarch64

make -j32 zircon-qemu-arm64

# for x86-64

make -j32 zircon-pc-x86-
           

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-
           

You may get this in terminal

[] > vc: new input device /dev/class/input/

[] > devmgr: appmgr not launched in s, closing svc handle
and nothing happens!
           

Don’t worry, just enter a ENTER.

Booooooooooom! Here we are!

Zircon building tutorial

Reference: https://fuchsia.googlesource.com/zircon/+/HEAD/docs/getting_started.md

繼續閱讀