kmscube: document failed attempt

build: remove duplicated lines from some merge
This commit is contained in:
Ciro Santilli
2018-06-01 09:50:00 +01:00
parent 55b94d2896
commit 07b9ae39d7
3 changed files with 56 additions and 11 deletions

View File

@@ -3815,12 +3815,6 @@ Ubuntu 18.04 host attempts with an NVIDIA graphics cards failed, it seems that N
* https://github.com/dvdhrm/kmscon/issues/113 `driver does not support dumb buffers`
* https://github.com/Aetf/kmscon/issues/2#issuecomment-392484043 kmscon attempt
* `sudo apt-get instll kmscube && kmscube` fails with:
+
....
drmModeGetResources failed: Invalid argument
failed to initialize legacy DRM
....
Bibliography:
@@ -3832,6 +3826,52 @@ Bibliography:
Tested on: 93e383902ebcc03d8a7ac0d65961c0e62af9612b
==== kmscube
TODO get working:
....
./build -b br2_kmscube
....
build fails with:
....
configure: error: Package requirements (egl) were not met:
Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'egl', required by 'world', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables EGL_CFLAGS
and EGL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
package/pkg-generic.mk:213: recipe for target '/home/ciro/bak/git/linux-kernel-module-cheat/out/x86_64/buildroot/build/kmscube-6cbd03ab94066dddbba7bedfde87c7c4319c18d5/.stamp_configured' failed
make[1]: *** [/home/ciro/bak/git/linux-kernel-module-cheat/out/x86_64/buildroot/build/kmscube-6cbd03ab94066dddbba7bedfde87c7c4319c18d5/.stamp_configured] Error 1
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
....
TODO: minimize on master and bug report.
On Ubuntu 18.04 with NVIDIA proprietary drivers:
....
sudo apt-get instll kmscube
kmscube
....
fails with:
....
drmModeGetResources failed: Invalid argument
failed to initialize legacy DRM
....
==== libdri2
TODO get working.

10
br2_kmscube Normal file
View File

@@ -0,0 +1,10 @@
BR2_PACKAGE_KMSCUBE=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
# Software rasteriser.
# Selects the following chain:
# BR2_PACKAGE_MESA3D_DRIVER=y
# BR2_PACKAGE_MESA3D_DRI_DRIVER=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y

5
build
View File

@@ -164,11 +164,6 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"${post_script_args}\"
sed -Ei 's/^BR2_PACKAGE_LINUX_TOOLS_GPIO/BR2_PACKAGE_LINUX_TOOLS_GPIO=n/' "$config_file"
fi
make O="$buildroot_out_dir" olddefconfig
if [ "$arch" = 'mips64' ]; then
# Workaround for: https://bugs.busybox.net/show_bug.cgi?id=10276
sed -Ei 's/^BR2_PACKAGE_LINUX_TOOLS_GPIO/BR2_PACKAGE_LINUX_TOOLS_GPIO=n/' "$config_file"
fi
make O="$buildroot_out_dir" olddefconfig
fi
common_mkdir