Re: Adding a Kernel Module in base-hw

2015-04-16 Thread Franc sylvester
Hello Martin, I used this explanation to write a system call but i am not able to get user argument value inside the system call. Can you provide some more information to get argument value inside the system call. Thanks in advance, Cheers, Franc On Mon, Jan 19, 2015 at 4:05 PM, Martin Stein

Re: Adding a Kernel Module in base-hw

2015-04-16 Thread Martin Stein
Hi Franc, On 16.04.2015 13:52, Franc sylvester wrote: I have one more doubt regarding reading the general purpose register in Genode. I want to read the General purpose register value. Can you give me some clue on this In which environment do you want to read whose general purpose

Re: Adding a Kernel Module in base-hw

2015-04-16 Thread Martin Stein
Hi Franc, On 16.04.2015 12:01, Franc sylvester wrote: I used this explanation to write a system call but i am not able to get user argument value inside the system call. Can you provide some more information to get argument value inside the system call. As you can see in the other system

Re: Adding a Kernel Module in base-hw

2015-01-20 Thread Franc sylvester
Hello Stefan, yes, you are correct the ultimate Goal is to run linux and Anroid on the top of Genode. The purpose of running Genode beside Genode is just learning and having a good understanding in Genode with the a TrustZone ready prototype. Regards, Franc On Tue, Jan 20, 2015 at 12:58 PM,

Re: Adding a Kernel Module in base-hw

2015-01-19 Thread Stefan Kalkowski
Hello Franc On 01/19/2015 08:21 PM, Franc sylvester wrote: Hello Christian, Thanks a lot for your reply. Essentially I want to demonstrate following TrustZone scenario over the imx53 QSB board. Now, I want to switch the control from Normal world OS (Genode) back to the Secure world OS

Re: Adding a Kernel Module in base-hw

2015-01-19 Thread Martin Stein
Hi Franc, The easiest way to trigger privileged code from userland is by adding a new syscall to the base-hw kernel. To achieve this, you first have to adapt the kernel-interface description. Let me give you some background for this. There are two types of syscalls, public syscalls that can be

Re: Adding a Kernel Module in base-hw

2015-01-19 Thread Christian Helmuth
Hello Franc, On Mon, Jan 19, 2015 at 03:34:06PM +0530, Franc sylvester wrote: I am stuck at one point because of lack of understanding in Genode, Actually I want to execute some assembly instruction in privileged mode in base-hw kernel from a user script. So I need to know, How will I add a

Adding a Kernel Module in base-hw

2015-01-19 Thread Franc sylvester
Hello everyone, I am stuck at one point because of lack of understanding in Genode, Actually I want to execute some assembly instruction in privileged mode in base-hw kernel from a user script. So I need to know, How will I add a kernel module which will execute assembly instruction and how can

Re: Adding a Kernel Module in base-hw

2015-01-19 Thread Franc sylvester
Hello Christian, Thanks a lot for your reply. Essentially I want to demonstrate following TrustZone scenario over the imx53 QSB board. Now, I want to switch the control from Normal world OS (Genode) back to the Secure world OS (Genode) by triggering(running a particular script in Normal