| Crates.io | uboot-shell |
| lib.rs | uboot-shell |
| version | 0.1.9 |
| created_at | 2025-03-24 02:45:24.74679+00 |
| updated_at | 2025-05-12 06:16:47.666223+00 |
| description | A crate for communicating with u-boot |
| homepage | |
| repository | https://github.com/ZR233/ostool/ostool |
| max_upload_size | |
| id | 1603309 |
| size | 36,413 |
A crate for communicating with u-boot.
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);