docs: update fuchsia instructions

This commit is contained in:
Dmitry Vyukov 2018-06-06 20:55:40 +02:00
parent a251f32666
commit e0e534c6c2
2 changed files with 32 additions and 5 deletions

View File

@ -42,7 +42,7 @@ GO := go
export CGO_ENABLED=0
ifeq ("$(TARGETOS)", "fuchsia")
# SOURCEDIR should point to zircon checkout.
# SOURCEDIR should point to fuchsia checkout.
GO = $(SOURCEDIR)/buildtools/go
export CGO_ENABLED=1
ifeq ("$(TARGETARCH)", "amd64")

View File

@ -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"
}
}
```