Okay, this script is confirmed to work in a XU4  image with desktop and kernel NEXT 4.14.29 nightly:   #!/bin/bash if [ $EUID != 0 ]; then sudo "$0" "$@" exit $? fi # User setup grep -q odroid /etc/passwd || adduser --no-create-home --disabled-login --disabled-password --gecos "" odroid usermod -aG video $(getent passwd 1000 | cut -f1 -d:) # Package installation wget http://deb.odroid.in/5422-s/pool/main/m/mali-x11/mali-x11_20170718-r17p0-20503ff-3_armhf.deb dpkg -i mali-x11_20170718-r17p0-20503ff-3_armhf.deb rm mali-x11_20170718-r17p0-20503ff-3_armhf.deb wget http://deb.odroid.in/5422-s/pool/main/x/xf86-video-armsoc/xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb dpkg -i xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb rm xserver-xorg-video-armsoc-exynos_1.4.1-0ubuntu4_armhf.deb wget http://deb.odroid.in/5422-s/pool/main/x/xf86-video-armsoc/xserver-xorg-video-armsoc_1.4.1-0ubuntu6_armhf.deb dpkg -i xserver-xorg-video-armsoc_1.4.1-0ubuntu6_armhf.deb rm xserver-xorg-video-armsoc_1.4.1-0ubuntu6_armhf.deb wget http://deb.odroid.in/5422-s/pool/main/libs/libsdl2/libsdl2-2.0-0_2.0.4%2bdfsg1-2ubuntu3_armhf.deb dpkg -i libsdl2-2.0-0_2.0.4+dfsg1-2ubuntu3_armhf.deb rm libsdl2-2.0-0_2.0.4+dfsg1-2ubuntu3_armhf.deb wget http://deb.odroid.in/5422-s/pool/main/p/pixman/libpixman-1-0_0.34.0-1hk3_armhf.deb dpkg -i libpixman-1-0_0.34.0-1hk3_armhf.deb rm libpixman-1-0_0.34.0-1hk3_armhf.deb apt -y install libdrm-exynos1 # Udev rules echo 'KERNEL=="mali0",SUBSYSTEM=="misc",MODE="0777" KERNEL=="CEC", MODE="0777" KERNEL=="cec*", MODE="0777"' > /etc/udev/rules.d/10-odroid.rules # Xorg config sudo rm /etc/X11/xorg.conf.d/* echo 'Section "Device" Identifier "Mali-Fbdev" Driver "armsoc" Option "fbdev" "/dev/fb0" Option "Debug" "false" Option "DPMS" "false" Option "NoFlip" "true" Option "NoHardwareMouse" "true" EndSection Section "ServerLayout" Identifier "Default Layout" Option "BlankTime" "0" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" EndSection Section "DRI" Mode 0666 EndSection Section "Extensions" Option "Composite" "Disable" Option "RENDER" "Disable" EndSection ' > /etc/X11/xorg.conf.d/01-armbian-defaults.conf # Chromium config echo '# Default settings for chromium-browser. This file is sourced by /bin/sh from # /usr/bin/chromium-browser # Options to pass to chromium-browser CHROMIUM_FLAGS=" --disable-namespace-sandbox --use-gl=egl --ignore-gpu-blacklist --disable-accelerated-2d-canvas --num-raster-threads=2" ' > /etc/chromium-browser/default [ -e /usr/lib/chromium-browser/libEGL.so ] && mv /usr/lib/chromium-browser/libEGL.so /usr/lib/chromium-browser/libEGL.so.org [ -e /usr/lib/chromium-browser/libGLESv2.so ] && mv /usr/lib/chromium-browser/libGLESv2.so /usr/lib/chromium-browser/libGLESv2.so.org ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/chromium-browser/libEGL.so ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/chromium-browser/libGLESv2.so echo ' *********************************** * Configuration complete. * * PLEASE REBOOT * *********************************** ' exit 0 Notes: You must disable window compositing, or performance will be awful The problem is that, without compositing, some elements of the Xfce UI became invisible, the most annoying being the tray notification icons. I have checked, and it also happens in the Hardkernel image, but it is not a problem for them since they use Mate as default DE. We'll need to find a way to work around this.
  • Reputation Points