summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2023-01-21 13:47:45 +0100
committerStefan Roese <[email protected]>2023-03-01 06:39:17 +0100
commitd4aa2104327fd8b6d46f7c51de1e35f5ec702c93 (patch)
tree4a315f9875083db307d14c06b6fc0669ae7e2d50 /include/linux/string.h
parente1c4ed57d5190e3064ae10ae3a87cdc75d2786fc (diff)
arm: mvebu: spl: Fix parsing SATA kwbimage
Despite the official specification, Marvell BootROM does not interpret srcaddr from SATA image as number of sectors the beginning of the hard drive, but as number of sectors relative to the main header. To process SATA kwbimage and load U-Boot proper from it in the same way as Marvell BootROM, it is needed to interpret srcaddr as relative offset to the main header. This change fixes booting of U-Boot proper from SPL code in SATA image. Fixes: 2226ca173486 ("arm: mvebu: Load U-Boot proper binary in SPL code based on kwbimage header") Signed-off-by: Pali Rohár <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions