Bug 13852

Summary: libGL error: No driver found
Product: [Runtime] General Runtime Reporter: Changqing Li <changqing.li>
Component: General RuntimeAssignee: Unassigned <unassigned>
Status: RESOLVED NOTABUG QA Contact:
Severity: minor    
Priority: Undecided CC: randy.macleod
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Changqing Li 2020-04-03 02:59:38 UTC
Test steps:
1. add below info in local.conf
DISTRO_FEATURES_append = " systemd pam"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
KERNEL_FEATURES_append = " cfg/systemd.scc"


INHERIT += 'testimage'
TEST_QEMUBOOT_TIMEOUT = "1500"

VIRTUAL-RUNTIME_syslog ?= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPLv3', 'sysklogd', 'rsyslog', d)}"
VIRTUAL-RUNTIME_base-utils-syslog ?= "${VIRTUAL-RUNTIME_syslog}"

2. bitbake core-image-sato
3. bitbake core-image-sato -c testimage 


in the daemon.log:
there are errors:
2020-04-03T02:42:06.271013+00:00 qemux86-64 Xserver[261]: libGL error: pci id for fd 4: 1234:1111, driver (null)
2020-04-03T02:42:06.271130+00:00 qemux86-64 Xserver[261]: libGL error: No driver found          
2020-04-03T02:42:06.271182+00:00 qemux86-64 Xserver[261]: libGL error: failed to load driver: (null)                                    
2020-04-03T02:42:06.308070+00:00 qemux86-64 Xserver[253]: libGL error: pci id for fd 4: 1234:1111, driver (null)
2020-04-03T02:42:06.308095+00:00 qemux86-64 Xserver[253]: libGL error: No driver found
2020-04-03T02:42:06.308108+00:00 qemux86-64 Xserver[253]: libGL error: failed to load driver: (null)
2020-04-03T02:42:06.339798+00:00 qemux86-64 Xserver[279]: libGL error: pci id for fd 4: 1234:1111, driver (null)                                                                  
2020-04-03T02:42:06.339903+00:00 qemux86-64 Xserver[279]: libGL error: No driver found    
2020-04-03T02:42:06.339920+00:00 qemux86-64 Xserver[279]: libGL error: failed to load driver: (null)         
2020-04-03T02:42:06.358335+00:00 qemux86-64 Xserver[280]: libGL error: pci id for fd 4: 1234:1111, driver (null)                                    
2020-04-03T02:42:06.358359+00:00 qemux86-64 Xserver[280]: libGL error: No driver found                                                                     
2020-04-03T02:42:06.358372+00:00 qemux86-64 Xserver[280]: libGL error: failed to load driver: (null)   




more info:
boot target by "runqemu qemux86-64 nographic kvm core-image-sato"

root@qemux86-64:/var/log# dmesg | grep bochs-drm
[    0.710782] bochs-drm 0000:00:02.0: remove_conflicting_pci_framebuffers: bar 0: 0xfd000000 -> 0xfdffffff
[    0.711796] bochs-drm 0000:00:02.0: remove_conflicting_pci_framebuffers: bar 2: 0xfebd0000 -> 0xfebd0fff
[    0.712812] bochs-drm 0000:00:02.0: vgaarb: deactivate vga console
[    0.721380] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0
[    0.726980] fbcon: bochs-drmdrmfb (fb0) is primary device
[    0.735148] bochs-drm 0000:00:02.0: fb0: bochs-drmdrmfb frame buffer device
root@qemux86-64:/var/log# lspci -d 1234:1111 -knn 
00:02.0 VGA compatible controller [0300]: Device [1234:1111] (rev 02)
	Subsystem: Red Hat, Inc. Device [1af4:1100]
	Kernel driver in use: bochs-drm

seems driver is ok.
Comment 1 Randy MacLeod 2020-04-09 14:33:54 UTC
You are booting without graphics so these errors are expected.
Comment 2 Randy MacLeod 2020-04-09 14:34:54 UTC
If this still happens when you are running with graphics or you can explain in greater detail, why you think this is a bug, please re-open.