Screen Shot 2016-08-20 at 3.53.34 PM

這裡 https://github.com/fuchsia-mirror/manifest 上面有step by step 的作法, 下載後先看folder structure XDD

核心是 magenta (little-kernel)

Screen Shot 2016-08-20 at 3.53.34 PM

看檔案副檔的話, c還是佔大宗, c > cpp > go 再加上一些.sh & Makefile 要測試的話, 以下是我玩的時候需要的步驟 (OSX 10.11.5) 1. 下載fuchsia及相關檔案

curl -s https://raw.githubusercontent.com/vanadium/go.jiri/master/scripts/bootstrap_jiri | bash -s fuchsia
cd fuchsia
export PATH=`pwd`/.jiri_root/scripts:$PATH
jiri import fuchsia https://fuchsia.googlesource.com/manifest
jiri update

2.Build fuchsia

./packages/gn/gen.py
./buildtools/ninja -C out/debug-x86-64

3.Build qemu

git clone https://fuchsia.googlesource.com/third_party/qemu
cd qemu
git checkout fuchsia
./configure --target-list=arm-softmmu,aarch64-softmmu,x86_64-softmmu --prefix=/path/to/install
make
make install
export PATH=/path/to/install/bin:$PATH

4.Build magenta

cd ../magenta
make -j32 magenta-pc-x86-64

5.執行 magenta

./scripts/run-magenta-x86-64 -x ../out/debug-x86-64/user.bootfs

6. 結果如下圖

Screen Shot 2016-08-21 at 12.21.15 AM

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>