Firefly Open Source Community

Title: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly [Print This Page]

Author: busybee    Time: 2/28/2015 09:59
Title: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
        Hi all, this is the first update of  Mali kernel driver TX011-SW-99002-r5p1-00rel0 for Firefly stock kernel 3.10.37 .

firefly-mali-driver-TX011-SW-99002-r5p1-00rel0.tar.gz

412.35 KB, Down times: 628


Author: busybee    Time: 2/28/2015 11:39
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Last edited by busybee In 9/15/2015 11:31 Editor

Test OpenGL ES Linux support on Firefly-RK3288 Development Board
¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T

Introduction
©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤

Firefly-RK3288 development board is equipped with the powerful Mali
T764 GPU. Lately, ARM has released the binary user-space fbdev
driver. We, the Firefly team, have taken a first stab at it.

Environment:
- Firefly-RK3288 development board with latest dual boot firmware
installed.
- 64 bit Ubuntu Linux (12.04 or later) host pc.


Kernel
©¤©¤©¤©¤©¤©¤

First, we need to update the mali kernel driver.

Download Linux kernel driver TX041-SW-99002-r5p1-00rel0.tgz in
[http://malideveloper.arm.com/develop-for-mali/drivers/open-source-mali-t6xx-gpu-kernel-device-drivers/]

The porting process involves: replace the old driver files with new
ones, apply the kds patch, fix the compiling errors and update the
config file.

To make life easier, we've packaged all the files into
firefly-mali-driver-TX011-SW-99002-r5p1-00rel0.tar.gz .

¨q©¤©¤©¤©¤
©¦ cd /path/to/your/firefly/sdk
©¦ ls kernel  # kernel directory should be here
©¦ tar xzf /path/to/firefly-mali-driver-TX011-SW-99002-r5p1-00rel0.tar.gz
¨t©¤©¤©¤©¤

Then compile it:
¨q©¤©¤©¤©¤
©¦ cd kernel
©¦ make firefly-rk3288-linux_defconfig
©¦ make -j8 firefly-rk3288.img
©¦ make modules
¨t©¤©¤©¤©¤

The compiled mali module is located at drivers/gpu/arm/midgard/. Copy
mali_kbase.ko to your board:
¨q©¤©¤©¤©¤
©¦ scp drivers/gpu/arm/midgard/mali_kbase.ko root@BOARD_IP:/system/lib/modules/
¨t©¤©¤©¤©¤

(Why `/system/lib/modules/' ? Just because /etc/rc.local willl insmod
it automatically.)

Then follow the steps described in
[http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_kernel/en] ,
to pack zImage and initrd to linux-boot.img .

Flash linux-boot.img to recovery partition of the board.


User-space drivers
©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤

Download mali-t76x_r5p0-06rel0_linux_1+fbdev.tar.gz in:
[http://malideveloper.arm.com/develop-for-mali/features/mali-t6xx-gpu-user-space-drivers/]

Then install it to the board:
¨q©¤©¤©¤©¤
©¦ cat /path/to/mali-t76x_r5p0-06rel0_linux_1+fbdev.tar.gz \
©¦    | ssh root@BOARD_IP tar --strip-components=1 -xzf - -C /usr/lib
¨t©¤©¤©¤©¤


Compile Mali OpenGL ES SDK demos
©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤

Download Mali_OpenGL_ES_SDK_v2.4.4.71fdbd_Linux_x64.tar.gz in
[http://malideveloper.arm.com/develop-for-mali/sdks/opengl-es-sdk-for-linux/]

Please choose Linux X64 archive.

To build the SDK demos, you need a cross compile toolchain. If you
have not installed yet, try this linaro toolchain:
[http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz]
(Extract it to /opt)

You also need to install cmake (sudo apt-get install cmake).

¨q©¤©¤©¤©¤
©¦ tar xzf /path/to/Mali_OpenGL_ES_SDK_v2.4.4.71fdbd_Linux_x64.tar.gz
©¦ cd Mali_OpenGL_ES_SDK_v2.4.4
©¦ mkdir build-arm
©¦ cd build-arm
©¦ export TOOLCHAIN_ROOT=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-
©¦ cmake -DTARGET=arm ..
©¦ make install
©¦ cd ..
©¦ # bin_arm contains all the result files
©¦ scp -r bin_arm root@BOARD_IP:/root
¨t©¤©¤©¤©¤


Set 32bit framebuffer
©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤

Before running demos, the fbdev should be in 32 bit mode.

Run following commands on the board:
¨q©¤©¤©¤©¤
©¦ sudo -s
©¦ cat << EOF >/etc/init/fbset.conf
©¦ # fbset - run fbset to set truecolor fbmo
©¦ description "run fbset before lightdm"
©¦ start on startup and started udev or starting lightdm
©¦ task
©¦ script
©¦     [ -x /bin/fbset ] && /bin/fbset -a -nonstd 1 -depth 32 -rgba "8/0,8/8,8/16,8/24"
©¦ end script
©¦ EOF
©¦ cat << EOF >/etc/X11/xorg.conf
©¦ Section "Screen"
©¦     Identifier "Default Screen"
©¦     DefaultDepth 24
©¦ EndSection
©¦ EOF
¨t©¤©¤©¤©¤

Then reboot the device.


Run demos
©¤©¤©¤©¤©¤©¤©¤©¤©¤

Before running demos, make sure you have:
1. Flashed the new Linux kernel.
2. Updated mali_kbase.ko
3. Installed Mali user drivers
4. Uploaded Mali demos
5. Configured 32bit framebuffer

Then open a terminal, run one of the demo:
¨q©¤©¤©¤©¤
©¦ sudo -i
©¦ cd bin_arm/opengles_30/skybox
©¦ ./skybox
¨t©¤©¤©¤©¤

Enjoy!


Video
©¤©¤©¤©¤©¤©¤



        http://youtu.be/UBWfFCDTtGI




Author: dewet    Time: 2/28/2015 11:57
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
    Do the new kernel drivers work with the older userspace drivers, r5p0-06rel0 correctly?
    ARM mentioned in their forums, you need to use the exact same kernel driver version and userspace drivers otherwise things don't work.
    Maybe it works because only Mali T880 support was added and ARM didn't change other things.

    Userspace drivers step
  1. cat /path/to/mali-t76x_r5p0-06rel0_linux_1+fbdev.tar.gz \
  2. ©¦    | ssh root@BOARD_IP tar --strip-components=1 -xf - -C /usr/lib
Copy the code
   
    Is it just copy zip content to /usr/lib?
    Maybe Firefly team can also try testing the following if possible.
    VLC, MPlayer video playback with GLES support/ in settings and see if videos play better.
    Maybe even build Kodi/XBMC with OpenGL GLES support and see if it can run in fullscreen.
    Video playback isn't going to be perfect because of VPU drivers, but maybe it's a little better.
Maybe X11 drivers are also needed, but ARM said only at end of March 2015, they are going to release, so long still.
    If it wasn't for Firefly, most RK3288 Rockchip users wouldn't even know how most things on their devices work and Linux support would be almost impossible


Author: Echoa    Time: 3/1/2015 03:45
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
oh this is nifty, nice to see some new mali drivers ill have to test them out

Author: ganggangstyle-e    Time: 3/2/2015 16:27
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
I have success to compile the driver and test with the mali sdk demo.(r5p1 by busybee - with firefly board)

but some error is happen

1.when the screen is in  save power , when i press keyboard or click mouse ,the screen show abnormal.
  Sometimes I can see the normal desktop ,sometimes the board is auto reboot (most auto restart ).
  so , i think maybe it's a mali driver bug or the 32bit framebuffer bug?


Author: busybee    Time: 3/2/2015 18:21
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Yes, ganggangstyle-en, there's a kernel crash after resume from screen suspend
  1. [ 1410.118154] rk3288-lcdc lcdc0: un supported hwc size!
  2. [ 1410.122418] (NULL device *): fault address=0x00000500,dte addr pa=0x2e23b000,va=0xee23b000
  3. [ 1410.122496] (NULL device *): lv1_offset=0x0,lv1_entry_pa=0x2e23b000,lv1_entry_va=0xee23b000
  4. [ 1410.122554] (NULL device *): lv1_entry_value(*lv1_entry_va)=0x00000000,lv2_base=0x00000000
  5. [ 1410.122606] (NULL device *): lv2_offset=0x0,lv2_entry_pa=0x00000000,lv2_entry_va=0xc0000000
  6. [ 1410.122659] (NULL device *): lv2_entry value(*lv2_entry_va)=0x0000a1ff
  7. [ 1410.122745] rk_iommu ff930300.vopb_mmu: IOMMU:Page fault detected at 0x500 from bus id 6 of type read on vopb
  8. [ 1410.122811] rk_iommu ff930300.vopb_mmu: Generating Kernel OOPS... because it is unrecoverable.
  9. [ 1410.122924] ------------[ cut here ]------------
  10. [ 1410.122965] kernel BUG at drivers/iommu/rockchip-iommu.c:494!
  11. [ 1410.123011] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
  12. [ 1410.123078] Modules linked in: mali_kbase
  13. [ 1410.123146] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.0 #112
  14. [ 1410.123216] task: c0cf2540 ti: c0ce2000 task.ti: c0ce2000
  15. [ 1410.123288] PC is at default_fault_handler+0xac/0xd0
  16. [ 1410.123338] LR is at default_fault_handler+0xac/0xd0
  17. [ 1410.123391] pc : [&lt;c0574c2c&gt;]    lr : [&lt;c0574c2c&gt;]    psr: 60030193
  18. [ 1410.123391] sp : c0ce3e38  ip : 00000000  fp : 00000000
  19. [ 1410.123448] r10: 2e23b000  r9 : c0ce2000  r8 : ee23a010
  20. [ 1410.123494] r7 : 00000500  r6 : 0000018b  r5 : 00000000  r4 : ee24b210
  21. [ 1410.123549] r3 : c09f2add  r2 : c0ce3dfc  r1 : 00000003  r0 : 00000052
  22. [ 1410.123604] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
  23. [ 1410.123650] Control: 10c5387d  Table: 2d76806a  DAC: 00000015
  24. [ 1410.123693]
  25. [ 1410.123693] PC: 0xc0574bac:
  26. [ 1410.123818] 4bac  e59f107c e59f207c ebf5d73e e1a00008 e8bd85fe e3550002 8a000015 e3550001
  27. [ 1410.123911] 4bcc  1a000005 e58da000 e1a03007 e5940138 e59f1054 e59f2054 ea00000c e3550000
  28. [ 1410.124010] 4bec  1a00000b e59f2048 e3160020 e59f3044 e5940138 e59f1040 01a03002 e58d3000
  29. [ 1410.124128] 4c0c  e5983018 e1a02007 e58d3004 e7e43356 ebf5d724 e5940138 e59f1020 ebf5d721
  30. [ 1410.124235] 4c2c  e7f001f2 c09e174c c0813a24 c09e176e c09e179b c0996fa5 c099541d c09e17a5
  31. [ 1410.124337] 4c4c  c09e17e9 e92d45f8 e2806024 e1a05000 e1a00006 eb08a74b e5954020 e3540000
  32. [ 1410.124429] 4c6c  e1a07000 ca000000 e7f001f2 e2444001 e5854020 e3540000 03a0a001 059f80b4
  33. [ 1410.124517] 4c8c  0a00000f ea000016 e595301c e7933104 e583a008 e5980000 e3a01ffa e1530000
  34. [ 1410.124549]
  35. [ 1410.124549] LR: 0xc0574bac:
  36. [ 1410.124650] 4bac  e59f107c e59f207c ebf5d73e e1a00008 e8bd85fe e3550002 8a000015 e3550001
  37. [ 1410.124739] 4bcc  1a000005 e58da000 e1a03007 e5940138 e59f1054 e59f2054 ea00000c e3550000
  38. [ 1410.124848] 4bec  1a00000b e59f2048 e3160020 e59f3044 e5940138 e59f1040 01a03002 e58d3000
  39. [ 1410.124966] 4c0c  e5983018 e1a02007 e58d3004 e7e43356 ebf5d724 e5940138 e59f1020 ebf5d721
  40. [ 1410.125056] 4c2c  e7f001f2 c09e174c c0813a24 c09e176e c09e179b c0996fa5 c099541d c09e17a5
  41. [ 1410.125153] 4c4c  c09e17e9 e92d45f8 e2806024 e1a05000 e1a00006 eb08a74b e5954020 e3540000
  42. [ 1410.125259] 4c6c  e1a07000 ca000000 e7f001f2 e2444001 e5854020 e3540000 03a0a001 059f80b4
  43. [ 1410.125350] 4c8c  0a00000f ea000016 e595301c e7933104 e583a008 e5980000 e3a01ffa e1530000
  44. [ 1410.125382]
  45. [ 1410.125382] SP: 0xc0ce3db8:
  46. [ 1410.125487] 3db8  0000003c 00000006 c0d9e8d2 c002f8f0 00000000 00000000 00000000 c0ce3e20
  47. [ 1410.125577] 3dd8  ee24de10 c0574c30 00000000 c000d918 00000000 c000d6ac 00000052 00000003
  48. [ 1410.125665] 3df8  c0ce3dfc c09f2add ee24b210 00000000 0000018b 00000500 ee23a010 c0ce2000
  49. [ 1410.125752] 3e18  2e23b000 00000000 00000000 c0ce3e38 c0574c2c c0574c2c 60030193 ffffffff
  50. [ 1410.125837] 3e38  c0996fa5 c4820b3c 2e23b000 ee23a010 00000000 00000000 ee23a034 00000500
  51. [ 1410.125924] 3e58  0000002f c0575b9c 0000018b ee23a010 c0d7e410 ee237c80 c0ce2000 ee0073c0
  52. [ 1410.126025] 3e78  0000002f c0cf4ec0 c0cf4ed0 c0094570 88a63185 c1ed68c8 00000000 88a63185
  53. [ 1410.126123] 3e98  c1ed68c8 ee0073c0 ee007410 ee237c80 c0ce3f3c c0cf4ec0 c0ce2000 c0cf4ed0
  54. [ 1410.126156]
  55. [ 1410.126156] R2: 0xc0ce3d7c:
  56. [ 1410.126258] 3d7c  706f762e 6d6d5f62 c0020075 00000400 c002f8f0 00000000 00000000 00000006
  57. [ 1410.126340] 3d9c  00000006 00000000 0000003c 00000000 c002e9dc 0000003c c002ea2c 0000003c
  58. [ 1410.126423] 3dbc  00000006 c0d9e8d2 c002f8f0 00000000 00000000 00000000 c0ce3e20 ee24de10
  59. [ 1410.126507] 3ddc  c0574c30 00000000 c000d918 00000000 c000d6ac 00000052 00000003 c0ce3dfc
  60. [ 1410.126601] 3dfc  c09f2add ee24b210 00000000 0000018b 00000500 ee23a010 c0ce2000 2e23b000
  61. [ 1410.126689] 3e1c  00000000 00000000 c0ce3e38 c0574c2c c0574c2c 60030193 ffffffff c0996fa5
  62. [ 1410.126773] 3e3c  c4820b3c 2e23b000 ee23a010 00000000 00000000 ee23a034 00000500 0000002f
  63. [ 1410.126860] 3e5c  c0575b9c 0000018b ee23a010 c0d7e410 ee237c80 c0ce2000 ee0073c0 0000002f
  64. [ 1410.126891]
  65. [ 1410.126891] R3: 0xc09f2a5d:
  66. [ 1410.126992] 2a5c  61762072 2e64696c 74655320 676e6974 70616d20 206f7420 01000a30 726e7530
  67. [ 1410.127080] 2a7c  73696765 5f726574 6474656e 63697665 77203a65 69746961 6620676e 2520726f
  68. [ 1410.127168] 2a9c  6f742073 63656220 20656d6f 65657266 7355202e 20656761 6e756f63 203d2074
  69. [ 1410.127255] 2abc  000a6425 726e7528 73696765 65726574 656e2064 65645f74 65636976 73250029
  70. [ 1410.127343] 2adc  20732520 203a7325 00567025 73257325 7025203a 73250056 4c554e28 656e204c
  71. [ 1410.127431] 2afc  65645f74 65636976 25203a29 6d005670 64657869 20574820 20646e61 63205049
  72. [ 1410.127519] 2b1c  6b636568 206d7573 74746573 73676e69 01000a2e 3a732533 20776820 6d757363
  73. [ 1410.127607] 2b3c  69616620 6572756c 3001000a 203a7325 6c696166 74206465 6f6d206f 25206576
  74. [ 1410.127694] 2b5c  6f742073 696e6920 656e5f74 25203a74 01000a64 6c6c6133 6e5f636f 65647465
  75. [ 1410.127724]
  76. [ 1410.127724] R4: 0xee24b190:
  77. [ 1410.127815] b190  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  78. [ 1410.127893] b1b0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  79. [ 1410.127971] b1d0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  80. [ 1410.128051] b1f0  00000000 00000000 00000000 00000000 ee1bf740 ffffffff 00000000 00000000
  81. [ 1410.128137] b210  00000000 ee1be200 ee3f6540 ee24b41c ee24b01c ee0777cc ee0777c0 c0d22580
  82. [ 1410.128217] b230  ee1bf7c0 00000002 00000007 00000000 00000000 00000001 00000000 ee24b24c
  83. [ 1410.128298] b250  ee24b24c 00000000 00000000 c0d226e0 c0d1c064 00000000 00000000 00000020
  84. [ 1410.128400] b270  00030003 ee24b474 ee24b074 7fffffff 00010001 ee24b284 ee24b284 00000000
  85. [ 1410.128436]
  86. [ 1410.128436] R8: 0xee239f90:
  87. [ 1410.128530] 9f90  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  88. [ 1410.128611] 9fb0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  89. [ 1410.128690] 9fd0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  90. [ 1410.128773] 9ff0  00000000 00000000 00000000 00000000 ee237b40 ee24df5c c02ef354 00000000
  91. [ 1410.128859] a010  ee237d40 ee237d40 ee24de10 ee24b210 00000001 00000001 c4820b3c ee237b50
  92. [ 1410.128945] a030  00000001 00000001 ee237d00 c0574b80 2e23b000 ee237d00 ee237cc0 ee3fb880
  93. [ 1410.129027] a050  ee3fb880 00010001 00000000 00000000 00000000 00000000 00000000 00000000
  94. [ 1410.129109] a070  00000000 00000000 00000000 00000000 f000043c 0000416d 00000002 00000000
  95. [ 1410.129139]
  96. [ 1410.129139] R9: 0xc0ce1f80:
  97. [ 1410.129231] 1f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  98. [ 1410.129311] 1fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  99. [ 1410.129389] 1fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  100. [ 1410.129468] 1fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  101. [ 1410.129552] 2000  00000002 00010003 00000000 c0cf2540 c0d05af8 00000000 00000015 c0cf2540
  102. [ 1410.129640] 2020  c1ed8f40 c0ce2000 edbb4fc0 ed027500 00000000 ed726e00 c0ce3f94 c0ce3f10
  103. [ 1410.129720] 2040  c079daf4 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  104. [ 1410.129799] 2060  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  105. [ 1410.129842] Process swapper/0 (pid: 0, stack limit=0xc0ce2238)
  106. [ 1410.129882] Stack: (0xc0ce3e38 to 0xc0ce4000)
  107. [ 1410.129928] 3e20:                                                       c0996fa5 c4820b3c
  108. [ 1410.129993] 3e40: 2e23b000 ee23a010 00000000 00000000 ee23a034 00000500 0000002f c0575b9c
  109. [ 1410.130058] 3e60: 0000018b ee23a010 c0d7e410 ee237c80 c0ce2000 ee0073c0 0000002f c0cf4ec0
  110. [ 1410.130123] 3e80: c0cf4ed0 c0094570 88a63185 c1ed68c8 00000000 88a63185 c1ed68c8 ee0073c0
  111. [ 1410.130188] 3ea0: ee007410 ee237c80 c0ce3f3c c0cf4ec0 c0ce2000 c0cf4ed0 00000000 c0094788
  112. [ 1410.130252] 3ec0: 0000002f ee0073c0 ee007410 c0097158 0000002f 00000000 c0ceb3dc c0093f5c
  113. [ 1410.130317] 3ee0: 0000002f c000e3ac 0000002f fed91000 c0ce3f08 c0008538 c050e3d0 60030013
  114. [ 1410.130381] 3f00: ffffffff c000d600 c0ce3f50 00000598 88a58210 0000014d c1ed8318 00000000
  115. [ 1410.130446] 3f20: 88a56eb2 0000014d c0cf4ec0 c0ce2000 c0cf4ed0 00000000 044778a3 c0ce3f50
  116. [ 1410.130511] 3f40: c0070094 c050e3d0 60030013 ffffffff 88a58210 0000014d c0ce2000 c1ed8318
  117. [ 1410.130573] 3f60: c0ce2000 c1ed8318 00000000 c0d7e94c 00000000 c0cf4ec0 00000000 c050e5d4
  118. [ 1410.130636] 3f80: c0ce2000 c0ce2000 00000000 c07a3218 0000406a 410fc0d1 00000000 c000e730
  119. [ 1410.130699] 3fa0: 02a23ec6 c006f474 c07a46fc c0ceb078 00000000 00000000 c0cf34bc 0000406a
  120. [ 1410.130762] 3fc0: 00000000 c006f4ec c07a46fc c0a92a50 ffffffff ffffffff c0a9265c 00000000
  121. [ 1410.130825] 3fe0: 00000000 c0adcf18 10c5387d c0cea434 c0adcf14 00008074 00000000 00000000
  122. [ 1410.130952] [&lt;c0574c2c&gt;] (default_fault_handler+0xac/0xd0) from [&lt;c0575b9c&gt;] (rockchip_iommu_irq+0x140/0x1f8)
  123. [ 1410.131051] [&lt;c0575b9c&gt;] (rockchip_iommu_irq+0x140/0x1f8) from [&lt;c0094570&gt;] (handle_irq_event_percpu+0xb0/0x28c)
  124. [ 1410.131129] [&lt;c0094570&gt;] (handle_irq_event_percpu+0xb0/0x28c) from [&lt;c0094788&gt;] (handle_irq_event+0x3c/0x5c)
  125. [ 1410.131206] [&lt;c0094788&gt;] (handle_irq_event+0x3c/0x5c) from [&lt;c0097158&gt;] (handle_fasteoi_irq+0xc8/0x130)
  126. [ 1410.131283] [&lt;c0097158&gt;] (handle_fasteoi_irq+0xc8/0x130) from [&lt;c0093f5c&gt;] (generic_handle_irq+0x20/0x30)
  127. [ 1410.131364] [&lt;c0093f5c&gt;] (generic_handle_irq+0x20/0x30) from [&lt;c000e3ac&gt;] (handle_IRQ+0x64/0x8c)
  128. [ 1410.131442] [&lt;c000e3ac&gt;] (handle_IRQ+0x64/0x8c) from [&lt;c0008538&gt;] (gic_handle_irq+0x34/0x58)
  129. [ 1410.131517] [&lt;c0008538&gt;] (gic_handle_irq+0x34/0x58) from [&lt;c000d600&gt;] (__irq_svc+0x40/0x70)
  130. [ 1410.131555] Exception stack(0xc0ce3f08 to 0xc0ce3f50)
  131. [ 1410.131614] 3f00:                   c0ce3f50 00000598 88a58210 0000014d c1ed8318 00000000
  132. [ 1410.131679] 3f20: 88a56eb2 0000014d c0cf4ec0 c0ce2000 c0cf4ed0 00000000 044778a3 c0ce3f50
  133. [ 1410.131728] 3f40: c0070094 c050e3d0 60030013 ffffffff
  134. [ 1410.131811] [&lt;c000d600&gt;] (__irq_svc+0x40/0x70) from [&lt;c050e3d0&gt;] (cpuidle_enter_state+0x54/0xec)
  135. [ 1410.131902] [&lt;c050e3d0&gt;] (cpuidle_enter_state+0x54/0xec) from [&lt;c050e5d4&gt;] (cpuidle_idle_call+0x16c/0x27c)
  136. [ 1410.131980] [&lt;c050e5d4&gt;] (cpuidle_idle_call+0x16c/0x27c) from [&lt;c000e730&gt;] (arch_cpu_idle+0x8/0x38)
  137. [ 1410.132071] [&lt;c000e730&gt;] (arch_cpu_idle+0x8/0x38) from [&lt;c006f474&gt;] (cpu_idle_loop+0x1b8/0x224)
  138. [ 1410.132158] [&lt;c006f474&gt;] (cpu_idle_loop+0x1b8/0x224) from [&lt;c006f4ec&gt;] (freezing_slow_path+0x0/0x64)
  139. [ 1410.132232] [&lt;c006f4ec&gt;] (freezing_slow_path+0x0/0x64) from [&lt;ffffffff&gt;] (0xffffffff)
  140. [ 1410.132294] Code: ebf5d724 e5940138 e59f1020 ebf5d721 (e7f001f2)
  141. [ 1410.132347] ---[ end trace 3a52d3bd7d6c4a79 ]---
  142. [ 1410.132387] Kernel panic - not syncing: Fatal exception in interrupt
  143. [ 1410.132443] CPU1: stopping
  144. [ 1410.132510] CPU: 1 PID: 1 Comm: init Tainted: G      D      3.10.0 #112
  145. [ 1410.132625] [&lt;c0013e04&gt;] (unwind_backtrace+0x0/0xe0) from [&lt;c0011720&gt;] (show_stack+0x10/0x14)
  146. [ 1410.132711] [&lt;c0011720&gt;] (show_stack+0x10/0x14) from [&lt;c0012edc&gt;] (handle_IPI+0x154/0x2c8)
  147. [ 1410.132789] [&lt;c0012edc&gt;] (handle_IPI+0x154/0x2c8) from [&lt;c0008554&gt;] (gic_handle_irq+0x50/0x58)
  148. [ 1410.132865] [&lt;c0008554&gt;] (gic_handle_irq+0x50/0x58) from [&lt;c000d7bc&gt;] (__irq_usr+0x3c/0x60)
  149. [ 1410.132903] Exception stack(0xee07bfb0 to 0xee07bff8)
  150. [ 1410.132953] bfa0:                                     b6fb3800 00000000 00000000 00000000
  151. [ 1410.133017] bfc0: b6fb3658 b70225a8 00000000 b6fb35a8 00000000 00000001 00000080 0000000e
  152. [ 1410.133074] bfe0: b6f85b44 bee3a838 b6f66fed b6f66fec 00010030 ffffffff
  153. [ 1410.133119] CPU2: stopping
  154. [ 1410.133185] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D      3.10.0 #112
  155. [ 1410.133297] [&lt;c0013e04&gt;] (unwind_backtrace+0x0/0xe0) from [&lt;c0011720&gt;] (show_stack+0x10/0x14)
  156. [ 1410.133383] [&lt;c0011720&gt;] (show_stack+0x10/0x14) from [&lt;c0012edc&gt;] (handle_IPI+0x154/0x2c8)
  157. [ 1410.133459] [&lt;c0012edc&gt;] (handle_IPI+0x154/0x2c8) from [&lt;c0008554&gt;] (gic_handle_irq+0x50/0x58)
  158. [ 1410.133535] [&lt;c0008554&gt;] (gic_handle_irq+0x50/0x58) from [&lt;c000d600&gt;] (__irq_svc+0x40/0x70)
  159. [ 1410.133574] Exception stack(0xee0c3f30 to 0xee0c3f78)
  160. [ 1410.133627] 3f20:                                     ee0c3f78 00000598 89424104 0000014d
  161. [ 1410.133693] 3f40: c1eea318 00000000 89363cd8 0000014d c0cf4ec0 ee0c2000 c0cf4ed0 00000000
  162. [ 1410.133751] 3f60: 044778a3 ee0c3f78 c0070094 c050e3d0 60060013 ffffffff
  163. [ 1410.133832] [&lt;c000d600&gt;] (__irq_svc+0x40/0x70) from [&lt;c050e3d0&gt;] (cpuidle_enter_state+0x54/0xec)
  164. [ 1410.133907] [&lt;c050e3d0&gt;] (cpuidle_enter_state+0x54/0xec) from [&lt;c050e5d4&gt;] (cpuidle_idle_call+0x16c/0x27c)
  165. [ 1410.133985] [&lt;c050e5d4&gt;] (cpuidle_idle_call+0x16c/0x27c) from [&lt;c000e730&gt;] (arch_cpu_idle+0x8/0x38)
  166. [ 1410.134074] [&lt;c000e730&gt;] (arch_cpu_idle+0x8/0x38) from [&lt;c006f474&gt;] (cpu_idle_loop+0x1b8/0x224)
  167. [ 1410.134160] [&lt;c006f474&gt;] (cpu_idle_loop+0x1b8/0x224) from [&lt;c006f4ec&gt;] (freezing_slow_path+0x0/0x64)
  168. [ 1411.307016] CPU3: stopping
  169. [ 1411.309751] CPU: 3 PID: 1396 Comm: kworker/u8:0 Tainted: G      D      3.10.0 #112
  170. [ 1411.317281] Workqueue: hdmi-ff980000.hdmi hdmi_work_queue
  171. [ 1411.322735] [&lt;c0013e04&gt;] (unwind_backtrace+0x0/0xe0) from [&lt;c0011720&gt;] (show_stack+0x10/0x14)
  172. [ 1411.331216] [&lt;c0011720&gt;] (show_stack+0x10/0x14) from [&lt;c0012edc&gt;] (handle_IPI+0x154/0x2c8)
  173. [ 1411.339429] [&lt;c0012edc&gt;] (handle_IPI+0x154/0x2c8) from [&lt;c0008554&gt;] (gic_handle_irq+0x50/0x58)
  174. [ 1411.347984] [&lt;c0008554&gt;] (gic_handle_irq+0x50/0x58) from [&lt;c000d600&gt;] (__irq_svc+0x40/0x70)
  175. [ 1411.356248] Exception stack(0xeda0bad0 to 0xeda0bb18)
  176. [ 1411.361280] bac0:                                     c1ef1490 00000007 00000001 00000000
  177. [ 1411.369398] bae0: 00000029 00000006 c0d9e8d0 00000003 00000000 eda0bb70 60070013 00000003
  178. [ 1411.377508] bb00: 00000000 eda0bb18 c002f0e0 c002f900 60070013 ffffffff
  179. [ 1411.384109] [&lt;c000d600&gt;] (__irq_svc+0x40/0x70) from [&lt;c002f900&gt;] (vprintk_emit+0x3f0/0x444)
  180. [ 1411.392419] [&lt;c002f900&gt;] (vprintk_emit+0x3f0/0x444) from [&lt;c02e9ab0&gt;] (dev_vprintk_emit+0x48/0x50)
  181. [ 1411.401329] [&lt;c02e9ab0&gt;] (dev_vprintk_emit+0x48/0x50) from [&lt;c02e9ad0&gt;] (dev_printk_emit+0x18/0x24)
  182. [ 1411.410320] [&lt;c02e9ad0&gt;] (dev_printk_emit+0x18/0x24) from [&lt;c02ea7d8&gt;] (__dev_printk+0x5c/0x6c)
  183. [ 1411.418972] [&lt;c02ea7d8&gt;] (__dev_printk+0x5c/0x6c) from [&lt;c02ea8e4&gt;] (dev_err+0x30/0x44)
  184. [ 1411.426948] [&lt;c02ea8e4&gt;] (dev_err+0x30/0x44) from [&lt;c02acbbc&gt;] (rk3288_win_hwc_reg_update.constprop.7+0xa0/0x15c)
  185. [ 1411.437140] [&lt;c02acbbc&gt;] (rk3288_win_hwc_reg_update.constprop.7+0xa0/0x15c) from [&lt;c02adaac&gt;] (hwc_set_par+0x118/0x1a0)
  186. [ 1411.447834] [&lt;c02adaac&gt;] (hwc_set_par+0x118/0x1a0) from [&lt;c02adb94&gt;] (rk3288_lcdc_set_par+0x60/0x80)
  187. [ 1411.456910] [&lt;c02adb94&gt;] (rk3288_lcdc_set_par+0x60/0x80) from [&lt;c029cc08&gt;] (rk_fb_set_par+0x3e0/0x3f4)
  188. [ 1411.466157] [&lt;c029cc08&gt;] (rk_fb_set_par+0x3e0/0x3f4) from [&lt;c029ebb8&gt;] (rk_fb_switch_screen+0x220/0x294)
  189. [ 1411.475576] [&lt;c029ebb8&gt;] (rk_fb_switch_screen+0x220/0x294) from [&lt;c02b39b8&gt;] (hdmi_set_lcdc+0x5c/0x68)
  190. [ 1411.484826] [&lt;c02b39b8&gt;] (hdmi_set_lcdc+0x5c/0x68) from [&lt;c02b24ec&gt;] (hdmi_wq_set_video+0x10/0xe4)
  191. [ 1411.493733] [&lt;c02b24ec&gt;] (hdmi_wq_set_video+0x10/0xe4) from [&lt;c02b27a8&gt;] (hdmi_wq_insert.part.2+0x18/0x9c)
  192. [ 1411.503324] [&lt;c02b27a8&gt;] (hdmi_wq_insert.part.2+0x18/0x9c) from [&lt;c02b2a5c&gt;] (hdmi_work_queue+0x1e0/0x3e8)
  193. [ 1411.512918] [&lt;c02b2a5c&gt;] (hdmi_work_queue+0x1e0/0x3e8) from [&lt;c00471f0&gt;] (process_one_work+0x29c/0x458)
  194. [ 1411.522248] [&lt;c00471f0&gt;] (process_one_work+0x29c/0x458) from [&lt;c0047540&gt;] (worker_thread+0x194/0x2d4)
  195. [ 1411.531405] [&lt;c0047540&gt;] (worker_thread+0x194/0x2d4) from [&lt;c004ca28&gt;] (kthread+0xa0/0xac)
  196. [ 1411.539620] [&lt;c004ca28&gt;] (kthread+0xa0/0xac) from [&lt;c000da98&gt;] (ret_from_fork+0x14/0x3c)
  197. [ 1411.547629] CRU:
  198. [ 1411.549526] 00000000: 00000107 9fff0053 0fff002a 00000008
  199. [ 1411.554912] 00000010: 00000001 9fff0025 0fff0012 00000008
  200. [ 1411.560287] 00000020: 00000007 ffff00c5 00000000 00000008
  201. [ 1411.565663] 00000030: 00000103 9fff00c5 0fff0063 00000008
  202. [ 1411.571039] 00000040: 00000b00 9fff0270 0fff0138 00000008
  203. [ 1411.576412] 00000050: 00005111 00000000 00000000 00000000
  204. [ 1411.581786] 00000060: 00004031 0000b108 00000000 00000200
  205. [ 1411.587160] 00000070: 00008100 00008200 00008585 00010014
  206. [ 1411.592536] 00000080: 01885091 00010014 0000a101 00002745
  207. [ 1411.597908] 00000090: 00004345 00008a00 00000200 00000200
  208. [ 1411.603285] 000000a0: 00000200 0bb8ea60 00010014 00010014
  209. [ 1411.608660] 000000b0: 00010014 00000910 00000900 001f05dc
  210. [ 1411.614033] 000000c0: 00001703 00000707 00000e40 00000300
  211. [ 1411.619407] 000000d0: 00000342 00000742 00004141 00000100
  212. [ 1411.624781] 000000e0: 00004141 00000505 00008042 00008f8f
  213. [ 1411.630154] 000000f0: 00000000 00000631 00001ee3 00008307
  214. [ 1411.635528] 00000100: 00001100 01885091 00004141 00000000
  215. [ 1411.640898] 00000110: 00000000 00000000 00000000 00000000
  216. [ 1411.646268] 00000120: 00000000 00000000 00000000 00000000
  217. [ 1411.651639] 00000130: 00000000 00000000 00000000 00000000
  218. [ 1411.657008] 00000140: 00000000 00000000 00000000 00000000
  219. [ 1411.662378] 00000150: 00000000 00000000 00000000 00000000
  220. [ 1411.667751] 00000160: 00001000 0000ff00 00003e20 0000faf8
  221. [ 1411.673123] 00000170: 00004c70 0000a6cd 00001af0 00008139
  222. [ 1411.678495] 00000180: 00000f24 00000000 00000401 0000040c
  223. [ 1411.683867] 00000190: 00000000 0000fe94 00000000 0000c19e
  224. [ 1411.689237] 000001a0: 0000017f 00000000 00000000 00000000
  225. [ 1411.694607] 000001b0: 00000000 00000000 00000000 00000000
  226. [ 1411.699977] 000001c0: 00000000 00000000 00000000 00000000
  227. [ 1411.705346] 000001d0: 00000000 00000000 00000000 00000000
  228. [ 1411.710719] 000001e0: 00000000 00000000 00000000 00640064
  229. [ 1411.716089] 000001f0: 00000004 00000000 00000002 00000000
  230. [ 1411.721460] 00000200: 00000002 00000000 00000002 00000000
  231. [ 1411.726830] 00000210: 00000002 00000000 00000004 00000478
  232. [ 1411.732195] Rebooting in 5 seconds..
  233. DDR Version 1.00 20141007
Copy the code


Author: Ava    Time: 3/2/2015 22:38
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Thanks for you work. You use kernel v 3.14?&nbsp;
Author: andykirby    Time: 3/3/2015 01:11
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Good stuff!

You mention its for stock kernel 3.6.10.  but the current firefly kernel is 3.10.0 right?


Will this work with 3.10.0?



        



        


Author: busybee    Time: 3/3/2015 09:17
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
> You mention its for stock kernel 3.6.10.  but the current firefly kernel is 3.10.0 right?
    Yes. That's a typo. Fixed, thanks.


Author: andykirby    Time: 3/3/2015 16:28
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Getting some errors:


Error: eglGetError(): 12289 (0x3001)

Error: Failed to initialize EGL at ../../../../samples/opengles_30/skybox/EGLRuntime.cpp:243
        
               
        

Author: Ava    Time: 3/3/2015 18:02
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
  >>Error: eglGetError(): 12289 (0x3001)
  >>Error: Failed to initialize EGL at ../../../../samples/opengles_30/skybox/EGLRuntime.cpp:243

try execute this command:
  1. sudo chmod 777 /dev/mali0
Copy the code


Author: busybee    Time: 3/3/2015 18:03
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Getting some errors:

Error: eglGetError(): 12289 (0x3001)

Error: Failed to initialize EGL at ../../../../samples/opengles_30/skybox/EGLRuntime.cpp:243


You should run the demo with 32 bits framebuffer. And as Ava mentions, make sure you have permission on /dev/mali and /dev/fb0.

Try to run the demo in root user.



        

Author: andykirby    Time: 3/4/2015 05:53
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
thanks, right now there is no /dev/mali

mali_kbase is loaded and the fbdev drivers are present in /usr/lib/fbdev/  


how can I debug this?



        


Author: busybee    Time: 3/4/2015 09:37
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly


        Youtube video added:



        [/url][url=http://youtu.be/UBWfFCDTtGI][url=http://youtu.be/UBWfFCDTtGI]http://youtu.be/UBWfFCDTtGI[/url]

Author: boredland    Time: 3/4/2015 10:54
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly


        Can anyone here serve with ready-to go images so I don't need to rebuild that stuff?



        And did anyone try the result with the Mali Opencl Sdk?

Author: ganggangstyle-e    Time: 3/4/2015 14:17
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Can anyone here serve with ready-to go images so I don't need to rebuild that stuff?

And did anyone try the result with the Mali Opencl Sdk?

I want to share the img to you ,but i don't know how to pack my system for img.

I have look the wiki page:

http://wiki.t-firefly.com/index.php/Fir ... irmware/en

but it only metion how to mount a rootfs and modify some files, then pack the img.

the actuality is i should install some software  in rootfs .if you can share some method for package i'll share my rootfs.

or in another method ,i share my kernel.img and you could update the kernel ,then you should only do :

download: http://pan.baidu.com/s/1kT1MQpD

0.update the boot.img and resource.img

1.copy the mali user space driver *.so in /usr/lib
2.copy the example sdk application in rootfs
3.set the 32bit framebuffer

then you could test the framebuffer mali gpu test .


Author: busybee    Time: 3/4/2015 18:20
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
thanks, right now there is no /dev/mali

mali_kbase is loaded and the fbdev drivers are present in /usr/lib/fbdev/
how can I debug this?

Do:

# lsmod


mali_kbase module should be listed.

And

# ls /dev/mali0

mali0 should be presented. If not, check the kernel log by:

# dmesg

        


Author: busybee    Time: 3/4/2015 18:21
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Can anyone here serve with ready-to go images so I don't need to rebuild that stuff?

And did anyone try the result with the Mali Opencl Sdk?

Examples in Opencl sdk have been tested. All are running fine.



        

Author: andykirby    Time: 3/4/2015 18:30
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
its all working here now. Not tried the OpenCL demos yet.



        



        



        

Author: andykirby    Time: 3/4/2015 23:53
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
The Mali SDK demos are working well here.

I guess the next step is to get xf86-video-fbturbo working


Author: andykirby    Time: 3/5/2015 15:40
Title: Re: Mali kernel driver TX011-SW-99002-r5p1-00rel0 for firefly
Has anyone managed managed to get DRM compiled in the kernel, I'm getting errors.
Author: boredland    Time: 3/17/2015 00:35
Wouldn't it be just possible to backup your whole partitions via Rkflashtool?
Author: boredland    Time: 3/17/2015 02:47
At least for Windows theres an easy dump tool:
http://forum.xda-developers.com/ ... p-firmware-t2915363
Author: danzuiji    Time: 4/24/2015 10:54
hi busybee! what's the kernel version you use?3.10.0 or other? thanks!
Author: danzuiji    Time: 4/27/2015 16:20
busybee Posted at 3/2/2015 18:21
Yes, ganggangstyle-en, there's a kernel crash after resume from screen suspend

Hi! busybee ! "Yes, ganggangstyle-en, there's a kernel crash after resume from screen suspend"
Do you have solved it?
Author: koryherzinger    Time: 6/11/2015 06:26
Hello all... I'm hoping someone can help me out.

I have built the stock kernel (https://bitbucket.org/T-Firefly/firefly-rk3288-kernel.git) and imported the Mali userspace binaries into my rootfs.  I'm trying to launch weston with the fbdev backend, but I get an error:


  1. [12:01:21.889] weston 1.4.0
  2.                http://wayland.freedesktop.org/
  3.                Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.4.0
  4.                Build: 6d359c5-dirty Fixed issue with processing position on touch up. (2014-12-11 16:46:13 -0800)
  5. [12:01:21.890] OS: Linux, 3.10.0, #1 SMP PREEMPT Mon Jun 8 16:34:54 PDT 2015, armv7l
  6. [12:01:21.890] Using config file '/etc/xdg-config/default/weston.ini'
  7. [12:01:21.890] Loading module '/usr/lib/weston/fbdev-backend.so'
  8. [12:01:21.892] initializing fbdev backend
  9. [12:01:21.892] Creating fbdev output.
  10. [12:01:21.892] Opening fbdev frame buffer.
  11. [12:01:21.892] Calculating pixman format from:
  12.                 - type: 0 (aux: 0)
  13.                 - visual: 2
  14.                 - bpp: 32 (grayscale: 0)
  15.                 - red: offset: 24, length: 8, MSB: 0
  16.                 - green: offset: 16, length: 8, MSB: 0
  17.                 - blue: offset: 8, length: 8, MSB: 0
  18.                 - transp: offset: 0, length: 8, MSB: 0
  19. [12:01:21.892] Mapping fbdev frame buffer.
  20. [12:01:21.892] Failed to mmap frame buffer: Invalid argument
  21. [12:01:21.892] Mapping frame buffer failed.
  22. [12:01:21.893] fatal: failed to create compositor
Copy the code


So I thought I'd try to 'dd' some random data into the framebuffer:


  1. # dd if=/dev/random of=/dev/fb0 bs=512 count=32
  2. dd: writing '/dev/fb0': No such device
  3. 0+1 records in
  4. 0+0 records out
  5. 0 bytes (0 B) copied, 0.000217584 s, 0.0 kB/s
Copy the code


The device node exists:


  1. # ls -l /dev/fb*
  2. crw-rw-rw- 1 root video 29, 0 Jan  1 12:00 /dev/fb0
  3. crw-rw-rw- 1 root video 29, 1 Jan  1 12:00 /dev/fb1
  4. crw-rw-rw- 1 root video 29, 2 Jan  1 12:00 /dev/fb2
  5. crw-rw-rw- 1 root video 29, 3 Jan  1 12:00 /dev/fb3
  6. crw-rw-rw- 1 root video 29, 4 Jan  1 12:00 /dev/fb4
Copy the code


But there seems to be some disconnect in the kernel between this device node and the backing driver.

I've also tried launch X with the fbdev driver, but I get a similar error:


  1. [1098091.703] (II) LoadModule: "fbdev"
  2. [1098091.704] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
  3. [1098091.705] (II) Module fbdev: vendor="X.Org Foundation"
  4. [1098091.705]   compiled for 1.14.2, module version = 0.4.4
  5. [1098091.705]   Module class: X.Org Video Driver
  6. [1098091.705]   ABI class: X.Org Video Driver, version 14.1
  7. [1098091.705] (II) FBDEV: driver for framebuffer: fbdev
  8. [1098091.705] (++) using VT number 7
  9. [1098091.705] (WW) Falling back to old probe method for fbdev
  10. [1098091.705] (II) Loading sub module "fbdevhw"
  11. [1098091.705] (II) LoadModule: "fbdevhw"
  12. [1098091.705] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
  13. [1098091.706] (II) Module fbdevhw: vendor="X.Org Foundation"
  14. [1098091.706]   compiled for 1.14.99.1, module version = 0.0.2
  15. [1098091.706]   ABI class: X.Org Video Driver, version 14.1
  16. [1098091.707] (II) FBDEV(0): using default device
  17. [1098091.707] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
  18. [1098091.707] (**) FBDEV(0): Depth 24, (--) framebuffer bpp 32
  19. [1098091.707] (==) FBDEV(0): RGB weight 888
  20. [1098091.707] (==) FBDEV(0): Default visual is TrueColor
  21. [1098091.707] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
  22. [1098091.707] (II) FBDEV(0): hardware: fb0 (video memory: 0kB)
  23. [1098091.707] (II) FBDEV(0): checking modes against framebuffer device...
  24. [1098091.707] (II) FBDEV(0):    mode "1280x720" ok
  25. [1098091.707] (II) FBDEV(0): checking modes against monitor...
  26. [1098091.707] (--) FBDEV(0): Virtual size is 1280x720 (pitch 1280)
  27. [1098091.707] (**) FBDEV(0):  Mode "1280x720": 74.2 MHz (scaled from 0.0 MHz), 45.0 kHz, 59.9 Hz
  28. [1098091.707] (II) FBDEV(0): Modeline "1280x720"x0.0   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz)
  29. [1098091.707] (==) FBDEV(0): DPI set to (96, 96)
  30. [1098091.707] (II) Loading sub module "fb"
  31. [1098091.707] (II) LoadModule: "fb"
  32. [1098091.708] (II) Loading /usr/lib/xorg/modules/libfb.so
  33. [1098091.712] (II) Module fb: vendor="X.Org Foundation"
  34. [1098091.712]   compiled for 1.14.99.1, module version = 1.0.0
  35. [1098091.712]   ABI class: X.Org ANSI C Emulation, version 0.4
  36. [1098091.712] (**) FBDEV(0): using shadow framebuffer
  37. [1098091.713] (II) Loading sub module "shadow"
  38. [1098091.713] (II) LoadModule: "shadow"
  39. [1098091.713] (II) Loading /usr/lib/xorg/modules/libshadow.so
  40. [1098091.715] (II) Module shadow: vendor="X.Org Foundation"
  41. [1098091.715]   compiled for 1.14.99.1, module version = 1.1.0
  42. [1098091.715]   ABI class: X.Org ANSI C Emulation, version 0.4
  43. [1098091.715] (==) Depth 24 pixmap format is 32 bpp
  44. [1098091.715] (EE) FBDEV(0): mmap fbmem: Invalid argument
  45. [1098091.715] (EE) FBDEV(0): mapping of video memory failed
  46. [1098091.715] (EE)
  47. Fatal server error:
  48. [1098091.715] (EE) AddScreen/ScreenInit failed for driver 0
  49. [1098091.715] (EE)
  50. [1098091.715] (EE)
Copy the code


The X log seems to think that the fb0 device has 0kB of video memory.  This might explain why the mmap fails for both weston and X.

Does anyone have any ideas why the stock kernel isn't working for me with the fbdev driver?

Thanks!
Author: mara    Time: 9/4/2015 04:30
Kernel Device Driver r7p0-02rel0        21 August 2015
http://malideveloper.arm.com/res ... nel-device-drivers/

someone tried to integrate the new driver into the kernel?
Author: prashfly    Time: 9/14/2015 19:41
Hello All,
Has anybody tried using mali with armsoc driver for X11 rendering. I tried using r4p0 drivers without success.
Thanks!!

Author: qiufeng    Time: 9/16/2015 22:44
Ava Posted at 3/3/2015 18:02
>>Error: eglGetError(): 12289 (0x3001)
  >>Error: Failed to initialize EGL at ../../../../samples ...

i have the same problem,do you know how to deal with it?  thanks
Author: qiufeng    Time: 9/16/2015 22:47
busybee Posted at 3/4/2015 18:20
thanks, right now there is no /dev/mali

mali_kbase is loaded and the fbdev drivers are present in ...

I have the mali_kbase module and the mali0 but I have the error   

Error: eglGetError(): 12289 (0x3001)

Error: Failed to initialize EGL at src/EGLRuntime.cpp:245
how to deal with it
Author: busybee    Time: 9/17/2015 11:44
Plz post the result of
  sudo fbset -i
Author: newold    Time: 9/17/2015 14:59
I would like to use the GPU hardware-accelerated in chrome browser( Ubuntu 14.0.4).
However, it does not seem to work.

Typing "chrome://gpu/" in Chrome, displays the following.
========================================================
Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Software only, hardware acceleration unavailable
Flash Stage3D: Software only, hardware acceleration unavailable
Flash Stage3D Baseline profile: Software only, hardware acceleration unavailable
Compositing: Software only, hardware acceleration unavailable
Multiple Raster Threads: Disabled
Rasterization: Software only, hardware acceleration unavailable
Threaded Rasterization: Unavailable
Video Decode: Software only, hardware acceleration unavailable
Video Encode: Software only, hardware acceleration unavailable
WebGL: Unavailable
=====================================================

I tried to get hardware acceleration in Chrome.

1.Search for "hardware" and tick the checkbox for "Use hardware acceleration..." in chrome://settings
2.Enable "Override software rendering list" in chrome://flags/

The result is the same as before.
Author: Alexander    Time: 9/21/2015 19:21
Hello all,
as I see a lot of people have trouble with compiling the sources. There is an update of mali drivers. I think its would be perfect if developers could share the updated DualBoot image to flash. Or at least compiled stock kernel ready-to-use with instructions how to incorporate it into the clean system. Everybody would be happy to have working solution. Is it possible?
Author: dividiti    Time: 9/29/2015 19:12
+1
Author: tatmarg    Time: 11/18/2015 21:41
Hi
I can't understand what is /path/to/your/firefly/sdk? Plese help me, how find this directory? And is this  for Ubuntu?


Author: wujialiang    Time: 11/30/2015 21:51
busybee Posted at 2/28/2015 09:59
Hi all, this is the first update of  Mali kernel driver TX011-SW-99002-r5p1-00rel0 for Firef ...

thanks¡¢
~~~~~~~~~~~~~~~~~
Author: nillort    Time: 1/6/2016 08:12
is there any update on more clear instructions on how to install these drivers?
Author: cagancelik    Time: 1/25/2016 10:03
These drivers needs to be put in a latest Linux image for us by the developers. Plz some of us are noobs.
Author: qinheaven    Time: 3/22/2016 17:35
Last edited by qinheaven In 3/24/2016 11:36 Editor

+1
Author: qinheaven    Time: 3/23/2016 11:36
Last edited by qinheaven In 3/24/2016 11:37 Editor

+1
Author: qinheaven    Time: 3/24/2016 11:30
busybee Posted at 3/2/2015 18:21
Yes, ganggangstyle-en, there's a kernel crash after resume from screen suspend

hi,busybee.
how deal with this kernel crash ?
Author: felixch    Time: 4/16/2016 16:29
busybee Posted at 3/2/2015 18:21
Yes, ganggangstyle-en, there's a kernel crash after resume from screen suspend

I build the android4.4 kernel with your patch, and it crashed when boot.
Would you like give me some suggestions?
Thanks!
Author: anna10001    Time: 4/20/2016 10:50
This web site is rewarding. wish you growing
Tiny Tanks   is a popular game that all of you would like. In which you can play Tiny Planes Run 3 Unblocked Hacked unblocked Games. Or you can go to play Tiny Planes Tiny Planes Beta
Author: lihp1603    Time: 6/1/2016 15:45
andykirby Posted at 3/3/2015 16:28
Getting some errors:

how can i deal with it?

thanks!
Author: Akshatajadhav30    Time: 6/23/2016 20:01
Last edited by Akshatajadhav30 In 6/23/2016 20:04 Editor

I have firefly rk 3288 board with android and linux OS. I have developed OpenCL application and wants to excute on linux .

How i can do that in linux, give some detail information (How to set runtime environment for OpenCL )?

Thanks for reading.
Author: trang    Time: 7/2/2016 10:34
Donkey Kong Unblocked  is a revival of the Game Boy Donkey Kong.The goal is to help Mario rescue the Princess. . In this flash game remake of the original Super Mario Unblocked game, you can play as either Mario or Luigi. Speed around tight turns to cross the finish line in first place in the cool racing games from Car Racing Games. Play Run Unblocked  or Run 3 Unblocked.  and Run 4 Unblocked Game. You enter in a prohibited zone which is full of dangerous holes.


Author: calducce    Time: 11/6/2016 12:04
I am about to purchase a Firefly Reload but I need to know if the current firmware supports GL ES fbdev drivers (NO X) with zero copy enabled. I see that there was some good progress on the original Firefly RK3288 board but I need to know if I will have good GL support on the Reload. It is a dealbreaker otherwise.
Author: isle    Time: 11/7/2016 11:18
hi
you just need rebuild the kernel ,
Author: huanglsh6    Time: 8/26/2018 11:56
busybee Posted at 2/28/2015 09:59
Hi all, this is the first update of  Mali kernel driver TX011-SW-99002-r5p1-00rel0 for Firef ...

Hello.  As you know now the file tree has changed a lot . And many files as you said didn't emerge. So I want to ask where is your firefly_rk3288.img   and   where is your modules  come from?




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1