qemu: increase PLAT_QEMU_DT_MAX_SIZE to 1 MiB
authorJerome Forissier <jerome.forissier@linaro.org>
Thu, 18 Oct 2018 14:41:25 +0000 (16:41 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Thu, 18 Oct 2018 15:47:45 +0000 (17:47 +0200)
Since upstream QEMU commit 14ec3cbd7c1e ("device_tree: Increase
FDT_MAX_SIZE to 1 MiB"), which is included in release v2.12.1
and later, BL2 initialization fails with the following error (-3 is
-FDT_ERR_NOSPACE):

 ERROR:   Invalid Device Tree at 0x40000000: error -3

Increase PLAT_QEMU_DT_MAX_SIZE accordingly.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
plat/qemu/include/platform_def.h

index 55252c3805636d77594c6954e73270bc292199fd..c2289bc560b195b1cb3cfcc3a690ca61c5b527f0 100644 (file)
  * DT related constants
  */
 #define PLAT_QEMU_DT_BASE              NS_DRAM0_BASE
-#define PLAT_QEMU_DT_MAX_SIZE          0x10000
+#define PLAT_QEMU_DT_MAX_SIZE          0x100000
 
 /*
  * System counter