3 unstable releases

new 0.2.0 Mar 8, 2025
0.1.1 Mar 8, 2025
0.1.0 Mar 8, 2025

#457 in Hardware support

Download history 132/week @ 2025-03-03

132 downloads per month

MIT license

13KB
167 lines

smoltcp-uefi

This crate contains utilities for using the smoltcp crate inside an EFI environment.

WARNING: This crate is highly experimental right now! It's more of a proof-of-concept than something that's production ready! Suggestions and pull requests are welcome.

Features

  • SnpDevice, a smoltcp::phy::Device running on UEFI's Simple Network Protocol.
  • Type conversion utilities
  • Utilities for getting monotonic smoltcp::time::Instants inside UEFI

Example code

There is currently one example that implements ipv4 ping.

It runs in UEFI, so you probably shouldn't cargo run it on a normal system. Instead, I've provided a helper script in scripts/test_on_qemu.sh for building and running it. See the comment inside that script for information on how to run it.

Dependencies

~4.5MB
~95K SLoC