04-21-2016, 01:37 PM
(04-20-2016, 04:08 PM)moondark Wrote: They also implemented replacements for sman drm functions based on mm to maintain the compatibility among structs. Please, take a look at the mali_drv.c, for instance, all missing functions from pre-3.0 were replaced or implemented somehow. I'm talking about these files:
https://github.com/loboris/OrangePI-Kern...e/mali_drm
However, I'm not sure about the compatibility of the drm headers available in the include directory and those in the kernel. Some careful inspection is needed.
In addition, after compiling it I built the modules symbols and checked for missing symbols, none were missing, however I do not have much experience building kernel modules and dealing with kernel compiling scripts, thus I don't know where to change the mod_layout and magic version. I think I may need to install the new kernel and modules altogether. I may try to do this in the weekend.
Yes, but i tried the patched version already - does not work for me.
Code:
insmod mali_drm.ko
[ 458.086883] mali_drm: Unknown symbol drm_sman_cleanup (err 0)
[ 458.086942] mali_drm: Unknown symbol drm_sman_set_range (err 0)
[ 458.086975] mali_drm: Unknown symbol drm_sman_takedown (err 0)
[ 458.086999] mali_drm: Unknown symbol drm_sman_alloc (err 0)
[ 458.087067] mali_drm: Unknown symbol drm_sman_init (err 0)
[ 458.087110] mali_drm: Unknown symbol drm_sman_owner_clean (err 0)
[ 458.087140] mali_drm: Unknown symbol drm_sman_owner_cleanup (err 0)
[ 458.087164] mali_drm: Unknown symbol drm_sman_set_manager (err 0)
[ 458.087187] mali_drm: Unknown symbol drm_sman_free_key (err 0)
Where are those symbols supposed to come from?