tree: 2e23493f7aee9e71c4f881cd5f2ae44766ee8aac [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. hello_aarch64.S
  4. hello_x64.S
  5. README.md
src/starnix/examples/hello_starnix/README.md

Hello Starnix

This directory contains a simple Linux binary that runs in Starnix.

How to run hello_starnix

First, start an empty container. This container does not have a disk image. Instead, the empty container mounts its own package as its root file system. This container is useful for running self-contained binaries (e.g., that do not require libc):

ffx component run /core/starnix_runner/playground:starless fuchsia-pkg://fuchsia.com/starless#meta/empty_container.cm

You can confirm that this container is running using ffx component list. If everything has gone well, you should see /core/starnix_runner/playground:starless running in the system.

Next, run hello_starnix inside this container:

ffx component run --connect-stdio /core/starnix_runner/playground:starless/daemons:hello_starnix fuchsia-pkg://fuchsia.com/hello_starnix#meta/hello_starnix.cm

This command should produce the following output:

hello starnix