Skip to content

Instantly share code, notes, and snippets.

View DhruvaG2000's full-sized avatar
:atom:
Open Source all the way!

Dhruva Gole DhruvaG2000

:atom:
Open Source all the way!
View GitHub Profile
@DhruvaG2000
DhruvaG2000 / ti_cc3220sf.cfg
Created April 23, 2023 08:57
fix open ocd flashing issue on cc3220sf
cat sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/ti_cc3220sf.cfg
File: sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts/target/ti_cc3220sf.cfg
#
# Texas Instruments CC3220SF - ARM Cortex-M4
#
# http://www.ti.com/CC3220SF
#
source [find target/swj-dp.tcl]
source [find target/icepick.cfg]
@DhruvaG2000
DhruvaG2000 / OSPI_PM_Hooks_test
Created April 17, 2023 06:33
``./runltp -P am62xx-sk -f ddt/ospi_mtd_dd_rw_ubifs -s "OSPI_S_FUNC_DD_RW_ERASESIZE_UBIFS"`` runnning on AM62 SK EVM before and after suspend resume
[2023-04-17 11:16:50] root@am62xx-evm:~# dmesg | grep -i spi
[2023-04-17 11:16:54] [ 0.000000] GICv3: 256 SPIs implemented
[2023-04-17 11:16:54] [ 0.000000] GICv3: 0 Extended SPIs implemented
[2023-04-17 11:16:54] [ 1.441838] spi-nor spi0.0: s28hs512t (65536 Kbytes)
[2023-04-17 11:16:54] [ 1.447593] 7 fixed-partitions partitions found on MTD device fc40000.spi.0
[2023-04-17 11:16:54] [ 1.454581] Creating 7 MTD partitions on "fc40000.spi.0":
[2023-04-17 11:16:54] [ 1.459977] 0x000000000000-0x000000080000 : "ospi.tiboot3"
[2023-04-17 11:16:54] [ 1.466904] 0x000000080000-0x000000280000 : "ospi.tispl"
[2023-04-17 11:16:54] [ 1.473432] 0x000000280000-0x000000680000 : "ospi.u-boot"
[2023-04-17 11:16:54] [ 1.479982] 0x000000680000-0x0000006c0000 : "ospi.env"
DT Changes needed:
diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
index 2a1adda9bff6..fcd2520f79c9 100644
--- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts
+++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts
@@ -216,14 +216,14 @@ &ospi0 {
flash@0{
compatible = "jedec,spi-nor";
QSPI S25HS512T Boot on modified AM62 SK EVM (GP)
diff based on tag: 08.06.00.007
-----------------------------------------------
diff --git a/arch/arm/dts/k3-am625-sk.dts b/arch/arm/dts/k3-am625-sk.dts
index bfe1e78ed895..980054144d20 100644
--- a/arch/arm/dts/k3-am625-sk.dts
+++ b/arch/arm/dts/k3-am625-sk.dts
@@ -32,8 +32,8 @@
flash@0{
[2023-04-10 15:27:47] Starting kernel ...
[2023-04-10 15:27:47]
[2023-04-10 15:27:47] [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[2023-04-10 15:27:47] [ 0.000000] Linux version 6.1.12-00218-g5c5b4a4f75a4 (dhruva@dhruva-HP-Z2-Tower-G5-Workstation)3
[2023-04-10 15:27:47] [ 0.000000] Machine model: Texas Instruments AM625 SK
[2023-04-10 15:27:47] [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[2023-04-10 15:27:47] [ 0.000000] printk: bootconsole [ns16550a0] enabled
[2023-04-10 15:27:47] [ 0.000000] efi: UEFI not found.
[2023-04-10 15:27:47] [ 0.000000] Reserved memory: created DMA memory pool at 0x000000009db00000, size 12 MiB
[2023-04-10 15:27:47] [ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@9db00000, compatible id shared-dml
à
U-Boot SPL 2021.01-g2ee8efd654 (Feb 24 2023 - 05:59:23 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
SPL initial stack usage: 13424 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
git log:
c1d2fd6a9e7e (HEAD -> master) spi: cadence-quadspi: Use STIG mode for all ops with small payload
a1b323d31944 spi: cadence-quadspi: Fix check condition for DTR ops
c84a00a64705 (origin/master, origin/HEAD) Merge branch '2023-03-22-assorted-fixes'
################## AM62 SK EVM UBoot console with sf r/w/update commands: #########################################
U-Boot 2023.04-rc4-00046-gc1d2fd6a9e7e (Mar 23 2023 - 21:50:54 +0530)
SoC: AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
@DhruvaG2000
DhruvaG2000 / rtctest_results_on_am62x.logs
Last active March 21, 2023 04:18
rtctest_results_on_am62x logs
ð
U-Boot SPL 2021.01-g2ee8efd654 (Feb 24 2023 - 05:52:36 +0000)
[2023-03-21 09:40:22] SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
[2023-03-21 09:40:22] SPL initial stack usage: 13424 bytes
[2023-03-21 09:40:22] Trying to boot from MMC2
[2023-03-21 09:40:22] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-03-21 09:40:22] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-03-21 09:40:22] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-03-21 09:40:22] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-03-21 09:40:22] Warning: Detected image signing certificate on
ððð
[2023-02-21 16:12:02.473] U-Boot SPL 2021.01-g62a9e51344 (Feb 17 2023 - 18:49:02 +0000)
[2023-02-21 16:12:02.489] SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.4--v08.06.04 (Chill Capybar')
[2023-02-21 16:12:02.521] SPL initial stack usage: 13424 bytes
[2023-02-21 16:12:02.553] Trying to boot from MMC2
[2023-02-21 16:12:02.585] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-02-21 16:12:02.617] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-02-21 16:12:02.649] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-02-21 16:12:02.665] Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
[2023-02-21 1
ð
U-Boot SPL 2021.01-g977a26a298 (Feb 10 2023 - 01:18:10 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
SPL initial stack usage: 13424 bytes
Trying to boot from MMC2
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted