mbox series

[v2,0/2] arm: s5p4418: fix relocation

Message ID 20231127182609.4663-1-stefan_b@posteo.net
Headers show
Series arm: s5p4418: fix relocation | expand

Message

Stefan Bosch Nov. 27, 2023, 6:26 p.m. UTC
Fix relocation of u-boot for s5p4418-SoC. I.e. use __image_copy_start
instead of _start to calculate the monitor length. Furthermore use an
adapted version of relocate_vectors for the s5p4418-SoC. Background:
The header (NSIH) used by the 2nd-bootloader (included at the begin of
u-boot.bin) is not loaded into RAM. Therefore _start has to be after
the header and therefore is not equal to __image_copy_start which is
at the begin of the header.

Changes in v2:
- Cosmetic: Fix spelling mistake in commit message

Stefan Bosch (2):
  common: board_f: change calculation of gd->mon_len to fix s5p4418
    reloc
  arm: s5p4418: fix relocation of vectors

 arch/arm/cpu/armv7/s5p4418/Makefile   |  3 +++
 arch/arm/cpu/armv7/s5p4418/relocate.S | 24 ++++++++++++++++++++++++
 common/board_f.c                      |  2 +-
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/cpu/armv7/s5p4418/relocate.S

Comments

Minkyu Kang Dec. 13, 2023, 8:31 a.m. UTC | #1
Hi,


2023년 11월 28일 (화) 03:46, Stefan Bosch <stefan_b@posteo.net>님이 작성:

>
> Fix relocation of u-boot for s5p4418-SoC. I.e. use __image_copy_start
> instead of _start to calculate the monitor length. Furthermore use an
> adapted version of relocate_vectors for the s5p4418-SoC. Background:
> The header (NSIH) used by the 2nd-bootloader (included at the begin of
> u-boot.bin) is not loaded into RAM. Therefore _start has to be after
> the header and therefore is not equal to __image_copy_start which is
> at the begin of the header.
>
> Changes in v2:
> - Cosmetic: Fix spelling mistake in commit message
>
> Stefan Bosch (2):
>   common: board_f: change calculation of gd->mon_len to fix s5p4418
>     reloc
>   arm: s5p4418: fix relocation of vectors
>
>  arch/arm/cpu/armv7/s5p4418/Makefile   |  3 +++
>  arch/arm/cpu/armv7/s5p4418/relocate.S | 24 ++++++++++++++++++++++++
>  common/board_f.c                      |  2 +-
>  3 files changed, 28 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/cpu/armv7/s5p4418/relocate.S
>
> --
> 2.17.1
>

applied to u-boot-samsung.

Thanks,
Minkyu Kang.