Skip to contentSkip to conversation

Note to anyone who accesses the OpenFSI driver 'raw' file in their code

DISCUSSION Christopher Bostic 1 participant 1 message Apr 4, 2017

lore
Share & tools
lore
#0 lore raw

To anyone who reads or writes to the OpenFSI device driver 'raw' file(s) on BMC please note that data for both reads and writes is changing to native bus endian format. This is effective with the release of the OpenBMC 4.10 kernel. Note that 4.7 is not impacted by this.

Adjustments you will need to make:

Any 32 bit data must be byte swapped prior to writing to the 'raw' file. i.e.: instead of writing <byte 3, byte 2, byte 1, byte 0 > as was done before you will instead write <byte 0, byte 1, byte 2, byte 3>. Conversely all data read out of the 'raw' file must be byte swapped before acting on it.

Please let me know if you have any questions,

Chris