Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hermit-os/no_std
HermitOS without std
https://github.com/hermit-os/no_std
kernel operating-system operating-systems rust rust-lang
Last synced: 9 days ago
JSON representation
HermitOS without std
- Host: GitHub
- URL: https://github.com/hermit-os/no_std
- Owner: hermit-os
- License: apache-2.0
- Created: 2024-03-14T21:59:25.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-17T08:52:05.000Z (8 months ago)
- Last Synced: 2024-05-09T09:48:03.048Z (6 months ago)
- Topics: kernel, operating-system, operating-systems, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# no_std
The kernel feature `no_std` allows you to boot HermitOS without `std`.
Please not, the [kernel interface](https://hermit-os.github.io/kernel/hermit/) is not stable and is under active development!
Only `std` provides an stable interface to the kernel.## Requirements
* [`rustup`](https://www.rust-lang.org/tools/install)
## Building the kernel
```sh
cargo build
```## Booting the kernel
Boot kernel with `cargo run` or download the [`hermit-loader-x86_64`](https://github.com/hermit-os/loader/releases) and use following command:
```sh
qemu-system-x86_64 -display none -serial stdio -kernel hermit-loader-x86_64 -cpu Skylake-Client -device isa-debug-exit,iobase=0xf4,iosize=0x04 -smp 1 -m 512M -netdev user,id=u1,hostfwd=tcp::9975-:9975,hostfwd=udp::9975-:9975,net=192.168.76.0/24,dhcpstart=192.168.76.9 -device virtio-net-pci,netdev=u1,disable-legacy=on -initrd target/x86_64-unknown-none/debug/no_std
```## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
The kernel is being developed on [hermit-os/kernel](https://github.com/hermit-os/kernel).
Create your own fork, send us a pull request, and chat with us on [Zulip](https://hermit.zulipchat.com/).