[GSoC|virtLayer] HelloWorld sample runs

Cláudio Silva claudiodcsilva at gmail.com
Mon Jul 8 20:35:21 UTC 2013


Nice work!
Can you describe your next step to the other mentors?

Cláudio


On Mon, Jul 8, 2013 at 9:26 PM, Joel Sherrill <joel.sherrill at oarcorp.com>wrote:

> Great!
>
> Now for time to pass. :)
>
>
> On 7/8/2013 1:56 PM, Philipp Eppelt wrote:
>
>> Hi,
>>
>> I managed to compile and run the HelloWorld sample on POK. :)
>>
>> Also I set up a blog explaining the build process (5 steps), the current
>> development status of the POK and RTEMS side and some issues I faced
>> (GDB, Memory & AADL Model).
>>
>> Have a look:
>> http://phipse.github.io/rtems/
>>
>>
>> Here an excerpt from the posts:
>>
>> # POK:
>> rtems-guest is the project containing the AADL model and user code to
>> build a partition, which should later become RTEMS. The user code
>> implements the virtualization layer.
>> After invoking make and letting ocarina(AADL compiler) generating code,
>> the part1/Makefile needs to be modified to produce libpart.a - a library
>> containing all objects necessary to run the partition, this means
>> libpok.a and the user code objects.
>>
>> # RTEMS:
>> The generated libpart.a needs to be provided to i386/virtPok BSP, the
>> build process for this BSP will fail, if libpart.a is not present
>> (Intended!).
>> Then a build directory needs to be created and configured with
>> --target=i386-rtems4.11  --enable-rtemsbsp=virtPok
>>
>> This will build the hello world sample and then fail. As the BSP is
>> currently not providing a clock.
>>
>> # POK again:
>> The binary - hello.exe - is a fully functional POK partition. So it goes
>> back into the partition used to build libpart.a earlier and overwrite
>> part1.elf.
>> After rebuilding the POK kernel binary, pok.elf, you can invoke 'make
>> run'.
>>
>> # Issue - Memory pointer:
>> At runtime the partition created a file buffering the writes to pass
>> them as one to the kernel. The kernel then checks if the pointer is in
>> the partitions memory area. This check failed, as the heap memory
>> defined in model.aadl was to small to over RTEMS and POK requirements.
>> After extending this, the pointer was valid.
>>
>>
>> Regards,
>> Philipp
>>
>
>
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel.sherrill at OARcorp.com        On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130708/3d3bc439/attachment-0001.html>


More information about the devel mailing list