This patch series reduces the memory usage of fdt{get,put,dump} and related tools. This is especially relevant when using the utilities on embedded devices to process FIT images, where the actual image payload is stored behind the FDT blob in the same file. The first patch optimises how much is read from the file, while the second patch optimises the allocation strategy.