mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Add a version command to the bootloader (not activated yet)
This commit is contained in:
parent
7ad7275ee9
commit
c056e56492
2 changed files with 14 additions and 0 deletions
|
@ -126,6 +126,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||
DEVICE_INFO_FLAG_CURRENT_MODE_BOOTROM |
|
||||
DEVICE_INFO_FLAG_UNDERSTANDS_START_FLASH |
|
||||
DEVICE_INFO_FLAG_UNDERSTANDS_CHIP_INFO;
|
||||
//to add later: DEVICE_INFO_FLAG_UNDERSTANDS_VERSION
|
||||
if (common_area.flags.osimage_present)
|
||||
arg0 |= DEVICE_INFO_FLAG_OSIMAGE_PRESENT;
|
||||
|
||||
|
@ -140,6 +141,12 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||
}
|
||||
break;
|
||||
|
||||
case CMD_BL_VERSION: {
|
||||
dont_ack = 1;
|
||||
arg0 = VERSION_1_0_0;
|
||||
reply_old(CMD_BL_VERSION, arg0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
case CMD_SETUP_WRITE: {
|
||||
/* The temporary write buffer of the embedded flash controller is mapped to the
|
||||
* whole memory region, only the last 8 bits are decoded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue