Skip to content

Commit 8b2105a

Browse files
authored
Add initial changes for Glymur-CRD board (#1370)
Adding below changes for glymur-crd board: - machine configuration - set KERNEL_DEVICETREE with default dtb to pack DTB inside UKI - adding linux-firmware and hexagon dsp packages - add boot firmware recipe - update SRCREV for qcom-partition-conf recipe to include partition conf - KAS configuration file
2 parents 08826f0 + 182481e commit 8b2105a

11 files changed

Lines changed: 103 additions & 2 deletions

File tree

.github/workflows/build-yocto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ jobs:
139139
fail-fast: true
140140
matrix:
141141
machine:
142+
- glymur-crd
142143
- iq-615-evk
143144
- iq-8275-evk
144145
- iq-9075-evk

ci/glymur-crd.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/siemens/kas/master/kas/schema-kas.json
2+
3+
header:
4+
version: 14
5+
includes:
6+
- ci/base.yml
7+
8+
machine: glymur-crd

conf/machine/glymur-crd.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#@TYPE: Machine
2+
#@NAME: Qualcomm Glymur Compute Reference Device
3+
#@DESCRIPTION: Machine configuration for Qualcomm Glymur Compute Reference Device
4+
5+
require conf/machine/include/qcom-glymur.inc
6+
7+
MACHINE_FEATURES = "efi pci"
8+
9+
QCOM_DTB_DEFAULT ?= "glymur-crd"
10+
11+
KERNEL_DEVICETREE ?= " \
12+
qcom/glymur-crd.dtb \
13+
"
14+
15+
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
16+
packagegroup-glymur-crd-firmware \
17+
packagegroup-glymur-crd-hexagon-dsp-binaries \
18+
"
19+
20+
QCOM_CDT_FILE = "cdt_glymur_crd_0.1.0"
21+
QCOM_BOOT_FILES_SUBDIR = "glymur-crd"
22+
QCOM_PARTITION_FILES_SUBDIR ?= "partitions/glymur-crd/nvme"
23+
QCOM_PARTITION_FILES_SUBDIR_SPINOR ?= "partitions/glymur-crd/spinor"
24+
25+
QCOM_BOOT_FIRMWARE = "firmware-qcom-boot-glymur"

conf/machine/include/fit-dtb-compatible.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
FIT_DTB_COMPATIBLE[apq8016-sbc] = "qcom,apq8016-sbc"
88
FIT_DTB_COMPATIBLE[apq8096-db820c] = "qcom,apq8096-sbc"
9+
FIT_DTB_COMPATIBLE[glymur-crd] = "qcom,glymur-crd"
910
FIT_DTB_COMPATIBLE[hamoa-iot-evk] = " \
1011
qcom,hamoa-evk \
1112
qcom,hamoav2.1-evk \
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Configurations and variables for glymur SoC family.
2+
3+
SOC_FAMILY = "glymur"
4+
require conf/machine/include/qcom-base.inc
5+
require conf/machine/include/qcom-common.inc
6+
7+
DEFAULTTUNE = "armv8-6a-crypto"
8+
require conf/machine/include/arm/arch-armv8-6a.inc
9+
10+
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += " \
11+
packagegroup-qcom-boot-essential \
12+
"
13+
14+
MACHINE_EXTRA_RRECOMMENDS += " \
15+
packagegroup-qcom-boot-additional \
16+
"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
DESCRIPTION = "QCOM NHLOS Firmware for Qualcomm GLYMUR-CRD platform"
2+
LICENSE = "LICENSE.qcom-2"
3+
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/LICENSE.${BPN};md5=6e1bae7ef13289c332a27b917fb49764"
4+
5+
FW_ARTIFACTORY = "softwarecenter.qualcomm.com/nexus/generic/software/chip/qualcomm_linux-spf-0-0/qualcomm-linux-spf-0-0_test_device_public"
6+
FW_BUILD_ID = "r0.0_${PV}/glymur-le-0-0"
7+
FW_BIN_PATH = "common/build/bin"
8+
BOOTBINARIES = "Glymur_bootbinaries"
9+
10+
S = "${UNPACKDIR}/${BOOTBINARIES}/spinor"
11+
12+
SRC_URI = " \
13+
https://${FW_ARTIFACTORY}/${FW_BUILD_ID}/${FW_BIN_PATH}/${BOOTBINARIES}.zip;downloadfilename=${BOOTBINARIES}_r0.0_${PV}.zip;name=bootbinaries \
14+
https://${FW_ARTIFACTORY}/${FW_BUILD_ID}/LICENSE.txt;downloadfilename=LICENSE.${BPN};name=license \
15+
https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/SC8480XP/cdt/sc8480xp-crd.zip;downloadfilename=sc8480xp-crd_${PV}.zip;name=sc8480xp-crd \
16+
"
17+
SRC_URI[license.sha256sum] = "3ad8f1fd82f2918c858cec2d0887b7df6f71a06416beecfdb3efe7d62874d863"
18+
SRC_URI[sc8480xp-crd.sha256sum] = "d694eedb0addcc5ee588d6993661cd23996fba1d1a43afc3b196dad12534bffc"
19+
20+
QCOM_BOOT_IMG_SUBDIR = "glymur-crd/spinor"
21+
22+
include firmware-qcom-boot-common.inc
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require firmware-qcom-boot-glymur.inc
2+
3+
SRC_URI[bootbinaries.sha256sum] = "79df8ab4cc3248472d819098d20829ab129828c19937525cfc16f089d65a7a42"

recipes-bsp/hexagon-dsp-binaries/hexagon-dsp-binaries_20260221.bb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ INSANE_SKIP:${PN}-thundercomm-rb5-cdsp = "arch libdir file-rdeps textrel"
247247
INSANE_SKIP:${PN}-thundercomm-rb5-sdsp = "arch libdir file-rdeps textrel"
248248
INSANE_SKIP:${PN}-thundercomm-rubikpi3-adsp = "arch libdir file-rdeps textrel"
249249

250+
SKIP_FILEDEPS:${PN}-qcom-glymur-crd-adsp = "1"
251+
SKIP_FILEDEPS:${PN}-qcom-glymur-crd-cdsp = "1"
250252
SKIP_FILEDEPS:${PN}-qcom-hamoa-iot-evk-adsp = "1"
251253
SKIP_FILEDEPS:${PN}-qcom-kaanapali-mtp-adsp = "1"
252254
SKIP_FILEDEPS:${PN}-qcom-kaanapali-mtp-cdsp = "1"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SUMMARY = "Packages for the GLYMUR-CRD platform"
2+
3+
inherit packagegroup
4+
5+
PACKAGES = " \
6+
${PN}-firmware \
7+
${PN}-hexagon-dsp-binaries \
8+
"
9+
10+
RRECOMMENDS:${PN}-firmware = " \
11+
${@bb.utils.contains_any('DISTRO_FEATURES', 'opencl opengl vulkan', 'linux-firmware-qcom-adreno-g801 linux-firmware-qcom-glymur-adreno', '', d)} \
12+
${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'linux-firmware-ath12k-wcn7850', '', d)} \
13+
${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'linux-firmware-qca-wcn7850', '', d)} \
14+
linux-firmware-qcom-glymur-audio \
15+
linux-firmware-qcom-glymur-compute \
16+
linux-firmware-qcom-vpu \
17+
"
18+
19+
RDEPENDS:${PN}-hexagon-dsp-binaries = " \
20+
hexagon-dsp-binaries-qcom-glymur-crd-adsp \
21+
hexagon-dsp-binaries-qcom-glymur-crd-cdsp \
22+
"

recipes-bsp/partition/qcom-partition-conf_git.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause"
44
LIC_FILES_CHKSUM = "file://LICENSE;md5=b0a8acd90d872086b279ead88af03369"
55

66
SRC_URI = "git://github.com/qualcomm-linux/qcom-ptool.git;branch=main;protocol=https"
7-
SRCREV = "28c6e9792121cb1c4e8ba74ee3c61e5041b9f861"
7+
SRCREV = "386018c76d9b4f63141ad33905506e231cdc6f38"
88

99
INHIBIT_DEFAULT_DEPS = "1"
1010

0 commit comments

Comments
 (0)