Open OOKAMIFR opened 4 years ago
You have to install 'quilt' on your distro. i.e. On Ubuntu/debian-like:
then reissue:
It should build correctly now.
thanks for your quick reply :)
i made install and this is the result
root@DietPi:~/mali2/sunxi-mali# ./build.sh -r r6p2 -b building... ~/mali2/sunxi-mali/r6p2 ~/mali2/sunxi-mali Applying patch ../patches/0001-makefile-Add-install-target-and-build-the-module-by-.patch patching file src/devicedrv/mali/Makefile Hunk #1 succeeded at 193 (offset 16 lines).
Applying patch ../patches/0002-mali-Support-building-against-4.6.patch patching file src/devicedrv/mali/linux/mali_memory_swap_alloc.c
Applying patch ../patches/0003-mali-Support-building-against-4.8.patch patching file src/devicedrv/mali/linux/mali_memory_os_alloc.c Hunk #2 succeeded at 515 (offset 7 lines). Hunk #3 succeeded at 558 (offset 7 lines). Hunk #4 succeeded at 618 (offset 7 lines). Hunk #5 succeeded at 772 (offset 7 lines).
Applying patch ../patches/0004-mali-Print-the-mali-version-at-probe.patch patching file src/devicedrv/mali/common/mali_kernel_core.c
Applying patch ../patches/0005-mali-Add-sunxi-platform.patch patching file src/devicedrv/mali/platform/sunxi/sunxi.c
Applying patch ../patches/r6p2/0006-mali-Allow-devfreq-to-run-without-power-models.patch patching file src/devicedrv/mali/linux/mali_devfreq.c
Applying patch ../patches/0007-mali-support-building-against-4.10.patch patching file src/devicedrv/mali/linux/mali_memory.c
Applying patch ../patches/0008-mali-support-building-against-4.11.patch patching file src/devicedrv/mali/linux/mali_memory.c
Applying patch ../patches/r6p2/0009-mali-Fix-user-memory-domain-fault.patch patching file src/devicedrv/mali/common/mali_gp_job.c
Applying patch ../patches/0010-mali-support-building-against-4.12.patch patching file src/devicedrv/mali/linux/mali_osk_specific.h
Applying patch ../patches/r6p2/0011-mali-support-building-against-4.13.patch patching file src/devicedrv/mali/linux/mali_kernel_linux.h
Applying patch ../patches/0012-mali-support-building-against-4.14.patch patching file src/devicedrv/mali/linux/mali_memory_swap_alloc.c
Applying patch ../patches/r6p2/0013-mali-support-building-against-4.15.patch patching file src/devicedrv/mali/common/mali_control_timer.c patching file src/devicedrv/mali/common/mali_group.c patching file src/devicedrv/mali/common/mali_osk_types.h patching file src/devicedrv/mali/linux/mali_memory_os_alloc.c patching file src/devicedrv/mali/linux/mali_osk_timers.c
Applying patch ../patches/r6p2/0014-mali-Make-devfreq-optional.patch patching file src/devicedrv/mali/linux/mali_devfreq.c
Applying patch ../patches/0015-Enable-parallel-building-passing-variable-to-Makefile.patch patching file src/devicedrv/mali/Makefile
Applying patch ../patches/r6p2/0016-mali-support-building-against-4.16.patch patching file src/devicedrv/mali/linux/mali_memory_secure.c
Applying patch ../patches/0018-mali-support-building-against-4.20.patch patching file src/devicedrv/mali/linux/mali_kernel_linux.c Hunk #1 succeeded at 1125 (offset 193 lines). patching file src/devicedrv/mali/linux/mali_kernel_linux.h Hunk #1 succeeded at 16 with fuzz 1. Hunk #2 succeeded at 34 (offset 5 lines). patching file src/devicedrv/mali/linux/mali_osk_time.c
Applying patch ../patches/0019-mali-support-building-against-5.0.patch patching file src/devicedrv/mali/linux/mali_kernel_linux.h Hunk #1 succeeded at 43 (offset 5 lines). patching file src/devicedrv/mali/linux/mali_ukk_mem.c
Applying patch ../patches/0020-mali-support-building-against-4.17.patch patching file src/devicedrv/mali/linux/mali_memory.c
Applying patch ../patches/0021-mali-support-building-against-5.3.patch patching file src/devicedrv/mali/linux/mali_osk_time.c
Now at patch ../patches/0021-mali-support-building-against-5.3.patch ~/mali2/sunxi-mali make: Entering directory '/root/mali2/sunxi-mali/r6p2/src/devicedrv/mali' Makefile:67: *** No KDIR found for platform . Stop. make: Leaving directory '/root/mali2/sunxi-mali/r6p2/src/devicedrv/mali' Error building the driver
for precision, i am on 4.14 kernel
thanks for your help :)
You should follow instructions in sunxi-mali driver: https://github.com/mripard/sunxi-mali
You will find README.md that explains step-by-step how to build and install correctly. As written in your log, KDIR variable is not found and here https://github.com/mripard/sunxi-mali/blob/master/README.md you find: export KDIR=$KERNEL_BUILD_DIR
Anyway it's easier if you follow those few steps.
Best regards
thanks for your response and really appreciate your help :) i am currently reading the step by step from link
hope i will find myself about export KDIR=$KERNEL_BUILD_DIR
on any case, i will update my progress :) thanks again for your time and help :)
Best regards.
hello
I am trying to install mali drivers (32 bits) from https://bootlin.com/blog/mali-opengl-support-on-allwinner-platforms-with-mainline-linux/
after following the tutorial, i have this error
root@DietPi:~# git clone https://github.com/mripard/sunxi-mali.git Cloning into 'sunxi-mali'... remote: Enumerating objects: 54, done. remote: Counting objects: 100% (54/54), done. remote: Compressing objects: 100% (39/39), done. remote: Total 2313 (delta 45), reused 22 (delta 15), pack-reused 2259 Receiving objects: 100% (2313/2313), 799.34 KiB | 771.00 KiB/s, done. Resolving deltas: 100% (1701/1701), done. root@DietPi:~# cd sunxi-mali root@DietPi:~/sunxi-mali# ls build.sh patches r6p2 r9p0 travis-base.yml LICENSE r6p0 r8p1 README.md travis.py root@DietPi:~/sunxi-mali# export CROSS_COMPILE=$TOOLCHAIN_PREFIX root@DietPi:~/sunxi-mali# export KDIR=$KERNEL_BUILD_DIR root@DietPi:~/sunxi-mali# export INSTALL_MOD_PATH=$TARGET_DIR root@DietPi:~/sunxi-mali# ./build.sh -r r6p2 -b building... ~/sunxi-mali/r6p2 ~/sunxi-mali ./build.sh: line 15: quilt: command not found Error applying patch
any helps would be great and appreciate it :) thanks :)