mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
mkimage: fit: fix import of external data
The external data is located after the mmapped FDT pointed to by 'old_fdt', not in the newly created FDT we are importing into at 'fdt'. Signed-off-by: Patrick Oppenlander <patrick.oppenlander@gmail.com>
This commit is contained in:
parent
ef40129c33
commit
c995d854ef
1 changed files with 2 additions and 2 deletions
|
@ -606,8 +606,8 @@ static int fit_import_data(struct image_tool_params *params, const char *fname)
|
||||||
continue;
|
continue;
|
||||||
debug("Importing data size %x\n", len);
|
debug("Importing data size %x\n", len);
|
||||||
|
|
||||||
ret = fdt_setprop(fdt, node, "data", fdt + data_base + buf_ptr,
|
ret = fdt_setprop(fdt, node, "data",
|
||||||
len);
|
old_fdt + data_base + buf_ptr, len);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("%s: Failed to write property: %s\n", __func__,
|
debug("%s: Failed to write property: %s\n", __func__,
|
||||||
fdt_strerror(ret));
|
fdt_strerror(ret));
|
||||||
|
|
Loading…
Add table
Reference in a new issue