storagecommands: move Read and Write FRU data
Rewrite "Read and write FRU data" to new IPMI provider API.
Tested:
verified using ipmitool storage commands.
a. read fru data
b. write fru data before and after the changes.
Write Fru data:
Input Command: ipmitool raw 0x0a 0x12 0x00 0x02 0x01 0x15 0x26 0x24
0x20 0x1a 0x10 0x01 0x02 0x03 0x5 0x43 0x55 0x66 0xaa 0xbb 0xaa
Output: 00
Read fru data:
Input Command: ipmitool raw 0x0a 0x11 0x00 0x02 0x01 0x10
Output: 10 15 26 24 20 1a 10 01 02 03 05 43 55 66 aa bb aa
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: Id9e52623d262bab8fa1fe861896fc36a43c9f488
2 files changed