<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Praveen,<br>
Stefan isn't online these days.<br>
'Genode::map_local()' uses the
'Kernel::core_pd()->platform_pd()->page_slab()' as backing
store. This allocator is of the type 'Genode::Page_slab' as
defined in 'base-hw/src/core/include/page_slab.h'. The class
contains a member 'Slab_block _initial_sb' which is used for the
first couple of allocations (especially for the allocation of the
second slab block). Furthermore the page slab of the core PD is
created via the 'unmanaged_singleton' utility in
'base-hw/src/core/kernel/kernel.cc'. Thus it should be located in
the BSS. That said, it might be normal that you're observing a
page-table base inside the program image. Is 0x<font face="arial,
sans-serif">10159000</font> inside your BSS? You can check this
via 'genode-arm-objdump' or instrument the Page_slab::alloc method
to check wether it uses the initial block for this page table.<br>
<br>
Cheers<br>
Martin<br>
<br>
On 08.08.2014 09:14, Praveen B wrote:<br>
</div>
<blockquote
cite="mid:CAKoQ0Z0ZZG8fWPEvfALzpjR0p_emK94=YLBtzSeP6_vn5CCQxA@...3..."
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:genode-main@lists.sourceforge.net">genode-main@lists.sourceforge.net</a><br>
> <a moz-do-not-send="true"
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 moz-do-not-send="true" href="http://www.genode-labs.com/"
target="_blank">http://www.genode-labs.com/</a> · <a
moz-do-not-send="true" 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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:genode-main@lists.sourceforge.net">genode-main@lists.sourceforge.net</a><br>
<a moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/bds">http://p.sf.net/sfu/bds</a></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
genode-main mailing list
<a class="moz-txt-link-abbreviated" href="mailto:genode-main@lists.sourceforge.net">genode-main@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/genode-main">https://lists.sourceforge.net/lists/listinfo/genode-main</a>
</pre>
</blockquote>
<br>
</body>
</html>