<div dir="ltr">Hi Martin,<div><br></div><div>Sorry I could not reply soon as I've been away for a while. And Thank you for the explanation.</div><div><br></div><div>The address <span style="font-size:13px;font-family:arial,sans-serif">0x</span><font face="arial,
        sans-serif" style="font-size:13px;font-family:arial,sans-serif">10159000 is not present in BSS. BSS range is 0x</font><font face="arial, sans-serif">10070000 to 0x10112fa4.</font> </div><div><br></div><div>I've checked it and everything is going fine until first Rom_module is created. After allocation, we are getting page fault in the constructor call of Avl_string_base, the class from which Rom_module is derived.</div>
<div>The address of page fault is 0x1008 same as in the case of Bob working on <span style="font-family:arial,sans-serif;font-size:13px">Beaglebone. And our code was also working till 13.11.</span><br></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 guess our problem is also related to MMU, which is MMDC for imx6 as I mentioned in my previous mail.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">We will pull the current branch and try if it works, as you suggested for Bob.</span></div>
<div><br></div><div>Thanks and Regards</div><div><br></div><div>Praveen</div><div>IIT Madras.</div><div><font face="arial, sans-serif"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 4:43 PM, Martin Stein <span dir="ltr"><<a href="mailto:martin.stein@...1..." target="_blank">martin.stein@...1...</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>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<div><div class="h5"><br>
      <br>
      On 08.08.2014 09:14, Praveen B wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <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><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><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" target="_blank">genode-main@lists.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" target="_blank">genode-main@lists.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>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>------------------------------------------------------------------------------
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 href="http://p.sf.net/sfu/bds" target="_blank">http://p.sf.net/sfu/bds</a></pre><div class="">
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
genode-main mailing list
<a href="mailto:genode-main@lists.sourceforge.net" target="_blank">genode-main@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/genode-main" target="_blank">https://lists.sourceforge.net/lists/listinfo/genode-main</a>
</pre>
    </div></blockquote>
    <br>
  </div>

<br>------------------------------------------------------------------------------<br>
<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>
<br></blockquote></div><br></div>