public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot
@ 2026-01-08 22:13 David Heidelberg via B4 Relay
  2026-01-08 22:13 ` [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support David Heidelberg via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Heidelberg via B4 Relay @ 2026-01-08 22:13 UTC (permalink / raw)
  To: Sumit Garg, u-boot-qcom, u-boot, Petr Vorel
  Cc: Casey Connolly, Neil Armstrong, Tom Rini, Luca Weiss, Simon Glass,
	Petr Hodina, Matthew Croughan, phone-devel, David Heidelberg,
	Simon Glass

Snapdragon Google Pixel bootloaders require the TEXT_OFFSET to be
exactly 0x80000. Without this, U-Boot or kernels will fail to load.

This patchset documents Pixel 3 and Pixel 3 XL and adds the necessary
config fragment along with usage instructions.

It has been tested on Pixel 3, 3 XL (by me), and Pixel 5 (by Petr Vorel).

The corresponding DTS files (sdm845-google-blueline and crosshatch) have
already been merged into the Linux -next, so mainline U-Boot will receive
these devices support soon.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
Changes in v4:
- s/CONFIG_TEXT_OFFSET/CONFIG_TEXT_BASE/ in commit message (Casey)
- Link to v3: https://lore.kernel.org/r/20260107-pixel-config-v3-0-02a25e3fdcfa@ixit.cz

Changes in v3:
- Renamed google-pixel3.config to google-pixel.config as it's not
  limited to Pixel 3 / 3 XL, but also 5 and possibly others.
- Reworked the documentation. (Casey)
- Reworded commit message. (Casey)
- Link to v2: https://lore.kernel.org/u-boot/20250802001359.2122103-1-david@ixit.cz/

Changes in v2:
- Added documentation of Pixel 3 / 3 XL into doc/board/qualcomm. (Casey)
- Link to v1: https://lore.kernel.org/u-boot/20250729103950.1154040-2-david@ixit.cz/

---
David Heidelberg (2):
      doc: board: qualcomm: document Pixel 3 / 3 XL support
      configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5

 board/qualcomm/google-pixel.config |  5 +++++
 doc/board/qualcomm/board.rst       | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+)
---
base-commit: 53c0d5b387956bb4070a943b61991898373a20e2
change-id: 20260107-pixel-config-4b058ecc4e1b

Best regards,
-- 
David Heidelberg <david@ixit.cz>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support
  2026-01-08 22:13 [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot David Heidelberg via B4 Relay
@ 2026-01-08 22:13 ` David Heidelberg via B4 Relay
  2026-01-09 21:00   ` Petr Vorel
  2026-01-08 22:13 ` [PATCH v4 2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5 David Heidelberg via B4 Relay
  2026-01-16 18:03 ` [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot Casey Connolly
  2 siblings, 1 reply; 6+ messages in thread
From: David Heidelberg via B4 Relay @ 2026-01-08 22:13 UTC (permalink / raw)
  To: Sumit Garg, u-boot-qcom, u-boot, Petr Vorel
  Cc: Casey Connolly, Neil Armstrong, Tom Rini, Luca Weiss, Simon Glass,
	Petr Hodina, Matthew Croughan, phone-devel, David Heidelberg,
	Simon Glass

From: David Heidelberg <david@ixit.cz>

U-Boot does work on Qualcomm 845-based Pixel 3 and 3 XL.

Reviewed-by: Simon Glass <simon.glass@canonical.com>
Reviewed-by: Casey Connolly <casey.connolly@linaro.org>
Signed-off-by: David Heidelberg <david@ixit.cz>
---
 doc/board/qualcomm/board.rst | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/doc/board/qualcomm/board.rst b/doc/board/qualcomm/board.rst
index 642c5095261..e5dbc9816b9 100644
--- a/doc/board/qualcomm/board.rst
+++ b/doc/board/qualcomm/board.rst
@@ -38,6 +38,25 @@ with appended dtb, so let's mimic linux to satisfy stock bootloader.
 Boards
 ------
 
+Pixel 3 (blueline) and Pixel 3 XL (crosshatch)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+blueline refers to the Google Pixel 3, and crosshatch to the Pixel 3 XL, both
+powered by the Qualcomm SDM845 SoC.
+
+These devices use the common qcom_defconfig with the google-pixel.config
+fragment for configuration.
+
+Use the following commands::
+
+	make CROSS_COMPILE=aarch64-linux-gnu- O=.output qcom_defconfig google-pixel.config qcom-phone.config
+
+The DTB is called:
+
+ - "sdm845-google-blueline.dtb" (Pixel 3)
+ - "sdm845-google-crosshatch.dtb" (Pixel 3 XL)
+
+More information can be found on the `Google Pixel 3 page`_.
+
 starqlte
 ^^^^^^^^
 
@@ -131,5 +150,6 @@ Other devices with boot image version 2 can be built like this example::
 	fastboot flash boot boot.img
 	fastboot erase dtbo
 
+.. _Google Pixel 3 page: https://en.wikipedia.org/wiki/Pixel_3
 .. _Samsung S9 page: https://en.wikipedia.org/wiki/Samsung_Galaxy_S9
 .. _DragonBoard 845c page: https://www.96boards.org/product/rb3-platform/

-- 
2.51.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v4 2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5
  2026-01-08 22:13 [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot David Heidelberg via B4 Relay
  2026-01-08 22:13 ` [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support David Heidelberg via B4 Relay
@ 2026-01-08 22:13 ` David Heidelberg via B4 Relay
  2026-01-09 21:05   ` Petr Vorel
  2026-01-16 18:03 ` [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot Casey Connolly
  2 siblings, 1 reply; 6+ messages in thread
From: David Heidelberg via B4 Relay @ 2026-01-08 22:13 UTC (permalink / raw)
  To: Sumit Garg, u-boot-qcom, u-boot, Petr Vorel
  Cc: Casey Connolly, Neil Armstrong, Tom Rini, Luca Weiss, Simon Glass,
	Petr Hodina, Matthew Croughan, phone-devel, David Heidelberg,
	Simon Glass

From: David Heidelberg <david@ixit.cz>

Introduce a fragment config for the Pixel 3, Pixel 3 XL, Pixel 5.

On these devices, U-Boot is chainloaded via fastboot. However, due to
additional requirements added by Google, the image header must have
a specific value for the text offset.
This is solved by setting CONFIG_TEXT_BASE to 0x80080000 in U-Boot.

Reviewed-by: Simon Glass <simon.glass@canonical.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
---
 board/qualcomm/google-pixel.config | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/board/qualcomm/google-pixel.config b/board/qualcomm/google-pixel.config
new file mode 100644
index 00000000000..999d4e45268
--- /dev/null
+++ b/board/qualcomm/google-pixel.config
@@ -0,0 +1,5 @@
+# Enables chainloading of U-Boot on Google Pixel phones using
+# newer bootloaders (Android Q/R)
+# Use for following devices: Pixel 3 (blueline), Pixel 3 XL (crosshatch),
+# Pixel 5 (redfin)...
+CONFIG_TEXT_BASE=0x80080000

-- 
2.51.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support
  2026-01-08 22:13 ` [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support David Heidelberg via B4 Relay
@ 2026-01-09 21:00   ` Petr Vorel
  0 siblings, 0 replies; 6+ messages in thread
From: Petr Vorel @ 2026-01-09 21:00 UTC (permalink / raw)
  To: david
  Cc: Sumit Garg, u-boot-qcom, u-boot, Casey Connolly, Neil Armstrong,
	Tom Rini, Luca Weiss, Simon Glass, Petr Hodina, Matthew Croughan,
	phone-devel, Simon Glass

Hi all,

Reviewed-by: Petr Vorel <petr.vorel@gmail.com>

Hopefully we add other Pixels in the future.

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5
  2026-01-08 22:13 ` [PATCH v4 2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5 David Heidelberg via B4 Relay
@ 2026-01-09 21:05   ` Petr Vorel
  0 siblings, 0 replies; 6+ messages in thread
From: Petr Vorel @ 2026-01-09 21:05 UTC (permalink / raw)
  To: david
  Cc: Sumit Garg, u-boot-qcom, u-boot, Casey Connolly, Neil Armstrong,
	Tom Rini, Luca Weiss, Simon Glass, Petr Hodina, Matthew Croughan,
	phone-devel, Simon Glass

Hi all,


> Introduce a fragment config for the Pixel 3, Pixel 3 XL, Pixel 5.

> On these devices, U-Boot is chainloaded via fastboot. However, due to
> additional requirements added by Google, the image header must have
> a specific value for the text offset.
> This is solved by setting CONFIG_TEXT_BASE to 0x80080000 in U-Boot.

Yeah, to workaround for kernel change 120dc60d0bdb ("arm64: get rid of
TEXT_OFFSET") because trying to put it back [1] was rejected.

Thanks!
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>

Kind regards,
Petr

[1] https://lore.kernel.org/all/20251006-arm64-text-offset-v1-1-bf0e8a27383b@oss.qualcomm.com/

> Reviewed-by: Simon Glass <simon.glass@canonical.com>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
>  board/qualcomm/google-pixel.config | 5 +++++
>  1 file changed, 5 insertions(+)

> diff --git a/board/qualcomm/google-pixel.config b/board/qualcomm/google-pixel.config
> new file mode 100644
> index 00000000000..999d4e45268
> --- /dev/null
> +++ b/board/qualcomm/google-pixel.config
> @@ -0,0 +1,5 @@
> +# Enables chainloading of U-Boot on Google Pixel phones using
> +# newer bootloaders (Android Q/R)
> +# Use for following devices: Pixel 3 (blueline), Pixel 3 XL (crosshatch),
> +# Pixel 5 (redfin)...
> +CONFIG_TEXT_BASE=0x80080000

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot
  2026-01-08 22:13 [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot David Heidelberg via B4 Relay
  2026-01-08 22:13 ` [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support David Heidelberg via B4 Relay
  2026-01-08 22:13 ` [PATCH v4 2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5 David Heidelberg via B4 Relay
@ 2026-01-16 18:03 ` Casey Connolly
  2 siblings, 0 replies; 6+ messages in thread
From: Casey Connolly @ 2026-01-16 18:03 UTC (permalink / raw)
  To: Sumit Garg, u-boot-qcom, u-boot, Petr Vorel, David Heidelberg
  Cc: Neil Armstrong, Tom Rini, Luca Weiss, Simon Glass, Petr Hodina,
	Matthew Croughan, phone-devel, Simon Glass


On Thu, 08 Jan 2026 23:13:00 +0100, David Heidelberg wrote:
> Snapdragon Google Pixel bootloaders require the TEXT_OFFSET to be
> exactly 0x80000. Without this, U-Boot or kernels will fail to load.
> 
> This patchset documents Pixel 3 and Pixel 3 XL and adds the necessary
> config fragment along with usage instructions.
> 
> It has been tested on Pixel 3, 3 XL (by me), and Pixel 5 (by Petr Vorel).
> 
> [...]

Applied, thanks!

[1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support
      https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/commit/500d2e5e5546
[2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5
      https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/commit/338dbbba8787

Best regards,
-- 
// Casey (she/they)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-16 18:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 22:13 [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot David Heidelberg via B4 Relay
2026-01-08 22:13 ` [PATCH v4 1/2] doc: board: qualcomm: document Pixel 3 / 3 XL support David Heidelberg via B4 Relay
2026-01-09 21:00   ` Petr Vorel
2026-01-08 22:13 ` [PATCH v4 2/2] configs: Add google-pixel fragment config for Pixel 3, 3 XL, 5 David Heidelberg via B4 Relay
2026-01-09 21:05   ` Petr Vorel
2026-01-16 18:03 ` [PATCH v4 0/2] Introduce Pixel config fragment for chainloading u-boot Casey Connolly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox