add odroid mali GL support.
PATCH RESEND v2 1/3 add odroid mali GL support.
add GL support to the odroid c2 boards
--- package/Config.in | 1 + package/odroid-mali/Config.in | 19 +++++++++++++ package/odroid-mali/egl.pc | 10 +++++++ package/odroid-mali/glesv2.pc | 10 +++++++ package/odroid-mali/odroid-mali.hash | 1 + package/odroid-mali/odroid-mali.mk | 53 ++++++++++++++++++++++++++++++++++++ 6 files changed, 94 insertions(+) create mode 100644 package/odroid-mali/Config.in create mode 100644 package/odroid-mali/egl.pc create mode 100644 package/odroid-mali/glesv2.pc create mode 100644 package/odroid-mali/odroid-mali.hash create mode 100644 package/odroid-mali/odroid-mali.mk
package/Config.in +1 -0
@@ -418,6 +418,7 @@ endif source "package/nvidia-driver/Config.in" source "package/nvidia-tegra23/Config.in" source "package/nvme/Config.in" + source "package/odroid-mali/Config.in" source "package/ofono/Config.in" source "package/ola/Config.in" source "package/on2-8170-modules/Config.in"
package/odroid-mali/Config.in new file +19 -0
@@ -0,0 +1,19 @@ +config BR2_PACKAGE_ODROID_MALI + bool "odroid-mali" + select BR2_PACKAGE_HAS_LIBEGL + select BR2_PACKAGE_HAS_LIBGLES + select BR2_PACKAGE_FBSET + depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_aarch64 + help + Install the ARM Mali drivers for odroid based systems. + + http://github.com/linux-odroid/odroid-mali + +if BR2_PACKAGE_ODROID_MALI +config BR2_PACKAGE_PROVIDES_LIBEGL + default "odroid-mali" + +config BR2_PACKAGE_PROVIDES_LIBGLES + default "odroid-mali" +endif
package/odroid-mali/egl.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: Amlogic implementation of EGL +Version: 0.99 +Libs: -L${libdir} -lEGL -lGLESv2 +Cflags: -I${includedir}/
package/odroid-mali/glesv2.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: glesv2 +Description: Amlogic implementation of OpenGL ESv2 +Version: 0.99 +Libs: -L${libdir} -lGLESv2 +Cflags: -I${includedir}/
package/odroid-mali/odroid-mali.hash new file +1 -0
@@ -0,0 +1 @@ +sha256 1cddeb6990a9446339abde79ca1d01a8480b98cf107019f0847390b9549d90cc opengl-meson-gxbb-r5p1-01rel0.tar.xz
package/odroid-mali/odroid-mali.mk new file +53 -0
53 lines not on this page · raw message
Signature · 1 line
2.8.3
PATCH v2 2/3 add support for odroid mali GL in kodi
add GL support to the odroid c2 boards
--- package/kodi/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/kodi/Config.in +2 -2
@@ -1,6 +1,6 @@ config BR2_PACKAGE_KODI_ARCH_SUPPORTS bool - default y if (BR2_arm || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \ + default y if (BR2_arm || BR2_aarch64 || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \ && BR2_PACKAGE_BOOST_ARCH_SUPPORTS \ && BR2_TOOLCHAIN_HAS_SYNC_8
@@ -24,7 +24,7 @@ config BR2_PACKAGE_KODI_GL bool default y depends on BR2_PACKAGE_HAS_LIBGL - depends on !BR2_arm # kodi needs egl/gles on arm + depends on !BR2_arm || !BR2_aarch64 # kodi needs egl/gles on arm comment "kodi needs an OpenGL or an openGL ES and EGL backend" depends on BR2_i386 || BR2_x86_64
Signature · 1 line
2.8.3
PATCH v2 2/3 add support for odroid mali GL in kodi
Hi,
Am Wed, 25 May 2016 20:46:31 +0300 schrieb Dagg:
package/kodi/Config.in
Quoted 11 lines
add GL support to the odroid c2 boards
Signed-off-by Dagg <[email protected]>--- package/kodi/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)package/kodi/Config.in +0
-0
the subject of the patch has nothing to do with the content ;)
package/kodi/Config.in line 3
Quoted 2 lines
package/kodi/Config.in +1
-1- default y if (BR2_arm || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \ + default y if (BR2_arm || BR2_aarch64 || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \
Kodi 16.x-Jarvis will not compile on aarch64, this arch will be supported with the upcoming 17.x-Krypton release:
https://github.com/xbmc/xbmc/commit/487da7934b6bbcaa3b5d8350bcb44dd48c9027f7
Regards, Bernd
PATCH v2 2/3 add support for odroid mali GL in kodi
Greetings,
Quoted 23 lines
Sent: Wednesday, May 25, 2016 at 10:31 PM
From: "Bernd Kuhls" <[email protected]>
To: buildroot at uclibc.org
Subject: Re: [Buildroot] [PATCH v2 2/3] add support for odroid mali GL in kodiHi,
Am Wed, 25 May 2016 20:46:31 +0300 schrieb Dagg:
package/kodi/Config.in
Quoted 11 lines
add GL support to the odroid c2 boards
Signed-off-by Dagg <[email protected]>--- package/kodi/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)package/kodi/Config.in +0
-0the subject of the patch has nothing to do with the content ;)
Quoted 9 lines
package/kodi/Config.in line 3
Quoted 2 lines
package/kodi/Config.in +1
-1- default y if (BR2_arm || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \ + default y if (BR2_arm || BR2_aarch64 || (BR2_mipsel && BR2_TOOLCHAIN_USES_GLIBC) || BR2_i386 || BR2_x86_64) \Kodi 16.x-Jarvis will not compile on aarch64, this arch will be supported with the upcoming 17.x-Krypton release:
https://github.com/xbmc/xbmc/commit/487da7934b6bbcaa3b5d8350bcb44dd48c9027f7Regards, Bernd
you are correct, please ignore this patch.
PATCH v2 3/3 - allow building of odroid mali GL libs when using defconfig. - add S50display which sets the odroid mali fb.
In reply to Dagg--- .../odroidc2/fs-overlay/etc/init.d/S50display | 103 +++++++++++++++++++++ configs/odroidc2_defconfig | 1 + 2 files changed, 104 insertions(+) create mode 100644 board/hardkernel/odroidc2/fs-overlay/etc/init.d/S50display
board/hardkernel/odroidc2/fs-overlay/etc/init.d/S50display new file +103 -0
@@ -0,0 +1,103 @@ +#!/bin/sh + +export mode=`cat /proc/cmdline | sed -rn 's/.+(hdmimode=)(\S+)\s.+/\2/p'` +export bpp=`cat /proc/cmdline | sed -rn 's/.+(m_bpp=)(\S+)\s.+/\2/p'` + +common_display_setup() { + M="0 0 $(($X - 1)) $(($Y - 1))" + Y_VIRT=$(($Y * 2)) + fbset -fb /dev/fb0 -g $X $Y $X $Y_VIRT $bpp + fbset -fb /dev/fb1 -g 32 32 32 32 32 + echo $mode > /sys/class/display/mode + echo 0 > /sys/class/graphics/fb0/free_scale + echo 1 > /sys/class/graphics/fb0/freescale_mode + echo $M > /sys/class/graphics/fb0/free_scale_axis + echo $M > /sys/class/graphics/fb0/window_axis + echo 0 > /sys/class/graphics/fb1/free_scale +} + +case $mode in + 480*) + export X=720 + export Y=480 + ;; + 576*) + export X=720 + export Y=576 + ;; + 720p*) + export X=1280 + export Y=720 + ;; + 1080*) + export X=1920 + export Y=1080 + ;; + 2160p*) + export X=3840 + export Y=2160 + ;; + smpte24hz*) + export X=3840 + export Y=2160 + ;; + 640x480p60hz*) + export X=640 + export Y=480 + ;; + 800x480p60hz*) + export X=800 + export Y=480 + ;; + 800x600p60hz*) + export X=800 + export Y=600 + ;; + 1024x600p60hz*) + export X=1024 + export Y=600 + ;; + 1024x768p60hz*) + export X=1024 + export Y=768 + ;; + 1280x800p60hz*) + export X=1280 + export Y=800 + ;; + 1280x1024p60hz*) + export X=1280 + export Y=1024 + ;; + 1360x768p60hz*) + export X=1360 + export Y=768 + ;; + 1366x768p60hz*) + export X=1366 + export Y=768 + ;; + 1440x900p60hz*) + export X=1440 + export Y=900 + ;; + 1600x900p60hz*) + export X=1600 + export Y=900 + ;; + 1680x1050p60hz*) + export X=1680 + export Y=1050 + ;; + 1920x1200p60hz*) + export X=1920 + export Y=1200 + ;; +esac + +common_display_setup + +echo 0 > /sys/class/graphics/fb0/blank +echo 0 > /sys/class/graphics/fb1/blank + +exit $?
configs/odroidc2_defconfig +1 -0
@@ -6,6 +6,7 @@ BR2_TARGET_GENERIC_HOSTNAME="odroidc2" BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y BR2_ROOTFS_POST_IMAGE_SCRIPT="board/hardkernel/odroidc2/post-image.sh" +BR2_ROOTFS_OVERLAY="board/hardkernel/odroidc2/fs-overlay" # Kernel BR2_KERNEL_HEADERS_VERSION=y
Signature · 1 line
2.8.3
PATCH RESEND v2 1/3 add odroid mali GL support.
In reply to DaggHi!
Le Wed, 25 May 2016 20:46:30 +0300,
Dagg <[email protected]> a ?crit :
<snip>
package/odroid-mali/odroid-mali.mk line 10
Quoted 10 lines
package/odroid-mali/odroid-mali.mk new file +10
-0+################################################################################ +# +# odroid-mali +# +################################################################################ + +ODROID_MALI_VERSION = $(ODROID_DRIVER_VERSION) +ODROID_MALI_TARBALL = opengl-meson-gxbb-r5p1-01rel0.tar.xz +ODROID_MALI_SITE = http://sources.openelec.tv/devel +ODROID_MALI_SOURCE = opengl-meson-gxbb-r5p1-01rel0.tar.xz
<snip>
I've just received an odroidc2 and I am very interested by this patch. However, why is the binary userspace driver hijacked from another FOSS project (OpenELEC)?
Is'nt there an official repository for the MALI 450 userspace driver? I looked at the MALI developer site [1], but could not find anything for it...
[1] https://malideveloper.arm.com/resources/drivers/arm-mali-midgard-gpu-user-space-drivers/
Signature · 1 line
ELB
PATCH RESEND v2 1/3 add odroid mali GL support.
Greetings,
Quoted 24 lines
Sent: Wednesday, May 25, 2016 at 11:47 PM
From: "Eric Le Bihan" <[email protected]>
To: Dagg <[email protected]>
Cc: buildroot at buildroot.org
Subject: Re: [Buildroot] [PATCH v2 resend 1/3] add odroid mali GL support.Hi!
Le Wed, 25 May 2016 20:46:30 +0300,
Dagg <[email protected]> a ?crit :<snip>
Quoted 10 lines
package/odroid-mali/odroid-mali.mk new file +10
-0+################################################################################ +# +# odroid-mali +# +################################################################################ + +ODROID_MALI_VERSION = $(ODROID_DRIVER_VERSION) +ODROID_MALI_TARBALL = opengl-meson-gxbb-r5p1-01rel0.tar.xz +ODROID_MALI_SITE = http://sources.openelec.tv/devel +ODROID_MALI_SOURCE = opengl-meson-gxbb-r5p1-01rel0.tar.xz<snip>
Quoted 11 lines
I've just received an odroidc2 and I am very interested by this patch. However, why is the binary userspace driver hijacked from another FOSS project (OpenELEC)?
Is'nt there an official repository for the MALI 450 userspace driver? I looked at the MALI developer site [1], but could not find anything for it...
[1] https://malideveloper.arm.com/resources/drivers/arm-mali-midgard-gpu-user-space-drivers/
Signature · 1 line
ELB
that is the only place I could find it without the need to find a place to store it.
it can be taken from the official buildroot of hardkernel but it will need a place to store it as it needs to be taken from https://github.com/hardkernel/buildroot/tree/master/package/opengl/src/lib
I can try and modify the file to download the files from the git repo if it is the right way to do this.
Dagg.
PATCH RESEND v2 1/3 add odroid mali GL support.
In reply to DaggLe Wed, 25 May 2016 20:46:30 +0300,
Dagg <[email protected]> a ?crit :
Quoted 3 lines
add GL support to the odroid c2 boards
Signed-off-by Dagg <[email protected]>
I took the liberty to update this patch as follow:
1. extract the commands from the sysv service from first patch to an helper tool (odroid-setup-display).
2. add sys/systemd services installation according to Buildroot standards.
3. fix installation of the libs on the target.
So, now you can drop the first patch, as there is no need anymore for a dedicated fs overlay.
I tested it on a systemd-based firmware on my odroidc2 device. To spawn a tty on the screen, the following commands should be executed on the target:
``` cd /etc/systemd/system/getty.target.wants/ ln -s ../../../../lib/systemd/system/getty at .service getty at tty0.service reboot ```
Regards,
--
ELB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-odroid-mali-new-package.patch
Type: text/x-patch
Size: 9270 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160526/b0a29c99/attachment.bin>