Author: gaara

Mali GPU driver

[Copy link]

1

threads

5

posts

92

credits

Registered member

Rank: 2

credits
92
Published in 2016-11-12 07:36:28 | Show all floors
Guys guys I have my own Arch linux version made for an OrangePi PC, ¿Could someone please help me with the OpenGL drivers? I tried almost everything and couldn't make it yet =/

1

threads

7

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2017-9-16 13:58:07 | Show all floors
Edited by lazant at 2017-9-16 14:03

Hi Guys

I build mainline kernel and U-Boot and make Arch linux image.
Arch Linux image with Mainline kernel and U-Boot

I tried install mali driver into this image, but run modprobe return error.
  1. # modprobe mali
  2. modprobe: ERROR: could not insert 'mali': Exec format error

  3. # modinfo mali
  4. filename:       /lib/modules/4.13.0-1-SUNXI+/kernel/drivers/gpu/mali/mali.ko
  5. version:        
  6. author:         ARM Ltd.
  7. license:        GPL
  8. srcversion:     0FC2D152EE4DD53C22C77B5
  9. depends:        ump
  10. vermagic:       3.4.39 SMP preempt mod_unload modversions ARMv7 p2v8
  11. parm:           mali_debug_level:Higher number, more dmesg output (int)
  12. parm:           mali_max_job_runtime:Maximum allowed job runtime in msecs.
  13. Jobs will be killed after this no matter what (int)
  14. parm:           mali_l2_max_reads:Maximum reads for Mali L2 cache (int)
  15. parm:           mali_dedicated_mem_start:Physical start address of dedicated Mali GPU memory. (uint)
  16. parm:           mali_dedicated_mem_size:Size of dedicated Mali GPU memory. (uint)
  17. parm:           mali_shared_mem_size:Size of shared Mali GPU memory. (uint)
  18. parm:           mali_boot_profiling:Start profiling as a part of Mali driver initialization (int)
  19. parm:           mali_max_pp_cores_group_1:Limit the number of PP cores to use from first PP group. (int)
  20. parm:           mali_max_pp_cores_group_2:Limit the number of PP cores to use from second PP group (Mali-450 only). (int)
Copy code

My board is Orange Pi 2.
I used magicse uploaded driver.


Could anyone help me?

0

threads

1

posts

24

credits

Novice

Rank: 1

credits
24
Published in 2017-9-18 13:04:07 | Show all floors
Edited by aIRPLANE at 2017-9-18 13:09
lazant replied at 2017-9-16 13:58
Hi Guys

I build mainline kernel and U-Boot and make Arch linux image.

After
  1. modprobe mali
Copy code
u need wrote
  1. dmesg
Copy code
for watch why driver not loaded...

It's also necessary to compile the mali driver for your kernel.


9

threads

634

posts

4400

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4400
Published in 2017-9-18 15:36:10 | Show all floors
I tried install mali driver into this image, but run modprobe return error.


There is no MALI in mainline.
http://linux-sunxi.org/Linux_mainlining_effort

2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-9-21 23:49:47 | Show all floors
hmm mayby this will help

https://github.com/Icenowy/sunxi-mali

it is not official supported so not much information about it

but these source build with the newer kernels



1

threads

7

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2017-9-30 22:07:46 | Show all floors
thc013 replied at 2017-9-21 23:49
hmm mayby this will help

https://github.com/Icenowy/sunxi-mali

Thank you for reply.

I can now build latest official mali driver r8p0.
https://developer.arm.com/produc ... ivers/utgard-kernel

I applied some patches and use "sunxi.c" from github you presented.
I maked Arch Linux Package is here.
                        https://mega.nz/#!UW43iJJA!aleUd ... QniF30n-s86HJZFSvTI
        
        
But it still does not work.
  1. # modprobe mali
  2. modprobe: ERROR: could not insert 'mali': No such device
  3. # dmesg
  4. [17609.436928] Couldn't find the mali node
Copy code

This message is sended from "sunxi.c".
I think need build device tree driver like "allwinner,sun8i-h3-mali", but I have never made a device tree driver.
Does anyone have an idea?

2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-10-3 15:24:13 | Show all floors
sigh @lazant before you go exotic try it on the normal way ad yes they build and work

1

threads

7

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2017-10-11 21:03:28 | Show all floors
thc013 replied at 2017-10-3 15:24
sigh @lazant before you go exotic try it on the normal way ad yes they build and work

I build git rep, but same result.
There is mali DeviceTree in A23 and A33.
https://git.kernel.org/pub/scm/l ... 7461f3f424d03942d88
But H3 is not provided.
I will wait H3 mali DeviceTree.

2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-10-15 07:25:51 | Show all floors

1

threads

7

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2017-10-16 18:36:25 | Show all floors
thc013 replied at 2017-10-15 07:25
https://webcache.googleusercontent.com/search?q=cache:jSAtzjSBNmUJ:https://github.com/armbian/build/ ...

Thanks very much!!
I applied armbian patches and succeed to load mail kernel module.

  1. # modinfo mali
  2. filename:       /lib/modules/4.13.6-1-SUNXI/kernel/drivers/gpu/mali/mali.ko
  3. version:        r8p0-01rel0
  4. author:         ARM Ltd.
  5. license:        GPL
  6. srcversion:     38045CB92ABE43ABA321688
  7. alias:          of:N*T*Carm,mali-450C*
  8. alias:          of:N*T*Carm,mali-450
  9. alias:          of:N*T*Carm,mali-400C*
  10. alias:          of:N*T*Carm,mali-400
  11. alias:          of:N*T*Callwinner,sun50i-h5-maliC*
  12. alias:          of:N*T*Callwinner,sun50i-h5-mali
  13. alias:          of:N*T*Callwinner,sun8i-h3-maliC*
  14. alias:          of:N*T*Callwinner,sun8i-h3-mali
  15. alias:          of:N*T*Callwinner,sun7i-a20-maliC*
  16. alias:          of:N*T*Callwinner,sun7i-a20-mali
  17. alias:          of:N*T*Callwinner,sun4i-a10-maliC*
  18. alias:          of:N*T*Callwinner,sun4i-a10-mali
  19. depends:        
  20. name:           mali
  21. vermagic:       4.13.6-1-SUNXI SMP mod_unload modversions ARMv7 p2v8
  22. parm:           mali_debug_level:Higher number, more dmesg output (int)
  23. parm:           mali_max_job_runtime:Maximum allowed job runtime in msecs.
  24. Jobs will be killed after this no matter what (int)
  25. parm:           mali_l2_max_reads:Maximum reads for Mali L2 cache (int)
  26. parm:           mali_dedicated_mem_start:Physical start address of dedicated Mali GPU memory. (uint)
  27. parm:           mali_dedicated_mem_size:Size of dedicated Mali GPU memory. (uint)
  28. parm:           mali_shared_mem_size:Size of shared Mali GPU memory. (uint)
  29. parm:           mali_max_pp_cores_group_1:Limit the number of PP cores to use from first PP group. (int)
  30. parm:           mali_max_pp_cores_group_2:Limit the number of PP cores to use from second PP group (Mali-450 only). (int)
  31. parm:           mali_mem_swap_out_threshold_value:Threshold value used to limit how much swappable memory cached in Mali driver. (uint)
  32. parm:           mali_max_system_fps:Max system fps the same as display VSYNC. (int)
  33. parm:           mali_desired_fps:A bit lower than max_system_fps which user desired fps (int)
Copy code


You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list