devmem return bus error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

devmem return bus error

Jump to solution
5,042 Views
240697273
Contributor I

board: custom board based on imx6ull

kernel: 4.19.35 or 4.1.15

i want to see ecspi1 kernel config, we exec 'devmem 200800c 32', it return 'bus error', even though i see ARM: i.MX25: globally disable supervisor protect · torvalds/linux@24bb244 · GitHub , but i still don't know what should i do.  

i have tried that add 'imx_aips_allow_unprivileged_access("fsl,aips-bus")' and 'imx_aips_allow_unprivileged_access("fsl,spba-bus")'  and   'imx_aips_allow_unprivileged_access("fsl,imx6ull")' and 'imx_aips_allow_unprivileged_access("fsl,imx6ul-ecspi")' , all is return bus error, help me, thanks

0 Kudos
1 Solution
4,694 Views
igorpadykov
NXP Employee
NXP Employee

Hi he

devmem is not supported by nxp, one can try with memtool

memtool\test - imx-test - i.MX Driver Test Application Software 

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.4.tar.gz

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

View solution in original post

0 Kudos
1 Reply
4,695 Views
igorpadykov
NXP Employee
NXP Employee

Hi he

devmem is not supported by nxp, one can try with memtool

memtool\test - imx-test - i.MX Driver Test Application Software 

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.4.tar.gz

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

0 Kudos