hreinecke / sg3_utils

Deprecated git-svn mirror for sg3_utils
http://sg.danny.cz/sg/sg3_utils.html
Other
154 stars 91 forks source link

sg_write_buffer firmware flashing #69

Open david-bojnansky opened 3 years ago

david-bojnansky commented 3 years ago

Hello,

I am not involved in sg3_utils and know nothing about it in detail. I am just user of it...

I have been trying to flash firmware to SAS SSD drive with command such as:

sudo sg_write_buffer -b 4k -m dmc_offs_save -I file.rel -v /dev/sg1

and got an error:

image

I am just curious if I can do something with it or not... Is it related to the input file?

In fact, I am trying to flash Samsung PM1643 (not HPE labeled) with HPE firmware which is compatibile with such drive labeled with HPE label.

Thanks.

doug-gilbert commented 3 years ago

Everything looks fine, 4 KB blocks going down to the drive, then on the fourteenth block it rejects it. Almost as if the drive didn't expect its firmware to be that long. 14x4096 bytes isn't very long for firmware. You could try different block sizes and modes. Perhaps HPE firmware has added key signing which the Samsung firmware does not have.