mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-13 10:47:00 +02:00
Line 171 in README is describing that before relocation no code should use global variable because global variables are placed to BSS section which is initialized to 0 after relocation. In the case of ZynqMP, where DTB reselection is enabled, the EEPROM is read again after relocation. This prevents the issue from being observed. However, in Versal Gen 2, where DTB reselection is also enabled, the EEPROM is not read after relocation because it is not yet wired in board_init(). This leads to a situation where the code accesses an incorrect memory location, because none is really checking the board_info is valid or not. To fix, move the board_info into the data section and also check whether it is valid or not. Signed-off-by: Padmarao Begari <padmarao.begari@amd.com> Link: https://lore.kernel.org/r/20250409162553.588285-1-padmarao.begari@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com> |
||
---|---|---|
.. | ||
bootscripts | ||
common | ||
mbv | ||
microblaze-generic | ||
versal | ||
versal-net | ||
zynq | ||
zynqmp | ||
zynqmp_r5 | ||
Kconfig |