Specify absolute byte offsets for each area in the FRU file, and the library should
automatically calculate padding to fill the gap between the specified offset and the
actual data size.
Padding automatically fills the gap between actual data and the next offset.
Example: using the new --area-offset option
- General
frugen -j example.json
--area-offset chassis=0x08,board=0x40,product=0x100,multirecord=0x200
out.fru
- Chassis real data is ~20 bytes, but you try to cram it into 8 bytes
before board at 16.
frugen -j example.json --area-offset chassis=8,board=16 out.fru
=> ERROR: Area data exceeds available space before next offset
Signed-off-by: Chanh Nguyen chanh@os.amperecomputing.com
Specify absolute byte offsets for each area in the FRU file, and the library should
automatically calculate padding to fill the gap between the specified offset and the
actual data size.
Padding automatically fills the gap between actual data and the next offset.
Example: using the new --area-offset option
1. General
frugen -j example.json \
--area-offset chassis=0x08,board=0x40,product=0x100,multirecord=0x200 \
out.fru
2. Chassis real data is ~20 bytes, but you try to cram it into 8 bytes
before board at 16.
frugen -j example.json --area-offset chassis=8,board=16 out.fru
=> ERROR: Area data exceeds available space before next offset
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>