Dear All,
I am just wondering if there is a kernel module in Davinci Linux OS that allow me to access all the register in DM6467? is GPIO lib can do that? Thanks.
Jim
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.
Dear All,
I am just wondering if there is a kernel module in Davinci Linux OS that allow me to access all the register in DM6467? is GPIO lib can do that? Thanks.
Jim
Hi Jim,
You can use busybox devmem to access hardware registers from user space.
You can control GPIOs using sysfs. You can read about it at
https://www.ridgerun.com/developer/wiki/index.php/How_to_use_GPIO_signals
Todd
Todd,
Thanks. the busybox version of devmem is a utility, I tried it, but seems not reliable, sometimes, the value get into register correct, sometimes, it doesn't, I don't know if something is missing here. Are there any other tools?
Jim
I just retested again, and found out that devmem2 cannot write the value to given register, but can read the value from any given register, this means that we don't have write access, but read access to the register, is there any lock mechanism to lock the resource before to write it? Thanks.
jim xu said:I just retested again, and found out that devmem2 cannot write the value to given register, but can read the value from any given register, this means that we don't have write access, but read access to the register, is there any lock mechanism to lock the resource before to write it? Thanks.
You are in fact correct. I've seen little documentation about accessing the register in supervisor mode other then what I've stumbled upon. Someone at TI wrote a module to do exactly what you want to do. I haven't tested it as I've resorted to using JTAG for reconfiguring those registers.
Check it out:
SVN repository: https://gforge.ti.com/gf/project/omapreg_debug/scmsvn/?action=browse&path=%2Ftrunk%2F
I tried to get the files from SVN repository, but failed, do you know if there is other link available? Thanks.
The Debug tools is not working for DM6467, may work for OMAP. any tools for DM6467?