1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-01 10:20:59 +00:00

fix(core/prodtest): fix BOOTLOADER VERSION command

This commit is contained in:
tychovrahe 2024-11-29 10:02:48 +01:00 committed by TychoVrahe
parent 01cf58f2a1
commit 46eebd23a4
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1 @@
Fix BOOTLOADER VERSION command

View File

@ -302,7 +302,7 @@ The command returns `OK` followed by the version in the format `<major>.<minor>.
Example: Example:
``` ```
BOOTLOADER_VERSION BOOTLOADER VERSION
OK 2.1.7 OK 2.1.7
``` ```
@ -312,7 +312,7 @@ The command returns `OK` followed by the version in the format `<major>.<minor>.
Example: Example:
``` ```
FIRMWARE VERSION BOARDLOADER VERSION
OK 0.2.6 OK 0.2.6
``` ```

View File

@ -662,8 +662,9 @@ static uint32_t read_bootloader_version(void) {
mpu_mode_t mpu_mode = mpu_reconfig(MPU_MODE_BOOTUPDATE); mpu_mode_t mpu_mode = mpu_reconfig(MPU_MODE_BOOTUPDATE);
const image_header *header = read_image_header( const image_header *header =
(const uint8_t *)BOOTLOADER_START, BOOTLOADER_MAXSIZE, 0xffffffff); read_image_header((const uint8_t *)BOOTLOADER_START,
BOOTLOADER_IMAGE_MAGIC, BOOTLOADER_MAXSIZE);
if (header != NULL) { if (header != NULL) {
version = header->version; version = header->version;