I am trying to migrate a project from Yocto Pyro (3.14 kernel) to Sumo and use a newer kernel and the new Vivante 6.2.4.p4.0 package, since it has more complete OpenGL ES drivers than ETNAVIV.
I am following the instructions in the i.MX_Yocto_Project_User's_Guide, to build. To summarize, I am using:
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
DISTRO=fsl-imx-fb MACHINE=wandboard source fsl-setup-release.sh -b build-fb
The problem is that the built linux image has no fb device and this causes many other problems, such as with V4L2, OpenGL ES and even NXP's unit tests, such as:
./mxc_vpu_test -D "-f0 -x0 -i akiyo.mp4"
[ERR] unable to open fb0
Even 'fbset' fails, with:
open /dev/fb0: No such file or directory
As best as I can tell, fb support should be enabled. Here is the relevant portion of my defconfig:
Does the Vivante 6.2.4.p4.0 package really support fb on the i.MX6?
How can I enable the fb device?
Thanks, Clay Montgomery
fb should works, since this is prebuild package sometimes incompatibility comes due to libc. You should try the 4.9.51 version the fb work while the 4.14.98 has a bug.
I'm not sure how to build exactly 4.9.51, but I built and tested two more kernel versions, 4.9.67 and 4.8.17 (older and newer) with the same Yocto Sumo release and Vivante 6.2.4.p4.0 package and I found that the fb device is broken on these also.These boot with no errors reported, but there is no fb device in the system.
It does not seem to be possible to build any functional OS using these packages with DISTRO='fsl-imx-fb' for the i.MX6.
Can you please advise what I might be doing wrong or how can this issue be resolved?
Thank you for your assistance.
I did some more testing and found the situation is actually much worse than I thought. Even the X11 and Wayland support is completely non-functional, in addition to fb, on the i.MX6. The linux kernel version makes no difference. I have tried 4.8 to 4.14.
This means the Vivante 6.2.4 release is COMPLETELY USELESS on the i.MX6. If there is anyone who has actually gotten this to work in any mode, please reply.
This is really strange considering that NXP's i.MX Graphics Users Guide (April 2019) documents fb, x11 and Wayland use on the i.MX6, extensively. Also, NXP's release notes for Yocto Sumo claim extensive testing on many i.MX6 boards.
Does this mean that fb support is not available for kernels newer than 4.9.51?
Specifically, for the upcoming 4.19 release, will we be able to use the fb device with Vivante drivers on i.MX6?