Hi All,
The command "ipmitool . i2c <i2caddr> <read_bytes> <write_datas>"
does not execute correctly.
The reason is the fill in of wdata[] (in ipmi_rawi2c_main()) with the write
data bytes passed on argument that is not correct.
If you agree with this analysis, the following patch fixes this problem:
diff -Naur ../../ipmitool-1.8.9/lib/ipmi_raw.c ./ipmi_raw.c
--- ../../ipmitool-1.8.9/lib/ipmi_raw.c 2007-02-22
+++ ./ipmi_raw.c 2008-05-28
@@ -225,7 +225,7 @@
memset(wdata, 0, IPMI_I2C_MASTER_MAX_SIZE);
for (; i < argc; i++) {
uint8_t val = (uint8_t)strtol(argv[i], NULL, 0);
- wdata[i-2] = val;
+ wdata[wsize] = val;
wsize++;
}
Thanks,
Bernard MANJOU
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel