Skip to content

Instantly share code, notes, and snippets.

@DhruvaG2000
Created August 29, 2023 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DhruvaG2000/7728ec09ae49c8c0d44d8e99de6795d5 to your computer and use it in GitHub Desktop.
Save DhruvaG2000/7728ec09ae49c8c0d44d8e99de6795d5 to your computer and use it in GitHub Desktop.
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 euid=0 suid=0 fsuid=0 egid=0 sgid)
[ 64.882006] (sd-executor)[622]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[ 64.905177] audit: type=1327 audit(1693288817.225:15): proctitle="(systemd)"
[ 64.920821] audit: type=1334 audit(1693288817.249:16): prog-id=13 op=UNLOAD
[ 64.927940] audit: type=1300 audit(1693288817.249:16): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=ffff9cda6020 a2=0 a3=ffff9cda67e0 items=0 ppid=1 pid=620 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 eg)
[ 64.954176] audit: type=1327 audit(1693288817.249:16): proctitle="(systemd)"
[ 64.961332] audit: type=1334 audit(1693288817.249:17): prog-id=14 op=LOAD
root@am62xx-evm:~#
root@am62xx-evm:~#
root@am62xx-evm:~#
root@am62xx-evm:~#
root@am62xx-evm:~# uname -a
Linux am62xx-evm 6.5.0-next-20230828-00002-g47b9ba3f61ba #4 SMP PREEMPT Mon Aug 28 19:28:31 IST 2023 aarch64 aarch64 aarch64 GNU/Linux
root@am62xx-evm:~# devmem2 0x0FC40000 # this is the OSPI base reg in AM62x
/dev/mem opened.
[ 114.566979] kauditd_printk_skb: 5 callbacks suppressed
Memory mapped at address 0xffffbe7b9000.
[ 114.566999] audit: type=1701 audit(1693288866.961:19): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=638 comm="devmem2" exe="/usr/bin/devmem2" sig=7 res=1
[ 114.606688] audit: type=1334 audit(1693288867.001:20): prog-id=15 op=LOAD
[ 114.613602] audit: type=1334 audit(1693288867.005:21): prog-id=16 op=LOAD
Bus error (core dumped)
root@am62xx-evm:~# [ 115.054485] audit: type=1334 audit(1693288867.449:22): prog-id=16 op=UNLOAD
[ 115.063290] audit: type=1334 audit(1693288867.449:23): prog-id=15 op=UNLOAD
root@am62xx-evm:~#
root@am62xx-evm:~# # Shows that the OSPI controller is powered off
root@am62xx-evm:~#
root@am62xx-evm:~# ls /sys/bus/platform/devices/fc40000.spi/power/
autosuspend_delay_ms control runtime_active_time runtime_status runtime_suspended_time
root@am62xx-evm:~# cat /sys/bus/platform/devices/fc40000.spi/power/*
2000
auto
5528
suspended
132639
root@am62xx-evm:~# dd if=/dev/mtd0 of=resumetest1 count=2 bs=50K
2+0 records in
2+0 records out
102400 bytes (102 kB, 100 KiB) copied, 0.00438729 s, 23.3 MB/s
root@am62xx-evm:~#
root@am62xx-evm:~#
root@am62xx-evm:~#
root@am62xx-evm:~# hexdump -C resumetest1 | sed 40q
00000000 30 82 04 94 30 82 03 fd a0 03 02 01 02 02 14 63 |0...0..........c|
00000010 50 11 e1 70 40 48 77 c4 00 9e cc cb ae 77 f3 48 |P..p@Hw......w.H|
00000020 d7 31 68 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0d |.1h0...*.H......|
00000030 05 00 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02 |..0..1.0...U....|
00000040 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31 |US1.0...U....TX1|
00000050 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73 |.0...U....Dallas|
00000060 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73 |1'0%..U....Texas|
00000070 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63 | Instruments Inc|
00000080 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55 |orporated1.0...U|
00000090 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13 |....Processors1.|
000000a0 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70 |0...U....TI Supp|
000000b0 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01 |ort1.0...*.H....|
000000c0 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63 |....support@ti.c|
000000d0 6f 6d 30 1e 17 0d 32 33 30 36 32 32 30 38 33 38 |om0...2306220838|
000000e0 33 35 5a 17 0d 32 33 30 37 32 32 30 38 33 38 33 |35Z..23072208383|
000000f0 35 5a 30 81 9d 31 0b 30 09 06 03 55 04 06 13 02 |5Z0..1.0...U....|
00000100 55 53 31 0b 30 09 06 03 55 04 08 0c 02 54 58 31 |US1.0...U....TX1|
00000110 0f 30 0d 06 03 55 04 07 0c 06 44 61 6c 6c 61 73 |.0...U....Dallas|
00000120 31 27 30 25 06 03 55 04 0a 0c 1e 54 65 78 61 73 |1'0%..U....Texas|
00000130 20 49 6e 73 74 72 75 6d 65 6e 74 73 20 49 6e 63 | Instruments Inc|
00000140 6f 72 70 6f 72 61 74 65 64 31 13 30 11 06 03 55 |orporated1.0...U|
00000150 04 0b 0c 0a 50 72 6f 63 65 73 73 6f 72 73 31 13 |....Processors1.|
00000160 30 11 06 03 55 04 03 0c 0a 54 49 20 53 75 70 70 |0...U....TI Supp|
00000170 6f 72 74 31 1d 30 1b 06 09 2a 86 48 86 f7 0d 01 |ort1.0...*.H....|
00000180 09 01 16 0e 73 75 70 70 6f 72 74 40 74 69 2e 63 |....support@ti.c|
00000190 6f 6d 30 81 9d 30 0d 06 09 2a 86 48 86 f7 0d 01 |om0..0...*.H....|
000001a0 01 01 05 00 03 81 8b 00 30 81 87 02 81 81 00 d1 |........0.......|
000001b0 7e b9 d7 41 a3 f4 93 ab d1 2b f8 19 f9 b0 df 95 |~..A.....+......|
000001c0 25 3a cb 52 5a 80 67 90 fd bf 90 62 e8 83 cf 5e |%:.RZ.g....b...^|
000001d0 23 6a 9a 20 f1 f4 52 bb 95 81 b0 0c 5a 49 ac 92 |#j. ..R.....ZI..|
000001e0 01 4c 12 dc bf 4f a7 0f a1 18 c7 9c 9b 22 09 e3 |.L...O......."..|
000001f0 de 1a 31 f6 53 b6 4d 60 e3 d8 14 e7 c8 e8 76 e8 |..1.S.M`......v.|
00000200 91 9e ee de 41 26 47 32 77 a1 86 e3 65 7c 3e c0 |....A&G2w...e|>.|
00000210 da d0 00 2a 7c 48 62 e6 9b b3 cc c7 60 cf d2 4b |...*|Hb.....`..K|
00000220 d3 5e ee dd e4 21 03 1b 29 f5 12 cc dc ba a9 02 |.^...!..).......|
00000230 01 01 a3 82 01 cf 30 82 01 cb 30 0c 06 03 55 1d |......0...0...U.|
00000240 13 04 05 30 03 01 01 ff 30 12 06 09 2b 06 01 04 |...0....0...+...|
00000250 01 82 26 01 03 04 05 30 03 02 01 01 30 82 01 a5 |..&....0....0...|
00000260 06 09 2b 06 01 04 01 82 26 01 09 04 82 01 96 30 |..+.....&......0|
00000270 82 01 92 02 03 04 c4 4c 02 01 04 30 61 02 01 01 |.......L...0a...|
root@am62xx-evm:~#
root@am62xx-evm:~# k3conf dump device 74 && k3conf dump device 75
|------------------------------------------------------------------------------|
| VERSION INFO |
|------------------------------------------------------------------------------|
| K3CONF | (version v0.1-90-g1dd468d built Mon Jul 3 12:39:42 AM UTC 2023) |
| SoC | AM62X SR1.0 |
| SYSFW | ABI: 3.1 (firmware version 0x0009 '9.0.5--v09.00.05 (Kool Koala))') |
|------------------------------------------------------------------------------|
|------------------------------------------------------|
| Device ID | Device Name | Device Status |
|------------------------------------------------------|
| 74 | AM62X_DEV_FSS0_FSAS_0 | DEVICE_STATE_OFF |
|------------------------------------------------------|
|------------------------------------------------------------------------------|
| VERSION INFO |
|------------------------------------------------------------------------------|
| K3CONF | (version v0.1-90-g1dd468d built Mon Jul 3 12:39:42 AM UTC 2023) |
| SoC | AM62X SR1.0 |
| SYSFW | ABI: 3.1 (firmware version 0x0009 '9.0.5--v09.00.05 (Kool Koala))') |
|------------------------------------------------------------------------------|
|------------------------------------------------------|
| Device ID | Device Name | Device Status |
|------------------------------------------------------|
| 75 | AM62X_DEV_FSS0_OSPI_0 | DEVICE_STATE_OFF |
|------------------------------------------------------|
root@am62xx-evm:~# dd if=/dev/mtd0 of=resumetest1 count=2 bs=50K
2+0 records in
2+0 records out
102400 bytes (102 kB, 100 KiB) copied, 0.00433201 s, 23.6 MB/s
root@am62xx-evm:~# devmem2 0x0FC40000 # this is the OSPI base reg in AM62x
/dev/mem opened.
Memory mapped at address 0xffffba478000.
Read at address 0x0FC40000 (0xffffba478000): 0xC1183881
root@am62xx-evm:~#
root@am62xx-evm:~# # when device is resumed the same reg can be accessed correctly
root@am62xx-evm:~# devmem2 0x0FC40000 # this is the OSPI base reg in AM62x
/dev/mem opened.
[ 209.347822] audit: type=1701 audit(1693288961.739:24): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=654 comm="devmem2" exe="/usr/bin/devmem2" sig=7 res=1
Memory mapped at address 0xffff91416000.
[ 209.381010] audit: type=1334 audit(1693288961.775:25): prog-id=17 op=LOAD
[ 209.388022] audit: type=1334 audit(1693288961.779:26): prog-id=18 op=LOAD
Bus error (core dumped)
root@am62xx-evm:~# [ 209.813142] audit: type=1334 audit(1693288962.207:27): prog-id=18 op=UNLOAD
[ 209.820228] audit: type=1334 audit(1693288962.207:28): prog-id=17 op=UNLOAD
root@am62xx-evm:~#
root@am62xx-evm:~#
root@am62xx-evm:~# # device auto-suspended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment