Qualcomm IPQ5210 SoC bringup
Subsystems (10)
v10 cover Qualcomm IPQ5210 SoC bringup
Add pinctrl, clock drivers and SPL to support the IPPQ5210 SoC in U-Boot.
The relevant DT files are available in linux-next [1] & [2]
Working features, as tested on RDP504:
* Serial console
* UART
* MMC
* Boot sequence transitions from Boot ROM to U-Boot SPL, proprietary binaries (a.k.a QCLib) load and execute as appropriate and eventual jump to U-Boot.
* The QCLib handles
- DDR initialization
- Clock setup
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm64/boot/dts/qcom/ipq5210-rdp504.dts https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/dt-bindings/clock/qcom,ipq5210-gcc.h https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/dt-bindings/reset/qcom,ipq5210-gcc.h
2 - https://lore.kernel.org/linux-arm-msm/[email protected]/
---
Changes in v10:
- Update board/qualcomm/config.mk to work with v3 of mkmbn series
(https://lore.kernel.org/u-boot/[email protected]/)
- Fix mailing list e-mail id problem
- Since v9 was sent to old denx mailing list, lore URL is not available. Please use the patchwork link below. Apologies for the inconvenience.
- Link to v9: https://patchwork.ozlabs.org/project/uboot/list/?series=523494
v9: - RESENd because sent to old denx mailing list
- Address review feedback
- Move qclib handling to separate file with some functionality as
'weak' functions to allow SoC implementations to override it
- Link to v8: https://lore.kernel.org/u-boot/[email protected]/
v8: - Rebased on https://source.denx.de/u-boot/custodians/u-boot-snapdragon.git
- Address Casey's review comments on v6
- Spin off GENI Minicore support and mkmbn support as separate patches [PATCH] misc: qcom_geni: Add minicore support - [a] [PATCH 0/3] tools: qcom: mkmbn: Updates to support ipq5210 - [b]
- Re-organize the functions from spl.c into board_spl.c and fit-handler.c and remove spl.c
- Retained R-b tags since the code just moved
- Removed references to MBN and multi-elf creation steps in rdp.rst since mkmbn.py takes care of it
- Add details about the interface table in doc/board/qualcomm/spl-qclib.rst
- May need to update config.mk based on the final shape of mkmbn patches [b]
a - https://patchwork.ozlabs.org/project/uboot/list/?series=514770
b - https://lore.kernel.org/u-boot/[email protected]/
v7: - Fix inadvertant typo in doc/board/qualcomm/rdp.rst
- Pick multiple R-b tags
- No code changes
v6: - Move binman related changes to separate series, so that the
SPL changes can move forward.
- Restore v3 build steps for now
- https://lore.kernel.org/u-boot/[email protected]/
v5: - Reorganize SPL related code into common and SoC specific functions
to allow SoCs to customize according to their boot flow
- Fix documentation related build errors
- Please see the patches for specific changes
- https://lore.kernel.org/u-boot/[email protected]/
v4: - Add binman based image creation support instead of special scripts
- Identify boot media based on PBL shared info instead of CONFIG_xxx
- Address v3 feedback (see individual patch for details)
- https://lore.kernel.org/u-boot/[email protected]/
v3: - Move stack range
- Split spl.c patch
- Move documentation towards the end of the series
- Pick couple of R-b
- https://lore.kernel.org/u-boot/[email protected]/
v2: - Add QCOM_GENI_MINICORE config option
- Move minicore register settings to separate file and include
if QCOM_GENI_MINICORE is enabled
- Remove bootph-all from override dts and moved them to kernel
DT - https://lore.kernel.org/linux-arm-msm/[email protected]/T/#u
- https://lore.kernel.org/u-boot/[email protected]/
v1: https://lore.kernel.org/u-boot/[email protected]/
---
Varadarajan Narayanan (15):
misc: qcom_geni: Add minicore support
mach-snapdragon: Kconfig: Auto select options based on configs
mach-snapdragon: Add PBL shared data defines
mach-snapdragon: spl: Update boot device information in SMEM
mach-snapdragon: spl: Add support for MMC booting in SPL
mach-snapdragon: Kconfig: Add rules to create SPL images
mach-snapdragon: spl: Load next stage FIT image
mach-snapdragon: spl: Add DDR initialization support
mach-snapdragon: Add Qclib handling support
dts: ipq5210-rdp504-u-boot: add override dtsi clk/qcom: add clock driver for ipq5210
pinctrl: qcom: Add ipq5210 pinctrl driver
mach-snapdragon: spl: ipq5210: Add SPL support
configs: Add qcom_ipq5210_mmc_defconfig
doc: board/qualcomm: Update RDP build instructions
arch/arm/Kconfig | 12 +- arch/arm/dts/ipq5210-rdp504-u-boot.dtsi | 12 + arch/arm/mach-snapdragon/Kconfig | 7 + arch/arm/mach-snapdragon/Makefile | 3 + arch/arm/mach-snapdragon/board_spl.c | 255 ++++++++++++++++- arch/arm/mach-snapdragon/fit-handler.c | 131 +++++++++ arch/arm/mach-snapdragon/include/mach/qclib.h | 82 ++++++ arch/arm/mach-snapdragon/include/mach/spl.h | 13 + arch/arm/mach-snapdragon/pbl-shared-data.c | 125 +++++++++ arch/arm/mach-snapdragon/qclib.c | 160 +++++++++++ board/qualcomm/config.mk | 25 +- board/qualcomm/ipq5210/Makefile | 3 + board/qualcomm/ipq5210/ipq5210-spl-wrap-elf.lds | 18 ++ board/qualcomm/ipq5210/spl-ipq5210.c | 99 +++++++ configs/qcom_ipq5210_mmc_defconfig | 113 ++++++++ doc/board/qualcomm/rdp.rst | 96 ++++++- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-ipq5210.c | 93 +++++++ drivers/misc/Kconfig | 6 + drivers/misc/Makefile | 1 + drivers/misc/qcom_geni-minicore.c | 103 +++++++ drivers/misc/qcom_geni.c | 85 +++++- drivers/pinctrl/qcom/Kconfig | 8 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq5210.c | 349 ++++++++++++++++++++++++ include/configs/ipq5210.h | 11 + include/soc/qcom/geni-se.h | 5 + include/soc/qcom/minicore.h | 25 ++ include/soc/qcom/qup-fw-load.h | 1 + 30 files changed, 1824 insertions(+), 27 deletions(-)
---
base-commit: e0ef25054db31fee49d031ac337099b12c67e5b8
change-id: 20260825-spl-55fcb0c72ebd
Best regards,
Signature · 1 line
Varadarajan Narayanan <[email protected]>
PATCH RESEND v10 1/15 misc: qcom_geni: Add minicore support
The qcom_geni driver reads an ELF from storage and configures a set of registers and programs the firmware to the GENI Serial Engine (GENI-SE) wrapper device for the expected functionality.
Unlike the GENI-SE wrapper found in MSM SoCs, the IPQ5210's GENI-SE wrapper is pre-configured for one of the functions defined in 'enum geni_se_protocol_type'. Hence, the firmware download is not needed. Only the register configuration part is needed.
Earlier, the boot stages before U-Boot would configure the GENI-SE (to access UART/SPI etc). Since for IPQ5210 U-Boot SPL, the previous stage (i.e. boot ROM) doesn't do that modify the driver to do the register configuration part alone without reading an ELF from the storage.
--- drivers/misc/Kconfig | 6 +++ drivers/misc/Makefile | 1 + drivers/misc/qcom_geni-minicore.c | 103 ++++++++++++++++++++++++++++++++++++++ drivers/misc/qcom_geni.c | 85 +++++++++++++++++++++++++++---- include/soc/qcom/geni-se.h | 5 ++ include/soc/qcom/minicore.h | 25 +++++++++ include/soc/qcom/qup-fw-load.h | 1 + 7 files changed, 215 insertions(+), 11 deletions(-)
drivers/misc/Kconfig +6 -0
@@ -93,6 +93,12 @@ config QCOM_GENI for providing a common interface for various peripherals like UART, I2C, SPI, etc. +config QCOM_GENI_MINICORE + bool "Support minicores in Qualcomm Generic Interface (GENI) driver" + depends on QCOM_GENI + help + Enable support for minicores in Qualcomm GENI and its peripherals. + config ROCKCHIP_EFUSE bool "Rockchip e-fuse support" depends on MISC
drivers/misc/Makefile +1 -0
@@ -66,6 +66,7 @@ obj-$(CONFIG_QFW_SMBIOS) += qfw_smbios.o obj-$(CONFIG_SANDBOX) += qfw_sandbox.o endif obj-$(CONFIG_QCOM_GENI) += qcom_geni.o +obj-$(CONFIG_QCOM_GENI_MINICORE) += qcom_geni-minicore.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_EFUSE) += rockchip-efuse.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_OTP) += rockchip-otp.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_IODOMAIN) += rockchip-io-domain.o
drivers/misc/qcom_geni-minicore.c new file +103 -0
103 lines not on this page · raw message
drivers/misc/qcom_geni.c +74 -11
152 lines not on this page · raw message
include/soc/qcom/geni-se.h +5 -0
@@ -77,8 +77,12 @@ enum geni_se_protocol_type {#define SE_IRQ_EN 0xe1c#define SE_HW_PARAM_0 0xe24#define SE_HW_PARAM_1 0xe28 +#define SE_HW_PARAM_2 0xe2c#define SE_DMA_GENERAL_CFG 0xe30 +/* SE_HW_PARAM_2 fields */ +#define GENI_USE_MINICORES BIT(12) +/* GENI_DFS_IF_CFG fields */ #define DFS_IF_EN BIT(0)
@@ -248,6 +252,7 @@ enum geni_se_protocol_type {/* SE_HW_PARAM_0 fields */ #define TX_FIFO_WIDTH_MSK GENMASK(29, 24)#define TX_FIFO_WIDTH_SHFT 24 +/* * For QUP HW Version >= 3.10 Tx fifo depth support is increased * to 256bytes and corresponding bits are 16 to 23
include/soc/qcom/minicore.h new file +25 -0
@@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) Qualcomm Innovation Center, Inc. All rights reserved. +*/ +#ifndef _SOC_QCOM_MINI_CORE +#define _SOC_QCOM_MINI_CORE + +struct qup_mini_core_info { +u16 serial_protocol; +u16 fw_version; +u16 cfg_version; +u16 cfg_count; +u32 *cfg_val; +u8 *cfg_idx; +u32 *cfg_ram; +u32 cfg_ram_count; +}; + +#if IS_ENABLED (CONFIG_QCOM_GENI_MINICORE ) +extern struct qup_mini_core_info qup_mini_cores[]; +#else +struct qup_mini_core_info *qup_mini_cores; +#endif + +#endif /* _SOC_QCOM_MINI_CORE */
include/soc/qcom/qup-fw-load.h +1 -0
@@ -14,6 +14,7 @@#define GENI_INIT_CFG_REVISION 0x0#define GENI_S_INIT_CFG_REVISION 0x4#define GENI_FORCE_DEFAULT_REG 0x20 +#define GENI_OUTPUT_CTRL 0x24#define GENI_CGC_CTRL 0x28#define GENI_CFG_REG0 0x100
Signature · 1 line
2.34.1
PATCH RESEND v10 2/15 mach-snapdragon: Kconfig: Auto select options based on configs
In reply to Varadarajan NarayananThe commit d38787bb5dafa ("mach-snapdragon: Kconfig: changes / additions to support SPL") auto selects options that may not be applicable to all platforms. This results in warning messages during make xxx_defconfig and/or waiting for user input for on/off or values for certain configs. So auto select options based on the enabled configs in xxx_defconfig.
--- arch/arm/Kconfig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/Kconfig +6 -6
@@ -1147,8 +1147,8 @@ config ARCH_SNAPDRAGON select SPMI select BOARD_LATE_INIT select OF_BOARD - select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK - select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK + select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPL + select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPL select SYSRESET select SYSRESET_PSCI if !SPL select ANDROID_BOOT_IMAGE_IGNORE_BLOB_ADDR
@@ -1161,12 +1161,12 @@ config ARCH_SNAPDRAGON select ENABLE_ARM_SOC_BOOT0_HOOK if SPL select SPL_DM if SPL select SPL_DM_GPIO if SPL - select SPL_DM_PMIC if SPL - select SPL_DM_USB_GADGET if SPL + select SPL_DM_PMIC if SPL && DM_PMIC + select SPL_DM_USB_GADGET if SPL && USB select SPL_ENV_SUPPORT if SPL select SPL_EVENT if SPL select SPL_GPIO if SPL - select SPL_HAS_BSS_LINKER_SECTION if SPL + select SPL_HAS_BSS_LINKER_SECTION if SPL && SPL_SEPARATE_BSS select SPL_LIBCOMMON_SUPPORT if SPL select SPL_LIBDISK_SUPPORT if SPL select SPL_LIBGENERIC_SUPPORT if SPL
@@ -1181,7 +1181,7 @@ config ARCH_SNAPDRAGON select SPL_SPMI_MSM if SPL select SPL_SPRINTF if SPL select SPL_STRTO if SPL - select SPL_USB_GADGET if SPL + select SPL_USB_GADGET if SPL && USB imply SPL_MMC if SPL imply OF_UPSTREAM imply CMD_DM
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 02/15] mach-snapdragon: Kconfig: Auto select options based on configs
Quoted 18 lines · Varadarajan Narayanan
The commit
d38787bb5dafa("mach-snapdragon:Kconfig: changes / additions to support SPL") auto selects options that may not be applicable to all platforms. This results in warning messages during makexxx_defconfigand/or waiting for user input for on/off or values for certain configs. So auto select options based on the enabled configs inxxx_defconfig.Fixes d38787bb5dafa ("mach-snapdragon: Kconfig: changes / additions to support SPL")Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/Kconfig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)arch/arm/Kconfig +0
-0
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1151
Quoted 7 lines
arch/arm/Kconfig +2
-2@@ -1147,8 +1147,8 @@ config ARCH_SNAPDRAGON select SPMI select BOARD_LATE_INIT select OF_BOARD - select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK - select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK + select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPL + select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPL
What's the error these two trip up?
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1165
Quoted 11 lines
arch/arm/Kconfig +2
-2select SYSRESET select SYSRESET_PSCI if !SPL select ANDROID_BOOT_IMAGE_IGNORE_BLOB_ADDR@@ -1161,12 +1161,12 @@ config ARCH_SNAPDRAGON select ENABLE_ARM_SOC_BOOT0_HOOK if SPL select SPL_DM if SPL select SPL_DM_GPIO if SPL - select SPL_DM_PMIC if SPL - select SPL_DM_USB_GADGET if SPL + select SPL_DM_PMIC if SPL && DM_PMIC + select SPL_DM_USB_GADGET if SPL && USB
You're allowed to have SPL_X && !X. Presumably some drivers are missing SPL_X options, I know I've seen other series go by adding them.
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1169
Quoted 5 lines
arch/arm/Kconfig +1
-1select SPL_ENV_SUPPORT if SPL select SPL_EVENT if SPL select SPL_GPIO if SPL - select SPL_HAS_BSS_LINKER_SECTION if SPL + select SPL_HAS_BSS_LINKER_SECTION if SPL && SPL_SEPARATE_BSS
How are you tripping this one?
This is the kind of change which (a) should be its own series and (b) either N commits, or 1 commit that spells out each of the incorrect conditions.
Signature · 1 line
Tom
Re: [PATCH RESEND v10 02/15] mach-snapdragon: Kconfig: Auto select options based on configs
Quoted 15 lines · Tom Rini
Quoted 13 lines · Varadarajan Narayanan
The commit
d38787bb5dafa("mach-snapdragon:Kconfig: changes / additions to support SPL") auto selects options that may not be applicable to all platforms. This results in warning messages during makexxx_defconfigand/or waiting for user input for on/off or values for certain configs. So auto select options based on the enabled configs inxxx_defconfig.Fixes d38787bb5dafa ("mach-snapdragon: Kconfig: changes / additions to support SPL")Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/Kconfig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Quoted 14 lines
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1151
Quoted 12 lines
arch/arm/Kconfig +2
-2@@ -1147,8 +1147,8 @@ config ARCH_SNAPDRAGON select SPMI select BOARD_LATE_INIT select OF_BOARD - select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK - select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK + select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPL + select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPLWhat's the error these two trip up?
Will remove these. Earlier, without these got some error. Not getting any error on recent tree.
Quoted 6 lines
Quoted 6 lines
arch/arm/Kconfig +0
-0select SYSRESET select SYSRESET_PSCI if !SPL select ANDROID_BOOT_IMAGE_IGNORE_BLOB_ADDR@@ -1161,12 +1161,12 @@ config ARCH_SNAPDRAGON select ENABLE_ARM_SOC_BOOT0_HOOK if SPL select SPL_DM if SPL
Quoted 8 lines
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1165
Quoted 5 lines
arch/arm/Kconfig +2
-2select SPL_DM_GPIO if SPL - select SPL_DM_PMIC if SPL - select SPL_DM_USB_GADGET if SPL + select SPL_DM_PMIC if SPL && DM_PMIC + select SPL_DM_USB_GADGET if SPL && USBYou're allowed to have
SPL_X&& !X. Presumably some drivers are missingSPL_Xoptions, I know I've seen other series go by adding them.
Ok.
Quoted 8 lines
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1169
Quoted 6 lines
arch/arm/Kconfig +1
-1select SPL_ENV_SUPPORT if SPL select SPL_EVENT if SPL select SPL_GPIO if SPL - select SPL_HAS_BSS_LINKER_SECTION if SPL + select SPL_HAS_BSS_LINKER_SECTION if SPL && SPL_SEPARATE_BSSHow are you tripping this one?
GEN Makefilescripts/kconfig/conf --syncconfig Kconfig .config:219:warning: symbol value '' invalid for SPL_BSS_START_ADDR
[...]
*
* Restart config...
*
*
* SPL configuration options
*
Support SPL based upon the common SPL framework (SPL_FRAMEWORK) [Y/n/?] y
Maximum size of SPL image (SPL_SIZE_LIMIT) [0x0] 0x0
Maximum size of the SPL image, excluding BSS (SPL_MAX_SIZE) [0x3D000] 0x3D000
Offset to which the SPL should be padded before appending the SPL payload (SPL_PAD_TO) [0x3D000] 0x3D000 Use a specific address for the BSS via the linker script (SPL_HAS_BSS_LINKER_SECTION) [Y/?] y
Link address for the BSS within the SPL binary (SPL_BSS_START_ADDR) [] (NEW)
Quoted 3 lines
This is the kind of change which (a) should be its own series and (b) either N commits, or 1 commit that spells out each of the incorrect conditions.
Ok, will post this as a separate series.
Thanks
Varada
Re: [PATCH RESEND v10 02/15] mach-snapdragon: Kconfig: Auto select options based on configs
Quoted 31 lines · Varadarajan Narayanan
Quoted 15 lines · Tom Rini
Quoted 13 lines · Varadarajan Narayanan
The commit
d38787bb5dafa("mach-snapdragon:Kconfig: changes / additions to support SPL") auto selects options that may not be applicable to all platforms. This results in warning messages during makexxx_defconfigand/or waiting for user input for on/off or values for certain configs. So auto select options based on the enabled configs inxxx_defconfig.Fixes d38787bb5dafa ("mach-snapdragon: Kconfig: changes / additions to support SPL")Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/Kconfig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)Quoted 14 lines
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1151
Quoted 12 lines
arch/arm/Kconfig +2
-2@@ -1147,8 +1147,8 @@ config ARCH_SNAPDRAGON select SPMI select BOARD_LATE_INIT select OF_BOARD - select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK - select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK + select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPL + select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK && !SPLWhat's the error these two trip up?
Quoted 2 lines
Will remove these. Earlier, without these got some error. Not getting any error on recent tree.
OK.
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/Kconfig +0
-0select SYSRESET select SYSRESET_PSCI if !SPL select ANDROID_BOOT_IMAGE_IGNORE_BLOB_ADDR@@ -1161,12 +1161,12 @@ config ARCH_SNAPDRAGON select ENABLE_ARM_SOC_BOOT0_HOOK if SPL select SPL_DM if SPLQuoted 8 lines
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1165
Quoted 5 lines
arch/arm/Kconfig +2
-2select SPL_DM_GPIO if SPL - select SPL_DM_PMIC if SPL - select SPL_DM_USB_GADGET if SPL + select SPL_DM_PMIC if SPL && DM_PMIC + select SPL_DM_USB_GADGET if SPL && USBYou're allowed to have
SPL_X&& !X. Presumably some drivers are missingSPL_Xoptions, I know I've seen other series go by adding them.
Quoted 1 line
Ok.
Thanks.
Quoted 11 lines
Quoted 7 lines
arch/arm/Kconfig config ARCH_SNAPDRAGON · line 1169
Quoted 5 lines
arch/arm/Kconfig +1
-1select SPL_ENV_SUPPORT if SPL select SPL_EVENT if SPL select SPL_GPIO if SPL - select SPL_HAS_BSS_LINKER_SECTION if SPL + select SPL_HAS_BSS_LINKER_SECTION if SPL && SPL_SEPARATE_BSSHow are you tripping this one?
GEN
Makefilescripts/kconfig/conf--syncconfigKconfig.config:219:warning: symbol value '' invalid forSPL_BSS_START_ADDR
OK, so yes, here we get in to a question to solve. Using tools/qconfig.py there's exactly two ARM64 platforms that use SPL and *don't* declare using SPL_HAS_BSS_LINKER_SECTION, but it's also true that they either add a default to common/spl/Kconfig (or mach-.../Kconfig, for rockchip) or *do not* select it, and then enable and provide the address in the defconfig. A separate patch to either start populating default values for qcom to common/spl/Kconfig or to drop the select and enable it along with putting a value for SPL_BSS_START_ADDR are how to solve this.
Signature · 1 line
Tom
PATCH RESEND v10 3/15 mach-snapdragon: Add PBL shared data defines
In reply to Varadarajan NarayananAdd structure and enum definitions to be able to parse the information that is passed from PBL. This will be used to identify the boot medium.
Since the PBL shared data defines are private, move spl_boot_device() from board_spl.c to pbl-shared-data.c to parse the shared data and identify the boot medium
--- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/board_spl.c | 9 +-- arch/arm/mach-snapdragon/pbl-shared-data.c | 125 +++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+), 8 deletions(-)
arch/arm/mach-snapdragon/Makefile +1 -0
@@ -7,6 +7,7 @@ obj-y += mem_map.o ifeq ($(CONFIG_SPL_BUILD),y) obj-y += board_spl.o +obj-y += pbl-shared-data.o else obj-y += board.o obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += capsule_update.o
arch/arm/mach-snapdragon/board_spl.c +1 -8
@@ -7,6 +7,7 @@#include <hang.h> #include <spl.h> +#include <soc/qcom/smem.h> /* in SPL, we always use internal DT */ int board_fdt_blob_setup (void **fdtp)
@@ -20,11 +21,3 @@ __weak void reset_cpu(void)printf ("reset_cpu called, going to hang()\n" );hang (); } - -u32 spl_boot_device (void ) -{ -/* TODO: check boot reason to support UFS and sdcard */ -u32 boot_device =BOOT_DEVICE_DFU ; - -return boot_device; -}
arch/arm/mach-snapdragon/pbl-shared-data.c new file +125 -0
125 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 03/15] mach-snapdragon: Add PBL shared data defines
Quoted 7 lines · Varadarajan Narayanan
Add structure and enum definitions to be able to parse the information that is passed from PBL. This will be used to identify the boot medium.
Since the PBL shared data defines are private, move
spl_boot_device()fromboard_spl.ctopbl-shared-data.cto parse the shared data and identify the boot medium
Quoted 8 lines
Reviewed-by Balaji Selvanathan <[email protected]>Reviewed-by Simon Glass <[email protected]>Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/board_spl.c | 9 +-- arch/arm/mach-snapdragon/pbl-shared-data.c | 125 +++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+), 8 deletions(-)
And this "PBL" doesn't / can't speak some existing format to pass this information along?
Signature · 1 line
Tom
Re: [PATCH RESEND v10 03/15] mach-snapdragon: Add PBL shared data defines
Quoted 18 lines · Tom Rini
Quoted 7 lines · Varadarajan Narayanan
Add structure and enum definitions to be able to parse the information that is passed from PBL. This will be used to identify the boot medium.
Since the PBL shared data defines are private, move
spl_boot_device()fromboard_spl.ctopbl-shared-data.cto parse the shared data and identify the boot mediumQuoted 8 lines
Reviewed-by Balaji Selvanathan <[email protected]>Reviewed-by Simon Glass <[email protected]>Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/board_spl.c | 9 +-- arch/arm/mach-snapdragon/pbl-shared-data.c | 125 +++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+), 8 deletions(-)
Quoted 2 lines
And this "PBL" doesn't / can't speak some existing format to pass this information along?
Yes. PBL is the boot-rom...
Thanks
Varada
PATCH RESEND v10 4/15 mach-snapdragon: spl: Update boot device information in SMEM
In reply to Varadarajan NarayananUpdate the SMEM with the boot device information got from the boot rom.
--- arch/arm/mach-snapdragon/board_spl.c | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)
arch/arm/mach-snapdragon/board_spl.c +42 -0
@@ -21,3 +21,45 @@ __weak void reset_cpu(void)printf ("reset_cpu called, going to hang()\n" );hang (); } + +#if IS_ENABLED (CONFIG_SPL_SMEM ) +/** +* qcom_spl_populate_smem() - Populate shared memory (SMEM) information. +* @ctx: Pointer to the global SPL context. +* +* This function initializes and populates various SMEM items with boot-related +* information, such as flash type. +* Return: 0 on success, or a negative error code on failure. +*/ +static int qcom_spl_populate_smem (void *ctx) +{ +int ret; +size_t size; +struct udevice *smem; +u32 *fltype; + + ret =qcom_smem_init (); +if (ret) { +pr_err ("Failed init SMEM (%d)\n" , ret); +return ret; + } + + size =sizeof (u32); + + fltype = (u32 *)smem_get (-1 ,SMEM_BOOT_FLASH_TYPE , &size); +if (!fltype) { +pr_err ("Failed to get item: SMEM_BOOT_FLASH_TYPE\n" ); +return -ENOENT ; + } + +if (IS_ENABLED (CONFIG_SPL_MMC )) { + *fltype =SMEM_BOOT_MMC_FLASH ; +wmb (); +return 0 ; + } + +pr_err ("Boot medium not specified\n" ); + +return -ENOENT ; +} +#endif /* IS_ENABLED(CONFIG_SPL_SMEM) */
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 04/15] mach-snapdragon: spl: Update boot device information in SMEM
Quoted 49 lines · Varadarajan Narayanan
Update the SMEM with the boot device information got from the boot rom.
Reviewed-by Balaji Selvanathan <[email protected]>Reviewed-by Simon Glass <[email protected]>Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/mach-snapdragon/board_spl.c | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)arch/arm/mach-snapdragon/board_spl.c +32
-0@@ -21,3 +21,45 @@ __weak void reset_cpu(void)printf ("reset_cpu called, going to hang()\n" );hang (); } + +#if IS_ENABLED (CONFIG_SPL_SMEM ) +/** +* qcom_spl_populate_smem() - Populate shared memory (SMEM) information. +* @ctx: Pointer to the global SPL context. +* +* This function initializes and populates various SMEM items with boot-related +* information, such as flash type. +* Return: 0 on success, or a negative error code on failure. +*/ +static int qcom_spl_populate_smem (void *ctx) +{ +int ret; +size_t size; +struct udevice *smem; +u32 *fltype; + + ret =qcom_smem_init (); +if (ret) { +pr_err ("Failed init SMEM (%d)\n" , ret); +return ret; + } + + size =sizeof (u32); + + fltype = (u32 *)smem_get (-1 ,SMEM_BOOT_FLASH_TYPE , &size); +if (!fltype) { +pr_err ("Failed to get item: SMEM_BOOT_FLASH_TYPE\n" ); +return -ENOENT ; + } + +if (IS_ENABLED (CONFIG_SPL_MMC )) {
arch/arm/mach-snapdragon/board_spl.c __weak void reset_cpu(void) · line 65
Quoted 10 lines
arch/arm/mach-snapdragon/board_spl.c +10
-0+ *fltype =SMEM_BOOT_MMC_FLASH ; +wmb (); + return 0; + } + +pr_err ("Boot medium not specified\n" ); + +return -ENOENT ; +} +#endif /* IS_ENABLED(CONFIG_SPL_SMEM) */
You're adding a guarded, static function in a single commit and not calling it. It should be added when called, and then we can see what guards if any it needs.
Signature · 1 line
Tom
PATCH RESEND v10 5/15 mach-snapdragon: spl: Add support for MMC booting in SPL
In reply to Varadarajan NarayananAdd routines to enable U-Boot SPL to be able to proceed with the boot from MMC partitions.
--- arch/arm/mach-snapdragon/board_spl.c | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+)
arch/arm/mach-snapdragon/board_spl.c +57 -0
@@ -63,3 +63,60 @@ static int qcom_spl_populate_smem(void *ctx)return -ENOENT ; }#endif /* IS_ENABLED(CONFIG_SPL_SMEM) */ + +#if CONFIG_IS_ENABLED (MMC ) + +#define QCOM_SPL_FIT_IMG_PARTITION "0:BOOTLDR" + +/** +* spl_mmc_boot_mode() - Determine the boot mode for MMC +* @mmc: Pointer to the MMC device +* @boot_device: Boot device ID +* +* Return: MMCSD_MODE_RAW to use raw partition access +*/ +u32 spl_mmc_boot_mode (struct mmc *mmc,const u32 boot_device) +{ +return MMCSD_MODE_RAW ; +} + +/** +* spl_mmc_boot_partition() - Determine which partition to boot from +* @boot_device: Boot device ID +* +* Return: Partition number to boot from, or default partition on error +*/ +int spl_mmc_boot_partition (const u32 boot_device) +{ +int p_no; +struct blk_desc *desc; +struct disk_partition info; + + desc =blk_get_devnum_by_uclass_id (UCLASS_MMC ,0 ); +if (!desc) { +pr_err ("%s: Block device not found\n" , __func__); +return -ENODEV ; + } + + p_no =part_get_info_by_name (desc,QCOM_SPL_FIT_IMG_PARTITION , &info); +if (p_no <0 ) { +pr_err ("Partition " QCOM_SPL_FIT_IMG_PARTITION " not found\n" ); +return -ENOENT ; + } + +pr_debug ("Found " QCOM_SPL_FIT_IMG_PARTITION " at %d\n" , p_no); + +if (p_no <0 ) { +printf ("Using default MMC partition %d\n" , +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION ); +return CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION ; + } + +return p_no; +} + +unsigned long spl_mmc_get_uboot_raw_sector (struct mmc *mmc,ulong raw_sect) +{ +return 0 ; +} +#endif /* CONFIG_IS_ENABLED(MMC) */
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 05/15] mach-snapdragon: spl: Add support for MMC booting in SPL
Quoted 15 lines · Varadarajan Narayanan
Add routines to enable U-Boot SPL to be able to proceed with the boot from MMC partitions.
Reviewed-by Balaji Selvanathan <[email protected]>Reviewed-by Simon Glass <[email protected]>Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/mach-snapdragon/board_spl.c | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+)arch/arm/mach-snapdragon/board_spl.c +0
-0
arch/arm/mach-snapdragon/board_spl.c static int qcom_spl_populate_smem(void *ctx) · line 67
Quoted 5 lines
arch/arm/mach-snapdragon/board_spl.c +2
-0@@ -63,3 +63,60 @@ static int qcom_spl_populate_smem(void *ctx) return -ENOENT; }#endif /* IS_ENABLED(CONFIG_SPL_SMEM) */ + +#if CONFIG_IS_ENABLED (MMC )
Using CONFIG_IS_ENABLED in a file we only build for SPL is silly. I'm not sure if we even need to guard it, or if it should get discarded at link time.
Signature · 1 line
Tom
PATCH RESEND v10 6/15 mach-snapdragon: Kconfig: Add rules to create SPL images
In reply to Varadarajan NarayananThe boot rom expects the secondary boot loader in MBN format followed by the TME executable. Add rules to board/qualcomm/config.mk to create u-boot-spl.mbn and u-boot-spl.melf.
u-boot-spl.melf is the combined multi-elf file that has u-boot-spl.mbn followed by the TME executable.
Additionally, this patch adds a config option to specify the path of the TME executable to be used to create u-boot-spl.melf.
--- arch/arm/mach-snapdragon/Kconfig | 7 +++++++ board/qualcomm/config.mk | 25 ++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-)
arch/arm/mach-snapdragon/Kconfig +7 -0
@@ -59,6 +59,13 @@ config QCOM_GENERATE_MBN New platforms can be added to tools/qcom/mkmbn/mkmbn.py if they aren't already supported. +config QCOM_TMEL_ELF + string "TME Elf to concatenate with U-Boot SPL MBN image" + depends on SPL && QCOM_GENERATE_MBN + help + Path of the TME Elf file to be concatenated to u-boot.mbn to create + boot rom expected multi-elf image + choice prompt "Qualcomm boot0.h workaround" optional
board/qualcomm/config.mk +24 -1
@@ -8,7 +8,30 @@ # Create Qualcomm signed elf images CMD_MKMBN = $(srctree)/tools/qcom/mkmbn/mkmbn.py quiet_cmd_mkmbn = MBN $@ - cmd_mkmbn = $(CMD_MKMBN) $< + cmd_mkmbn = $(CMD_MKMBN) -l $(CONFIG_TEXT_BASE) $< u-boot.mbn: u-boot.bin FORCE $(call if_changed,mkmbn) + +ifeq ($(CONFIG_QCOM_GENERATE_MBN),y) + +quiet_cmd_mksplmbn = SPLMBN $@ + cmd_mksplmbn = $(CMD_MKMBN) -o spl/u-boot-spl.mbn -l $(CONFIG_SPL_TEXT_BASE) $< + +INPUTS-$(CONFIG_SPL) += spl/u-boot-spl.mbn + +spl/u-boot-spl.mbn: spl/u-boot-spl.bin FORCE + $(call if_changed,mksplmbn) + +ifneq ($(wildcard $(CONFIG_QCOM_TMEL_ELF)),) + +quiet_cmd_mksplmelf = SPLMELF $@ + cmd_mksplmelf = $(CMD_MKMBN) -o spl/u-boot-spl.melf spl/u-boot-spl.mbn $(CONFIG_QCOM_TMEL_ELF) + +INPUTS-$(CONFIG_SPL) += spl/u-boot-spl.melf + +spl/u-boot-spl.melf: spl/u-boot-spl.mbn FORCE + $(call if_changed,mksplmelf) +endif # CONFIG_QCOM_TMEL_ELF + +endif # CONFIG_QCOM_GENERATE_MBN
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 06/15] mach-snapdragon: Kconfig: Add rules to create SPL images
Quoted 21 lines · Varadarajan Narayanan
The boot rom expects the secondary boot loader in MBN format followed by the TME executable. Add rules to
board/qualcomm/config.mkto create u-boot-spl.mbn and u-boot-spl.melf.u-boot-spl.melf is the combined multi-elf file that has u-boot-spl.mbn followed by the TME executable.
Additionally, this patch adds a config option to specify the path of the TME executable to be used to create u-boot-spl.melf.
Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/mach-snapdragon/Kconfig | 7 +++++++ board/qualcomm/config.mk | 25 ++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-)arch/arm/mach-snapdragon/Kconfig +0
-0
arch/arm/mach-snapdragon/Kconfig config QCOM_GENERATE_MBN · line 67
Quoted 9 lines
arch/arm/mach-snapdragon/Kconfig +6
-0@@ -59,6 +59,13 @@ config QCOM_GENERATE_MBN New platforms can be added to tools/qcom/mkmbn/mkmbn.py if they aren't already supported. +config QCOM_TMEL_ELF + string "TME Elf to concatenate with U-Boot SPL MBN image" + depends on SPL && QCOM_GENERATE_MBN + help + Path of the TME Elf file to be concatenated to u-boot.mbn to create + boot rom expected multi-elf image
You can't not have a default here. If this is optional, it needs a bool guard on it, and then still have a default, and the help text should a little more what's being specified. And I don't get why a TME Elf (which should be TME ELF I expect) would be QCOM_TMEL_ELF
Signature · 1 line
Tom
PATCH RESEND v10 7/15 mach-snapdragon: spl: Load next stage FIT image
In reply to Varadarajan NarayananIdentify the boot media loader driver and load the FIT image that has the binaries to initialize the DDR, U-Boot proper etc.
--- arch/arm/mach-snapdragon/board_spl.c | 155 ++++++++++++++++++++++++++++++++++- 1 file changed, 153 insertions(+), 2 deletions(-)
arch/arm/mach-snapdragon/board_spl.c +153 -2
@@ -5,12 +5,15 @@* Copyright (c) 2026 Michael Srba <[email protected]> */ +#include <asm/sections.h> #include <hang.h> +#include <init.h> +#include <mach/qclib.h> #include <spl.h> #include <soc/qcom/smem.h> /* in SPL, we always use internal DT */ -int board_fdt_blob_setup (void **fdtp) +int __weak board_fdt_blob_setup (void **fdtp) {return -EEXIST ; }
@@ -86,7 +89,7 @@ u32 spl_mmc_boot_mode(struct mmc *mmc, const u32 boot_device)* * Return: Partition number to boot from, or default partition on error */ -int spl_mmc_boot_partition (const u32 boot_device) +int __weak spl_mmc_boot_partition (const u32 boot_device) {int p_no;struct blk_desc *desc;
@@ -120,3 +123,151 @@ unsigned long spl_mmc_get_uboot_raw_sector(struct mmc *mmc, ulong raw_sect)return 0 ; }#endif /* CONFIG_IS_ENABLED(MMC) */ + +void qcom_spl_malloc_init_f (void ) +{ +if (!CONFIG_IS_ENABLED (SYS_MALLOC_F )) +return ; +/* +* Set up by crt0.S +*/ +assert (gd->malloc_base); + gd->malloc_limit =CONFIG_VAL (SYS_MALLOC_F_LEN ); + gd->malloc_ptr =0 ; + +mem_malloc_init (gd->malloc_base, gd->malloc_limit); + gd->flags |=GD_FLG_FULL_MALLOC_INIT ; +} + +/** +* spl_get_load_buffer() - Allocate a cache-aligned buffer for image loading. +* @offset: Offset (unused, typically 0 for SPL). +* @size: Size of the buffer to allocate. +* +* Return: Pointer to the allocated buffer, or NULL on failure. +*/ +struct legacy_img_hdr *spl_get_load_buffer (ssize_t offset,size_t size) +{ +#ifdef CONFIG_SPL_LOAD_FIT_ADDRESS +return (void *)CONFIG_SPL_LOAD_FIT_ADDRESS ; +#else +return NULL ; +#endif +} + +/** +* board_spl_fit_buffer_addr() - Get the address of the FIT image buffer. +* @fit_size: Size of the FIT image. +* @sectors: Number of sectors. +* @bl_len: Block length. +* +* Return: Address of the FIT image buffer. +*/ +void *board_spl_fit_buffer_addr (ulong fit_size,int sectors,int bl_len) +{ +return spl_get_load_buffer (0 , sectors * bl_len); +} + +/** +* qcom_spl_loader_pre_ddr() - SPL loader for pre-DDR stage. +* @boot_device: Type of boot device. +* +* Return: 0 on success, or a negative error code on failure. +*/ +int qcom_spl_loader_pre_ddr (u8 boot_device) +{ +struct spl_image_loader *loader, *drv; +struct spl_image_info spl_image = {0 }; +struct spl_boot_device boot_dev = { .boot_device = boot_device, }; +int ret = -ENODEV , n_ents; + + drv = ll_entry_start(struct spl_image_loader, spl_image_loader); + n_ents = ll_entry_count(struct spl_image_loader, spl_image_loader); + +for (loader = drv; loader && (loader != drv + n_ents); loader++) { +if (boot_device != loader->boot_device) +continue ; + + ret = loader->load_image (&spl_image, &boot_dev); +if (!ret) +break ; + +printf ("%s: Error: %d\n" , __func__, ret); + } + +return ret; +} + +/** +* board_fit_config_name_match() - Select the FIT config for the current +* boot stage. +* @name: Candidate FIT config name. +* +* Generic default: match "pre-ddr" before DRAM is up, "post-ddr" after. +* A SoC with additional/different FIT configs should provide a strong +* override. +* +* Return: 0 on match, -EINVAL otherwise. +*/ +int __weak board_fit_config_name_match (const char *name) +{ +if (!(gd->flags &GD_FLG_SPL_INIT )) { +if (!strcmp (name,"pre-ddr" )) { +printf ("Selected FIT Config: %s\n" , name); +return 0 ; + } + }else { +if (!strcmp (name,"post-ddr" )) { +printf ("Selected FIT Config: %s\n" , name); +return 0 ; + } + } + +return -EINVAL ; +} + +/** +* board_init_f() - Generic SPL entry point. +* @dummy: Unused. +* +* Generic default: clear BSS, set up malloc, run early init, load the +* pre-DDR image and invoke QCLIB when booting from PBL, then hand off to +* board_init_r(). A SoC with additional bring-up steps should provide a +* strong override. +*/ +void __weak board_init_f (ulong dummy) +{ +int ret =0 ; + +memset (__bss_start,0 , __bss_end - __bss_start);/* Clear BSS */ + +qcom_spl_malloc_init_f (); + + ret =spl_early_init (); +if (ret) { +pr_debug ("spl_early_init() failed (%d)\n" , ret); + goto fail; + } + +event_notify_null (EVT_LAST_STAGE_INIT ); + +preloader_console_init (); + + ret =qcom_spl_loader_pre_ddr (spl_boot_device ()); +if (ret) { +pr_debug ("qcom_spl_loader_pre_ddr() failed (%d)\n" , ret); + goto fail; + } + + ret =qcom_spl_invoke_qclib (); +if (ret) { +pr_debug ("qcom_spl_invoke_qclib() failed (%d)\n" , ret); + goto fail; + } + +board_init_r (NULL ,0 ); + +fail: +if (ret) +reset_cpu (); +}
Signature · 1 line
2.34.1
PATCH RESEND v10 8/15 mach-snapdragon: spl: Add DDR initialization support
In reply to Varadarajan NarayananThe U-Boot SPL loads the next stage FIT image into internal SRAM. The binaries are 'external' in this FIT image. The SPL has to load the DDR init binary, i.e. qclib and the DDR parameters i.e. qcconfig used by qclib and invoke the qclib. SPL and qclib exchange information using the interface table described in doc/board/qualcomm/interface-table.rst.
--- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/fit-handler.c | 131 +++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+)
arch/arm/mach-snapdragon/Makefile +1 -0
@@ -7,6 +7,7 @@ obj-y += mem_map.o ifeq ($(CONFIG_SPL_BUILD),y) obj-y += board_spl.o +obj-y += fit-handler.o obj-y += pbl-shared-data.o else obj-y += board.o
arch/arm/mach-snapdragon/fit-handler.c new file +131 -0
131 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v10 9/15 mach-snapdragon: Add Qclib handling support
In reply to Varadarajan NarayananAdd functions that handle loading the FIT image nodes having the Qclib executable and executing it. Also provides 'weak' hooks that can be overridden by SoC specific implementations.
--- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/include/mach/qclib.h | 82 +++++++++++++ arch/arm/mach-snapdragon/qclib.c | 160 ++++++++++++++++++++++++++ 3 files changed, 243 insertions(+)
arch/arm/mach-snapdragon/Makefile +1 -0
@@ -9,6 +9,7 @@ ifeq ($(CONFIG_SPL_BUILD),y) obj-y += board_spl.o obj-y += fit-handler.o obj-y += pbl-shared-data.o +obj-y += qclib.o else obj-y += board.o obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += capsule_update.o
arch/arm/mach-snapdragon/include/mach/qclib.h new file +82 -0
82 lines not on this page · raw message
arch/arm/mach-snapdragon/qclib.c new file +160 -0
160 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v10 10/15 dts: ipq5210-rdp504-u-boot: add override dtsi
In reply to Varadarajan Narayanan* Add initial support for the IPQ5210 MMC based RDP platforms.
* Define memory layout statically.
* Mark the nodes that would be needed for SPL.
--- arch/arm/dts/ipq5210-rdp504-u-boot.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/dts/ipq5210-rdp504-u-boot.dtsi new file +12 -0
@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * IPQ5210 RDP504 board device tree source + * + * Copyright (c) 2026 The Linux Foundation. All rights reserved. + */ + +/ { + reserved-memory { + /delete-node/ bootloader@87800000; + }; +};
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 10/15] dts: ipq5210-rdp504-u-boot: add override dtsi
Quoted 19 lines · Varadarajan Narayanan
* Add initial support for the IPQ5210 MMC based RDP platforms.
* Define memory layout statically.
* Mark the nodes that would be needed for SPL.Reviewed-by Simon Glass <[email protected]>Reviewed-by Sumit Garg <[email protected]>Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/dts/ipq5210-rdp504-u-boot.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)arch/arm/dts/ipq5210-rdp504-u-boot.dtsi new file +2
-0@@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +/*
arch/arm/dts/ipq5210-rdp504-u-boot.dtsi line 12
Quoted 10 lines
arch/arm/dts/ipq5210-rdp504-u-boot.dtsi new file +10
-0+ * IPQ5210 RDP504 board device tree source + * + * Copyright (c) 2026 The Linux Foundation. All rights reserved. + */ + +/ { + reserved-memory { + /delete-node/ bootloader@87800000; + }; +};
I don't think the message and tags match, and so the reviewed-bys should get dropped too.
Signature · 1 line
Tom
PATCH RESEND v10 11/15 clk/qcom: add clock driver for ipq5210
In reply to Varadarajan NarayananAdd clocks and resets for enabling U-Boot on ipq5210 based RDP platforms.
--- drivers/clk/qcom/Kconfig | 8 ++++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-ipq5210.c | 93 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+)
drivers/clk/qcom/Kconfig +8 -0
@@ -31,6 +31,14 @@ config CLK_QCOM_IPQ4019 on the Snapdragon IPQ4019 SoC. This driver supports the clocks and resets exposed by the GCC hardware block. +config CLK_QCOM_IPQ5210 + bool "Qualcomm IPQ5210 GCC" + select CLK_QCOM + help + Say Y here to enable support for the Global Clock Controller + on the Qualcomm IPQ5210 SoC. This driver supports the clocks + and resets exposed by the GCC hardware block. + config CLK_QCOM_IPQ5424 bool "Qualcomm IPQ5424 GCC" select CLK_QCOM
drivers/clk/qcom/Makefile +1 -0
@@ -7,6 +7,7 @@ obj-$(CONFIG_CLK_QCOM_SDM845) += clock-sdm845.o obj-$(CONFIG_CLK_QCOM_APQ8016) += clock-apq8016.o obj-$(CONFIG_CLK_QCOM_APQ8096) += clock-apq8096.o obj-$(CONFIG_CLK_QCOM_IPQ4019) += clock-ipq4019.o +obj-$(CONFIG_CLK_QCOM_IPQ5210) += clock-ipq5210.o obj-$(CONFIG_CLK_QCOM_IPQ5424) += clock-ipq5424.o obj-$(CONFIG_CLK_QCOM_IPQ9574) += clock-ipq9574.o obj-$(CONFIG_CLK_QCOM_MILOS) += clock-milos.o
drivers/clk/qcom/clock-ipq5210.c new file +93 -0
93 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v10 12/15 pinctrl: qcom: Add ipq5210 pinctrl driver
In reply to Varadarajan NarayananAdd pinctrl driver for the TLMM block found in the ipq5210 SoC.
--- drivers/pinctrl/qcom/Kconfig | 8 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-ipq5210.c | 349 +++++++++++++++++++++++++++++++++ 3 files changed, 358 insertions(+)
drivers/pinctrl/qcom/Kconfig +8 -0
@@ -38,6 +38,14 @@ config PINCTRL_QCOM_IPQ4019 Say Y here to enable support for pinctrl on the IPQ4019 SoC, as well as the associated GPIO driver. +config PINCTRL_QCOM_IPQ5210 + bool "Qualcomm IPQ5210 Pinctrl" + default y if PINCTRL_QCOM_GENERIC + select PINCTRL_QCOM + help + Say Y here to enable support for pinctrl on the IPQ5210 SoC, + as well as the associated GPIO driver. + config PINCTRL_QCOM_IPQ5424 bool "Qualcomm IPQ5424 Pinctrl" default y if PINCTRL_QCOM_GENERIC
drivers/pinctrl/qcom/Makefile +1 -0
@@ -5,6 +5,7 @@ obj-$(CONFIG_PINCTRL_QCOM) += pinctrl-qcom.o obj-$(CONFIG_PINCTRL_QCOM_APQ8016) += pinctrl-apq8016.o obj-$(CONFIG_PINCTRL_QCOM_IPQ4019) += pinctrl-ipq4019.o +obj-$(CONFIG_PINCTRL_QCOM_IPQ5210) += pinctrl-ipq5210.o obj-$(CONFIG_PINCTRL_QCOM_IPQ5424) += pinctrl-ipq5424.o obj-$(CONFIG_PINCTRL_QCOM_IPQ9574) += pinctrl-ipq9574.o obj-$(CONFIG_PINCTRL_QCOM_APQ8096) += pinctrl-apq8096.o
drivers/pinctrl/qcom/pinctrl-ipq5210.c new file +349 -0
349 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v10 13/15 mach-snapdragon: spl: ipq5210: Add SPL support
In reply to Varadarajan NarayananThis patch adds the basic board init routines that invoke the common and mach-snapdragon specific SPL frameworks to proceed with the hand over from boot rom to the next stage i.e. U-Boot proper. This also provides the linker script to generate the SPL image in the format expected by the boot rom.
--- arch/arm/mach-snapdragon/board_spl.c | 2 + arch/arm/mach-snapdragon/include/mach/spl.h | 13 ++++ board/qualcomm/ipq5210/Makefile | 3 + board/qualcomm/ipq5210/ipq5210-spl-wrap-elf.lds | 18 +++++ board/qualcomm/ipq5210/spl-ipq5210.c | 99 +++++++++++++++++++++++++ include/configs/ipq5210.h | 11 +++ 6 files changed, 146 insertions(+)
arch/arm/mach-snapdragon/board_spl.c +2 -0
@@ -12,6 +12,8 @@#include <spl.h> #include <soc/qcom/smem.h> +DECLARE_GLOBAL_DATA_PTR ; +/* in SPL, we always use internal DT */ int __weak board_fdt_blob_setup (void **fdtp) {
arch/arm/mach-snapdragon/include/mach/spl.h new file +13 -0
@@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +*/ + +#ifndef __SPL_H__ +#define __SPL_H__ + +void qcom_spl_malloc_init_f (void ); +int qcom_spl_loader_pre_ddr (u8 boot_device); +void qcom_spl_error_handler (void *arg); + +#endif /* __SPL_H__ */
board/qualcomm/ipq5210/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-$(CONFIG_SPL) := spl-ipq5210.o
board/qualcomm/ipq5210/ipq5210-spl-wrap-elf.lds new file +18 -0
@@ -0,0 +1,18 @@ +/* + * SPDX-License-Identifier: GPL-2.0 + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ +PHDRS { + ptype PT_LOAD FLAGS(0x7); +} + +ENTRY(_entry) + +SECTIONS { + . = CONFIG_PLATFORM_ELFENTRY; + _entry = . ; + data : { + *(.data) + . = ALIGN(4); + } :ptype +}
board/qualcomm/ipq5210/spl-ipq5210.c new file +99 -0
99 lines not on this page · raw message
include/configs/ipq5210.h new file +11 -0
@@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +*/ + +#ifndef __CONFIGS_IPQ5210_H +#define __CONFIGS_IPQ5210_H + +#include <linux/sizes.h> + +#endif
Signature · 1 line
2.34.1
Re: [PATCH RESEND v10 13/15] mach-snapdragon: spl: ipq5210: Add SPL support
Quoted 23 lines · Varadarajan Narayanan
This patch adds the basic board init routines that invoke the common and mach-snapdragon specific SPL frameworks to proceed with the hand over from boot rom to the next stage i.e. U-Boot proper. This also provides the linker script to generate the SPL image in the format expected by the boot rom.
Reviewed-by Balaji Selvanathan <[email protected]>Reviewed-by Simon Glass <[email protected]>Signed-off-by Varadarajan Narayanan <[email protected]>--- arch/arm/mach-snapdragon/board_spl.c | 2 + arch/arm/mach-snapdragon/include/mach/spl.h | 13 ++++ board/qualcomm/ipq5210/Makefile | 3 + board/qualcomm/ipq5210/ipq5210-spl-wrap-elf.lds | 18 +++++ board/qualcomm/ipq5210/spl-ipq5210.c | 99 +++++++++++++++++++++++++ include/configs/ipq5210.h | 11 +++ 6 files changed, 146 insertions(+)arch/arm/mach-snapdragon/board_spl.c +0
-0
arch/arm/mach-snapdragon/board_spl.c line 19
Quoted 8 lines
arch/arm/mach-snapdragon/board_spl.c +2
-0@@ -12,6 +12,8 @@#include <spl.h> #include <soc/qcom/smem.h> +DECLARE_GLOBAL_DATA_PTR ; +/* in SPL, we always use internal DT */ int __weak board_fdt_blob_setup (void **fdtp) {
You don't add this, and nothing else. If we're using gd already, it should already be added, and a standalone fix to add if missing.
[snip]
Quoted 5 lines
arch/arm/mach-snapdragon/board_spl.c +5
-0+#define QCCONFIG "qc_config" + +/** +* qcom_spl_soc_qclib_override() - Populate ipq5210-specific interface table +* entries.
arch/arm/mach-snapdragon/board_spl.c
Quoted 10 lines
arch/arm/mach-snapdragon/board_spl.c +10
-0+* @table: Pointer to the QCLIB interface table being built. +* @fit: Pointer to the FIT image blob. +* @images_node: FIT "images" node offset. +* +* Appends the "qc_config" entry and a placeholder "qcsdi" entry, filled in by QCLIB itself. +* +* Return: 0 on success, or a negative error code on failure. +*/ +int qcom_spl_soc_qclib_override (struct interface_table *table, +const void *fit,int images_node)
So I guess here is where you start overriding some of the weak functions you add earlier? Since Qualcomm has a better idea internally on how this QCLIB stuff differs from chip to chip, please work on the abstractions a bit more in the U-Boot interface. You have a better idea on what is common and what is different between chip families, and what's being done so far doesn't read very clean.
[snip]
Quoted 7 lines
include/configs/ipq5210.h new file +1
-0@@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */
include/configs/ipq5210.h line 11
Quoted 10 lines
include/configs/ipq5210.h new file +10
-0+/* +* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +*/ + +#ifndef __CONFIGS_IPQ5210_H +#define __CONFIGS_IPQ5210_H + +#include <linux/sizes.h> + +#endif
I NAK'd this type of change last week on some other qcom platform.
Signature · 1 line
Tom
PATCH RESEND v10 14/15 configs: Add qcom_ipq5210_mmc_defconfig
In reply to Varadarajan NarayananIntroduce a defconfig for the Qualcomm IPQ5210 SoC based RDPs. Presently supports eMMC.
--- configs/qcom_ipq5210_mmc_defconfig | 113 +++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+)
configs/qcom_ipq5210_mmc_defconfig new file +113 -0
@@ -0,0 +1,113 @@ +CONFIG_ARM=y +CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_POSITION_INDEPENDENT=y +CONFIG_SYS_INIT_SP_BSS_OFFSET=0x180000 +CONFIG_ARCH_SNAPDRAGON=y +CONFIG_EVENT=y +CONFIG_TEXT_BASE=0x87980000 +CONFIG_NR_DRAM_BANKS=2 +CONFIG_ENV_SIZE=0x40000 +CONFIG_ENV_OFFSET=0 +CONFIG_DEFAULT_DEVICE_TREE="qcom/ipq5210-rdp504" +CONFIG_SYS_LOAD_ADDR=0x90000000 +CONFIG_REMAKE_ELF=y +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +# CONFIG_BOOTSTD is not set +CONFIG_OF_BOARD_SETUP=y +CONFIG_USE_PREBOOT=y +CONFIG_SYS_PBSIZE=1024 +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_HUSH_PARSER=y +CONFIG_CMD_MMC=y +CONFIG_CMD_PART=y +CONFIG_EFI_PARTITION=y +CONFIG_OF_LIVE=y +CONFIG_ENV_IS_IN_MMC=y +CONFIG_CLK=y +CONFIG_CLK_QCOM_IPQ5210=y +CONFIG_MSM_GPIO=y +# CONFIG_I2C is not set +# CONFIG_INPUT is not set +CONFIG_MISC=y +CONFIG_QCOM_GENI=y +CONFIG_QCOM_GENI_MINICORE=y +CONFIG_MMC_HS200_SUPPORT=y +CONFIG_MMC_SDHCI=y +# CONFIG_MMC_SDHCI_ADMA_HELPERS is not set +# CONFIG_MMC_SDHCI_ADMA is not set +# CONFIG_MMC_SDHCI_ADMA_FORCE_32BIT is not set +# CONFIG_MMC_SDHCI_ADMA_64BIT is not set +CONFIG_MMC_SDHCI_MSM=y +CONFIG_MTD=y +CONFIG_DM_MDIO=y +CONFIG_DM_ETH_PHY=y +CONFIG_DWC_ETH_QOS=y +CONFIG_DWC_ETH_QOS_QCOM=y +CONFIG_RGMII=y +CONFIG_PHY=y +CONFIG_PHY_QCOM_QMP_UFS=y +CONFIG_PHY_QCOM_QUSB2=y +CONFIG_PINCTRL=y +CONFIG_PINCONF=y +CONFIG_PINCTRL_QCOM_IPQ5210=y +CONFIG_DEBUG_UART_MSM_GENI=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_MSM_SERIAL=y +CONFIG_MSM_GENI_SERIAL=y +CONFIG_SOC_QCOM=y +CONFIG_SPL=y +CONFIG_SPL_FRAMEWORK=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_OF_LIBFDT=y +CONFIG_SPL_DM=y +CONFIG_SPL_GPIO=y +CONFIG_SPL_DM_GPIO=y +CONFIG_SPL_DM_RESET=y +CONFIG_SPL_PINCTRL=y +CONFIG_SPL_CLK=y +CONFIG_SPL_DRIVERS_MISC=y +CONFIG_SPL_DRIVERS_MISC_SUPPORT=y +CONFIG_SPL_SERIAL=y +CONFIG_SPL_SMEM=y +CONFIG_DM_STATS=y +CONFIG_SPL_SYS_MALLOC_F=y +CONFIG_SPL_SYS_MALLOC_F_LEN=0x20000 +CONFIG_SPL_SYS_MALLOC=y +CONFIG_SYS_MALLOC_DEFAULT_TO_INIT=y +CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y +CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80008000 +CONFIG_SPL_SYS_MALLOC_SIZE=0x20000 +# CONFIG_SPL_SEPARATE_BSS is not set +# CONFIG_SPL_USE_TINY_PRINTF is not set +CONFIG_SPL_BSS_MAX_SIZE=0x4000 +CONFIG_SPL_TEXT_BASE=0x08c2e000 +CONFIG_SPL_MAX_SIZE=0x3D000 +CONFIG_SPL_MMC=y +CONFIG_SPL_MMC_SDHCI_ADMA=y +CONFIG_SPL_MMC_WRITE=y +CONFIG_SPL_SYS_MMCSD_RAW_MODE=y +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION=y +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION=0x00 +CONFIG_COUNTER_FREQUENCY=24000000 +CONFIG_SPL_STACKPROTECTOR=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_SPL_ATF=y +CONFIG_SPL_ATF_LOAD_IMAGE_V2=y +CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y +CONFIG_SPL_HAS_LOAD_FIT_ADDRESS=y +CONFIG_SPL_LOAD_FIT_ADDRESS=0x08cbe000 +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set +CONFIG_SPL_HAVE_INIT_STACK=y +CONFIG_SPL_STACK=0x08c2e000 +# CONFIG_SAVE_PREV_BL_FDT_ADDR is not set +CONFIG_SPL_EVENT=y +CONFIG_SYS_BOARD="ipq5210" +CONFIG_SPL_REMAKE_ELF=y +CONFIG_SPL_REMAKE_ELF_LDSCRIPT="board/qualcomm/ipq5210/ipq5210-spl-wrap-elf.lds" +CONFIG_QCOM_TMEL_ELF="../tmel-ipq52xx-patch.elf" +CONFIG_QCOM_GENERATE_MBN=y +CONFIG_SYSRESET_PSCI=y
Signature · 1 line
2.34.1
PATCH RESEND v10 15/15 doc: board/qualcomm: Update RDP build instructions
In reply to Varadarajan NarayananAdd details about the SPL & U-Boot proper build steps, converting to flashable images, source URLs for the needed binaries and scripts.
--- doc/board/qualcomm/rdp.rst | 96 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 92 insertions(+), 4 deletions(-)
doc/board/qualcomm/rdp.rst +92 -4
@@ -25,13 +25,17 @@ about image signing can be found in :doc:`signing`. The firmware expects the ELF images to be in MBN format. The `elftombn.py` tool can be used to convert the ELF images to MBN format. - IPQ9574: (MBN version 6) +IPQ9574: (MBN version 6) - $ python elftombn.py -f u-boot.elf -o u-boot.mbn -v6 +.. code-block:: bash - IPQ5424: (MBN version 7) + python elftombn.py -f u-boot.elf -o u-boot.mbn -v6 - $ python elftombn.py -f u-boot.elf -o u-boot.mbn -v7 +IPQ5424: (MBN version 7) + +.. code-block:: bash + + python elftombn.py -f u-boot.elf -o u-boot.mbn -v7 Then install the resulting ``u-boot.mbn`` to the ``0:APPSBL`` partition on your device with::
@@ -43,6 +47,81 @@ on your device with:: U-Boot should be running after a reboot (``reset``). +Build steps for IPQ5210 based Qualcomm Dragonwing F8 & N8 Platforms: +-------------------------------------------------------------------- + +Please refer to the following URLs for more details about the platforms. + + F8: https://www.qualcomm.com/networking-infrastructure/products/f-series/f8-platform + + N8: https://www.qualcomm.com/networking-infrastructure/products/n-series/n8-platform + +1. Since U-Boot SPL is enabled on these platforms, the build command generates + both the U-Boot SPL and U-Boot proper images. Assuming ${uboot_dir} is the + top of the U-Boot sources and ${out_dir} as the output directory, + +.. code-block:: bash + + cd ${uboot_dir} + export CROSS_COMPILE=<aarch64 toolchain prefix> + make -j8 O=${out_dir} qcom_ipq5210_mmc_defconfig + make -j8 O=${out_dir} + +U-Boot SPL image: ${out_dir}/spl/u-boot-spl.wrap-elf +U-Boot image: ${out_dir}/u-boot.elf + +2. Convert the SPL image to multi ELF + +.. code-block:: bash + + cd ${out_dir}/spl + python elftombn.py -f u-boot-spl.wrap-elf -o u-boot-spl.mbn -v7 + python `create_multielf.py` -f u-boot-spl.mbn,tmel-ipq52xx-patch.elf \ + -o u-boot-spl.melf + +This u-boot-spl.melf should be flashed into 0:SPL partition. +Please see below for the location of `tmel-ipq52xx-patch.elf` + +3. Convert the U-Boot image to bootloader image + +.. code-block:: bash + + cd ${out_dir} + python elftombn.py -f u-boot.elf -o u-boot.mbn -v7 + +The u-boot.mbn has to be combined with `qc_config.elf`, `QCLib.elf`, `TFA` +and `OPTEE`. Please see below for the location for these ELFs. TFA and OPTEE +can be built from the sources using the following commands + +TFA: + +.. code-block:: bash + + make PLAT=ipq52xx QTISECLIB_PATH=path/to/`libqtisec_dbg.a` SPD=opteed + +OPTEE: + +.. code-block:: bash + + make PLATFORM=qcom-ipq52xx -j16 + +These binaries can be combined into a flashable image using `gen_its.py`. + +.. code-block:: bash + + python gen_its.py --arch ipq5210 \ + --qclib_path `QCLib.elf` \ + --qcconfig_path `qc_config.elf` \ + --tfa_bl31_path bl31.mbn \ + --uboot_path u-boot.mbn \ + --optee_path tee-raw.mbn \ + -p qcconfig qclib \ + -P tfa_bl31 uboot optee \ + -o output/hm_503_test_uboot.img \ + --template `template.its` + +This should be flashed into 0:BOOTLDR partition. + .. WARNING Boards with newer software versions would automatically go the emergency download (EDL) mode if U-Boot is not functioning as expected. If its a
@@ -55,5 +134,14 @@ U-Boot should be running after a reboot (``reset``). Note that the support added is very basic. Restoring the original U-Boot on boards with older version of the software requires a debugger. +.. _create_multielf.py: https://raw.githubusercontent.com/coreboot/coreboot/refs/heads/main/util/qualcomm/create_multielf.py .. _elftombn.py: https://git.codelinaro.org/clo/qsdk/oss/system/tools/meta/-/tree/NHSS.QSDK.13.0.5.r2/scripts?ref_type=heads .. _edl: https://github.com/bkerler/edl +.. _gen_its.py: https://git.codelinaro.org/clo/qsdk/oss/system/tools/meta/-/tree/win.platform_tools.1.0.r34/scripts?ref_type=heads +.. _libqtisec_dbg.a: https://softwarecenter.qualcomm.com/nexus/generic/product/chip/software-product/IPQ5210.NLQ.14.0/ipq5210.nlq.14.0-qca-oem-qartifact/r00036.1/WIN.TFA.1.0.R4/apss_proc/out/proprietary/qtiseclib/output/ipq52xx/release/libqtisec_dbg.a +.. _OPTEE: https://git.codelinaro.org/clo/trusted-firmware/optee_os/optee_os/-/tree/win.optee.1.0?ref_type=heads +.. _qc_config.elf: https://softwarecenter.qualcomm.com/nexus/generic/product/chip/software-product/IPQ5210.NLQ.14.0/ipq5210.nlq.14.0-qca-oem-qartifact/r00036.1/BOOT.MXF.2.3.1.1/boot_images/boot/QcomPkg/SocPkg/Hermosa/Bin/LC/RELEASE/qc_config.elf +.. _QCLib.elf: https://softwarecenter.qualcomm.com/nexus/generic/product/chip/software-product/IPQ5210.NLQ.14.0/ipq5210.nlq.14.0-qca-oem-qartifact/r00036.1/BOOT.MXF.2.3.1.1/boot_images/boot/QcomPkg/SocPkg/Hermosa/Bin/LC/RELEASE/QCLib.elf +.. _template.its: https://git.codelinaro.org/clo/qsdk/oss/system/tools/meta/-/tree/win.platform_tools.1.0.r34/scripts?ref_type=heads +.. _TFA: https://git.codelinaro.org/clo/trusted-firmware/tf-a/trusted-firmware-a/-/tree/win.tfa.1.0.r4?ref_type=heads +.. _tmel-ipq52xx-patch.elf: https://softwarecenter.qualcomm.com/nexus/generic/product/chip/software-product/IPQ5210.NLQ.14.0/ipq5210.nlq.14.0-qca-oem-qartifact/r00036.1/TMEL.WNS.2.4/tmel-ipq52xx-patch.elf
Signature · 1 line
2.34.1