I have an ARM Samsung Chromebook running Ubuntu (chrUbuntu 12.04).
What is the easiest way to run some code in ARM 'privileged' state? I'm not looking for sudo, I'm looking for ARM processor mode of Supervisor, IRQ, FIQ, etc. Someplace I can probe/modify the coprocessor registers.
It's easy to get to priv mode: just do an SVC call. The question is, what is the easiest way to get some of my own code plugged into the OS so it gets called on a certain SVC call?
I'm not much of a Linux hacker. Mostly I'm looking for general pointers on the easiest general direction (rebuild the kernel? grab some driver source and hook in a modified driver? some easy command line option to run something priv?), then I'll go from there.
In case my above approach makes no sense and there is an easier way, my overall goal is:
Thanks in advance,
Paul
Easiest way to access coprocessors registers in case they are not allowed from user land is running some initialization code in kernel boot up sequence like board-init or write a kernel module to do what you want. See this answer. Also if interested, this question.