Hello
I am working with a armstonea9r2.
I connected a HDMI monitor to armstonea9r2 HDMI port, and a mouse to armstonea9r2 USB host.
Setting in uboot
I can see starting kernel messages in HDMI monitor.
Logged as root, using
moving the mouse I can see characters on the console.
To tell the armstonea9r2 the display to use, I modified armstonea9r2dl.dts this way:
- /*
- * Set the display configuration:
- *
- * - If you have no display, set both settings to DISPLAY_NONE.
- * - If you have one display, set MXCFB0 to one of the display types above
- * and leave MXCFB1 at DISPLAY_NONE.
- * - If you have two displays, set both settings to a display type from above.
- * You have to use different types for the two displays.
- *
- * The first display will also get a video overlay, so MXCFB0 will use /dev/fb0
- * and /dev/fb1 and MXCFB1 will use /dev/fb2.
- */
- /* #define CONFIG_ARMSTONEA9R2_MXCFB0 DISPLAY_LVDS0 */
- #define CONFIG_ARMSTONEA9R2_MXCFB0 DISPLAY_HDMI /* roberto */
- #define CONFIG_ARMSTONEA9R2_MXCFB1 DISPLAY_NONE
- /* i.MX6 Solo and DualLite only have one IPU, do not change */
- #define CONFIG_ARMSTONEA9R2_USE_ONE_IPU
- /* Configure HDMI settings here (ignored if HDMI is not used) */
- #define CONFIG_ARMSTONEA9R2_HDMI_BPP 24
- #define CONFIG_ARMSTONEA9R2_HDMI_PIX_FMT "RGB24"
- /* #define CONFIG_ARMSTONEA9R2_HDMI_MODE_STR "1920x1080M@60" */
- #define CONFIG_ARMSTONEA9R2_HDMI_MODE_STR "1366x768M@60" /* roberto */
I also commented the line
because I do not have capacitive touch.
I compiled fsimx6_qt5_defconfig, with the succesful result in /output/images
I updated to the NAND armstonea9r2 the device tree armstonea9r2dl.dtb, and the kernel uImage.
The file system rootfs.ext is loaded succesfully by NFS, read write enabled.
Logged as root.
I execute the analogclok example supplied, getting error:
- # pwd
- /usr/lib/qt/examples/gui/analogclock
- # ls
- analogclock* analogclock.pro main.cpp
- # ./analogclock -qws
- QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
- If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
- Unable to query physical screen size, defaulting to 100 dpi.
- To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
- EGL Error : Could not create the egl surface: error = 0x3003
- Aborted
- # ./analogclock
- QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
- If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
- Unable to query physical screen size, defaulting to 100 dpi.
- To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
- EGL Error : Could not create the egl surface: error = 0x3003
- Aborted
I created a kit in Qt creator using your toolchain (please see Qt Armstonea9r2 kit.PNG). I compiles correctly. However when the application is executed (logged as root) I get the same error.
- # pwd
- /root/TestQt
- # ls
- TestQt*
- # ./TestQt
- QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
- If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
- Unable to query physical screen size, defaulting to 100 dpi.
- To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
- EGL Error : Could not create the egl surface: error = 0x3003
- Aborted
Thank you for your help.
Regards.