RE: Minimal requirements to run L4linux using only a serial console

2014-08-30 Thread Masti Ramya Jayaram
Hi Martin,

I replied earlier to the list but I guess I messed it up a bit. Your tip on the 
polling turned out to be really helpful. I basically changed the type of 
serial_esc in kernel/fiasco/src/kern/config.cpp from SERIAL_ESC_IRQ to 
SERIAL_ESC_NOIRQ and it works! It would be great if you can elaborate on the 
difference  (I am guessing the latter uses a poll based system but more 
explanation would be great).

I was even able to run l4 and fiasco on the actual SCC hardware and get the 
UART RX to work. So thanks a ton for the tip! :)

Best,
Ramya 


From: Martin Schröder [mschroe...@web.de]
Sent: 29 August 2014 23:23
To: Masti  Ramya Jayaram; l4-hackers@os.inf.tu-dresden.de
Subject: Re: Minimal requirements to run L4linux using only a serial console

Hi Ramya,

Tx path of UART is working but the Rx part not due to missing
interrupts. In the Tx part interrupts are not really required - alt
least not for Hello World. I also don't care about the missing H right
now. So the first step would be polling the fiasco UART every 100ms or
so instead of waitung for interrupts.


Best regards,
Martin


I don't care abount the missing H, this could be anything.

Am 29.08.2014 17:45, Masti Ramya Jayaram schrieb:
 Hey Martin,

 No I just realized that ESC does not break into the debugger. But I can 
 clearly see that the process instead of printing Hello world prints ello 
 World :)

 What could the reason be?

 Thanks,
 Ramya
 
 From: l4-hackers [l4-hackers-boun...@os.inf.tu-dresden.de] on behalf of 
 Martin Schröder [martin.schroe...@openlimit.com]
 Sent: 29 August 2014 17:35
 To: l4-hackers@os.inf.tu-dresden.de
 Subject: Re: Minimal requirements to run L4linux using only a serial console

 Hi Ramya,

 a: No, its not a must. The UART could also be polled (by a timer) to see if 
 something arrived.
 b: At least regarding l4linux there is nothing more to it - afaik.

 But let's go back to the hello word example on the SCC. What happens if you 
 press the ESC key? Does it break into the JDB debugger?

 Best regards,
  Martin


___
l4-hackers mailing list
l4-hackers@os.inf.tu-dresden.de
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers


Checking executables before running them in L4re/fiasco

2014-08-30 Thread Masti Ramya Jayaram
Dear all,

I am using fiasco/l4re to run applications (say hello world) and L4linux. The 
module list in the two cases looks like this:

entry hello-cfg
kernel fiasco -serial_esc -freq=533000
roottask moe rom/hello.cfg
module l4re
module ned
module hello.cfg
module hello

entry l4linux
kernel fiasco -serial_esc -freq=533000
roottask moe rom/l4linux.cfg
module l4re
module ned
module l4linux.cfg
module io
module vmlinuz
module ramdisk-x86.rd

I would like to add some functionality that performs a few checks on hello and 
vmlinuz before they are executed. In this context, I have the following 
questions:

a. Where is it best to implement such functionality - moe or ned? Or should I 
implement a separate server and do this?
b. I need access to an special range of  IO memory when I perform the checks. i 
guess I could always use the io module and do l4io_request_iomem() . Would 
that be the right way to do it from moe/ned?
c. Is there a way to allocate/reserve a dedicated range of physical memory to 
these applications (hello/vmlinuz) so that they get allocated the same chunk 
everytime (of physical memory)?

Thanks in advance,
ramya

___
l4-hackers mailing list
l4-hackers@os.inf.tu-dresden.de
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers