fw_env 0.1.0

fw_printenv from U-Boot tools in pure Rust
Documentation
  • Coverage
  • 0%
    0 out of 24 items documented0 out of 9 items with examples
  • Size
  • Source code size: 154.56 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 483.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • bestouff/fw_env
    3 5 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bestouff

fw_env - simply read a variable from U-Boot Env block

What it is

fw_env is a simple pure Rust implementation of fw_printenv from the U-Boot bootloader tools. Basic usage:

	let config = Config::init()?;
	let env = FwEnv::read(&config)?;
	let uboot_version = env.find_var(b"ver"[..]).expect("variable not found");

TODO

  • check CRC
  • find variable by name
  • full config file (/etc/fw_env.config) parsing
  • handle bad blocks in flash
  • handle flags in redundant blocks