Skip to content

RPi one binary for RPi3/4 and RPi1/2

matthias.bgg at kernel.org u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches0 repliesSuperseded

Changes in v4 from the cover letter

- use gcc attribute instead of random assignment
- read IO base from device-tree
- call rpi_update_mem_map only for ARM64
- get rid of struct pdata

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4rpi: push fw_dtb_pointer in the .data sectionboard/raspberrypi/rpi/lowlevel_init.S board/raspberrypi/rpi/rpi.c+7 -120 replies
2/4ARM: bcm283x: Move BCM283x_BASE to a global variablearch/arm/mach-bcm283x/include/mach/base.h arch/arm/mach-bcm283x/include/mach/mbox.h arch/arm/mach-bcm283x/include/mach/sdhci.h +6 more+56 -90 replies
3/4ARM: bcm283x: Set rpi_bcm283x_base at run-timearch/arm/mach-bcm283x/Kconfig arch/arm/mach-bcm283x/init.c+18 -80 replies
4/4ARM: bcm283x: Set memory map at run-timearch/arm/mach-bcm283x/init.c board/raspberrypi/rpi/rpi.c+92 -450 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/4] RPi one binary for RPi3/4 and RPi1/2

From: Matthias Brugger <[email protected]>

In this series we prepare the RaspberryPi source code
to be able to build one binary for RPi[3,4] and one for RPi[1,2]. To achieve this we need to set the IO base address on runtime. Apart from that, for arm64 we also need to set memory region correctly.

This patches fix this stuff. With this we could create one binary for each armv7 and armv8 based RPis. There is still some work to do to create a unified config, which will be done in a later patch series.

Changes in v4:
- use gcc attribute instead of random assignment
- read IO base from device-tree
- call rpi_update_mem_map only for ARM64
- get rid of struct pdata

Changes in v3:
- fix armv7 build

Changes in v2:
- push fw_dtb_pointer into the .data section
- fix register access in reset_cpu()
- rename BCM2838 to BCM2711 in the correct patch
- push rpi_bcm283x_base into the .data section
- Move mem_map out of assembly file
- push mem_map into the .data section
- update the members of mem_map instead of the pointer

Matthias Brugger (4):
rpi: push fw_dtb_pointer in the .data section
ARM: bcm283x: Move BCM283x_BASE to a global variable
ARM: bcm283x: Set rpi_bcm283x_base at run-time
ARM: bcm283x: Set memory map at run-time

 arch/arm/mach-bcm283x/Kconfig              |   6 --
 arch/arm/mach-bcm283x/include/mach/base.h  |  11 ++
 arch/arm/mach-bcm283x/include/mach/mbox.h  |   4 +-
 arch/arm/mach-bcm283x/include/mach/sdhci.h |   5 +-
 arch/arm/mach-bcm283x/include/mach/timer.h |   7 +-
 arch/arm/mach-bcm283x/include/mach/wdog.h  |   5 +-
 arch/arm/mach-bcm283x/init.c               | 116 +++++++++++++++++++++
 arch/arm/mach-bcm283x/mbox.c               |   1 +
 arch/arm/mach-bcm283x/reset.c              |  20 +++-
 board/raspberrypi/rpi/lowlevel_init.S      |  12 +--
 board/raspberrypi/rpi/rpi.c                |  52 +--------
 include/configs/rpi.h                      |   4 +
 12 files changed, 171 insertions(+), 72 deletions(-)
 create mode 100644 arch/arm/mach-bcm283x/include/mach/base.h
Signature · 1 line
2.24.0