Re: OpenGL ES on i.MX8
Joshua Watt
On Mon, Sep 14, 2020 at 3:56 PM Peter Bergin <peter@...> wrote:
FWIW, standing up a GLES/DRM/KMS application isn't terribly hard. I've done it on an IMX8 before without too much trouble. kmscube is probably the best place to start as it is a pretty complete example. However, I would also highly recommend looking at running your application under the weston (wayland) fullscreen shell. It's just as powerful except you don't have to deal with all the twiddly DRM/KMS APIs, and the "overhead" is pretty much non-existent because you render directly to a DMA buf which weston presents to the display.
|
|
Re: OpenGL ES on i.MX8
Peter Bergin
Hi Andy,
On 2020-09-14 13:20, Andy Pont wrote: Trying to find an equivalent configuration for the i.MX8m I am unable to find an equivalent method. The Vivante user space libraries don’t seem to exist in a framebuffer or DRM form, instead they all seem to require Wayland or X11.this is the statement from NXP (https://source.codeaurora.org/external/imx/imx-manifest/tree/README?h=imx-linux-zeus#n53). As seen they do not actively support the framebuffer distro for i.Mx8 targets on their official BSP. The recipe for vivante user space lib imx-gpu-viv also have a guard for mx8 that only builds it when wayland is enabled. (https://github.com/Freescale/meta-freescale/blob/e0fa0255795ce584b3b5ad74c330cabeb0caa28d/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc#L60). I'm also interested in the same question as you are as I'm in a start up phase for a i.Mx8 project where we would like to run with OpenGL or Vulkan directly against DRM and avoid display manager. Would be great to hear someone from NXP give their picture of this. I have tried the NXP community but without any info so far. (https://community.nxp.com/t5/i-MX-Graphics/vulkan-without-display-server-Wayland-X11/m-p/1134083#M1) Best regards, /Peter |
|
Re: OpenGL ES on i.MX8
Prabhu
I don’t it may be part of framebuffer distro. Application dependency to gbm should pull in libgbm.
|
|
Re: OpenGL ES on i.MX8
Andy Pont <andy.pont@...>
Prabhusundar wrote…
i.MX8 has GBM(DRM) support which is alternative for the lagacy framebuffer.Does that use the standard fsl-framebuffer or fslc-framebuffer distro options from meta-freescale-distro as I have used before? -Andy. |
|
Re: OpenGL ES on i.MX8
Prabhu
i.MX8 has GBM(DRM) support which is alternative for the lagacy framebuffer.
|
|
OpenGL ES on i.MX8
Andy Pont <andy.pont@...>
Hello,
This is probably a question for NXP themselves but I thought I would try the collective wisdom of the mailing list first. When I build images for the i.MX6 I can build the OpenGL ES support to use EGL and the Vivante driver to directly access the framebuffer without having to include all of the overhead of X11 or Weston/Wayland. Trying to find an equivalent configuration for the i.MX8m I am unable to find an equivalent method. The Vivante user space libraries don’t seem to exist in a framebuffer or DRM form, instead they all seem to require Wayland or X11. Can someone more knowledgeable than I confirm whether that is the case or whether I am missing something? -Andy. |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Brian Hutchinson
On Fri, Sep 11, 2020 at 02:29 AM, Andrey Zhizhikin wrote:
On Thu, Sep 10, 2020 at 11:59 PM Brian Hutchinson <b.hutchman@...> wrote: Ha, ha, I figured there was already some way to do it and I just overlooked it or wasn't smart enough to figure it out. Yeah, you can do anything with good ole sed. I plan to switch back to using the original .config and try the rev B .dtb to see if that fixes things when I get a chance. setting of U-Boot DTB and would (most probably) break reproducibility. Thanks! Brian |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Andrey Zhizhikin
On Thu, Sep 10, 2020 at 11:59 PM Brian Hutchinson <b.hutchman@...> wrote:
You can try to do something like this in your layer via creating a u-boot-imx_%.bbapend: patch_uboot_defconfig () { sed -i -e '/^[ ]*CONFIG_DEFAULT_FDT_FILE[ ]*=/d' ${S}/configs/$1 echo 'CONFIG_DEFAULT_FDT_FILE="'$2'"' >>${S}/configs/$1 } do_configure_prepend_imx8mmevk () { patch_uboot_defconfig imx8mm_evk_defconfig imx8mm-evk-revb.dtb } NOTE: This is not the most clean solution on how to approach the setting of U-Boot DTB and would (most probably) break reproducibility. You can use it to see what should be changed, and try out if that would solve the PCIe hang during boot. Also: "For verification purposes ONLY!". :) For sdcard boot, all of the .dtb's are on the FAT partition of the sdcard so it's easy enough to change the filename to use. -- Regards, Andrey. |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Brian Hutchinson
On Thu, Sep 10, 2020 at 05:22 AM, Fabio Estevam wrote:
Hi Otavio,When the sdcard is created, the u-boot environment has fdt_file defaulted to imx8mm-evk.dtb. I've not yet figured out how to override the recipe to specify which .dtb file should be used. For sdcard boot, all of the .dtb's are on the FAT partition of the sdcard so it's easy enough to change the filename to use. I use SPI NOR so I just have the .dtb file burned into a specific address so the name doesn't matter in that case. Regards, Brian |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Fabio Estevam
Hi Otavio,
On Thu, Sep 10, 2020 at 9:09 AM Otavio Salvador <otavio.salvador@...> wrote: Could U-Boot load the correct dtb for the board revision?Unfortunately, this cannot be determined in run-time. |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Otavio Salvador
Hello Fabio,
Em qui., 10 de set. de 2020 às 09:03, Fabio Estevam <festevam@...> escreveu: On Thu, Sep 10, 2020 at 8:54 AM Otavio SalvadorCould U-Boot load the correct dtb for the board revision? -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Fabio Estevam
Hi Carlos,
On Thu, Sep 10, 2020 at 8:54 AM Otavio Salvador <otavio.salvador@...> wrote: Do you have a revB board? If so, please use imx8mm-evk-revb.dtb instead as there is a difference between revB versus revC that is related to the PCIe clock source. From arch/arm64/boot/dts/freescale/imx8mm-evk-revb.dts: /* * External OSC is used as PCIe REFCLK on RevC board. * Use the -revb.dts file to distiguish the different * HW design. */ &pcie0{ ext_osc = <0>; status = "okay"; }; |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Otavio Salvador
Hello all,
Em qui., 10 de set. de 2020 às 05:12, Carlos Rafael Giani <crg7475@...> escreveu: I have the same problem. imx8mmevk does not boot with Yocto Dunfell. Booting stops at "PCIe PLL lock timeout" or "Initialized imx-drm 1.0.0 20120507 for soc@0:bus@32c00000:display-subsystem on minor 0". I tried booting from MMC and from NFS, and neither work.... [ 2.183627] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIOCould you guys open an issue on github about this? -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 |
|
Re: Latest build of fsl-community-bsp kernel hangs booting imx8mmevk
Carlos Rafael Giani
I have the same problem. imx8mmevk does not boot with Yocto Dunfell. Booting stops at "PCIe PLL lock timeout" or "Initialized imx-drm 1.0.0 20120507 for soc@0:bus@32c00000:display-subsystem on minor 0". I tried booting from MMC and from NFS, and neither work.
On 29.07.20 17:56, Brian Hutchinson
wrote:
|
|
Re: Build error of perf
leimaohui
Hi, Yang
toggle quoted message
Show quoted text
The following is the status of linux-qoriq that I'm using: ------------------------------------- tmp/work-shared/ubinux-armv8/kernel-source$ git branch * (HEAD detached at 134788b16485) Master ------------------------------------- Best regards Lei -----Original Message----- |
|
Re: Build error of perf
Zhenhua Luo
Hi Lei,
toggle quoted message
Show quoted text
May I know which branch you are using? Best Regards, Zhenhua -----Original Message----- |
|
Re: Build error of perf
leimaohui
Hi, Andrey
I guess you're not building the latest meta-freescale, since the latest version ofI'm using linux-qoriq and I have updated to the newest commit of meta-freescale. Best regards Lei -----Original Message----- |
|
Re: Build error of perf
Andrey Zhizhikin
Hello Lei,
On Mon, Sep 7, 2020 at 7:37 AM leimaohui <leimaohui@...> wrote: This is covered by [df35e878d0a51755fb500e2e8e29c7ebb0239756] which is present in the kernel tree and came in with v5.4.56. I guess you're not building the latest meta-freescale, since the latest version of kernel recipes (linux-fslc and linux-fslc-imx) contains version v5.4.62. Or it is possible that you're building linux-imx kernel, in which case you would have to port the patch on top of your tree.
-- Regards, Andrey. |
|
Build error of perf
leimaohui
Hi,
By latest meta-freescale, perf build failed, the error is as following: --------------------------------------------- aarch64-ubinux-linux-ld: /ubinux-dev/build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-ubinux-linux/perf/1.0-r9/perf-1.0/bench/epoll-ctl.o:/usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/bench/epoll-ctl.c:38: multiple definition of `runtime'; /ubinux-dev/build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-ubinux-linux/perf/1.0-r9/perf-1.0/bench/epoll-wait.o:/usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/bench/epoll-wait.c:93: first defined here aarch64-ubinux-linux-ld: /ubinux-dev/ build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-ubinux-linux/perf/1.0-r9/perf-1.0/bench/epoll-ctl.o:/usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/bench/epoll-ctl.c:38: multiple definition of `end'; /ubinux-dev/ /build-ubinux-armv8-multlib-daily/tmp/work/ubinux_armv8-ubinux-linux/perf/1.0-r9/perf-1.0/bench/epoll-wait.o:/usr/src/debug/perf/1.0-r9/perf-1.0/tools/perf/bench/epoll-wait.c:93: first defined here ...... --------------------------------------------- It seems that the repository has to merge the following patch: https://lkml.org/lkml/2020/3/4/313 Best regards Lei |
|
Re: imx51evk and Zeus
Otavio Salvador
Em ter., 25 de ago. de 2020 às 11:13, Mauro Ziliani
<mauro@...> escreveu: Thank you for the answer.u-boot-imx does not officially support it, so u-boot-fslc is the best call here. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 |
|