<div dir="ltr">Hi Stefan,<div>         I am working along with Chirag to port Genode on imx6. </div><div><br></div><div>We inserted the existing RAM regions in <span style="font-family:arial,sans-serif;font-size:13px">Platform::_ram_regions.( We rechecked it with linux kernel source code for imx6) But still we are getting page fault on every access to new Rom_module.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I tried to track the memory allocation what I understood is, </span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px">In map_local() call,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">when inserting into page tables in "</span><font face="arial, sans-serif">_insert_second_level()" function in short_translation_table.h file of base-hw, slab->phys_addr() and slab->virt_addr() return 0 after kernel initialization. So it creates a new page table and inserting into it. Inserting the same values(phys:10000000, virt:1000) as arguments of map_local() function in platform.cc. </font></div>
<div><font face="arial, sans-serif">When I print the address of new page table created, I found that it is in the range of Program Image.(address of pt is 10159000, and program image range is (10001000-10189fa4).</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I wonder if the memory allotted is clashing with program memory.</font></div><div><span style="font-family:arial,sans-serif;font-size:13px">Or,</span></div>
<div><font face="arial, sans-serif">Can it be the issue with MMDC controller of imx6? Because no other board in base-hw uses MMDC controller, do we need to implement the interface for MMDC in imx6?</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">Thanks and Regards</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Praveen,</font></div><div><font face="arial, sans-serif">IIT Madras</font></div>
<div><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 6:43 PM, Stefan Kalkowski <span dir="ltr"><<a href="mailto:stefan.kalkowski@...1..." target="_blank">stefan.kalkowski@...1...</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div class="h5"><br>
On 07/28/2014 11:28 AM, chirag garg wrote:<br>
> Hi stefan,<br>
><br>
> Thanks a lot in Advance,<br>
><br>
> We are trying to debug the " Failed to communicate Thread Event ". And we<br>
> found that Platform is not getting Initialized, we are facing Problem in<br>
> the Platform constructor located in file : base-hw/src/coe/platform.cc<br>
><br>
> In the Platform () constructor<br>
><br>
> Rom_module * rom_module = new (core_mem_alloc())<br>
>             Rom_module(header->base, header->size, (const<br>
> char*)header->name);<br>
><br>
> is not getting executed(giving page fault) .  Do you know what could be the<br>
> problem ?<br>
<br>
</div></div>Do you've inserted the right existent RAM regions within your<br>
Platform::_ram_regions definitions? If you added incorrect RAM regions<br>
the "core_mem_alloc()" allocator of core will insert invalid page table<br>
entries in kernel/core's page table, and any access to the memory of the<br>
new Rom_module (returned by core_mem_alloc()) will fault.<br>
<br>
But it's just guessing. Again, it is up to you to investigate what exact<br>
memory access is responsible for the fault.<br>
<br>
Regards<br>
Stefan<br>
<div class=""><br>
><br>
><br>
> Regards<br>
><br>
> Chirag Garg<br>
> IIT Madras , Rise Lab<br>
><br>
><br>
><br>
</div>> ------------------------------------------------------------------------------<br>
> Infragistics Professional<br>
> Build stunning WinForms apps today!<br>
> Reboot your WinForms applications with our WinForms controls.<br>
> Build a bridge from your legacy apps to the future.<br>
> <a href="http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> genode-main mailing list<br>
> <a href="mailto:genode-main@lists.sourceforge.net">genode-main@...49....sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/genode-main" target="_blank">https://lists.sourceforge.net/lists/listinfo/genode-main</a><br>
><br>
<br>
--<br>
Stefan Kalkowski<br>
Genode Labs<br>
<br>
<a href="http://www.genode-labs.com/" target="_blank">http://www.genode-labs.com/</a> · <a href="http://genode.org/" target="_blank">http://genode.org/</a><br>
<br>
------------------------------------------------------------------------------<br>
Infragistics Professional<br>
Build stunning WinForms apps today!<br>
Reboot your WinForms applications with our WinForms controls.<br>
Build a bridge from your legacy apps to the future.<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk</a><br>
_______________________________________________<br>
genode-main mailing list<br>
<a href="mailto:genode-main@lists.sourceforge.net">genode-main@...12...ceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/genode-main" target="_blank">https://lists.sourceforge.net/lists/listinfo/genode-main</a><br>
</blockquote></div><br></div>