Skip to content

Commit fd99918

Browse files
authored
Merge pull request #1496 from NickeZ/nickez/da14531-v2
da14531: firmware v2
2 parents 7b90112 + edd97ab commit fd99918

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.ci/ci

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ set -e
66
# Deny warnings in rust. CI will fail to compile any code with warnings in it.
77
export RUSTFLAGS="-Dwarnings"
88

9+
# Check the da14531 firmware matches the hash file, which makes reviewing updates to the binary
10+
# easier.
11+
sha256sum --check bitbox-da14531-firmware.bin.sha256
12+
913
# Check style for C and Rust
1014
./.ci/check-style
1115

bitbox-da14531-firmware.bin

28 Bytes
Binary file not shown.

bitbox-da14531-firmware.bin.sha256

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1e4aa8364e935c0785e4f891208307d832f788172e4bf61621de6df9ec3c215f bitbox-da14531-firmware.bin

src/factorysetup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646

4747
// We commit to the BLE firmware hash here to avoid accidentally installing an unexpected firmware.
4848
static const uint8_t _allowed_ble_fw_hash[32] =
49-
"\x2a\x92\xcc\x7f\xd5\xbf\xb0\x81\x17\x8e\x93\xe8\x13\x2b\x8e\x99\x87\x18\x0b\x1e\x60\x9f\xc8"
50-
"\x91\x5c\x98\xeb\x4f\x2b\xe8\x19\x0a";
49+
"\x1e\x4a\xa8\x36\x4e\x93\x5c\x07\x85\xe4\xf8\x91\x20\x83\x07\xd8\x32\xf7\x88\x17\x2e\x4b\xf6"
50+
"\x16\x21\xde\x6d\xf9\xec\x3c\x21\x5f";
5151

5252
// 65 bytes uncompressed secp256k1 root attestation pubkey.
5353
#define ROOT_PUBKEY_SIZE 65

src/rust/bitbox02-rust/src/hww/api/bluetooth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use alloc::vec::Vec;
2727

2828
use bitbox02::{memory, spi_mem};
2929

30-
const ALLOWED_HASH: &[u8; 32] = b"\x2a\x92\xcc\x7f\xd5\xbf\xb0\x81\x17\x8e\x93\xe8\x13\x2b\x8e\x99\x87\x18\x0b\x1e\x60\x9f\xc8\x91\x5c\x98\xeb\x4f\x2b\xe8\x19\x0a";
30+
const ALLOWED_HASH: &[u8; 32] = b"\x1e\x4a\xa8\x36\x4e\x93\x5c\x07\x85\xe4\xf8\x91\x20\x83\x07\xd8\x32\xf7\x88\x17\x2e\x4b\xf6\x16\x21\xde\x6d\xf9\xec\x3c\x21\x5f";
3131

3232
// We want to write FW to the memory chip in erase-size chunks, so that we don't repeatedly need to
3333
// read-erase-write the same sector.

0 commit comments

Comments
 (0)