[Solved] Xorg not starting with vc4 on Pi 3B+

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[Solved] Xorg not starting with vc4 on Pi 3B+

Postby bonob » Mon Jan 21, 2019 4:12 am

Xorg doesn't start on my Pi 3B+ using the vc4-kms-v3d driver on the armv7h image.

With `dtoverlay=vc4-kms-v3d` in /boot/config.txt, dmesg output seems correct:
$this->bbcode_second_pass_code('', '
$ dmesg | grep vc4
[ 7.920067] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[ 7.922205] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[ 7.922472] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[ 7.922598] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[ 7.922908] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.923134] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.923367] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 7.940692] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[ 7.941319] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[ 7.941350] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 7.941365] [drm] Driver supports precise vblank timestamp query.
[ 8.031298] vc4-drm soc:gpu: fb0: frame buffer device
')

With the Xorg conf from fbturbo, /etc/X11/xorg.conf.d/99-fbturbo.conf, Xorg starts, but its log doesn't mention vc4, and the vc4 driver is not used, that is glxgears reports llvmpipe:
$this->bbcode_second_pass_code('', '
$ glxgears -info
GL_RENDERER = llvmpipe (LLVM 7.0, 128 bits)
GL_VERSION = 3.1 Mesa 18.3.1
GL_VENDOR = VMware, Inc.
')

Without the 99-fbturbo.conf, Xorg crashes immediately (I run openbox with startx). Its log doesn't show any error that I could identify:
$this->bbcode_second_pass_code('', '
$ cat .local/share/xorg/Xorg.0.log
[ 263.532] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 263.532]
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[ 263.537] Build Operating System: Linux Arch Linux
[ 263.543] Current Operating System: Linux chihuahua 4.14.93-2-ARCH #1 SMP Wed Jan 16 15:44:12 UTC 2019 armv7l
[ 263.543] Kernel command line: 8250.nr_uarts=0 cma=256M bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/mmcblk0p2 rw rootwait console=ttyS0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyS0,115200 elevator=noop audit=0
[ 263.559] Build Date: 27 October 2018 04:53:30PM
[ 263.565]
[ 263.570] Current version of pixman: 0.36.0
[ 263.581] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 263.581] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 263.604] (==) Log file: "/home/li/.local/share/xorg/Xorg.0.log", Time: Sat Jan 19 18:57:54 2019
[ 263.610] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 263.610] (==) No Layout section. Using the first Screen section.
[ 263.610] (==) No screen section available. Using defaults.
[ 263.610] (**) |-->Screen "Default Screen Section" (0)
[ 263.610] (**) | |-->Monitor "<default monitor>"
[ 263.611] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 263.611] (==) Automatically adding devices
[ 263.611] (==) Automatically enabling devices
[ 263.611] (==) Automatically adding GPU devices
[ 263.611] (==) Automatically binding GPU devices
[ 263.611] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 263.611] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[ 263.611] Entry deleted from font path.
[ 263.611] (Run 'mkfontdir' on "/usr/share/fonts/misc").
[ 263.611] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 263.611] Entry deleted from font path.
[ 263.611] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 263.611] Entry deleted from font path.
[ 263.611] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 263.611] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 263.611] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 263.612] (II) Module ABI versions:
[ 263.612] X.Org ANSI C Emulation: 0.4
[ 263.612] X.Org Video Driver: 24.0
[ 263.612] X.Org XInput driver : 24.1
[ 263.612] X.Org Server Extension : 10.0
[ 263.613] (++) using VT number 1

[ 263.617] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 263.618] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 263.620] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 263.621] (II) no primary bus or device found
[ 263.621] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 263.621] (II) LoadModule: "glx"
[ 263.621] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 263.628] (II) Module glx: vendor="X.Org Foundation"
[ 263.628] compiled for 1.20.3, module version = 1.0.0
[ 263.628] ABI class: X.Org Server Extension, version 10.0
[ 263.628] (==) Matched modesetting as autoconfigured driver 0
[ 263.628] (==) Matched fbdev as autoconfigured driver 1
[ 263.628] (==) Assigned the driver to the xf86ConfigLayout
[ 263.628] (II) LoadModule: "modesetting"
[ 263.628] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 263.644] (II) Module modesetting: vendor="X.Org Foundation"
[ 263.644] compiled for 1.20.3, module version = 1.20.3
[ 263.644] Module class: X.Org Video Driver
[ 263.644] ABI class: X.Org Video Driver, version 24.0
[ 263.644] (II) LoadModule: "fbdev"
[ 263.644] (WW) Warning, couldn't open module fbdev
[ 263.644] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 263.644] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 263.645] (II) modeset(0): using drv /dev/dri/card0
[ 263.645] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 263.645] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 263.645] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 263.645] (==) modeset(0): RGB weight 888
[ 263.645] (==) modeset(0): Default visual is TrueColor
[ 263.645] (II) Loading sub module "glamoregl"
[ 263.645] (II) LoadModule: "glamoregl"
[ 263.645] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 263.718] (II) Module glamoregl: vendor="X.Org Foundation"
[ 263.718] compiled for 1.20.3, module version = 1.0.1
[ 263.718] ABI class: X.Org ANSI C Emulation, version 0.4
[ 264.144] (II) modeset(0): glamor X acceleration enabled on VC4 V3D 2.1
[ 264.144] (II) modeset(0): glamor initialized
[ 264.185] (II) modeset(0): Output HDMI-1 has no monitor section
[ 264.185] (II) modeset(0): Output Composite-1 has no monitor section
[ 264.229] (II) modeset(0): EDID for output HDMI-1
[ 264.229] (II) modeset(0): Manufacturer: PHL Model: d033 Serial#: 16843009
[ 264.229] (II) modeset(0): Year: 2007 Week: 11
[ 264.229] (II) modeset(0): EDID Version: 1.3
[ 264.229] (II) modeset(0): Digital Display Input
[ 264.229] (II) modeset(0): Max Image Size [cm]: horiz.: 93 vert.: 52
[ 264.229] (II) modeset(0): Gamma: 2.20
[ 264.229] (II) modeset(0): No DPMS capabilities specified
[ 264.229] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 264.229] (II) modeset(0): First detailed timing is preferred mode
[ 264.229] (II) modeset(0): redX: 0.632 redY: 0.324 greenX: 0.273 greenY: 0.591
[ 264.229] (II) modeset(0): blueX: 0.144 blueY: 0.068 whiteX: 0.280 whiteY: 0.285
[ 264.229] (II) modeset(0): Supported established timings:
[ 264.229] (II) modeset(0): 720x400@70Hz
[ 264.230] (II) modeset(0): 640x480@60Hz
[ 264.230] (II) modeset(0): 640x480@67Hz
[ 264.230] (II) modeset(0): 640x480@75Hz
[ 264.230] (II) modeset(0): 800x600@56Hz
[ 264.230] (II) modeset(0): 800x600@60Hz
[ 264.230] (II) modeset(0): 800x600@72Hz
[ 264.230] (II) modeset(0): 800x600@75Hz
[ 264.230] (II) modeset(0): 1024x768@60Hz
[ 264.230] (II) modeset(0): 1024x768@70Hz
[ 264.230] (II) modeset(0): 1024x768@75Hz
[ 264.230] (II) modeset(0): Manufacturer's mask: 0
[ 264.230] (II) modeset(0): Supported standard timings:
[ 264.230] (II) modeset(0): #0: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 264.230] (II) modeset(0): #1: hsize: 1360 vsize 765 refresh: 60 vid: 49291
[ 264.230] (II) modeset(0): #2: hsize: 1280 vsize 960 refresh: 60 vid: 16513
[ 264.230] (II) modeset(0): Supported detailed timing:
[ 264.230] (II) modeset(0): clock: 138.5 MHz Image Size: 930 x 523 mm
[ 264.230] (II) modeset(0): h_active: 1920 h_sync: 1968 h_sync_end 2000 h_blank_end 2080 h_border: 0
[ 264.231] (II) modeset(0): v_active: 1080 v_sync: 1083 v_sync_end 1088 v_blanking: 1111 v_border: 0
[ 264.231] (II) modeset(0): Supported detailed timing:
[ 264.231] (II) modeset(0): clock: 79.5 MHz Image Size: 930 x 523 mm
[ 264.231] (II) modeset(0): h_active: 1280 h_sync: 1344 h_sync_end 1472 h_blank_end 1664 h_border: 0
[ 264.231] (II) modeset(0): v_active: 768 v_sync: 771 v_sync_end 778 v_blanking: 798 v_border: 0
[ 264.231] (II) modeset(0): Monitor name: 42PFL7422
[ 264.231] (II) modeset(0): Ranges: V min: 24 V max: 76 Hz, H min: 15 H max: 70 kHz, PixClock max 155 MHz
[ 264.231] (II) modeset(0): Supported detailed timing:
[ 264.231] (II) modeset(0): clock: 148.5 MHz Image Size: 930 x 523 mm
[ 264.231] (II) modeset(0): h_active: 1920 h_sync: 2448 h_sync_end 2492 h_blank_end 2640 h_border: 0
[ 264.231] (II) modeset(0): v_active: 1080 v_sync: 1082 v_sync_end 1087 v_blanking: 1125 v_border: 0
[ 264.231] (II) modeset(0): Supported detailed timing:
[ 264.231] (II) modeset(0): clock: 148.5 MHz Image Size: 930 x 523 mm
[ 264.231] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 264.231] (II) modeset(0): v_active: 1080 v_sync: 1082 v_sync_end 1087 v_blanking: 1125 v_border: 0
[ 264.232] (II) modeset(0): Supported detailed timing:
[ 264.232] (II) modeset(0): clock: 74.2 MHz Image Size: 930 x 523 mm
[ 264.232] (II) modeset(0): h_active: 1280 h_sync: 1720 h_sync_end 1760 h_blank_end 1980 h_border: 0
[ 264.232] (II) modeset(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0
[ 264.232] (II) modeset(0): Supported detailed timing:
[ 264.232] (II) modeset(0): clock: 74.2 MHz Image Size: 930 x 523 mm
[ 264.232] (II) modeset(0): h_active: 1280 h_sync: 1390 h_sync_end 1430 h_blank_end 1650 h_border: 0
[ 264.232] (II) modeset(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0
[ 264.232] (II) modeset(0): Number of EDID sections to follow: 1
[ 264.232] (II) modeset(0): EDID (in hex):
[ 264.232] (II) modeset(0): 00ffffffffffff00410c33d001010101
[ 264.232] (II) modeset(0): 0b110103805d34780ac1eca153469724
[ 264.232] (II) modeset(0): 114749b7ce0081c08bc0814000010001
[ 264.232] (II) modeset(0): 0001000100011a3680a070381f403020
[ 264.232] (II) modeset(0): 3500a20b3200001a0e1f008051001e30
[ 264.233] (II) modeset(0): 40803700a20b3200001c000000fc0034
[ 264.233] (II) modeset(0): 3250464c373432320a202020000000fd
[ 264.233] (II) modeset(0): 00184c0f460f000a20202020202001a5
[ 264.233] (II) modeset(0): 020323f4500102030485060790111213
[ 264.233] (II) modeset(0): 9415161d9f23097f078301000065030c
[ 264.233] (II) modeset(0): 002000023a80d072382d40102c2580a2
[ 264.233] (II) modeset(0): 0b3200001e023a801871382d40582c25
[ 264.233] (II) modeset(0): 00a20b3200001e011d00bc52d01e20b8
[ 264.233] (II) modeset(0): 285540a20b3200001e011d007251d01e
[ 264.233] (II) modeset(0): 206e285500a20b3200001e0000000000
[ 264.233] (II) modeset(0): 00000000000000000000000000000059
[ 264.234] (II) modeset(0): Printing probed modes for output HDMI-1
[ 264.234] (II) modeset(0): Modeline "1920x1080"x59.9 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (66.6 kHz eP)
[ 264.234] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync (67.5 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1082 1087 1125 +hsync +vsync (56.2 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080"x59.9 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080i"x60.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080i"x50.0 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[ 264.234] (II) modeset(0): Modeline "1920x1080i"x59.9 74.18 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[ 264.234] (II) modeset(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz e)
[ 264.234] (II) modeset(0): Modeline "1360x768"x59.9 84.96 1366 1431 1567 1776 768 771 781 798 -hsync +vsync (47.8 kHz)
[ 264.235] (II) modeset(0): Modeline "1280x768"x59.9 79.50 1280 1344 1472 1664 768 771 778 798 -hsync +vsync (47.8 kHz e)
[ 264.235] (II) modeset(0): Modeline "1280x720"x60.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 264.235] (II) modeset(0): Modeline "1280x720"x50.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz e)
[ 264.235] (II) modeset(0): Modeline "1280x720"x59.9 74.18 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz e)
[ 264.235] (II) modeset(0): Modeline "1440x576"x50.0 54.00 1440 1464 1592 1728 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 264.235] (II) modeset(0): Modeline "1024x768"x75.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz e)
[ 264.235] (II) modeset(0): Modeline "1024x768"x70.1 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz e)
[ 264.235] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
[ 264.235] (II) modeset(0): Modeline "800x600"x72.2 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz e)
[ 264.235] (II) modeset(0): Modeline "800x600"x75.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz e)
[ 264.235] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
[ 264.235] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
[ 264.235] (II) modeset(0): Modeline "720x576"x50.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz e)
[ 264.235] (II) modeset(0): Modeline "720x576i"x50.0 13.50 720 732 795 864 576 580 586 625 interlace -hsync -vsync (15.6 kHz e)
[ 264.236] (II) modeset(0): Modeline "720x480"x60.0 27.03 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 264.236] (II) modeset(0): Modeline "720x480"x59.9 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz e)
[ 264.236] (II) modeset(0): Modeline "720x480i"x60.0 13.51 720 739 801 858 480 488 494 525 interlace -hsync -vsync (15.8 kHz e)
[ 264.236] (II) modeset(0): Modeline "720x480i"x59.9 13.50 720 739 801 858 480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[ 264.236] (II) modeset(0): Modeline "640x480"x75.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz e)
[ 264.236] (II) modeset(0): Modeline "640x480"x66.7 30.24 640 704 768 864 480 483 486 525 -hsync -vsync (35.0 kHz e)
[ 264.236] (II) modeset(0): Modeline "640x480"x60.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 264.236] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz e)
[ 264.236] (II) modeset(0): Modeline "720x400"x70.1 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz e)
[ 264.236] (II) modeset(0): EDID for output Composite-1
[ 264.236] (II) modeset(0): Printing probed modes for output Composite-1
[ 264.237] (II) modeset(0): Modeline "720x480"x31.3 13.50 720 734 798 858 480 483 486 502 interlace (15.7 kHz e)
[ 264.237] (II) modeset(0): Output HDMI-1 connected
[ 264.237] (II) modeset(0): Output Composite-1 disconnected
[ 264.237] (II) modeset(0): Using exact sizes for initial modes
[ 264.237] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[ 264.237] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 264.237] (==) modeset(0): DPI set to (96, 96)
[ 264.237] (II) Loading sub module "fb"
[ 264.237] (II) LoadModule: "fb"
[ 264.238] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 264.240] (II) Module fb: vendor="X.Org Foundation"
[ 264.240] compiled for 1.20.3, module version = 1.0.0
[ 264.240] ABI class: X.Org ANSI C Emulation, version 0.4
[ 264.555] (==) modeset(0): Backing store enabled
[ 264.555] (==) modeset(0): Silken mouse disabled
[ 264.563] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 264.564] (==) modeset(0): DPMS enabled
[ 264.565] (II) modeset(0): [DRI2] Setup complete
[ 264.565] (II) modeset(0): [DRI2] DRI driver: vc4
[ 264.565] (II) modeset(0): [DRI2] VDPAU driver: vc4
[ 264.565] (II) Initializing extension Generic Event Extension
[ 264.565] (II) Initializing extension SHAPE
[ 264.565] (II) Initializing extension MIT-SHM
[ 264.565] (II) Initializing extension XInputExtension
[ 264.565] (II) Initializing extension XTEST
[ 264.565] (II) Initializing extension BIG-REQUESTS
[ 264.565] (II) Initializing extension SYNC
[ 264.565] (II) Initializing extension XKEYBOARD
[ 264.565] (II) Initializing extension XC-MISC
[ 264.565] (II) Initializing extension SECURITY
[ 264.565] (II) Initializing extension XFIXES
[ 264.565] (II) Initializing extension RENDER
[ 264.565] (II) Initializing extension RANDR
[ 264.565] (II) Initializing extension COMPOSITE
[ 264.565] (II) Initializing extension DAMAGE
[ 264.565] (II) Initializing extension MIT-SCREEN-SAVER
[ 264.565] (II) Initializing extension DOUBLE-BUFFER
[ 264.565] (II) Initializing extension RECORD
[ 264.565] (II) Initializing extension DPMS
[ 264.565] (II) Initializing extension Present
[ 264.565] (II) Initializing extension DRI3
[ 264.565] (II) Initializing extension X-Resource
[ 264.565] (II) Initializing extension XVideo
[ 264.565] (II) Initializing extension XVideo-MotionCompensation
[ 264.565] (II) Initializing extension GLX
[ 264.576] (II) AIGLX: Loaded and initialized vc4
[ 264.576] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 264.576] (II) Initializing extension XFree86-VidModeExtension
[ 264.576] (II) Initializing extension XFree86-DGA
[ 264.576] (II) Initializing extension XFree86-DRI
[ 264.576] (II) Initializing extension DRI2
[ 264.585] (II) modeset(0): Damage tracking initialized
[ 264.585] (II) modeset(0): Setting screen physical size to 508 x 285
[ 264.977] (II) config/udev: Adding input device RAPOO Rapoo 2.4G Wireless Device (/dev/input/event0)
[ 264.978] (**) RAPOO Rapoo 2.4G Wireless Device: Applying InputClass "libinput keyboard catchall"
[ 264.978] (II) LoadModule: "libinput"
[ 264.978] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 264.985] (II) Module libinput: vendor="X.Org Foundation"
[ 264.985] compiled for 1.20.2, module version = 0.28.1
[ 264.985] Module class: X.Org XInput Driver
[ 264.985] ABI class: X.Org XInput driver, version 24.1
[ 264.986] (II) Using input driver 'libinput' for 'RAPOO Rapoo 2.4G Wireless Device'
[ 264.988] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 18 paused 0
[ 264.988] (**) RAPOO Rapoo 2.4G Wireless Device: always reports core events
[ 264.988] (**) Option "Device" "/dev/input/event0"
[ 264.988] (**) Option "_source" "server/udev"
[ 264.996] (II) event0 - RAPOO Rapoo 2.4G Wireless Device: is tagged by udev as: Keyboard
[ 264.996] (II) event0 - RAPOO Rapoo 2.4G Wireless Device: device is a keyboard
[ 264.996] (II) event0 - RAPOO Rapoo 2.4G Wireless Device: device removed
[ 264.996] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:24AE:1813.0001/input/input0/event0"
[ 264.997] (II) XINPUT: Adding extended input device "RAPOO Rapoo 2.4G Wireless Device" (type: KEYBOARD, id 6)
[ 265.002] (II) event0 - RAPOO Rapoo 2.4G Wireless Device: is tagged by udev as: Keyboard
[ 265.002] (II) event0 - RAPOO Rapoo 2.4G Wireless Device: device is a keyboard
[ 265.005] (II) config/udev: Adding input device RAPOO Rapoo 2.4G Wireless Device (/dev/input/event1)
[ 265.005] (**) RAPOO Rapoo 2.4G Wireless Device: Applying InputClass "libinput pointer catchall"
[ 265.005] (**) RAPOO Rapoo 2.4G Wireless Device: Applying InputClass "libinput keyboard catchall"
[ 265.005] (II) Using input driver 'libinput' for 'RAPOO Rapoo 2.4G Wireless Device'
[ 265.007] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 21 paused 0
[ 265.008] (**) RAPOO Rapoo 2.4G Wireless Device: always reports core events
[ 265.008] (**) Option "Device" "/dev/input/event1"
[ 265.008] (**) Option "_source" "server/udev"
[ 265.014] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: is tagged by udev as: Keyboard Mouse
[ 265.014] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: device is a pointer
[ 265.014] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: device is a keyboard
[ 265.014] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: device removed
[ 265.015] (II) libinput: RAPOO Rapoo 2.4G Wireless Device: needs a virtual subdevice
[ 265.015] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:24AE:1813.0002/input/input1/event1"
[ 265.015] (II) XINPUT: Adding extended input device "RAPOO Rapoo 2.4G Wireless Device" (type: MOUSE, id 7)
[ 265.015] (**) Option "AccelerationScheme" "none"
[ 265.015] (**) RAPOO Rapoo 2.4G Wireless Device: (accel) selected scheme none/0
[ 265.015] (**) RAPOO Rapoo 2.4G Wireless Device: (accel) acceleration factor: 2.000
[ 265.015] (**) RAPOO Rapoo 2.4G Wireless Device: (accel) acceleration threshold: 4
[ 265.020] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: is tagged by udev as: Keyboard Mouse
[ 265.021] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: device is a pointer
[ 265.021] (II) event1 - RAPOO Rapoo 2.4G Wireless Device: device is a keyboard
[ 265.023] (II) config/udev: Adding input device RAPOO Rapoo 2.4G Wireless Device (/dev/input/mouse0)
[ 265.023] (II) No input driver specified, ignoring this device.
[ 265.023] (II) This device may have been added with another device file.
[ 265.036] (**) RAPOO Rapoo 2.4G Wireless Device: Applying InputClass "libinput pointer catchall"
[ 265.036] (**) RAPOO Rapoo 2.4G Wireless Device: Applying InputClass "libinput keyboard catchall"
[ 265.036] (II) Using input driver 'libinput' for 'RAPOO Rapoo 2.4G Wireless Device'
[ 265.036] (II) systemd-logind: returning pre-existing fd for /dev/input/event1 13:65
[ 265.036] (**) RAPOO Rapoo 2.4G Wireless Device: always reports core events
[ 265.036] (**) Option "Device" "/dev/input/event1"
[ 265.036] (**) Option "_source" "_driver/libinput"
[ 265.036] (II) libinput: RAPOO Rapoo 2.4G Wireless Device: is a virtual subdevice
[ 265.036] (**) Option "config_info" "udev:/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:24AE:1813.0002/input/input1/event1"
[ 265.036] (II) XINPUT: Adding extended input device "RAPOO Rapoo 2.4G Wireless Device" (type: KEYBOARD, id 8)
')

On the other hand, Xorg runs as expected using the aarch64 image, glxgears there shows the expected output, that is:
$this->bbcode_second_pass_code('', '
GL_RENDERER = VC4 V3D 2.1
GL_VERSION = 2.1 Mesa 18.3.1
GL_VENDOR = Broadcom
')
I compared the `dmesg | grep vc4` output from the aarch64 image to the armv7h's one I pasted above, and couldn't spot any meaningful difference (omitting said output for brevity). Also compared the Xorg logs, no meaningful difference either up to the point of crash (omitting that log as well).

I also tested the same with Raspbian (current image, so arch armv7l and kernel 4.14.x). Enabling the vc4-kms-v3d driver there, `glxgears -info` reports Gallium vc4 renderer and Broadcom vendor in a manner similar to the aarch64 image.

I tried everything that I could find through our favorite search engines, over and over, and am at a loss about what could be wrong with my config.
I would deeply appreciate any advice or guidance :)
Last edited by bonob on Wed Feb 06, 2019 6:51 pm, edited 1 time in total.
bonob
 
Posts: 2
Joined: Sun Jan 20, 2019 11:24 am

Re: Xorg not starting with vc4 on Pi 3B+

Postby bonob » Wed Feb 06, 2019 6:51 pm

So, after upgrading today it works.
Xorg was not updated. Mesa was, but I'm thinking mesa should not prevent X to start.
Linux was updated, from 4.14.94 to 4.14.97, so I'm assuming that's the reason.

As of now I get glxgears report VC4 V3D 2.1 renderer, and perfect official mpv playing, without framebuffer driver (no xf86-video-fbdev and xf86-video-fbturbo-git).
I can't (yet) get pulseaudio and retroarch to work, while both work on my aarch64 installation, but that's another matter.

Marking this solved.
bonob
 
Posts: 2
Joined: Sun Jan 20, 2019 11:24 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 12 guests