#shell #uboot

uboot-shell

A crate for communicating with u-boot

9 releases

Uses new Rust 2024

new 0.1.8 Apr 28, 2025
0.1.7 Apr 28, 2025
0.1.5 Mar 27, 2025

#516 in Operating systems

Download history 137/week @ 2025-03-18 419/week @ 2025-03-25 42/week @ 2025-04-01 10/week @ 2025-04-08 142/week @ 2025-04-15 140/week @ 2025-04-22

350 downloads per month
Used in ostool

MIT license

17KB
391 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);

Dependencies

~0–6.5MB
~33K SLoC