mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 18:41:03 +00:00
3d54eabcaf
The SPL binary needs to be prefixed with the boot magic ('RK33' for the RK3399) on the Rockchip platform and starts execution of the instruction word following immediately after this boot magic. This poses a challenge for AArch64 (ARMv8) binaries, as the .text section would need to start on the odd address, violating natural alignment (and potentially triggering a fault for any code that tries to access 64bit values embedded in the .text section). A quick and easy fix is to have the .text section include the 'RK33' magic and pad it with a boot0 hook to insert 4 bytes of padding at the start of the section (with the intention of having mkimage overwrite this padding with the appropriate boot magic). This avoids having to modify the linker scripts or more complex logic in mkimage. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com> |
||
---|---|---|
.. | ||
boot0.h | ||
boot_mode.h | ||
bootrom.h | ||
clock.h | ||
cru_rk3036.h | ||
cru_rk3188.h | ||
cru_rk3288.h | ||
cru_rk3328.h | ||
cru_rk3399.h | ||
ddr_rk3188.h | ||
ddr_rk3288.h | ||
edp_rk3288.h | ||
gpio.h | ||
grf_rk3036.h | ||
grf_rk3188.h | ||
grf_rk3288.h | ||
grf_rk3328.h | ||
grf_rk3399.h | ||
hardware.h | ||
hdmi_rk3288.h | ||
i2c.h | ||
lvds_rk3288.h | ||
periph.h | ||
pmu_rk3188.h | ||
pmu_rk3288.h | ||
pwm.h | ||
qos_rk3288.h | ||
sdram.h | ||
sdram_rk3036.h | ||
sdram_rk3399.h | ||
sys_proto.h | ||
timer.h | ||
uart.h | ||
vop_rk3288.h |