Re: Adding a Kernel Module in base-hw

2015-04-21 Thread Martin Stein
Hi Franc, On 16.04.2015 14:11, Franc sylvester wrote: > Currently, I am working on i.MX6 board. I just want to create a function > like dump() in tz_vmm as in another application which will print the > state of the system without using vmm. > > I tried to use cpu_sate.h in my application but wh

Re: Adding a Kernel Module in base-hw

2015-04-16 Thread Franc sylvester
On Thu, Apr 16, 2015 at 5:34 PM, Martin Stein wrote: > 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 > >

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 regi

Re: Adding a Kernel Module in base-hw

2015-04-16 Thread Franc sylvester
Thanks Martin, 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 Regards, Franc On Thu, Apr 16, 2015 at 5:13 PM, Martin Stein wrote: > Hi Franc, > > On 16.04.2015 12:01, Franc syl

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-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 w

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, Stef

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

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

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 a

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 cal