[PATCH v2 0/3] ARM: boards: add support for Samsung Galaxy S8 and S20 5G
Ivaylo Ivanov
ivo.ivanov.ivanov1 at gmail.com
Tue Sep 2 07:00:03 PDT 2025
Hey folks,
This patchset focuses on adding support for S8 and S20. It's designed to
allow adding support for new exynos devices easy, with the primary
differentiating factor being the device tree. Currently, the same built
barebox-exynos.img can be booted on both S20 and S8 without any changes
in the code, as it can dynamically recognize what device it's booting on
based on the tree provided at x0 from the previous bootloader (s-boot).
On these devices, barebox will be used as a shim after the stock bootloader
(s-boot), replacing the linux kernel image in the boot.img.
Please read the patch commit messages, I've tried to describe everything
well enough. Thanks!
Best regards,
Ivaylo
Changes in V2:
- drop the applied patch
- s/Since/If in 1/3
- add r-b tag on 1/3 from Ahmad
- add a simple defaultenv that autoboots a fit image from memory
- change is_compat to is_model
- rework the entry to deal with SP in assembly and jump us to C
- set up properly before touching fdts
- beautify postcore a bit
- enable deep probe on both platforms in DT
Ivaylo Ivanov (3):
video: simplefb-client: switch to dev_get_resource
ARM: boards: add support for Samsung Galaxy S8 (dreamlte)
ARM: boards: add support for Samsung Galaxy S20 5G (x1s)
arch/arm/Kconfig | 5 ++
arch/arm/boards/Makefile | 1 +
arch/arm/boards/samsung-exynos/Makefile | 5 ++
arch/arm/boards/samsung-exynos/board.c | 69 +++++++++++++++
.../defaultenv-exynos/boot/ramfit | 16 ++++
.../defaultenv-exynos/init/bootsource | 3 +
arch/arm/boards/samsung-exynos/entry.S | 31 +++++++
arch/arm/boards/samsung-exynos/lowlevel.c | 83 +++++++++++++++++++
arch/arm/dts/Makefile | 2 +
arch/arm/dts/exynos8895-dreamlte.dts | 13 +++
arch/arm/dts/exynos990-x1s.dts | 13 +++
arch/arm/mach-samsung/Kconfig | 13 +++
drivers/video/simplefb-client.c | 5 +-
images/Makefile | 1 +
images/Makefile.exynos | 8 ++
15 files changed, 265 insertions(+), 3 deletions(-)
create mode 100644 arch/arm/boards/samsung-exynos/Makefile
create mode 100644 arch/arm/boards/samsung-exynos/board.c
create mode 100644 arch/arm/boards/samsung-exynos/defaultenv-exynos/boot/ramfit
create mode 100644 arch/arm/boards/samsung-exynos/defaultenv-exynos/init/bootsource
create mode 100644 arch/arm/boards/samsung-exynos/entry.S
create mode 100644 arch/arm/boards/samsung-exynos/lowlevel.c
create mode 100644 arch/arm/dts/exynos8895-dreamlte.dts
create mode 100644 arch/arm/dts/exynos990-x1s.dts
create mode 100644 arch/arm/mach-samsung/Kconfig
create mode 100644 images/Makefile.exynos
--
2.43.0
More information about the barebox
mailing list