access to hardware registers using KGDB on ARM

2013-04-24 Thread Андрей Скворцов
Hello everyone, I have arm SoC AM3517 (Cortex-A8) running linux 2.6.32. I am trying to access hardware registers using kgdb. I can connect to the board via RS232, can read variables in kernel space, control processes using breakpoints, but I can't read hardware register. For example, I am trying

Re: Dynamic Sysfs Attribute Files

2013-04-24 Thread Rami Rosen
Hi, Take a look in: http://lxr.free-electrons.com/source/Documentation/filesystems/sysfs.txt You should consider the sysfs API like sysfs_create_dir(), sysfs_create_group(), sysfs_create_file() Best Regards, Rami Rosen http://ramirose.wix.com/ramirosen

Re: Dynamic Sysfs Attribute Files

2013-04-24 Thread Tobias Boege
On Wed, 24 Apr 2013, Matt Davis wrote: Hello, I want my kernel module to dynamically add sysfs files for its corresponding device. Without going into detail, the attribute file will be named something like: /sys/class/myclass/mydev0/fileX where 'X' is an integer ranging from 1-256. I did

[HELP]CPU in SYSFS:/sys/devices/system/cpu/cpu0/microcode

2013-04-24 Thread Ren Zhen
Hi all: Can anyone help me to understand the usage of 'microcode' in /sys/devices/system/cpu/cpu0/. - mysystem: /sys/devices/system/cpu/cpu0/ #ls processor_flags reload version