tonychen Posted July 15, 2016 Posted July 15, 2016 This is based on the guide at http://linux-sunxi.org/Qt5_For_Mali_Binarieswith modification. 1. compile armbian (In my case Jessie without desktop) from source https://github.com/igorpecovnik/lib 2. log in and edit /etc/modules-load.d/modules.conf add following line: 8189fs mali ump drm mali_drm sunxi_cedar_mod 3. Change the default gcc to gcc-4.8: sudo apt-get install gcc-4.8 g++-4.8 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 // Switch between version sudo update-alternatives --config gcc sudo update-alternatives --config g++ 3. Compile and install Mali Driver: add a file to /etc/udev/rules.d/ and call it 50-mali.rules with following content: KERNEL=="mali", MODE="0660", GROUP="video" KERNEL=="ump", MODE="0660", GROUP="video" add the following to /etc/apt/source.list: deb http://packages.linux-sunxi.org/ubuntu/quantal main deb-src http://packages.linux-sunxi.org/ubuntu/quantal main Run the following in console: sudo apt-get install libump apt-get install debhelper dh-autoreconf fakeroot pkg-config apt-get install git build-essential autoconf automake apt-get install xutils-dev git clone --recursive https://github.com/linux-sunxi/sunxi-mali.git cd sunxi-mali make config sudo make install Reboot the board 4. Install dependencies: sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev \ libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev \ libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev \ libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev \ libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev \ libsqlite3-dev \ libxcb-glx0-dev libxcb-xinerama0-dev\ sudo apt-get install libfontconfig1-dev libdbus-1-dev libudev-dev libicu-dev libsqlite3-dev libxslt1-dev libssl-dev libasound2-dev libavcodec-dev libswscale-dev libgstreamer0.10-dev gstreamer-plugins-base0.10-dev gstreamer-tools streamer0.10-plugins-bad libpulse-dev libx11-dev libglib2.0-dev freetds-dev libsqlite0-dev libpq-dev libiodbc2-dev libmysqlclient-dev firebird-dev libpng12-dev libgst-dev libxext-dev libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev libxi-dev libdrm-dev 5. Download Qt everywhere source and extract 6. ./configure -release -opensource -confirm-license -opengl es2 -no-pch -nomake examples —nomake tests -skip multimedia 7. make & make install (NB: using -j3 seems to give error when compile) 1
Clum Posted April 13, 2018 Posted April 13, 2018 On 15.7.2016 at 3:31 AM, tonychen said: d sunxi-mali Sorry if this is stupid, I'm a complete newbie to this. I'm running self-compiled Armbian 5.41 (Mainline) on an OrangePi One. I tried to follow your tutorial, however when I got to "make config" Error: Failed to open /dev/mali: No such file or directory Makefile.config:57: Unknown/unhandled Mali Version "" Makefile.config:58: Use VERSION=(r2p4,r3p0,r3p1,r3p2-01rel1) instead Error: Failed to open /dev/mali: No such file or directory Makefile.config:59: *** Unknown/unhandled Mali Version "". Stop. make[2]: Leaving directory '/home/user/sunxi-mali' Makefile:12: recipe for target 'config.mk' failed make[1]: *** [config.mk] Error 2 make[1]: Leaving directory '/home/user/sunxi-mali' Makefile:8: recipe for target 'config' failed make: *** [config] Error 2 so I tried modprobe mali and got modprobe: FATAL: Module mali not found in directory /lib/modules/4.14.18-sunxi And noticed that folder doesn't exist, just a couple ones like "4.13.0-37-generic". Now I checked with http://linux-sunxi.org/Mali_binary_driver#Modules and got just as far there. Any ideas?
Igor Posted April 13, 2018 Posted April 13, 2018 12 minutes ago, Clum said: Any ideas? Go for the legacy kernel. There is no MALI in a modern kernel .. yet. 1
Clum Posted April 13, 2018 Posted April 13, 2018 3 minutes ago, Igor said: Go for the legacy kernel. There is no MALI in a modern kernel .. yet. Thanks for your response! My issue with the Legacy Kernel is that I can't get my touchscreen to run - either you can use touch or you can use the screen, never both. This works well on Mainline. I guess I'll have to wait for the Mali support then
Igor Posted April 13, 2018 Posted April 13, 2018 19 minutes ago, Clum said: I guess I'll have to wait for the Mali support then Theoretically you could put things together on 4.14.y but not recommended. 4.17.y ... in a few months to get theoretical grounds, then few more to get things operational.
Clum Posted April 13, 2018 Posted April 13, 2018 53 minutes ago, Igor said: Theoretically you could put things together on 4.14.y but not recommended. 4.17.y ... in a few months to get theoretical grounds, then few more to get things operational. I think that is waaaay beyond my expertise. This https://bootlin.com/blog/mali-opengl-support-on-allwinner-platforms-with-mainline-linux/ sounds like there is some hope though.
Recommended Posts