diff --git a/README.adoc b/README.adoc index 56b32f7..4e8d8b9 100644 --- a/README.adoc +++ b/README.adoc @@ -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. diff --git a/br2_kmscube b/br2_kmscube new file mode 100644 index 0000000..a24b5f9 --- /dev/null +++ b/br2_kmscube @@ -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 diff --git a/build b/build index 1d4950b..865f213 100755 --- a/build +++ b/build @@ -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