xous-core/bao1x-boot/boot1/Cargo.toml
bunnie 53c92df8a5 add uf2-spim feature to bootloader
All the changes here (except one print statement change) are
intended to be feature-gated behind `uf2-spim` in the bootloader.
So, in theory, this should have no boot1 regressions.

The uf2-spim feature is intended for alt-boot and alternate
compiled boot1's and extend the serial-only upload path with
the following features:

1. ability to write SPIM (spi flash memory) using the same
.uf2 files as the USB path
2. requirement of CRC's on blocks
3. a quick test to determine if CRC has been enabled or not
via the `has-crc` command (returns `true` if required, an
error/unknown command message if not).

The CRC makes long/large file uploads reliable, allowing
full device provisioning to happen via serial only, in
cases where USB for whatever reason is not present or available.
2026-06-24 15:08:12 +08:00

60 lines
2.1 KiB
TOML

[package]
name = "bao1x-boot1"
version = "0.1.0"
authors = ["bunnie <bunnie@kosagi.com>"]
edition = "2018"
description = "Boot1 partition"
[dependencies]
xous = "0.9.70"
utralib = { version = "0.1.27", optional = true, default-features = false }
bao1x-hal = { path = "../../libs/bao1x-hal", optional = true, default-features = false }
bao1x-api = { path = "../../libs/bao1x-api", optional = true, default-features = false }
vexriscv = { version = "0.5.6", package = "xous-riscv" }
riscv = { version = "0.14.0", features = ["critical-section-single-hart"] }
linked_list_allocator = { version = "0.10.5", optional = true }
critical-section = "1.2.0"
ux-api = { path = "../../libs/ux-api", optional = true, default-features = false }
simple-fatfs = { git = "https://github.com/betrusted-io/simple-fatfs.git", branch = "baosec", default-features = false }
sha2-bao1x = { path = "../sha2-bao1x", default-features = false }
digest = { version = "0.10.7" }
ed25519-dalek = { package = "ed25519-dalek-bao1x", path = "../ed25519-dalek-bao1x", default-features = false, features = [
"digest",
"zeroize",
], optional = true }
base64 = { version = "0.22.1", default-features = false, features = ["alloc"] }
xous-bio-bdma = { path = "../../libs/xous-bio-bdma", default-features = false, features = [
"baremetal",
] }
rand_chacha = { version = "0.3.1", default-features = false }
hex = { version = "0.4.3", default-features = false }
[features]
# Baochip feature tree below
bao1x = [
"utralib/bao1x",
"linked_list_allocator",
"bao1x-hal/loader-baosec",
"bao1x-hal/security",
# "bao1x-hal/debug-print-duart",
# "bao1x-hal/debug-countermeasures",
"bao1x-api",
# needed for the boot logo
"ux-api/loader-baosec",
]
unsafe-debug = []
verbose-debug = ["bao1x-hal/debug-print-uart", "bao1x-hal/verbose-debug"]
print-ifr = []
test-boot0-keys = []
alt-boot1 = []
test-clock-skipping = []
uf2-spim = []
oem = []
oem-baosec-lite = ["oem", "bao1x-hal/oem-baosec-lite"]
qe-debug = ["verbose-debug", "bao1x-hal/debug-print-duart"]
verilator-only = []
default = ["oem-baosec-lite"]