Tool/software:
Is there a way to read registers from soc on booted linux?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
You'll find AM335x SoC MMR addressed from AM335x TRM.
https://www.ti.com/lit/pdf/spruh73
Best,
-Hong
Example
Example for devmem
get
base address of CM_PER: 0x44E0_0000 (from page 179 in https://www.ti.com/lit/pdf/spruh73)
offset of CM_PER_MCASP0: 34h
enable CLK (0x2 is for value for enabling clock)
root@Testboard:~# devmem2 0x44e00034 w 0x2
/dev/mem opened.
Memory mapped at address 0xb6f4e000.
Value at address 0x44E00034 (0xb6f4e034): 0x2
read
root@Testboard:~# devmem2 0x44e00034 0x2
/dev/mem opened.
Memory mapped at address 0xb6f4e000.
Value at address 0x44E00034 (0xb6f4e034): 0x2
read also other e.g. McASP0 DMA 0x4600_0000
root@Testboard:~# devmem2 0x46000000
/dev/mem opened.
Memory mapped at address 0xb6f8b000.
Value at address 0x46000000 (0xb6f8b0b8): 0x0