xref: /aosp_15_r20/external/crosvm/tools/examples/baremetal/README.md (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1*bb4ee6a4SAndroid Build Coastguard WorkerThis is a small baremetal x86_64 application that can be booted with crosvm. You can simply do
2*bb4ee6a4SAndroid Build Coastguard Worker`cargo run` and it'll build it and use crosvm from `PATH` to launch it. Alternatively you can build
3*bb4ee6a4SAndroid Build Coastguard Workerit with `cargo build` and run with
4*bb4ee6a4SAndroid Build Coastguard Worker`crosvm run --disable-sandbox path/to/target/x86_64-naked/debug/baremetal`
5*bb4ee6a4SAndroid Build Coastguard Worker
6*bb4ee6a4SAndroid Build Coastguard WorkerThe application does nothing but output `Hello World!` log line over serial port and go into
7*bb4ee6a4SAndroid Build Coastguard Workerinfinite loop. This is expected and you'll need to kill crosvm to stop it.
8