1 unstable release

0.1.0 Mar 13, 2019

#263 in #env

Download history 2/week @ 2024-11-13 11/week @ 2024-11-20 5/week @ 2024-11-27 3/week @ 2024-12-04 5/week @ 2024-12-11 3/week @ 2025-01-08 24/week @ 2025-01-15 6/week @ 2025-01-22 23/week @ 2025-02-05 18/week @ 2025-02-12 7/week @ 2025-02-19 15/week @ 2025-02-26

63 downloads per month

MIT license

14KB
179 lines

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

Dependencies

~3.5MB
~75K SLoC