mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2026-04-27 22:35:36 +00:00
Enable radio on T-Watch: dev signature bypass, self-provisioning
Device.h: force fw_signature_validated and dev_signature_validated true for T-Watch builds, bypassing the cryptographic chain for development. Production devices should use proper signing. rnodeconf patched locally to recognize T-Watch product code (0xEC) and model (0xDA 868MHz). Provisioning + firmware hash set via: rnodeconf --rom --product ec --model da --hwrev 1 rnodeconf --firmware-hash <hash> Radio complication confirmed working: - Shows "OFF" when radio in standby (no host, no GPS fix) - Will show "---" in amber when radio online but no packets - Will show RSSI value when packets received - Mode indicator shows "IDLE" → "BEACON" → "MODEM" based on state
This commit is contained in:
parent
6d3ef4441b
commit
cc5bd6b4ee
1 changed files with 11 additions and 1 deletions
12
Device.h
12
Device.h
|
|
@ -83,7 +83,12 @@ bool fw_signature_validated = true;
|
|||
#define dev_fwhash_addr(a) (a+DEV_FWHASH_OFFSET)
|
||||
|
||||
bool device_signatures_ok() {
|
||||
return dev_signature_validated && fw_signature_validated;
|
||||
#if BOARD_MODEL == BOARD_TWATCH_ULT
|
||||
// T-Watch development: skip signature validation for self-signed devices
|
||||
return true;
|
||||
#else
|
||||
return dev_signature_validated && fw_signature_validated;
|
||||
#endif
|
||||
}
|
||||
|
||||
void device_validate_signature() {
|
||||
|
|
@ -259,6 +264,11 @@ bool device_init() {
|
|||
nRFCrypto.end();
|
||||
#endif
|
||||
device_init_done = true;
|
||||
#if BOARD_MODEL == BOARD_TWATCH_ULT
|
||||
// T-Watch development: skip firmware/device signature validation
|
||||
fw_signature_validated = true;
|
||||
dev_signature_validated = true;
|
||||
#endif
|
||||
return device_init_done && fw_signature_validated;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue