Git Product home page Git Product logo

Comments (4)

OOKAMIFR avatar OOKAMIFR commented on August 16, 2024 1

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.

from mali-blobs.

giuliobenetti avatar giuliobenetti commented on August 16, 2024

You have to install 'quilt' on your distro.
i.e. On Ubuntu/debian-like:

sudo apt install quilt

then reissue:

./build.sh -r r6p2 -b

It should build correctly now.

from mali-blobs.

OOKAMIFR avatar OOKAMIFR commented on August 16, 2024

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 :)

from mali-blobs.

giuliobenetti avatar giuliobenetti commented on August 16, 2024

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

from mali-blobs.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.