uboot-shell

Crates.iouboot-shell
lib.rsuboot-shell
version0.1.9
created_at2025-03-24 02:45:24.74679+00
updated_at2025-05-12 06:16:47.666223+00
descriptionA crate for communicating with u-boot
homepage
repositoryhttps://github.com/ZR233/ostool/ostool
max_upload_size
id1603309
size36,413
周睿 (ZR233)

documentation

README

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);
Commit count: 149

cargo fmt