update handling of id numbers

This commit is contained in:
bunnie 2025-11-06 14:10:38 +08:00
parent d91c2e7671
commit 815621d829
2 changed files with 11 additions and 3 deletions

View file

@ -132,10 +132,10 @@ struct DeviceDescriptor {
pub i_serial_number: u8,
pub b_num_configurations: u8,
}
const VENDOR_ID: u16 = 0x1209;
const PRODUCT_ID: u16 = 0x3613; // this needs to change! this is the Precursor product ID.
const VENDOR_ID: u16 = 0x1d50;
const PRODUCT_ID: u16 = 0x6196; // This is pending acceptance of a PR to the openmoko registry
const MANUFACTURER: &'static str = "Baochip";
const PRODUCT: &'static str = "Dabao";
const PRODUCT: &'static str = "Baochip-1x";
impl DeviceDescriptor {
#[allow(dead_code)]

View file

@ -281,6 +281,14 @@ impl Repl {
"Public serial number: {}",
bao1x_hal::usb::derive_usb_serial_number(&owc, &slot_mgr)
);
let uuid = slot_mgr.read(&bao1x_hal::board::UUID).unwrap();
crate::println!(
"UUID: {:08x}-{:08x}-{:08x}-{:08x}",
u32::from_le_bytes(uuid[12..16].try_into().unwrap()),
u32::from_le_bytes(uuid[8..12].try_into().unwrap()),
u32::from_le_bytes(uuid[4..8].try_into().unwrap()),
u32::from_le_bytes(uuid[..4].try_into().unwrap())
);
crate::println!("Revocations:");
crate::println!("Stage key0 key1 key2 key3");
let key_array = [