Expand description
Library to flash SD cards with OS images. Powers sd card flashing in BeagleBoard Imager.
Also allows optional extra Customization for BeagleBoard images. Currently only supports sysconf based post-install configuration.
§Platform Support
- Linux
- Windows
- MacOS
§Features
udev: Dynamic permissions on Linux. Mostly useful for GUI and flatpaksmacos_authopen: Dynamic permissions on MacOS.
§Usage
use std::path::Path;
use std::fs::File;
let dst = Path::new("/tmp/dummy");
let img = || {
Ok((File::open("/tmp/image")?, 1024))
};
let (tx, rx) = futures::channel::mpsc::channel(20);
let flash_thread = std::thread::spawn(move || {
bb_flasher_sd::flash(
img,
dst,
Some(tx),
None,
None
)
});
let msgs = futures::executor::block_on_stream(rx);
for m in msgs {
println!("{:?}", m);
}
flash_thread.join().unwrap().unwrap()Structs§
- Customization
- Post install customization options
- Device
- SD Card
Enums§
- Error
- Errors for this crate