diff options
| author | Pali Rohár <[email protected]> | 2024-06-06 18:33:21 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-07-12 13:07:43 -0600 |
| commit | 0858e03b3d1f5d8270fe658f11cc8159dd32e595 (patch) | |
| tree | 6af663811e9967a0a7211d14a7a68e2a758561e3 /scripts/basic | |
| parent | 03de305ec48b0bb28554372abb40ccd46dbe0bf9 (diff) | |
board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images
When U-Boot is running from flash memory (execute in place) then
gd->fdt_blob before relocation points to read-only flash memory.
So U-Boot calls board_fix_fdt() with read-only gd->fdt_blob pointer which
cause immediate CPU crash when callback is trying to modify gd->fdt_blob.
Fix this issue by introducing a new config option OF_INITIAL_DTB_READONLY
which moves fix_fdt callback after the reloc_fdt callback. This makes
CONFIG_OF_BOARD_FIXUP working also if U-Boot before relocation is not
running from read/write (S)RAM memory.
This is required for mpc85xx boards when booting from flash NOR.
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Marek Mojík <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
