<?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: ENODEV when executing mmap2 on galcore in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963863#M143640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to put the dts fb node:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fb@0 {&lt;BR /&gt; compatible = "fsl,mxc_sdc_fb";&lt;BR /&gt; disp_dev = "ldb";&lt;BR /&gt; interface_pix_fmt = "RGB24";&lt;BR /&gt; default_bpp = &amp;lt;24&amp;gt;;&lt;BR /&gt; /*mode_str ="1280x480";*/&lt;BR /&gt; int_clk = &amp;lt;0&amp;gt;;&lt;BR /&gt; late_init = &amp;lt;1&amp;gt;;&lt;BR /&gt; fb_base = &amp;lt;0x18800000&amp;gt;; /* Frame buffer base address, it is same as CONFIG_FB_BASE in Uboot. */&lt;BR /&gt; fb_size = &amp;lt;0x00546000&amp;gt;; /* Reserved display memory size, bigger than 3 x framer buffer size. */&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not using any x11 or other window manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2019 00:50:18 GMT</pubDate>
    <dc:creator>marcosal</dc:creator>
    <dc:date>2019-07-25T00:50:18Z</dc:date>
    <item>
      <title>ENODEV when executing mmap2 on galcore</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963862#M143639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to configure vivante driver for an mx6 solo with vivante gpu. I compiled&amp;nbsp;the vivante SDK sample: 01_SimpleTriangle (I attached the source and makefile of this triangle example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I'm compiling the kernel 4.9.88 which I pulled from yocto according nxp instructions and it is compiling fine. drivers/mxc/gpu-viv is compiled as part of the kernel and not as a separated module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dtsi gpu node is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpu@00130000 {&lt;BR /&gt; compatible = "fsl,imx6dl-gpu", "fsl,imx6q-gpu";&lt;BR /&gt; reg = &amp;lt;0x00130000 0x4000&amp;gt;, &amp;lt;0x00134000 0x4000&amp;gt;,&lt;BR /&gt; &amp;lt;0x10000000 0x0&amp;gt;, &amp;lt;0x0 0x8000000&amp;gt;;&lt;BR /&gt; reg-names = "iobase_3d", "iobase_2d",&lt;BR /&gt; "phys_baseaddr", "contiguous_mem";&lt;BR /&gt; interrupts = &amp;lt;0 9 IRQ_TYPE_LEVEL_HIGH&amp;gt;,&lt;BR /&gt; &amp;lt;0 10 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; interrupt-names = "irq_3d", "irq_2d";&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_OPENVG_AXI&amp;gt;, &amp;lt;&amp;amp;clks IMX6QDL_CLK_GPU3D_AXI&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6QDL_CLK_GPU2D_CORE&amp;gt;, &amp;lt;&amp;amp;clks IMX6QDL_CLK_GPU3D_CORE&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6QDL_CLK_DUMMY&amp;gt;;&lt;BR /&gt; clock-names = "gpu2d_axi_clk", "gpu3d_axi_clk",&lt;BR /&gt; "gpu2d_clk", "gpu3d_clk",&lt;BR /&gt; "gpu3d_shader_clk";&lt;BR /&gt; resets = &amp;lt;&amp;amp;src 0&amp;gt;, &amp;lt;&amp;amp;src 3&amp;gt;;&lt;BR /&gt; reset-names = "gpu3d", "gpu2d";&lt;BR /&gt; power-domains = &amp;lt;&amp;amp;gpc 1&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The drm and galcore modules seems to start fine:&lt;/P&gt;&lt;P&gt;[drm] Initialized&lt;BR /&gt;[drm] Initialized vivante 1.0.0 20120216 on minor 0&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;galcore: clk_get vg clock failed, disable vg!&lt;BR /&gt;Galcore version 6.2.4.150331&lt;BR /&gt;Galcore options:&lt;BR /&gt; irqLine = 21&lt;BR /&gt; registerMemBase = 0x00130000&lt;BR /&gt; registerMemSize = 0x00004000&lt;BR /&gt; irqLine2D = 22&lt;BR /&gt; registerMemBase2D = 0x00134000&lt;BR /&gt; registerMemSize2D = 0x00004000&lt;BR /&gt; contiguousSize = 0x08000000&lt;BR /&gt; contiguousBase = 0x00000000&lt;BR /&gt; externalSize = 0x00000000&lt;BR /&gt; externalBase = 0x00000000&lt;BR /&gt; bankSize = 0x00000000&lt;BR /&gt; fastClear = -1&lt;BR /&gt; compression = 15&lt;BR /&gt; signal = 48&lt;BR /&gt; powerManagement = 1&lt;BR /&gt; baseAddress = 0x10000000&lt;BR /&gt; physSize = 0x80000000&lt;BR /&gt; logFileSize = 0 KB&lt;BR /&gt; recovery = 0&lt;BR /&gt; stuckDump = 0&lt;BR /&gt; gpuProfiler = 0&lt;BR /&gt; irqs = -1,&lt;BR /&gt;-1, -1,&lt;BR /&gt;-1, -1,&lt;BR /&gt;-1, -1,&lt;BR /&gt;-1, -1,&lt;BR /&gt;-1,&lt;BR /&gt; registerBases = 0x00000000,&lt;BR /&gt;0x00000000, 0x00000000,&lt;BR /&gt;0x00000000, 0x00000000,&lt;BR /&gt;0x00000000, 0x00000000,&lt;BR /&gt;0x00000000, 0x00000000,&lt;BR /&gt;0x00000000,&lt;BR /&gt; registerSizes = 0x00000800,&lt;BR /&gt;0x00000800, 0x00000800,&lt;BR /&gt;0x00000800, 0x00000800,&lt;BR /&gt;0x00000800, 0x00000800,&lt;BR /&gt;0x00000800, 0x00000800,&lt;BR /&gt;0x00000800,&lt;BR /&gt; chipIDs = 0xFFFFFFFF,&lt;BR /&gt;0xFFFFFFFF, 0xFFFFFFFF,&lt;BR /&gt;0xFFFFFFFF, 0xFFFFFFFF,&lt;BR /&gt;0xFFFFFFFF, 0xFFFFFFFF,&lt;BR /&gt;0xFFFFFFFF, 0xFFFFFFFF,&lt;BR /&gt;0xFFFFFFFF,&lt;BR /&gt;Build options:&lt;BR /&gt; gcdGPU_TIMEOUT = 20000&lt;BR /&gt; gcdGPU_2D_TIMEOUT = 20000&lt;BR /&gt; gcdINTERRUPT_STATISTIC = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when I try to run the 01_SimpleTriangle once it is flashed in the arm target. The program fail in the line&amp;nbsp;&lt;/P&gt;&lt;P&gt;eglsurface = eglCreateWindowSurface(egldisplay, eglconfig, eglNativeWindow, NULL);&lt;/P&gt;&lt;P&gt;I get error 0x300B (EGL_BAD_NATIVE_WINDOW)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The userspace libraries were taken also from yocto (imx-gpu-viv-6.2.4.p1.2-aarch32).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I execute the 01_SimpleTriangle with strace I see this error:&lt;/P&gt;&lt;P&gt;open("/dev/galcore", O_RDWR) = 4&lt;BR /&gt;ioctl(4, _IOC(0, 0x75, 0x30, 0x00), 0x7ec94578) = 0&lt;BR /&gt;ioctl(4, _IOC(0, 0x75, 0x30, 0x00), 0x7ec94578) = 0&lt;BR /&gt;ioctl(4, _IOC(0, 0x75, 0x30, 0x00), 0x7ec94598) = 0&lt;BR /&gt;mmap2(NULL, 62914560, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = -1 ENODEV (No such device)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, someone may help me with this? What are the possible causes of this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any clue!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 00:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963862#M143639</guid>
      <dc:creator>marcosal</dc:creator>
      <dc:date>2019-07-25T00:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: ENODEV when executing mmap2 on galcore</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963863#M143640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to put the dts fb node:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fb@0 {&lt;BR /&gt; compatible = "fsl,mxc_sdc_fb";&lt;BR /&gt; disp_dev = "ldb";&lt;BR /&gt; interface_pix_fmt = "RGB24";&lt;BR /&gt; default_bpp = &amp;lt;24&amp;gt;;&lt;BR /&gt; /*mode_str ="1280x480";*/&lt;BR /&gt; int_clk = &amp;lt;0&amp;gt;;&lt;BR /&gt; late_init = &amp;lt;1&amp;gt;;&lt;BR /&gt; fb_base = &amp;lt;0x18800000&amp;gt;; /* Frame buffer base address, it is same as CONFIG_FB_BASE in Uboot. */&lt;BR /&gt; fb_size = &amp;lt;0x00546000&amp;gt;; /* Reserved display memory size, bigger than 3 x framer buffer size. */&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not using any x11 or other window manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2019 00:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963863#M143640</guid>
      <dc:creator>marcosal</dc:creator>
      <dc:date>2019-07-25T00:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: ENODEV when executing mmap2 on galcore</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963864#M143641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check yocto bsp L4.9.88 based on X11, they whole GPU program run well on that´s version.&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, 30 Jul 2019 19:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ENODEV-when-executing-mmap2-on-galcore/m-p/963864#M143641</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-07-30T19:36:41Z</dc:date>
    </item>
  </channel>
</rss>

