devmem2 bus error on VF50

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

devmem2 bus error on VF50

跳至解决方案
4,010 次查看
tomaszciesla
Contributor I

hi is there a memtool for VFxxx F like for iMX?

https://community.nxp.com/t5/i-MX-Processors/devmem-return-bus-error/td-p/1033596

We want to access directly registers for tests. devmem2 works only with some of them:

root@col-vf50:~# devmem2 0x400481dc
/dev/mem opened.
Memory mapped at address 0x76f4a000.
Read at address 0x400481DC (0x76f4a1dc): 0x000022ED

root@col-vf50:~# devmem2 0x400d0024
/dev/mem opened.
Memory mapped at address 0x76f2f000.
Bus error

标签 (1)
0 项奖励
1 解答
3,930 次查看
tomaszciesla
Contributor I

error occurs when there's no clock enabled for the subsystem:

   devmem2 0x4006b064 w 0x0000000f

unlocks read of Ethernet registers

   root@col-vf50:~# devmem2 0x400d0024
   /dev/mem opened.
   Memory mapped at address 0x76f93000.
   Read at address 0x400D0024 (0x76f93024): 0xF0000000

在原帖中查看解决方案

0 项奖励
2 回复数
3,975 次查看
jamesbone
NXP TechSupport
NXP TechSupport
0 项奖励
3,931 次查看
tomaszciesla
Contributor I

error occurs when there's no clock enabled for the subsystem:

   devmem2 0x4006b064 w 0x0000000f

unlocks read of Ethernet registers

   root@col-vf50:~# devmem2 0x400d0024
   /dev/mem opened.
   Memory mapped at address 0x76f93000.
   Read at address 0x400D0024 (0x76f93024): 0xF0000000

0 项奖励