kexec-tools icon indicating copy to clipboard operation
kexec-tools copied to clipboard

fs2dt: Fix for parsing/reading entries > 4k

Open benmcollins opened this issue 6 years ago • 1 comments

The device-tree only does 4k reads at a time, so for entries greater than that, the fs2dt code would fail, assuming a single read would get the whole item.

Added helper function to continue reading as long as there was data and no errors.

This was evident from:

/proc/device-tree/soc@ffe000000/fman@400000/fman-firmware/fsl,firmware

On my P4080 system, which is 29668 bytes.

Signed-off-by: Ben Collins [email protected]

benmcollins avatar Mar 16 '18 13:03 benmcollins

Instead of defining its own auxiliary routine, I think this could now use slurp_file_len().

barak avatar Sep 14 '23 18:09 barak