Open pebri86 opened 6 years ago
I solved the issue with set DefaultDepth of screen section to 16 instead of 24, after that the driver could load and xserver running.
But i face another issue, mouse cursor move very slow, how i can fix that?
Thanks for that tip @pebri86. Saved me a lengthy debugging session. On kernel 4.16.0 i still had to use DefaultDepth 24 to get things going. Mind you it ran pretty slow on my ancient Cubieboard2. At the moment es2gears_x11 runs at ~50fps with kernel 4.19-rc5 on an 800x600 LCD display.
Regarding slow cursor. I found this comment in a fork of xf86-video-armsoc when hunting for the DisplayInit solution: https://github.com/wens/xf86-video-armsoc/commit/77ef51b85117128788b8d4cc33800eb0c26ed442
Regarding slow cursor. I found this comment in a fork of xf86-video-armsoc when hunting for the DisplayInit solution: wens@77ef51b
Thanks for pointing me out that fork, i'll try when i've free time.. Btw how did you get xserver running with depht 24 on 4.16 kernel ?
I am not sure it really ran with depth 24, but it definitely needed DefaultDepth 24 set in the 20-armsoc.conf in order to start-up at all. Here is my "suffering" thread: https://github.com/mripard/sunxi-mali/issues/38 All i can say is i had it working on Kernel 4.16 with yocto release rocko, r6p2 mali driver, r6p2 sunxi mali blob, and this xf86-video-armsor, but due to getting the LCD display running as well, i had half a ton of patches applied to both u-boot and the kernel. @giuliobenetti had pointed me to a GEM patch for Kernel 4.16 that was definitely needed on top of adding the DTS bindings, which were not merged at that point. You can find it mentioned in the linked thread.
(Currently playing with Yocto Sumo with meta-sunxi layer, but updating u-boot and kernel and using the bootlin allwinner mali-sunxi driver and blobs. I should probably upload it to GitHub at some point, but my bitbake recipes are probably pretty terrible.)
Compile for Cubieboard 2 with Mainline Kernel 4.18.0 with Mali Kernel driver Installed
here Xorg.log.0