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
root@am62xx-evm:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
11: 9298 7099 5820 5797 GICv3 30 Level arch_timer
14: 26 0 0 0 GICv3 108 Level mbox-r5-0, mbox-m4-0
15: 0 0 0 0 GICv3 23 Level arm-pmu
16: 7621 0 0 0 GICv3 66 Level 4d000000.mailbox thr_012
25: 0 0 0 0 GICv3 130 Level tiscirq
26: 2 0 0 0 ti-sci-wkup 128 Edge pinctrl
27: 3635 0 0 0 MSI-INTA 1713152 Level 485c0100.dma-controller chan0
45: 0 0 0 0 MSI-INTA 1714176 Edge 485c0100.dma-controller chan1
am62xx-evm login: root
[ 64.819756] audit: type=1006 audit(1693288817.213:14): pid=620 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
[ 64.832426] audit: type=1300 audit(1693288817.213:14): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffda7257b8 a2=1 a3=0 items=0 ppid=1 pid=620 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0)
[ 64.857865] audit: type=1327 audit(1693288817.213:14): proctitle="(systemd)"
[ 64.864974] audit: type=1334 audit(1693288817.225:15): prog-id=13 op=LOAD
[ 64.866081] systemd[620]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[ 64.871808] audit: type=1300 audit(1693288817.225:15): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffd9432c00 a2=78 a3=0 items=0 ppid=1 pid=620 auid=0 uid=0 gid=0
ð
[2023-08-01 11:43:06] U-Boot SPL 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)
[2023-08-01 11:43:06] SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
[2023-08-01 11:43:06] SPL initial stack usage: 13376 bytes
[2023-08-01 11:43:06] Trying to boot from MMC2
[2023-08-01 11:43:06] Authentication passed
[2023-08-01 11:43:06] Authentication passed
[2023-08-01 11:43:06] Authentication passed
[2023-08-01 11:43:06] Authentication passed
[2023-08-01 11:43:06] Authentication passed
U-Boot SPL 2023.04-g24098ea90d (Jul 06 2023 - 12:59:40 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
SPL initial stack usage: 13376 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
U-Boot SPL 2023.04-00034-g04925df43802 (Jul 03 2023 - 14:26:40 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
SPL initial stack usage: 13392 bytes
Trying to boot from MMC2
Starting ATF on ARM64 core...
NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
NOTICE: BL31: Built : 23:16:46, Mar 14 2023
root@am62xx-evm:~# uname -a
Linux am62xx-evm 6.4.0-rc1-next-20230508-g52025ebbb518-dirty #12 SMP PREEMPT Mon May 8 10:47:48 IST 2023 aarch64 aarch64 aarch64 GNU/Linux
...Boot logs below...
[ 1.407662] printk: bootconsole [ns16550a0] disabled
[ 1.424780] cqspi_command_read
[ 1.424827] **********spi_mem_op dump**************
[ 1.427880] addr: nbytes:0x0 , buswidth 0x0, dtr 0x0, val 0x0
[ 1.432766] cmd: nbytes:0x1 , buswidth 0x1, dtr 0x0, opcode 0x9F
@DhruvaG2000
DhruvaG2000 / main_uart wakeup
Created May 4, 2023 05:48
main_uart appears in cat proc interrupts and wake en bit is set as well (AM62x SK EVM)
root@am62xx-evm:~# cat /dev/ttyS3 &
[2] 1181
root@am62xx-evm:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
11: 11428 13904 12970 12276 GICv3 30 Level arch_timer
14: 0 0 0 0 GICv3 23 Level arm-pmu
15: 0 0 0 0 GICv3 132 Level 2b1f0000.rtc
16: 5475 0 0 0 GICv3 66 Level 4d000000.mailbox thr_012
17: 0 0 0 0 GICv3 130 Level pinctrl
26: 975 0 0 0 GICv3 211 Level 2810000.serial, 2800000.serial
@DhruvaG2000
DhruvaG2000 / OSPI_with_PHY before after lpm
Created April 24, 2023 12:16
AM62 OSPI performance before and after suspend resume on linux 6.1 lts
[2023-04-24 17:34:05] _____ _____ _ _
[2023-04-24 17:34:05] | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
[2023-04-24 17:34:05] | | _| .'| . | . | | __| _| . | | | -_| _| _|
[2023-04-24 17:34:05] |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
[2023-04-24 17:34:05] |___| |___|
[2023-04-24 17:34:05]
[2023-04-24 17:34:05] Arago Project am62xx-evm ttyS2
[2023-04-24 17:34:05]
[2023-04-24 17:34:05] Arago 2021.09 am62xx-evm ttyS2
[2023-04-24 14:43:34] am62xx-evm login: root
[2023-04-24 14:43:35] [ 29.732369] audit: type=1006 audit(1677214304.428:8): pid=1051 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
[2023-04-24 14:43:35] [ 29.744873] audit: type=1300 audit(1677214304.428:8): arch=c00000b7 syscall=64 success=yes exit=1 a0=7 a1=ffffcb93c368 a2=1 a3=ffffbc6277e0 items=0 ppid=1 pid=1051 au)
[2023-04-24 14:43:35] [ 29.771251] audit: type=1327 audit(1677214304.428:8): proctitle="(systemd)"
[2023-04-24 14:43:35] [ 29.778265] audit: type=1334 audit(1677214304.448:9): prog-id=9 op=LOAD
[2023-04-24 14:43:35] [ 29.784974] audit: type=1300 audit(1677214304.448:9): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffd460daf8 a2=70 a3=0 items=0 ppid=1 pid=1051 auid=0 uid=)
[2023-04-24 14:43:35] [ 29.810420] audit: type=1327 audit(1677214304.448:9): proctitle="(systemd)"
[2023-04-24 14:43:35] [ 29.817449] audit: type=1334 audit(1677214304.468:10): prog-id=9 op=UNLOAD
[2023-04-24 14:43:35] [ 29.82
@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]