<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DirectFB (Multi Application core) with linux-fusion kenel module in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/DirectFB-Multi-Application-core-with-linux-fusion-kenel-module/m-p/673022#M103689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minseok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux-fusion is not officially supported to any i.MX6, I guess nor supported on arm devices, since not sure if it works with 2.6.xx kernels. however hope links here helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/55691"&gt;Problem with DirectFB (Multi App Core) on Coldfire&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/62269?commentID=62269#comment-62269" title="https://community.nxp.com/message/62269?commentID=62269#comment-62269"&gt;https://community.nxp.com/message/62269?commentID=62269#comment-62269&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jun 2017 16:11:41 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2017-06-27T16:11:41Z</dc:date>
    <item>
      <title>DirectFB (Multi Application core) with linux-fusion kenel module</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DirectFB-Multi-Application-core-with-linux-fusion-kenel-module/m-p/673021#M103688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to run any DirectFB (Multi Application Core) application (with Fusion library and the linux-fusion kernel module) on i.MX6 Solo. The version of DirectFB is 1.4.0 (LTIB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My system was failed with the debugging message (shown below)&lt;/P&gt;&lt;P&gt;"Fusion/Init: Mapping shared area failed!"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This log message occurs when mmap() failed in&amp;nbsp;fusion_enter() in fusion.c .&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;shared = mmap( (void*) 0x20000000 + 0x2000 * world_index, sizeof(FusionWorldShared),&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PROT_READ | PROT_WRITE, MAP_FIXED | MAP_SHARED, fd, 0 );&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; if (shared == MAP_FAILED) {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;D_PERROR( "Fusion/Init: Mapping shared area failed! tid[%d]\n",direct_gettid() );&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;goto error;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first application (FER_ANY, FUSION_ID_MASTER) passes mmap()&amp;nbsp;&lt;SPAN&gt;successfully. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But from the second application, mmap() returns an error (MAP_FAILED).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found the cause of this fail(MAP_FAILED) in fusion_mmap() in fuseiondev.c&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if (fusionee_id(fusionee) != FUSION_ID_MASTER &amp;amp;&amp;amp; (vma-&amp;gt;vm_flags &amp;amp; VM_WRITE))&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return -EPERM;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From the second application, the fusion_id is not&amp;nbsp;FUSION_ID_MASTER and the flag has O_RDWR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the applications that fusion_id is not FUSION_ID_MASTER will fail when executing mmap().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #212121;"&gt;If the code above (&lt;SPAN style="color: #3d3d3d;"&gt;fusion_mmap())&lt;/SPAN&gt; is correct, it seems I am using DirectFB incorrectly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #212121;"&gt;Please help me if you know this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 11:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DirectFB-Multi-Application-core-with-linux-fusion-kenel-module/m-p/673021#M103688</guid>
      <dc:creator>minseokpark</dc:creator>
      <dc:date>2017-06-26T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: DirectFB (Multi Application core) with linux-fusion kenel module</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DirectFB-Multi-Application-core-with-linux-fusion-kenel-module/m-p/673022#M103689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minseok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux-fusion is not officially supported to any i.MX6, I guess nor supported on arm devices, since not sure if it works with 2.6.xx kernels. however hope links here helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/55691"&gt;Problem with DirectFB (Multi App Core) on Coldfire&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/62269?commentID=62269#comment-62269" title="https://community.nxp.com/message/62269?commentID=62269#comment-62269"&gt;https://community.nxp.com/message/62269?commentID=62269#comment-62269&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jun 2017 16:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DirectFB-Multi-Application-core-with-linux-fusion-kenel-module/m-p/673022#M103689</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2017-06-27T16:11:41Z</dc:date>
    </item>
  </channel>
</rss>

