Memtool access of 0x020F.... address space hangs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Memtool access of 0x020F.... address space hangs

ソリューションへジャンプ
2,981件の閲覧回数
jayakumar2
Contributor V

Hi fsl friends,

I noticed that on my 6sololite board, memtools works fine for some address spaces but causes the system to hang when the 0x020Fxxxx address space is accessed. For example:

root@imx6slevk:~# /unit_tests/memtool -32 0x021b8020 1

E

Reading 0x1 count starting at address 0x021B8020

0x021B8020:  17010000

whereas:

root@imx6slevk:~# /unit_tests/memtool -32 0x020F4220 1

E

Reading 0x1 count starting at ad

<hang>

and another address in that range:

oot@imx6slevk:~# /unit_tests/memtool -32 0x020F4000 1

E

Reading 0x1 count starting at ad

<hang>

The system does not complete the printf (shows ad instead of address) and the system hangs. That leads me to suspect that the read transaction causes the system to hang. The same behavior also occurs with devregs so the fault is not specific to memtool. Both use /dev/mem so I presume the issue comes from something to do with memory mapping setup.

I'm wondering what could cause this and if you have any advice/suggestions on how to enable userspace access to that region.

Thanks,

jaya

ラベル(2)
タグ(1)
0 件の賞賛
1 解決策
2,413件の閲覧回数
Yuri
NXP Employee
NXP Employee

  Please try to enable all clocks :

    

//=============================================================================
// Enable all clocks (they are disabled by ROM code)
//=============================================================================
setmem /320x020c4068 =0xffffffff
setmem /320x020c406c =0xffffffff
setmem /320x020c4070 =0xffffffff
setmem /320x020c4074 =0xffffffff
setmem /320x020c4078 =0xffffffff
setmem /320x020c407c =0xffffffff
setmem /320x020c4080 =0xffffffff


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
1 返信
2,414件の閲覧回数
Yuri
NXP Employee
NXP Employee

  Please try to enable all clocks :

    

//=============================================================================
// Enable all clocks (they are disabled by ROM code)
//=============================================================================
setmem /320x020c4068 =0xffffffff
setmem /320x020c406c =0xffffffff
setmem /320x020c4070 =0xffffffff
setmem /320x020c4074 =0xffffffff
setmem /320x020c4078 =0xffffffff
setmem /320x020c407c =0xffffffff
setmem /320x020c4080 =0xffffffff


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛