Giter Club home page Giter Club logo

Comments (4)

ikwzm avatar ikwzm commented on July 18, 2024

Thank you for the issue.

Unfortunately, the Mali Driver provided in this repository does not support Linux Kernel 5.4.
The source code for the Mali Driver used in this repository could not be built for Linux Kernel 5.4.

Also, since Lima (Open Source Mali Driver) has been introduced to the mainline from Linux Kernel 5.2, this repository is not supported for Linux Kernel 5.4.

I hope you will understand this.

from zynqmp-fpga-xserver.

ikwzm avatar ikwzm commented on July 18, 2024

I made zynqmp-gpu-kmod-dpkg compatible with Linux Kernel 5.4 as a trial.
There are no official plans for a release, but give it a try.

Note that zynqmp-gpu-kmod-dpkg provides an environment for making Debian packages.
The Debian Package itself is not included.

shell$ git clone --recursive --depth=1 -b v0.1.3-rc.1 git://github.com/ikwzm/zynqmp-gpu-kmod-dpkg
shell$ cd zynqmp-gpu-kmod-dpkg

from zynqmp-fpga-xserver.

p00chie avatar p00chie commented on July 18, 2024

Hi ikwzm,
just to clarify what i am using:

  • i am using the petalinux kernel 5.4 with bsp settings for the zcu106
  • the rootfs is a base ubuntu 20.04
    what i did:
  • i added the uio kernel module and i can successfully communicate with my fpga subsystem
  • i could build the mali.ko driver:
    • apt-get install linux-headers-5.4.0-42-generic
    • link usr/lib/modules/5.4.0-42-generic/build/ to usr/lib/modules/5.4.0/
    • edit arm.c --> there was some bogus with the mali_read_phys function
    • build mali.ko
  • unfortunately to install the packet there was an error:
    dpkg: dependency problems prevent configuration of zynqmp-gpu-5.4.0:
    zynqmp-gpu-5.4.0 depends on linux-image-5.4.0; however:
    Package linux-image-5.4.0 is not installed.
    I think i could edit the control.template to fix this dep.

But in the end i got my mali.ko and it could be loaded.
I can see it with cat /proc/interrupts
There are also some mali.ko files from the petalinux build that i can use too. They seem to work too. So i the end i don't have to build the kernel object?

The next step would be to test the mali gpu with your repo:
https://github.com/ikwzm/ZynqMP-FPGA-Xserver

from zynqmp-fpga-xserver.

p00chie avatar p00chie commented on July 18, 2024

After loading the correct kernel module and using:

 export DISPLAY=:0.0
 /usr/bin/Xorg -depth 16&

from ug1209
i could start the tricube appilcation and saw the correct output :)
a cat /proc/interrupts gave the the validation:
20: 62733 0 0 0 GICv2 164 Level Mali_GP_MMU, Mali_GP, Mali_PP0_MMU, Mali_PP0, Mali_PP1_MMU, Mali_PP1
and still counting interrupts.
Now i have to figure out what is actually needed to reproduce this ...

from zynqmp-fpga-xserver.

Related Issues (2)

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.