diff --git a/Cargo.lock b/Cargo.lock
index 12cb31635..32211957c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1308,26 +1308,25 @@ dependencies = [
[[package]]
name = "curve25519-dalek"
version = "4.1.2"
-source = "git+https://github.com/betrusted-io/curve25519-dalek.git?branch=main#bef542a781348054c32a9beaf6bd1195814cace2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348"
dependencies = [
"cfg-if",
"cpufeatures",
"curve25519-dalek-derive",
"digest 0.10.7",
- "engine25519-as",
"fiat-crypto 0.2.7",
- "log",
+ "platforms",
"rustc_version 0.4.0",
"subtle",
- "utralib 0.1.25",
- "xous 0.9.66 (registry+https://github.com/rust-lang/crates.io-index)",
"zeroize",
]
[[package]]
name = "curve25519-dalek-derive"
version = "0.1.1"
-source = "git+https://github.com/betrusted-io/curve25519-dalek.git?branch=main#bef542a781348054c32a9beaf6bd1195814cace2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
dependencies = [
"proc-macro2",
"quote",
@@ -4075,6 +4074,12 @@ version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
+[[package]]
+name = "platforms"
+version = "3.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b02ffed1bc8c2234bb6f8e760e34613776c5102a041f25330b869a78153a68c"
+
[[package]]
name = "plotters"
version = "0.3.5"
diff --git a/services/bao-console/src/cmds.rs b/services/bao-console/src/cmds.rs
index df1e995c2..741f9e8d7 100644
--- a/services/bao-console/src/cmds.rs
+++ b/services/bao-console/src/cmds.rs
@@ -91,6 +91,10 @@ use usb::*;
mod pddb;
#[cfg(feature = "with-pddb")]
use pddb::*;
+mod i2cdetect;
+use i2cdetect::*;
+mod cute;
+use cute::*;
pub struct CmdEnv {
common_env: CommonEnv,
@@ -138,11 +142,16 @@ impl CmdEnv {
let mut echo_cmd = Echo {}; // this command has no persistent storage, so we can "create" it every time we call dispatch (but it's a zero-cost absraction so this doesn't actually create any instructions)
let mut ver_cmd = Ver {};
let mut console_cmd = Test {};
+ let mut i2cdetect_cmd = I2cDetect {};
+ let mut cute_cmd = Cute {};
+
let commands: &mut [&mut dyn ShellCmdApi] = &mut [
///// 4. add your command to this array, so that it can be looked up and dispatched
&mut echo_cmd,
&mut ver_cmd,
&mut self.trng_cmd,
+ &mut i2cdetect_cmd,
+ &mut cute_cmd,
&mut console_cmd,
#[cfg(feature = "usb")]
&mut self.usb,
diff --git a/services/bao-console/src/cmds/cute.rs b/services/bao-console/src/cmds/cute.rs
new file mode 100644
index 000000000..9577cc1de
--- /dev/null
+++ b/services/bao-console/src/cmds/cute.rs
@@ -0,0 +1,90 @@
+use String;
+
+use crate::{CommonEnv, ShellCmdApi};
+
+#[derive(Debug)]
+pub struct Cute {}
+
+impl<'a> ShellCmdApi<'a> for Cute {
+ cmd_api!(cute);
+
+ fn process(&mut self, args: String, _env: &mut CommonEnv) -> Result