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:
parent
01cf58f2a1
commit
46eebd23a4
1
core/embed/projects/prodtest/.changelog.d/4405.fixed
Normal file
1
core/embed/projects/prodtest/.changelog.d/4405.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix BOOTLOADER VERSION command
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user