Skip to content

Instantly share code, notes, and snippets.

View EmbeddedAndroid's full-sized avatar

0x1 EmbeddedAndroid

View GitHub Profile
@EmbeddedAndroid
EmbeddedAndroid / 0001-scsi-ufs-qcom-defer-probe-before-the-device-supplies.patch
Created November 2, 2026 15:59
scsi: ufs: qcom: defer probe before the device supplies are on (Kaanapali LDO4 OCP, against next-20261022)
From 86d688bbf6797301ff9a4f5af324be904bba0031 Mon Sep 17 00:00:00 2001
From: Tyler Baker <tyler.baker@oss.qualcomm.com>
Date: Mon, 2 Nov 2026 08:11:58 -0500
Subject: [PATCH] scsi: ufs: qcom: defer probe before the device supplies are
on
ufshcd_pltfrm_init() enables vcc and vccq in ufshcd_hba_init() before
ufs_qcom_init() looks up the PHY and the interconnect paths. When one of
them defers, the error path disables the supplies and drops their load
votes under a UFS device the bootloader left running.
@EmbeddedAndroid
EmbeddedAndroid / alpaca-edl-check.sh
Created November 2, 2026 13:13
alpaca-edl-check.sh: QTAC's Alpaca bootToEDL sequence (bit 4 + power key), lists the USB devices that appear
#!/bin/bash
# Put an Alpaca (EPM) driven QRD into EDL the way Qualcomm's test automation
# controller does (bootToEDL in configurations/TAC_PSOC_44.tcnf, legacy
# command table in TACPSOCLegacyCommands.cpp), and report every USB device
# the board brings up, so a missing serial or an unexpected port shows.
#
# Run on the cdba host with cdba-server NOT holding the Alpaca tty.
# Usage: alpaca-edl-check.sh <alpaca tty> <edl serial> [tries]
# e.g. alpaca-edl-check.sh /dev/serial/by-id/usb-QUALCOMM_Inc._Embedded_Power_Measurement__EPM__device_6E02020C040C1F14-if01 AAFD8CDA 3
# CONTROL=1 runs the same sequence without the EDL bit (expect no 9008).
@EmbeddedAndroid
EmbeddedAndroid / narrow-alpaca-edl.sh
Created November 2, 2026 12:56
narrow-alpaca-edl.sh: find which Alpaca TTL bits must be high alongside bit 5 low for EDL
#!/bin/bash
# Bit 5 low alone did not give EDL, but bit 5 low with bits 0,3,4,6,7 high did.
# Find which of those must be high: drop one at a time (bit 5 stays low).
# Usage: narrow-alpaca-edl.sh <alpaca tty> <edl serial>
set -u
tty=${1:?alpaca tty}; want=${2:?edl serial}; wait_s=${WAIT_S:-5}
others="0 3 4 6 7"
stty -F "$tty" 115200 raw -echo cs8 clocal cread || exit 1
cmd() { printf '%s\r' "$*" > "$tty"; sleep 0.3; }
edl() { for d in /sys/bus/usb/devices/*; do [ -r "$d/idVendor" ] || continue
@EmbeddedAndroid
EmbeddedAndroid / 0001-arm64-dts-qcom-glymur-reserve-the-TZ-carve-outs.patch
Created October 21, 2026 16:08
Linux patches for the Glymur CRD on the open boot stack
From 07ab4f2cac69f650b0d9506772f0eb08e43b9fca Mon Sep 17 00:00:00 2001
From: Tyler Baker <tyler.baker@oss.qualcomm.com>
Date: Thu, 15 Oct 2026 20:45:34 -0400
Subject: [PATCH 1/8] arm64: dts: qcom: glymur: reserve the TZ carve-outs
The secure world on Glymur owns the DDR from 0xd7019000 to 0xd9dc0000:
the XBL_SC region, a reserved region, the TZ (QTEE) image and heap, the
trusted application region and the DRAM tag area. None of it is
described in glymur.dtsi. With the stock UEFI this goes unnoticed because
UEFI leaves the range out of the memory map it hands to the OS, but a
@EmbeddedAndroid
EmbeddedAndroid / 0001-WIP-arm64-dts-qcom-sm8750-add-the-EL2-overlay.patch
Created October 21, 2026 16:08
Linux patches for the X1E80100 (Hamoa) IoT EVK on the open boot stack
From 627f09fc3f9fbfb6c41952f582ae3cdbe0bbd102 Mon Sep 17 00:00:00 2001
From: Tyler Baker <tyler.baker@oss.qualcomm.com>
Date: Thu, 8 Oct 2026 22:35:15 -0400
Subject: [PATCH 1/6] WIP: arm64: dts: qcom: sm8750: add the EL2 overlay
---
arch/arm64/boot/dts/qcom/Makefile | 4 +++
arch/arm64/boot/dts/qcom/sm8750-el2.dtso | 33 ++++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/sm8750-el2.dtso
@EmbeddedAndroid
EmbeddedAndroid / 0001-WIP-arm64-dts-qcom-sm8750-add-the-EL2-overlay.patch
Created October 21, 2026 16:08
Linux patches for the SM8750 (Pakala) MTP on the open boot stack
From 627f09fc3f9fbfb6c41952f582ae3cdbe0bbd102 Mon Sep 17 00:00:00 2001
From: Tyler Baker <tyler.baker@oss.qualcomm.com>
Date: Thu, 8 Oct 2026 22:35:15 -0400
Subject: [PATCH 1/3] WIP: arm64: dts: qcom: sm8750: add the EL2 overlay
---
arch/arm64/boot/dts/qcom/Makefile | 4 +++
arch/arm64/boot/dts/qcom/sm8750-el2.dtso | 33 ++++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 100644 arch/arm64/boot/dts/qcom/sm8750-el2.dtso
@EmbeddedAndroid
EmbeddedAndroid / 0000-README.txt
Created October 16, 2026 20:37
Arduino UNO Q (Agatti) Linux patches for the open boot firmware stack (22, no EUD)
Arduino UNO Q (Agatti) Linux patches for the open boot firmware stack, without the EUD series.
Base: arduino/linux-qcom qcom-v7.0.14-unoq @ f2e5cd16ede51a1bfaf2d4e179b74c6aaca8e438
Apply: git checkout f2e5cd16ede5 && git am *.patch
Validated in LAVA: https://lava.infra.foundries.io/scheduler/job/466519
@EmbeddedAndroid
EmbeddedAndroid / xtest-8073-v8-vq-493189.txt
Created October 16, 2026 18:36
OP-TEE xtest: PR 8073 v8 (qcom PAS for the Monaco DSPs) on the Arduino VENTUNO Q
Board: Arduino VENTUNO Q (QCS8275)
OP-TEE: PR 8073 ac4fb312b, MONZAFP-261016-132234-pas8
LAVA job: https://lava.infra.foundries.io/scheduler/job/493189
Run test suite with level=0
TEE test application started over default TEE instance
######################################################
#
# regression
@EmbeddedAndroid
EmbeddedAndroid / xtest-8124-v2-lemans-492936.txt
Created October 16, 2026 13:09
OP-TEE xtest: PR 8124 (iris CP and seed) on the IQ-9075 EVK
Board: IQ-9075 EVK (Lemans)
OP-TEE: PR 8124 7fc476cfc (same tree as the tested build), LEMANSFP-261016-114635-iriscp7
LAVA job: https://lava.infra.foundries.io/scheduler/job/492936
Run test suite with level=0
TEE test application started over default TEE instance
######################################################
#
# regression
@EmbeddedAndroid
EmbeddedAndroid / xtest-8124-v2-rb3-492935.txt
Created October 16, 2026 13:09
OP-TEE xtest: PR 8124 (iris CP and seed) on the RB3 Gen 2
Board: RB3 Gen 2 (QCS6490)
OP-TEE: PR 8124 7fc476cfc plus three Kodiak PAS commits outside this PR (ADSP/CDSP shutdown, EUD map), RB3G2FP-261016-114635-iriscp7
LAVA job: https://lava.infra.foundries.io/scheduler/job/492935
Run test suite with level=0
TEE test application started over default TEE instance
######################################################
#
# regression