The response contains information like the number of physical partitions/LUNs, the available commands, the chip serial. We should use this information instead of hardcoded values.
Example device log
[Device] Device Programmer Entry: pbl_shared = 0x148a7038
[Device] Binary build date: Jun 22 2023 @ 13:20:29
[Device] Binary build date: Jun 22 2023 @ 13:20:29
[Device] Chip serial num: 3595145395 (0xd64990b3)
[Device] Supported Functions (16):
[Device] program
[Device] read
[Device] nop
[Device] patch
[Device] configure
[Device] setbootablestoragedrive
[Device] erase
[Device] power
[Device] firmwarewrite
[Device] getstorageinfo
[Device] benchmark
[Device] peek
[Device] poke
[Device] emmc
[Device] ufs
[Device] fixgpt
[Device] End of supported functions 16
[Device] Calling handler for configure
[Device] Storage type set to value UFS
The response contains information like the number of physical partitions/LUNs, the available commands, the chip serial. We should use this information instead of hardcoded values.
Example device log