From e0e534c6c2485161cf80d4ab7f7658c85fabc83f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 6 Jun 2018 20:55:40 +0200 Subject: docs: update fuchsia instructions --- docs/fuchsia.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/fuchsia.md b/docs/fuchsia.md index 08754f09a..19c3ad269 100644 --- a/docs/fuchsia.md +++ b/docs/fuchsia.md @@ -1,5 +1,14 @@ # Fuchsia support +For information about checking out and building Fuchsia see +[Getting Started](https://fuchsia.googlesource.com/docs/+/master/getting_started.md) +and [Soure Code](https://fuchsia.googlesource.com/docs/+/master/development/source_code/README.md). +Image needs to be configured with sshd support: +``` +fx set x64 --packages garnet/packages/products/sshd +fx full-build +``` + To update descriptions run: ``` make extract TARGETOS=fuchsia SOURCEDIR=/path/to/fuchsia/checkout @@ -11,9 +20,27 @@ To build binaries: make TARGETOS=fuchsia TARGETARCH=amd64 SOURCEDIR=/path/to/fuchsia/checkout ``` -To run: +Run `syz-manager` with a config along the lines of: ``` -$SOURCEDIR/out/build-zircon/tools/netcp bin/fuchsia_amd64/syz-executor :/syz-executor -$SOURCEDIR/out/build-zircon/tools/netcp bin/fuchsia_amd64/syz-stress :/syz-stress -$SOURCEDIR/out/build-zircon/tools/netruncmd : "/syz-stress -executor /syz-executor" +{ + "name": "fuchsia", + "target": "fuchsia/amd64", + "http": ":12345", + "workdir": "/workdir.fuchsia", + "vmlinux": "/fuchsia/out/build-zircon/build-x64/zircon.elf", + "syzkaller": "/syzkaller", + "image": "/fuchsia/out/x64/images/fvm.blk", + "sshkey": "/fuchsia/out/x64/ssh-keys/id_ed25519", + "reproduce": false, + "cover": false, + "procs": 8, + "type": "qemu", + "vm": { + "count": 10, + "cpu": 4, + "mem": 2048, + "kernel": "/fuchsia/out/build-zircon/build-x64/zircon.bin", + "initrd": "/fuchsia/out/x64/bootdata-blob.bin" + } +} ``` -- cgit mrf-deployment