Skip to content
Snippets Groups Projects
Jonathan Klimt's avatar
Jonathan Klimt authored
This would be more in-line with "RustyHermit".
74d17428
History

RustyLoader

RustyLoader is a loader to run RustyHermit within Qemu.

Requirements

Building

$ cargo xtask build --arch x86_64

Afterwards, the loader is located at target/x86_64/debug/rusty-loader.

Running

Boot a hermit application:

qemu-system-x86_64 -smp 1 \
    -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr \
    -device isa-debug-exit,iobase=0xf4,iosize=0x04 \
    -display none -m 64M -serial stdio -enable-kvm \
    -kernel path_to_loader/rusty-loader \
    -initrd path_to_app/app

It is important to enable the processor features fsgsbase and rdtscp because it is a prerequisite to boot RustyHermit.

Please read the README of RustyHermit for more information.

License

Licensed under either of

at your option.