• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Fuchsia support
2
3For information about checking out and building Fuchsia see
4[Getting Started](https://fuchsia.googlesource.com/docs/+/master/getting_started.md)
5and [Soure Code](https://fuchsia.googlesource.com/docs/+/master/development/source_code/README.md).
6Image needs to be configured with sshd support:
7```
8fx set x64 --packages garnet/packages/products/sshd
9fx full-build
10```
11
12To update descriptions run:
13```
14make extract TARGETOS=fuchsia SOURCEDIR=/path/to/fuchsia/checkout
15make generate
16```
17
18To build binaries:
19```
20make TARGETOS=fuchsia TARGETARCH=amd64 SOURCEDIR=/path/to/fuchsia/checkout
21```
22
23Run `syz-manager` with a config along the lines of:
24```
25{
26	"name": "fuchsia",
27	"target": "fuchsia/amd64",
28	"http": ":12345",
29	"workdir": "/workdir.fuchsia",
30	"kernel_obj": "/fuchsia/out/build-zircon/build-x64",
31	"syzkaller": "/syzkaller",
32	"image": "/fuchsia/out/x64/images/fvm.blk",
33	"sshkey": "/fuchsia/out/x64/ssh-keys/id_ed25519",
34	"reproduce": false,
35	"cover": false,
36	"procs": 8,
37	"type": "qemu",
38	"vm": {
39		"count": 10,
40		"cpu": 4,
41		"mem": 2048,
42		"kernel": "/fuchsia/out/build-zircon/build-x64/zircon.bin",
43		"initrd": "/fuchsia/out/x64/bootdata-blob.bin"
44	}
45}
46```
47