diff --git a/src/bin/sdcard_userspace.rs b/src/bin/sdcard_userspace.rs new file mode 100644 index 0000000..a3976fd --- /dev/null +++ b/src/bin/sdcard_userspace.rs @@ -0,0 +1,7 @@ +use bmc_installer::turing_pi::{led, read_from_sdcard, upgrade_bmc}; + +fn main() -> anyhow::Result<()> { + let led_tx = led::led_blink_thread(); + let (bootloader, rootfs) = read_from_sdcard()?; + upgrade_bmc(rootfs, bootloader, || (), led_tx) +}