3 releases
Uses new Rust 2024
new 0.1.2 | Mar 25, 2025 |
---|---|
0.1.1 | Mar 24, 2025 |
0.1.0 | Mar 24, 2025 |
#462 in Operating systems
86 downloads per month
Used in ostool
15KB
345 lines
U-Boot Shell
A crate for communicating with u-boot.
Usage
let port = "/dev/ttyUSB0";
let baud = 115200;
let rx = serialport::new(port, baud)
.open()
.unwrap();
let tx = rx.try_clone().unwrap();
println!("wait for u-boot shell...");
let mut uboot = UbootShell::new(tx, rx);
println!("u-boot shell ready");
let res = uboot.cmd("help").unwrap();
println!("{}", res);