AnsweredAssumed Answered

Can't get X11 image working on i.MX 6Quad SABRE-SD

Question asked by Mike Hansen on Dec 14, 2016
Latest reply on Dec 14, 2016 by Mike Hansen

I am trying to build an image for the imx6qpsabresd board.  I follow the instructions in the "Freescale Yocto Project User's Guide (IMXLXYOCTOUG), rev. 0, 04/2016.

The image is created and I can copy to an SD card.  I use these settings:

$ DISTRO=fsl-imx-x11 MACHINE=imx6qpsabresd source -b imx6qp_x11


$ bitbake fsl-image-gui

(basically following sect. 5.6.1)


The board will boot through the USB console port, but I get nothing going to the connected HDMI display nor response to the connected keyboard.  Here is the display when I try startx from the console:

Freescale i.MX Release Distro 4.1.15-1.2.0 imx6qpsabresd /dev/ttymxc0

imx6qpsabresd login: root
root@imx6qpsabresd:~# startx
xauth:  file /home/root/.serverauth.1006 does not exist

X.Org X Server 1.18.0
Release Date: 2015-11-09
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-31-generic x86_64
Current Operating System: Linux imx6qpsabresd 4.1.15-1.2.0+g77f6154 #1 SMP PREEMPT Mon Dec 12 19:36:54 GMT 2016 armv7l
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw
Build Date: 12 December 2016  10:15:34PM

Current version of pixman: 0.32.6
        Before reporting problems, check
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Dec 13 19:56:39 2016
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/etc/X11/xinit/xinitrc: line 51: twm: command not found
/etc/X11/xinit/xinitrc: line 52: xclock: command not found
/etc/X11/xinit/xinitrc: line 53: xterm: command not found
/etc/X11/xinit/xinitrc: line 55: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 54: xterm: command not found
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.



What is wrong? How do I get x11 running and be able to interact with it using the HDMI display and USB keyboard?

Perhaps other helpful boot messages:

U-Boot 2015.04imx_v2015.04_4.1.15_1.2.0_ga+gede7538 (Dec 13 2016 - 02:11:31)

CPU:   Freescale i.MX6QP rev1.0 at 792 MHz
CPU:   Temperature 32 C
Reset cause: POR
Board: MX6-SabreSD
I2C:   ready
DRAM:  1 GiB
PMIC:  PFUZE100 ID=0x10
*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc1 is current device
Net:   FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6618928 bytes read in 320 ms (19.7 MiB/s)
Booting from mmc ...
reading imx6qp-sabresd.dtb
47155 bytes read in 19 ms (2.4 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x64ff30 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800e832
switch to ldo_bypass mode!

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.1.15-1.2.0+g77f6154 (osboxes@osboxes) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Mon Dec 12 19:36:54 GMT 2016
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 Quad Plus SABRE Smart Device Board