Coder Social home page Coder Social logo

miouyouyou / rockmyy Goto Github PK

View Code? Open in Web Editor NEW
32.0 9.0 8.0 967 KB

Build scripts and patches used to cross-compile 5.6-rcX kernels for RK3288 boards

License: MIT License

Shell 93.22% Dockerfile 6.78%
rk3288 mainline-kernel patreon patches build-automation linux-kernel linux rockchip rockmyy tinkerboard

rockmyy's Introduction

If you appreciate this project, support me on Patreon or Liberapay !

BTC : 16zwQUkG29D49G6C7pzch18HjfJqMXFNrW Patreon : https://www.patreon.com/Miouyouyou Liberapay : https://liberapay.com/Myy/donate

End of the project

This project (along with MyyQi) started a long time ago, in order to get the various subsystems of RK3288 boards working on Mainline kernels, with all the bells and whistles, with the hope of having a Vulkan dev-board someday.
So this project incorporated the Mali GPL kernel drivers, that had to be used with the Mali Blobby GL drivers, which were updated by ARM at the time, with the hope that ARM would release Vulkan drivers for RK3288 boards !

Fast-forwarding 3 years later, mainline kernels now provide drivers for the GPU, some staging drivers for the VPU (using V4L2 Request API, which is rather unsupported...) and have incorporated various fixes that make them almost useable without patches.
Mesa now incorporates the OpenGL user-space drivers. There's still some work to do on them but, still, they can run an entire batch of glmark2 without major issues (just some weird drop shadows on one test).

Meanwhile, neither ARM nor Rockchip have updated the Mali user-space drivers, making them unuseable with newer Mali kernel drivers.
I tried to maintain the most recent version that worked with the old blobby drivers, but it has reached a point where it's not possible easily.
So I'm dropping the whole Mali user-space drivers support.

That means that this repository purpose has reached its end.

You can now enjoy (almost) every feature of RK3288 boards (except maybe Vulkan, unless someone wants to play with MESA) using mainline kernels and standard MESA OpenGL drivers.
The VPU part still requires a player able to handle V4L2 Request API correctly. But that should come soon enough in every distribution.

So this repository only includes a few remaining patches for Tinkerboard systems (as I'm pretty sure nobody uses MiQi boards anymore), and that's it.

Using the main script

bash GetPatchAndCompileKernel.sh

This works whether you cloned this whole repository or just downloaded the script alone.

Don't hesitate to edit the script and replace the CROSS_COMPILE value in the script, in order to match your cross-compiling toolset prefix.
If you don't use cross-compile tools (meaning that you're compiling on your ARMv7 machine), set it like this CROSS_COMPILE=

If you'd like to reconfigure the kernel using menuconfig, nconfig, qtconfig, ... do it like this :

# Assuming that you want to use menuconfig
MAKE_CONFIG=menuconfig bash GetPatchAndCompileKernel.sh

Now, you need all the tools required to compile a kernel.
That includes, at least, gcc, make, automake, bison, flex, bc, pkg-config and some SSL library development headers (libssl-dev on Debian systems).

In order to use this script, you'll also need : wget, git and bash.

Using menuconfig also require ncurses libraries and development headers (ncurses-dev on Debian systems).

Prebuilt kernels

Armbian provide premade Debian packages of kernels for Rockchip systems including most of the patches included here.

About

This repository provides patches and mainline kernel cross-compiling scripts tailored towards Rockchip 3288 boards.

The main cross-compiling script will :

  • Clone the latest release or release candidate branch of the mainline kernel;
  • Apply various RK3288 specific patches for Tinkerboard boards;
  • Copy and use this repository configuration file;
  • Cross-compile the patched kernel;
  • Create the folder /tmp/Rockmyy-Build and install the cross-compiled kernel in that folder.

rockmyy's People

Contributors

hyshka avatar miouyouyou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rockmyy's Issues

Crash with 4.13.0-rc6 kernels

So, a little change in the logging functions of the stmmac ethernet drivers crashes MiQi boards on boot. I fixed the issue by commenting the logging function, and submitted the patch that does that in my repository.

That said, I still have to report the bug to the Rockchip guys, so here it is :

[    3.116394] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0
[    3.125712] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    3.132481] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[    3.140376] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
[    3.146711] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
[    3.153079] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[    3.164900] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[    3.171270] stmmac - user ID: 0x10, Synopsys ID: 0x35
[    3.176928] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
[    3.183451] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register supported
[    3.191820] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
[    3.198437] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine supported
[    3.206800] rk_gmac-dwmac ff290000.ethernet: COE Type 2
[    3.212642] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
[    3.220521] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
[    3.227739] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    4.269762] libphy: stmmac: probed
[    4.273578] Unable to handle kernel NULL pointer dereference at virtual address 00000048
[    4.282639] pgd = c0004000
[    4.285662] [00000048] *pgd=00000000
[    4.289667] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    4.295597] Modules linked in:
[    4.299005] CPU: 0 PID: 30 Comm: kworker/0:1 Not tainted 4.13.0-rc6-RockMyy-XIII #1
[    4.307555] Hardware name: Rockchip (Device Tree)
[    4.312809] Workqueue: events deferred_probe_work_func
[    4.318545] task: ee90cb00 task.stack: eea16000
[    4.323602] PC is at phy_attached_print+0x20/0x7c
[    4.328853] LR is at stmmac_mdio_register+0x180/0x1f4
[    4.334482] pc : [<c075aaa8>]    lr : [<c0769f48>]    psr: 60000013
[    4.341480] sp : eea17dd8  ip : c133ebe0  fp : ed89dc00
[    4.347312] r10: ed89dad0  r9 : eea20010  r8 : ed8a3000
[    4.353143] r7 : 00000000  r6 : 00000001  r5 : ed8c5158  r4 : 00000000
[    4.360432] r3 : 00000000  r2 : 00000000  r1 : ffffffff  r0 : ed89dc00
[    4.367720] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    4.375688] Control: 10c5387d  Table: 0000406a  DAC: 00000051
[    4.382102] Process kworker/0:1 (pid: 30, stack limit = 0xeea16218)
[    4.389099] Stack: (0xeea17dd8 to 0xeea18000)
[    4.393960] 7dc0:                                                       00000000 00000002
[    4.403095] 7de0: eea20010 ed89d800 ed8c5158 ed89d800 c0769f48 00000000 ffffffff 00000001
[    4.412231] 7e00: 00000000 c017979c c12c7f74 ed8a2688 c12e7e14 ed8a2000 00000001 ed8a2680
[    4.421358] 7e20: ed8a2780 c176d318 ed8a2580 ed8a3000 c12e7e14 c0765410 00000000 eea20010
[    4.430493] 7e40: 00000000 eea20000 ed8d5818 ed8c5300 00000000 c07715b8 00000000 00000001
[    4.439628] 7e60: eded9960 dfff570c 00000010 f0f60000 00000000 00000028 fffffffa 00000027
[    4.448755] 7e80: eea20010 c0771244 eea20010 c129c634 00000000 c129c634 00000004 c070a944
[    4.457890] 7ea0: eea20010 c176bd90 00000000 c0708e5c 00000000 00000000 eea17ee8 c07090b8
[    4.467025] 7ec0: eea20044 eef9e000 c1203900 c070776c ee894e90 eded8244 eea20010 c1295c40
[    4.476159] 7ee0: 00000001 c0708c74 eea20010 00000001 00000000 eea20010 c1295c40 eea20010
[    4.485295] 7f00: 00000000 c0708360 eea20010 c12959dc c1295a04 c07087b4 ee9c9500 c1295a0c
[    4.494422] 7f20: eef9adc0 c01367b4 ee9c9500 c1295a0c 00000000 ee9c9500 ee9c9518 eef9adc0
[    4.503557] 7f40: eea16000 eef9ade4 c1203900 ee9c9518 00000008 c0136a00 eef9ade0 ee9c9500
[    4.512693] 7f60: eef9adc0 c0136fa0 ee90cb00 ee92e200 ee9cc940 00000000 ee9c9500 c0136ccc
[    4.521820] 7f80: ee8dbee4 ee92e228 00000000 c013b258 ee9cc940 c013b120 00000000 00000000
[    4.530946] 7fa0: 00000000 00000000 00000000 c0106f58 00000000 00000000 00000000 00000000
[    4.540080] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.549214] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 20001010 08002004
[    4.558354] [<c075aaa8>] (phy_attached_print) from [<c0769f48>] (stmmac_mdio_register+0x180/0x1f4)
[    4.568364] [<c0769f48>] (stmmac_mdio_register) from [<c0765410>] (stmmac_dvr_probe+0x7b8/0x908)
[    4.578172] [<c0765410>] (stmmac_dvr_probe) from [<c07715b8>] (rk_gmac_probe+0x374/0x458)
[    4.587309] [<c07715b8>] (rk_gmac_probe) from [<c070a944>] (platform_drv_probe+0x50/0xa0)
[    4.596445] [<c070a944>] (platform_drv_probe) from [<c0708e5c>] (driver_probe_device+0x150/0x2d0)
[    4.606358] [<c0708e5c>] (driver_probe_device) from [<c070776c>] (bus_for_each_drv+0x84/0x94)
[    4.615873] [<c070776c>] (bus_for_each_drv) from [<c0708c74>] (__device_attach+0x88/0xfc)
[    4.625000] [<c0708c74>] (__device_attach) from [<c0708360>] (bus_probe_device+0x28/0x80)
[    4.634135] [<c0708360>] (bus_probe_device) from [<c07087b4>] (deferred_probe_work_func+0x60/0x84)
[    4.644147] [<c07087b4>] (deferred_probe_work_func) from [<c01367b4>] (process_one_work+0x244/0x468)
[    4.654351] [<c01367b4>] (process_one_work) from [<c0136a00>] (process_scheduled_works+0x28/0x30)
[    4.664265] [<c0136a00>] (process_scheduled_works) from [<c0136fa0>] (worker_thread+0x2d4/0x3d4)
[    4.674082] [<c0136fa0>] (worker_thread) from [<c013b258>] (kthread+0x138/0x154)
[    4.682345] [<c013b258>] (kthread) from [<c0106f58>] (ret_from_fork+0x14/0x3c)
[    4.690413] Code: e59d401c e590302c e3540000 e5901284 (e5922048) 
[    4.697244] ---[ end trace 7b3d4f1ce28bf8e6 ]---

Installing this on an ASUS C201 Chromebook?

Hello,
I was wondering if it's possible to use this kernel on my ASUS C201 Chromebook, which is based on the same RK3288 SoC. Currently I'm running Arch Linux ARM off a microSD card and it runs the 3.14 ChromeOS kernel that also comes with the Mali kernel space drivers (r12p0). But I'm currently unable to get any sort of hardware acceleration with the user space driver (r5p0 as shown here) that comes with Arch Linux, nor am I able to use any Wayland based window managers (Weston, Sway, KWin). Now there might be an easier solution to this than installing a custom kernel and user space drivers, but I can't figure it out. Maybe you can help me out.

How do I go about installing this kernel on Arch Linux? I would like to install it through the Arch Build System as detailed here: Kernels/Arch Build System since that allows me to manage the kernel using the package manager. But that would mean I have to modify the PKGBUILD for the official kernel distributed by Arch Linux here right? In that case, how do I include your patches into that kernel without changing anything else? I realize this is probably not your problem, but I'm getting desperate to get my graphics driver to work properly so that I can actually do something useful on my distro (ideally I would like to use it as my main OS while sidelining Chrome OS for casual use).

Thanks in advance!

meet an error when using the main script

Hello. I cloned this repository on my device and tried to execute the main script, but I got error like this:

dauker@dauker-asus:~/Miouyouyou/RockMyy$ sh GetPatchAndCompileKernel.sh 
GetPatchAndCompileKernel.sh: 106: GetPatchAndCompileKernel.sh: function: not found

What's wrong whit it?

Newbie friendly, DRM-only opengles, /init tutorial

Hi Miouyouyou!

I was wondering if you would consider the following idea for a tutorial at some point; it is a followup from my comments at your gist:

Create a wiki page detailing the steps required to build a minimal system image that boots and runs your opengles example as an /init script. From some of your writings, I think you have an interest in android; this tutorial would have a slightly different target audience: people interested creating absolute minimal devices in which they can control and understand nearly every part of the process and nevertheless can access the full power of the cpu/gpu (e.g. have proper Mali drivers). I'm not sure how interesting this would be for you, but if you have questions I can try to flesh out more details and provide better explanations. (and as you pointed out in your comment on the gist, the remaining black box/proprietary stuff would be the Mali drivers themselves, which for me is something I can live with....)

For the time being, I was thinking: Since most of the complicated details are worked out (RockMyy, the opengl gist, etc), it might be good to make the tutorial newbie friendly:

  • starting with some basic advise on selecting a board
  • assembling a tool chain (keep this as simple as possible...)
  • building RockMyy -- menuconfig options, laying out root file system
  • getting mali drivers from rockchip, creating symlinks
  • building opengl app
  • creating image and creating sd card

If you are interested we could do a collaboration where you document the hard parts and I document the newbie parts.

Thanks!

Framebuffer : Vblank timeout

On some configurations, the framebuffer fails to initialize the screen correctly.

It seems that the problem started to occur since some 4.16-rcX version.
In such events, the system boots fine and X11 starts without issues.

So it's highly probable that this is a framebuffer related issue.

[    1.277829] WARNING: CPU: 2 PID: 102 at drivers/gpu/drm/drm_atomic_helper.c:1349 drm_atomic_helper_wait_for_vblanks+0x1c8/0x1e0
[    1.277831] [CRTC:30:crtc-0] vblank wait timed out
[    1.277833] Modules linked in:
[    1.277840] CPU: 2 PID: 102 Comm: kworker/2:4 Not tainted 4.16.0-RockMyy-16Bits-Edition #1
[    1.277842] Hardware name: Rockchip (Device Tree)
[    1.277848] Workqueue: events deferred_probe_work_func
[    1.277860] [<c010f664>] (unwind_backtrace) from [<c010b7d4>] (show_stack+0x10/0x14)
[    1.277868] [<c010b7d4>] (show_stack) from [<c0c711c4>] (dump_stack+0x70/0x8c)
[    1.277875] [<c0c711c4>] (dump_stack) from [<c011f278>] (__warn+0xdc/0xfc)
[    1.277881] [<c011f278>] (__warn) from [<c011f2cc>] (warn_slowpath_fmt+0x34/0x44)
[    1.277887] [<c011f2cc>] (warn_slowpath_fmt) from [<c070b318>] (drm_atomic_helper_wait_for_vblanks+0x1c8/0x1e0)
[    1.277894] [<c070b318>] (drm_atomic_helper_wait_for_vblanks) from [<c070cc80>] (drm_atomic_helper_commit_tail_rpm+0x48/0x58)
[    1.277900] [<c070cc80>] (drm_atomic_helper_commit_tail_rpm) from [<c070cb04>] (commit_tail+0x40/0x6c)
[    1.277904] [<c070cb04>] (commit_tail) from [<c070cc2c>] (drm_atomic_helper_commit+0xf4/0x100)
[    1.277910] [<c070cc2c>] (drm_atomic_helper_commit) from [<c070ed50>] (restore_fbdev_mode_atomic+0x7c/0x1b4)
[    1.277917] [<c070ed50>] (restore_fbdev_mode_atomic) from [<c07115a8>] (drm_fb_helper_restore_fbdev_mode_unlocked+0x48/0x7c)
[    1.277923] [<c07115a8>] (drm_fb_helper_restore_fbdev_mode_unlocked) from [<c0711628>] (drm_fb_helper_set_par+0x4c/0x5c)
[    1.277929] [<c0711628>] (drm_fb_helper_set_par) from [<c06a8eec>] (fbcon_init+0x2cc/0x45c)
[    1.277937] [<c06a8eec>] (fbcon_init) from [<c06df5d8>] (visual_init+0xc0/0x110)
[    1.277943] [<c06df5d8>] (visual_init) from [<c06e0db4>] (do_bind_con_driver+0x258/0x2d4)
[    1.277947] [<c06e0db4>] (do_bind_con_driver) from [<c06e1188>] (do_take_over_console+0x158/0x19c)
[    1.277952] [<c06e1188>] (do_take_over_console) from [<c06a90cc>] (do_fbcon_takeover+0x50/0xc0)
[    1.277958] [<c06a90cc>] (do_fbcon_takeover) from [<c013c7a4>] (notifier_call_chain+0x44/0x68)
[    1.277964] [<c013c7a4>] (notifier_call_chain) from [<c013ca20>] (__blocking_notifier_call_chain+0x40/0x58)
[    1.277970] [<c013ca20>] (__blocking_notifier_call_chain) from [<c013ca4c>] (blocking_notifier_call_chain+0x14/0x1c)
[    1.277977] [<c013ca4c>] (blocking_notifier_call_chain) from [<c06a1a88>] (register_framebuffer+0x5c/0x268)
[    1.277984] [<c06a1a88>] (register_framebuffer) from [<c0711278>] (__drm_fb_helper_initial_config_and_unlock+0x2b0/0x344)
[    1.277991] [<c0711278>] (__drm_fb_helper_initial_config_and_unlock) from [<c073a268>] (rockchip_drm_fbdev_init+0xa0/0x104)
[    1.277996] [<c073a268>] (rockchip_drm_fbdev_init) from [<c0735d88>] (rockchip_drm_bind+0x158/0x1cc)
[    1.278002] [<c0735d88>] (rockchip_drm_bind) from [<c0749a70>] (try_to_bring_up_master+0x68/0x158)
[    1.278008] [<c0749a70>] (try_to_bring_up_master) from [<c0749d88>] (component_master_add_with_match+0xa8/0xe0)
[    1.278014] [<c0749d88>] (component_master_add_with_match) from [<c0735fb0>] (rockchip_drm_platform_probe+0x1b4/0x204)
[    1.278019] [<c0735fb0>] (rockchip_drm_platform_probe) from [<c07505a8>] (platform_drv_probe+0x50/0x9c)
[    1.278025] [<c07505a8>] (platform_drv_probe) from [<c074ebc4>] (driver_probe_device+0x240/0x308)
[    1.278029] [<c074ebc4>] (driver_probe_device) from [<c074d410>] (bus_for_each_drv+0x84/0x8c)
[    1.278034] [<c074d410>] (bus_for_each_drv) from [<c074e8f8>] (__device_attach+0x98/0x100)
[    1.278039] [<c074e8f8>] (__device_attach) from [<c074deb8>] (bus_probe_device+0x28/0x80)
[    1.278043] [<c074deb8>] (bus_probe_device) from [<c074e3e4>] (deferred_probe_work_func+0x108/0x120)
[    1.278050] [<c074e3e4>] (deferred_probe_work_func) from [<c01360e0>] (process_one_work+0x220/0x468)
[    1.278056] [<c01360e0>] (process_one_work) from [<c0136354>] (process_scheduled_works+0x2c/0x30)
[    1.278061] [<c0136354>] (process_scheduled_works) from [<c0137090>] (worker_thread+0x2b8/0x3e8)
[    1.278066] [<c0137090>] (worker_thread) from [<c013b1dc>] (kthread+0x130/0x148)
[    1.278071] [<c013b1dc>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.278074] Exception stack(0xed8a1fb0 to 0xed8a1ff8)
[    1.278077] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.278081] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.278084] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.278087] ---[ end trace 0d44f5a5d5fde61d ]---

GPU : Starting progressing towards Panfrost

Panfrost :
https://developer.arm.com/products/software/mali-drivers/user-space
https://rosenzweig.io/blog/panfrost-on-the-rk3399-meow.html

Maintaining the r19p0 patchset from Mali is becoming more and more difficult.
There are more recent versions of the Mali Midgard GPL kernel driver, but these require user-space drivers to use the new IOCTL API.

The Mali user-space binary drivers provided by Rockchip and ARM for the RK3288 boards do not use this new API.
The only driver for Mali T76x able to use the new API, is the Panfrost driver.

So moving towards Panfrost seems the most reasonable choice.
It's a free-software driver that works with the newer versions of Mali Midgard GPL kernel drivers.
And panfrost is currently included in MESA, making the installation a breeze on a lot of Linux systems.

However, panfrost performances are currently pretty bad, from what I've seen.
Now, a good way to improve its speed is to compare how the shaders are generated and used with the fast user-space binary drivers, and apply this knowledge on the shaders generator for the panfrost driver.
THAT requires the ability to switch from one implementation to the other so... I'm not going to give up on the binary drivers on the next versions. I'll have to wait for decent performances before doing so. And since performances improvement will require the good old drivers for performances comparisons, I'll keep them for a little while. That will still require two different kernels, since the kernel drivers won't be the same (r19p0 for one, r27p0+ for the other).

Now, if you're worried about Vulkan support, well... It's not supported by the Mali user-space binary drivers provided, except the one with Framebuffer only support. So yeah... nobody cared about Vulkan support on Linux, within ARM who don't release new drivers anymore :
https://developer.arm.com/products/software/mali-drivers/user-space

5.0-rc2 cannot boot

The following issue arises when trying to boot a 5.0-rc2 with no patches on a Tinkerboard :

[    1.682129] Unable to handle kernel NULL pointer dereference at virtual address 000001bc
[    1.691257] pgd = (ptrval)
[    1.694309] [000001bc] *pgd=00000000
[    1.698349] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
[    1.704497] Modules linked in:
[    1.707928] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.0.0-rc2-Myy-HiveFive #1
[    1.716120] Hardware name: Rockchip (Device Tree)
[    1.721404] PC is at serial8250_register_8250_port+0x2e0/0x3b8
[    1.727945] LR is at serial8250_register_8250_port+0x9c/0x3b8
[    1.734383] pc : [<c072ee2c>]    lr : [<c072ebe8>]    psr: 60000013
[    1.741405] sp : ef0f5c28  ip : c0f186f4  fp : 00000000
[    1.747258] r10: 00000000  r9 : 000001c0  r8 : c13a1ba0
[    1.753112] r7 : 00000004  r6 : ef0f5c68  r5 : ffffffe4  r4 : 00000000
[    1.760425] r3 : 00000000  r2 : 00000004  r1 : 000001c0  r0 : 00000004
[    1.767741] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    1.775735] Control: 10c5387d  Table: 0000406a  DAC: 00000051
[    1.782174] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    1.788905] Stack: (0xef0f5c28 to 0xef0f6000)
[    1.793792] 5c20:                   60000013 00000000 00000000 c0d29350 ee9eb740 ee9eb740
[    1.802964] 5c40: 00000000 ef2a2410 ef2a2400 00000000 c13a2884 c0736d8c 00000001 006012c0
[    1.812136] 5c60: c106459e 00000004 00000000 dead4ead ffffffff ffffffff 00000000 f0d89000
[    1.821308] 5c80: c07360d8 c073640c c07365bc c073668c 00000000 00000000 00000000 00000000
[    1.830478] 5ca0: 00000000 00000000 00000000 00000000 c07366e0 c0736e84 00000000 00000000
[    1.839650] 5cc0: 00000000 00000025 00000000 016e3600 00000040 00030200 00000000 00000000
[    1.848820] 5ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.857990] 5d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 29000000
[    1.867151] 5d20: 00000000 00000000 00000000 00000000 00000004 00000000 00000000 00000004
[    1.876322] 5d40: 00000000 ff1c0000 00000000 ef2a2410 00000000 00000000 00000000 00000000
[    1.885492] 5d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.894662] 5d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.903824] 5da0: 00000000 00000000 ee9eb740 00000000 00000000 00000000 00000000 00000000
[    1.912994] 5dc0: 00000000 00000000 00010900 00000000 00000000 00000000 00000000 00000000
[    1.922154] 5de0: 00000000 ee9eb75c 00000000 00000000 00000000 00000000 00000000 00000000
[    1.931325] 5e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.940496] 5e20: 00000000 00000000 ef2a2410 00000000 c13a2884 c18a29a0 00000000 c079b908
[    1.949667] 5e40: ef2a2410 00000000 c18a29a4 c0799d08 00000000 ef2a2410 c13a2884 c13a2884
[    1.958839] 5e60: c13a54d0 00000000 c12a7230 efffcc40 00000018 c079a03c c13a2884 ef2a2410
[    1.968011] 5e80: 00000000 ef2a2410 ef2a2444 c13a2884 c13a54d0 00000000 c12a7230 c079a0e4
[    1.977183] 5ea0: ef2a2410 c13a2884 c079a058 c0798464 ef135070 ef2230c0 c13a2884 eeaf7e00
[    1.986354] 5ec0: 00000000 c07992ec c1076ca5 00000001 00000000 c13a2884 c1400de0 c130e488
[    1.995526] 5ee0: c123d98c c079acdc ffffe000 c1400de0 c130e488 c0102ddc 00000000 00000000
[    2.004697] 5f00: c1098098 efffcc00 c115a300 00000000 00000000 c013badc 00000000 c11580c8
[    2.013869] 5f20: 000001b7 00000006 00000006 c115a314 000001b6 c115a314 efffcc83 efffcc8c
[    2.023040] 5f40: 00000000 e02164a4 c1413500 00000007 c1413500 ef0f4000 c1400de0 c1275840
[    2.032211] 5f60: c12a7230 c12011e0 00000006 00000006 00000000 c12004a8 c0d24430 000001b7
[    2.041382] 5f80: 00000000 00000000 c0d24430 00000000 00000000 00000000 00000000 00000000
[    2.050553] 5fa0: 00000000 c0d24438 00000000 c01010e8 00000000 00000000 00000000 00000000
[    2.059714] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.068884] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    2.078063] [<c072ee2c>] (serial8250_register_8250_port) from [<c0736d8c>] (dw8250_probe+0x5a4/0x69c)
[    2.088399] [<c0736d8c>] (dw8250_probe) from [<c079b908>] (platform_drv_probe+0x48/0x94)
[    2.097479] [<c079b908>] (platform_drv_probe) from [<c0799d08>] (really_probe+0x1f0/0x2c0)
[    2.106754] [<c0799d08>] (really_probe) from [<c079a03c>] (driver_probe_device+0x140/0x15c)
[    2.116126] [<c079a03c>] (driver_probe_device) from [<c079a0e4>] (__driver_attach+0x8c/0xc8)
[    2.125593] [<c079a0e4>] (__driver_attach) from [<c0798464>] (bus_for_each_dev+0x54/0x78)
[    2.134768] [<c0798464>] (bus_for_each_dev) from [<c07992ec>] (bus_add_driver+0x170/0x1d8)
[    2.144039] [<c07992ec>] (bus_add_driver) from [<c079acdc>] (driver_register+0xb4/0xf8)
[    2.153019] [<c079acdc>] (driver_register) from [<c0102ddc>] (do_one_initcall+0xbc/0x264)
[    2.162197] [<c0102ddc>] (do_one_initcall) from [<c12011e0>] (kernel_init_freeable+0x368/0x3c4)
[    2.171957] [<c12011e0>] (kernel_init_freeable) from [<c0d24438>] (kernel_init+0x8/0x10c)
[    2.181132] [<c0d24438>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    2.189614] Exception stack(0xef0f5fb0 to 0xef0f5ff8)
[    2.195277] 5fa0:                                     00000000 00000000 00000000 00000000
[    2.204447] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.213616] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    2.221034] Code: e2505000 059450d4 e59631bc e3530000 (e58431bc) 
[    2.228015] ---[ end trace 60950f0031400bd8 ]---
[    2.233262] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.241862] CPU2: stopping
[    2.244911] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D           5.0.0-rc2-Myy-HiveFive #1
[    2.254659] Hardware name: Rockchip (Device Tree)
[    2.259950] [<c010f930>] (unwind_backtrace) from [<c010b998>] (show_stack+0x10/0x14)
[    2.268642] [<c010b998>] (show_stack) from [<c0d0f7e0>] (dump_stack+0x70/0x8c)
[    2.276748] [<c0d0f7e0>] (dump_stack) from [<c010e740>] (handle_IPI+0x2f0/0x3e4)
[    2.285049] [<c010e740>] (handle_IPI) from [<c06ad77c>] (gic_handle_irq+0x84/0x90)
[    2.293541] [<c06ad77c>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    2.301927] Exception stack(0xef125f68 to 0xef125fb0)
[    2.307591] 5f60:                   00000000 00000da8 ef7c11e0 c0119d80 00000000 00000000
[    2.316763] 5f80: ef124000 c130e4b0 00000004 ef125fc0 c130e4f0 00000000 00000000 ef125fb8
[    2.325929] 5fa0: c0108494 c0108484 60000013 ffffffff
[    2.331600] [<c0101a0c>] (__irq_svc) from [<c0108484>] (arch_cpu_idle+0x1c/0x38)
[    2.339901] [<c0108484>] (arch_cpu_idle) from [<c014a90c>] (do_idle+0x10c/0x230)
[    2.348200] [<c014a90c>] (do_idle) from [<c014aca0>] (cpu_startup_entry+0x18/0x20)
[    2.356689] [<c014aca0>] (cpu_startup_entry) from [<0010256c>] (0x10256c)
[    2.364297] CPU3: stopping
[    2.367346] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D           5.0.0-rc2-Myy-HiveFive #1
[    2.377096] Hardware name: Rockchip (Device Tree)
[    2.382383] [<c010f930>] (unwind_backtrace) from [<c010b998>] (show_stack+0x10/0x14)
[    2.391073] [<c010b998>] (show_stack) from [<c0d0f7e0>] (dump_stack+0x70/0x8c)
[    2.399178] [<c0d0f7e0>] (dump_stack) from [<c010e740>] (handle_IPI+0x2f0/0x3e4)
[    2.407478] [<c010e740>] (handle_IPI) from [<c06ad77c>] (gic_handle_irq+0x84/0x90)
[    2.415970] [<c06ad77c>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    2.424356] Exception stack(0xef127f68 to 0xef127fb0)
[    2.430022] 7f60:                   00000000 0000102c ef7d31e0 c0119d80 00000000 00000000
[    2.439194] 7f80: ef126000 c130e4b0 00000008 ef127fc0 c130e4f0 00000000 00000000 ef127fb8
[    2.448361] 7fa0: c0108494 c0108484 60000013 ffffffff
[    2.454032] [<c0101a0c>] (__irq_svc) from [<c0108484>] (arch_cpu_idle+0x1c/0x38)
[    2.462332] [<c0108484>] (arch_cpu_idle) from [<c014a90c>] (do_idle+0x10c/0x230)
[    2.470632] [<c014a90c>] (do_idle) from [<c014aca0>] (cpu_startup_entry+0x18/0x20)
[    2.479122] [<c014aca0>] (cpu_startup_entry) from [<0010256c>] (0x10256c)
[    2.486722] CPU1: stopping
[    2.489770] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           5.0.0-rc2-Myy-HiveFive #1
[    2.499519] Hardware name: Rockchip (Device Tree)
[    2.504806] [<c010f930>] (unwind_backtrace) from [<c010b998>] (show_stack+0x10/0x14)
[    2.513494] [<c010b998>] (show_stack) from [<c0d0f7e0>] (dump_stack+0x70/0x8c)
[    2.521600] [<c0d0f7e0>] (dump_stack) from [<c010e740>] (handle_IPI+0x2f0/0x3e4)
[    2.529898] [<c010e740>] (handle_IPI) from [<c06ad77c>] (gic_handle_irq+0x84/0x90)
[    2.538389] [<c06ad77c>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    2.546775] Exception stack(0xef123f68 to 0xef123fb0)
[    2.552440] 3f60:                   00000000 00002260 ef7af1e0 c0119d80 00000000 00000000
[    2.561603] 3f80: ef122000 c130e4b0 00000002 ef123fc0 c130e4f0 00000000 00000000 ef123fb8
[    2.570769] 3fa0: c0108494 c0108484 60000013 ffffffff
[    2.576439] [<c0101a0c>] (__irq_svc) from [<c0108484>] (arch_cpu_idle+0x1c/0x38)
[    2.584739] [<c0108484>] (arch_cpu_idle) from [<c014a90c>] (do_idle+0x10c/0x230)
[    2.593037] [<c014a90c>] (do_idle) from [<c014aca0>] (cpu_startup_entry+0x18/0x20)
[    2.601526] [<c014aca0>] (cpu_startup_entry) from [<0010256c>] (0x10256c)
[    2.609146] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---

Given than I tried with and without any patches, I can conclude that it's the current state of the 5.0 kernel.

I'll try to investigate this.

VPU : Find a way to generate automatic patches, for importing the V4L2 and VPU patches, form the rockchip 5.x tree, to the Linus mainline tree.

Currently, the VPU patches posted on the Rockchip Mailing List are based on the Rockchip 5.x tree from Heiko Stรผbner (I guess ? It's not really obvious).

So, almost everytime I try a patch series implementing some VPU stuff, into the mainline kernel, it fails to compile due to some dependencies on some obscure V4L2 request functions, that are not available on the Linus tree since the V4L2 Request API is a Work In Progress thing.

In order to be apply thoses patches, I'll need to :

  • Determine clearly which kernel tree is used as a basis
  • Determine the files that clearly necessary. Currently that involves : The clocks, V4L2, Videobuf2, DMA, IOMMU, VPU, DTS and UAPI headers.
  • Create a dumb script that : Clones the Linus tree, clones the Rockchip tree, copy the useful files and generates a patch from it.
  • Use this as a basis to test the various VPU patches provided
  • Find a way to test these patches (Softwares required, ...)
  • Automate those tests (LAVA maybe ?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,7)

Hello Miouyouyou!

I am trying to boot my Firefly RK3288 board with kernel 5.8 from this repository.
The drivers seem to load fine, but it fails to mount the file system.

For some reason it is not being able to mount the root file system in mmc memory. Here are the kernel logs related to mmc memory:

SdmmcInit = 0 400
SdmmcInit = 2 0
[    0.000000][    T0] Kernel command line: init=/sbin/init root=/dev/mmcblk2p7 rw rootwait console=ttyS2,115200 quiet splash loglevel=7  acpi=off apm=off vt.global_cursor_default=0 consoleblank=0  mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00008000@0x00016000(back),0x00010000@0x0001e000(backup),0xc00800@0x0002e000(linuxroot) storagemedia=emmc loader.timestamp=2017-06-02_17:57:28 SecureBootCheckOk=0
[    3.806123][    T1] dwmmc_rockchip ff0c0000.mmc: IDMAC supports 32-bit address mode.
[    3.814801][    T1] dwmmc_rockchip ff0c0000.mmc: Using internal DMA controller.
[    3.822979][    T1] dwmmc_rockchip ff0c0000.mmc: Version ID is 270a
[    3.830019][    T1] dwmmc_rockchip ff0c0000.mmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[    3.968502][    T1] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.992528][    T1] dwmmc_rockchip ff0d0000.mmc: IDMAC supports 32-bit address mode.
[    4.001233][    T1] dwmmc_rockchip ff0d0000.mmc: Using internal DMA controller.
[    4.009433][    T1] dwmmc_rockchip ff0d0000.mmc: Version ID is 270a
[    4.016460][    T1] dwmmc_rockchip ff0d0000.mmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[    4.028163][    T1] dwmmc_rockchip ff0d0000.mmc: Failed getting OCR mask: 0
[    4.036007][    T1] mmc_host mmc1: card is non-removable.
[    4.042105][    T1] dwmmc_rockchip ff0d0000.mmc: could not set regulator OCR (-22)
[    4.050573][    T1] dwmmc_rockchip ff0d0000.mmc: failed to enable vmmc regulator
[    4.071905][    T1] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    4.095916][    T1] dwmmc_rockchip ff0f0000.mmc: IDMAC supports 32-bit address mode.
[    4.104614][    T1] dwmmc_rockchip ff0f0000.mmc: Using internal DMA controller.
[    4.112819][    T1] dwmmc_rockchip ff0f0000.mmc: Version ID is 270a
[    4.119864][    T1] dwmmc_rockchip ff0f0000.mmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[    4.131674][    T1] mmc_host mmc2: card is non-removable.
[    4.143345][  T116] dwmmc_rockchip ff0d0000.mmc: could not set regulator OCR (-22)
[    4.150478][    T1] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    4.151814][  T116] dwmmc_rockchip ff0d0000.mmc: failed to enable vmmc regulator
[    4.184200][  T116] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    4.232735][  T116] dwmmc_rockchip ff0d0000.mmc: could not set regulator OCR (-22)
[    4.242909][  T116] dwmmc_rockchip ff0d0000.mmc: failed to enable vmmc regulator
[    4.252322][   T21] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[    4.252476][   T21] mmc2: new high speed MMC card at address 0001
[    4.253106][   T21] mmcblk2: mmc2:0001 BWBC3R 29.1 GiB 
[    4.253534][   T21] mmcblk2boot0: mmc2:0001 BWBC3R partition 1 4.00 MiB
[    4.254046][   T21] mmcblk2boot1: mmc2:0001 BWBC3R partition 2 4.00 MiB
[    4.254208][   T21] mmcblk2rpmb: mmc2:0001 BWBC3R partition 3 4.00 MiB, chardev (240:0)
[    4.258730][   T21]  mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8
[    4.268161][  T116] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[    4.303602][  T116] dwmmc_rockchip ff0d0000.mmc: could not set regulator OCR (-22)
[    4.313674][  T116] dwmmc_rockchip ff0d0000.mmc: failed to enable vmmc regulator
[    4.376742][  T116] mmc_host mmc1: Bus speed (slot 0) = 187500Hz (slot req 100000Hz, actual 93750HZ div = 1)
[    5.851719][    T1] erofs: (device mmcblk2p7): erofs_read_superblock: cannot find valid erofs superblock
[    5.885568][    T1] erofs: (device mmcblk2p7): erofs_read_superblock: cannot find valid erofs superblock
[    5.909847][    T1] b300        30535680 mmcblk2 
[    5.909849][    T1]  driver: mmcblk
[    5.919001][    T1]   b301            4096 mmcblk2p1 94b7f94f-f139-4115-c74f-afbb0d23b695
[    5.930584][    T1]   b302            4096 mmcblk2p2 bd479d09-ba16-483f-d4d3-c5c50b443ec5
[    5.942166][    T1]   b303            4096 mmcblk2p3 3ba82700-2214-400e-adb7-c35c57c18419
[    5.953747][    T1]   b304           32768 mmcblk2p4 e8e7a655-da71-4099-d054-ea342a9f1b77
[    5.965330][    T1]   b305           32768 mmcblk2p5 d3b79b2c-d156-4f12-db5d-e39e34158d49
[    5.976903][    T1]   b306           32768 mmcblk2p6 4447ff57-ee49-4eb9-e3e9-b69b7d75f306
[    5.988476][    T1]   b307         2094080 mmcblk2p7 614e0000-0000-4b53-8000-1d28000054a9
[    6.000059][    T1]   b308        28257263 mmcblk2p8 345db86b-5432-42df-9349-f8052ee6d9b4

I think the error may be related to the following line:
[ 5.851719][ T1] erofs: (device mmcblk2p7): erofs_read_superblock: cannot find valid erofs superblock

The complete log is in the following link:
https://drive.google.com/file/d/1qSLFlVWPDC3_Q9mv5LwTiinX6I7hBkKz/view?usp=sharing

Parameter file with kernel command line and partitions:
https://drive.google.com/file/d/1Ri7UHwTk8ddAuCUzWwg1Xp7hrBsjqM-u/view?usp=sharing

There are a total of 7 partitions set, but for some reason the kernel detects that there are 8:

[ 4.258730][ T21] mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8

The goal is to reach the solution to mount the file system.

Thank you very much for your contributions, they are really useful.

Regards!

Multiples issues with kernel 4.20-rc1

It seems that the new patches applied to kernel 4.20-rc1 generate issues with the Mali Kernel Driver and the dwmmc.

While the Mali Blob might have some issues with a new "deprecated" option added to the Framebuffer driver, that is not enabled in the new configuration, the DWMMC seems very weird.

[    7.924058] ------------[ cut here ]------------
[    7.929425] WARNING: CPU: 0 PID: 667 at drivers/gpu/arm/midgard/mali_kbase_mem_linux.c:1911 kbase_mmap+0x90c/0x988 [mali_kbase]
[    7.931540] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    7.942364] Modules linked in: mali_kbase r8723bs(C) rockchip_rga snd_soc_simple_card snd_soc_simple_card_utils dw_hdmi_cec v4l2_mem2mem videobuf2_dma_sg rk_crypto
[    7.961956] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    7.972671] CPU: 0 PID: 667 Comm: Xorg Tainted: G         C        4.20.0-rc1-RockMyyX2 #3
[    7.981905] Hardware name: Rockchip (Device Tree)
[    7.984954] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    7.987168] [<c010f8d8>] (unwind_backtrace) from [<c010b958>] (show_stack+0x10/0x14)
[    8.003194] [<c010b958>] (show_stack) from [<c0d024ac>] (dump_stack+0x70/0x8c)
[    8.011267] [<c0d024ac>] (dump_stack) from [<c011fafc>] (__warn+0xdc/0xfc)
[    8.018950] [<c011fafc>] (__warn) from [<c011fbdc>] (warn_slowpath_null+0x38/0x44)
[    8.027470] [<c011fbdc>] (warn_slowpath_null) from [<bf0f153c>] (kbase_mmap+0x90c/0x988 [mali_kbase])
[    8.037840] [<bf0f153c>] (kbase_mmap [mali_kbase]) from [<c02160bc>] (mmap_region+0x21c/0x4fc)
[    8.047465] [<c02160bc>] (mmap_region) from [<c0216764>] (do_mmap+0x3c8/0x414)
[    8.055537] [<c0216764>] (do_mmap) from [<c02038c8>] (vm_mmap_pgoff+0x98/0xc8)
[    8.063607] [<c02038c8>] (vm_mmap_pgoff) from [<c02147f8>] (ksys_mmap_pgoff+0x78/0x90)
[    8.072453] [<c02147f8>] (ksys_mmap_pgoff) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.081491] Exception stack(0xed0fbfa8 to 0xed0fbff0)
[    8.087132] bfa0:                   0000000b 00000041 00000000 00001000 00000003 00000001
[    8.096269] bfc0: 0000000b 00000041 00041000 000000c0 00001000 0117b968 00001000 00000003
[    8.105404] bfe0: 000000c0 bedb97d4 b6bf2885 b6b78af6
[    8.111122] ---[ end trace 4f039dee8593c3aa ]---
[    8.116297] mali ffa30000.gpu: mmap failed 256
[    8.121393] mali ffa30000.gpu: Zone mismatch: 0 != 0
[    8.126966] mali ffa30000.gpu: !(tmp->flags & KBASE_REG_FREE): tmp->start_pfn=0xb65eb tmp->flags=0x604e tmp->nr_pages=0x1 gpu_pfn=0xb65eb nr_pages=0x1
[    8.139954] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.149436] mali ffa30000.gpu: in function kbase_add_va_region (8e0478ab, d45b9222, 0xb65eb000, 0x1, 0x1)
[    8.160153] mali ffa30000.gpu: drivers/gpu/arm/midgard/mali_kbase_mem_linux.c:2146
[    8.166727] rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    8.168654] ------------[ cut here ]------------
[    8.183489] WARNING: CPU: 0 PID: 667 at drivers/gpu/arm/midgard/mali_kbase_mem_linux.c:2148 kbase_mmap+0x618/0x988 [mali_kbase]
[    8.195957] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.203731] Modules linked in: mali_kbase r8723bs(C) rockchip_rga snd_soc_simple_card snd_soc_simple_card_utils dw_hdmi_cec v4l2_mem2mem videobuf2_dma_sg rk_crypto
[    8.215957] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.227480] CPU: 0 PID: 667 Comm: Xorg Tainted: G        WC        4.20.0-rc1-RockMyyX2 #3
[    8.236712] Hardware name: Rockchip (Device Tree)
[    8.239956] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.241972] [<c010f8d8>] (unwind_backtrace) from [<c010b958>] (show_stack+0x10/0x14)
[    8.258000] [<c010b958>] (show_stack) from [<c0d024ac>] (dump_stack+0x70/0x8c)
[    8.266072] [<c0d024ac>] (dump_stack) from [<c011fafc>] (__warn+0xdc/0xfc)
[    8.273755] [<c011fafc>] (__warn) from [<c011fbdc>] (warn_slowpath_null+0x38/0x44)
[    8.282273] [<c011fbdc>] (warn_slowpath_null) from [<bf0f1248>] (kbase_mmap+0x618/0x988 [mali_kbase])
[    8.292638] [<bf0f1248>] (kbase_mmap [mali_kbase]) from [<c02160bc>] (mmap_region+0x21c/0x4fc)
[    8.302262] [<c02160bc>] (mmap_region) from [<c0216764>] (do_mmap+0x3c8/0x414)
[    8.310333] [<c0216764>] (do_mmap) from [<c02038c8>] (vm_mmap_pgoff+0x98/0xc8)
[    8.318403] [<c02038c8>] (vm_mmap_pgoff) from [<c02147f8>] (ksys_mmap_pgoff+0x78/0x90)
[    8.327249] [<c02147f8>] (ksys_mmap_pgoff) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.336287] Exception stack(0xed0fbfa8 to 0xed0fbff0)
[    8.341927] bfa0:                   0000000b 00000041 00000000 00001000 00000003 00000001
[    8.351064] bfc0: 0000000b 00000041 00041000 000000c0 00001000 0117b968 00001000 00000003
[    8.360200] bfe0: 000000c0 bedb978c b6bf2885 b6b78af6
[    8.365885] ---[ end trace 4f039dee8593c3ab ]---
[    8.371062] mali ffa30000.gpu: mmap failed -12
[    8.376079] mali ffa30000.gpu: Zone mismatch: 0 != 0
[    8.381642] mali ffa30000.gpu: !(tmp->flags & KBASE_REG_FREE): tmp->start_pfn=0xb65eb tmp->flags=0x604e tmp->nr_pages=0x1 gpu_pfn=0xb65eb nr_pages=0x1
[    8.393957] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.404118] mali ffa30000.gpu: in function kbase_add_va_region (8e0478ab, d45b9222, 0xb65eb000, 0x1, 0x1)
[    8.414827] mali ffa30000.gpu: drivers/gpu/arm/midgard/mali_kbase_mem_linux.c:2146
[    8.423312] ------------[ cut here ]------------
[    8.428542] WARNING: CPU: 0 PID: 667 at drivers/gpu/arm/midgard/mali_kbase_mem_linux.c:2148 kbase_mmap+0x618/0x988 [mali_kbase]
[    8.440957] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.448782] Modules linked in: mali_kbase r8723bs(C) rockchip_rga snd_soc_simple_card snd_soc_simple_card_utils dw_hdmi_cec v4l2_mem2mem videobuf2_dma_sg rk_crypto
[    8.460957] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.472533] CPU: 0 PID: 667 Comm: Xorg Tainted: G        WC        4.20.0-rc1-RockMyyX2 #3
[    8.481765] Hardware name: Rockchip (Device Tree)
[    8.484958] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    8.487023] [<c010f8d8>] (unwind_backtrace) from [<c010b958>] (show_stack+0x10/0x14)
[    8.503052] [<c010b958>] (show_stack) from [<c0d024ac>] (dump_stack+0x70/0x8c)
[    8.511124] [<c0d024ac>] (dump_stack) from [<c011fafc>] (__warn+0xdc/0xfc)
[    8.518805] [<c011fafc>] (__warn) from [<c011fbdc>] (warn_slowpath_null+0x38/0x44)
[    8.527322] [<c011fbdc>] (warn_slowpath_null) from [<bf0f1248>] (kbase_mmap+0x618/0x988 [mali_kbase])
[    8.537687] [<bf0f1248>] (kbase_mmap [mali_kbase]) from [<c02160bc>] (mmap_region+0x21c/0x4fc)
[    8.547311] [<c02160bc>] (mmap_region) from [<c0216764>] (do_mmap+0x3c8/0x414)
[    8.555381] [<c0216764>] (do_mmap) from [<c02038c8>] (vm_mmap_pgoff+0x98/0xc8)
[    8.563451] [<c02038c8>] (vm_mmap_pgoff) from [<c02147f8>] (ksys_mmap_pgoff+0x78/0x90)
[    8.572296] [<c02147f8>] (ksys_mmap_pgoff) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[    8.581334] Exception stack(0xed0fbfa8 to 0xed0fbff0)
[    8.586974] bfa0:                   0000000b 00000041 00000000 00001000 00000003 00000001
[    8.596111] bfc0: 0000000b 00000041 00041000 000000c0 00001000 0117b968 00001000 00000003
[    8.605247] bfe0: 000000c0 bedb978c b6bf2885 b6b78af6
[    8.610941] ---[ end trace 4f039dee8593c3ac ]---
[    8.616114] mali ffa30000.gpu: mmap failed -12

Asus C100P switching off randomly on charged battery usage

Hello. I have Asus C100P (veyron_minnie), a RK3288 chromebook. Actually the problem exists not only with this kernel, also with PrawnOS's kernel and Arch's kernel (5.x)

The issue is, my chromebook is turning off on battery usage randomly. Battery is charged. I did some tests to identify the issue. so:

  • It is turning off on youtube playback, 5 min or 30 min, it is guaranteed to turn off on battery usage.
  • It is not battery. I wanted to check it and discharge it fully. I turn on my chromebook and did not enter luks password - it is working until full discharge. But. If the battery level <50%, after entering password it is turning off immediately after KMS (kernel mode switching). After fonts are changed in console, it turns off.
  • It is not the kernel. Archlinux did the same
  • Original chromeos works perfectly.
  • I didn't flash libreboot, I am afraid to brick it, because no instructions for C100P, only c201... I am in dev mode
  • I installed KDE (just for fun and test, don't say anything about it) and observed such thing: battery level <60%, I disconnect the charder, kde icon still shows charging for about 2-4 min. Immediately after the icon changes to 'battery use'. it turns off.

So, it may be video-related, some kernel voltage guard related, some powersaving mode, or something like this.
Please help me resolve this issue.

GLES drivers and DRM issues with Linux 4.17-rc5

It seems that the Mali driver is now unable to work correctly.

glmark-es2-drm throws 0x3001 errors (Not initialized)

Querying the basic GPU capabilities with vulkan work with the fbdev driver, but the GLES calls still fail with this one. Stracing the calls to the Mali kernel driver, when trying to run glmark-es2-drm shows that the user-space driver try to mmap2 using a ridiculous offset 0x102020000 which will never work.

Now, I have no real dmesg errors that pertain to this issue, so I have no idea if that's a real kernel issue or just user-space borking issue.

5.4-rc2 does not boot

Upon startup, systemd crashes with several "Bad address" errors, before freezing itself.

U-Boot SPL 2017.09-armbian (Nov 22 2017 - 17:12:11)
Returning to boot ROM...


U-Boot 2017.09-armbian (Nov 22 2017 - 17:12:11 +0100)

Model: Tinker-RK3288
DRAM:  1 GiB
MMC:   dwmmc@ff0c0000: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Tinker-RK3288
Net:   
Error: ethernet@ff290000 address not set.
No ethernet found.
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
176 bytes read in 45 ms (2.9 KiB/s)
1:      kernel-4.4
Retrieving file: /boot/zImage
12449128 bytes read in 576 ms (20.6 MiB/s)
append: earlyprintk console=ttyS2,115200n8 rw root=/dev/mmcblk0p1 rootfstype=ext4 init=/sbin/init
Retrieving file: /boot/rk3288-tinker.dtb
41466 bytes read in 36 ms (1.1 MiB/s)
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 0fff2000, end 0ffff1f9 ... OK

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x500
[    0.000000][    T0] Linux version 5.4.0-rc1-RockMyy32-Blobby (gamer@Miouyouyou) (gcc version 6.4.0 (Gentoo 6.4.0-r1 p1.3)) #2 SMP PREEMPT Wed Oct 16 22:27:18 CEST 2019
[    0.000000][    T0] CPU: ARMv7 Processor [410fc0d1] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: div instructions available: patching division code
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Rockchip RK3288 Asus Tinker Board
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 20 pages/cpu s50648 r8192 d23080 u81920
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: earlyprintk console=ttyS2,115200n8 rw root=/dev/mmcblk0p1 rootfstype=ext4 init=/sbin/init
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1010536K/1048576K available (12288K kernel code, 1149K rwdata, 7260K rodata, 2048K init, 4874K bss, 38040K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x344/0x704 with crng_init=0
[    0.000000][    T0] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000][    T0] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008][    T0] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000030][    T0] Switching to timer-based delay loop, resolution 41ns
[    0.002001][    T0] Console: colour dummy device 80x30
[    0.002056][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.002080][    T0] pid_max: default: 32768 minimum: 301
[    0.002246][    T0] LSM: Security Framework initializing
[    0.002282][    T0] Yama: becoming mindful.
[    0.002377][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002403][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002491][    T0] *** VALIDATE tmpfs ***
[    0.003297][    T0] *** VALIDATE proc ***
[    0.003543][    T0] *** VALIDATE cgroup1 ***
[    0.003564][    T0] *** VALIDATE cgroup2 ***
[    0.003588][    T0] CPU: Testing write buffer coherency: ok
[    0.003639][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.004138][    T1] CPU0: thread -1, cpu 0, socket 5, mpidr 80000500
[    0.010240][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.012231][    T1] rcu: Hierarchical SRCU implementation.
[    0.016344][    T1] smp: Bringing up secondary CPUs ...
[    0.025913][    T0] CPU1: thread -1, cpu 1, socket 5, mpidr 80000501
[    0.025923][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.035149][    T0] CPU2: thread -1, cpu 2, socket 5, mpidr 80000502
[    0.035159][    T0] CPU2: Spectre v2: using BPIALL workaround
[    0.044401][    T0] CPU3: thread -1, cpu 3, socket 5, mpidr 80000503
[    0.044411][    T0] CPU3: Spectre v2: using BPIALL workaround
[    0.044652][    T1] smp: Brought up 1 node, 4 CPUs
[    0.044673][    T1] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.044688][    T1] CPU: All CPU(s) started in SVC mode.
[    0.045534][    T1] devtmpfs: initialized
[    0.060708][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant d rev 0
[    0.061337][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.061404][    T1] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.061903][    T1] xor: measuring software checksum speed
[    0.071644][    T1]    arm4regs  :  1052.000 MB/sec
[    0.081758][    T1]    8regs     :   808.000 MB/sec
[    0.091877][    T1]    32regs    :   808.000 MB/sec
[    0.091893][    T1] xor: using function: arm4regs (1052.000 MB/sec)
[    0.091925][    T1] pinctrl core: initialized pinctrl subsystem
[    0.093350][    T1] NET: Registered protocol family 16
[    0.094262][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.096864][    T1] cpuidle: using governor ladder
[    0.096939][    T1] cpuidle: using governor menu
[    0.098195][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.098215][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.209895][    T1] raid6: int32x8  gen()   105 MB/s
[    0.226860][    T1] raid6: int32x8  xor()    78 MB/s
[    0.243787][    T1] raid6: int32x4  gen()   109 MB/s
[    0.260957][    T1] raid6: int32x4  xor()    82 MB/s
[    0.278233][    T1] raid6: int32x2  gen()   128 MB/s
[    0.295458][    T1] raid6: int32x2  xor()   121 MB/s
[    0.312914][    T1] raid6: int32x1  gen()    89 MB/s
[    0.329657][    T1] raid6: int32x1  xor()   105 MB/s
[    0.329673][    T1] raid6: using algorithm int32x2 gen() 128 MB/s
[    0.329686][    T1] raid6: .... xor() 121 MB/s, rmw enabled
[    0.329699][    T1] raid6: using intx1 recovery algorithm
[    0.331138][    T1] sdmmc-regulator GPIO handle specifies active low - ignored
[    0.332910][    T1] iommu: Default domain type: Translated 
[    0.333615][    T1] rk_iommu ff930300.iommu: IRQ index 1 not found
[    0.334127][    T1] rk_iommu ff940300.iommu: IRQ index 1 not found
[    0.334560][    T1] rk_iommu ff9a0800.iommu: IRQ index 1 not found
[    0.335255][    T1] vgaarb: loaded
[    0.336089][    T1] SCSI subsystem initialized
[    0.336440][    T1] usbcore: registered new interface driver usbfs
[    0.336536][    T1] usbcore: registered new interface driver hub
[    0.336691][    T1] usbcore: registered new device driver usb
[    0.336975][    T1] mc: Linux media interface: v0.10
[    0.337042][    T1] videodev: Linux video capture interface: v2.00
[    0.337259][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.337276][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.337316][    T1] PTP clock support registered
[    0.339324][    T1] Advanced Linux Sound Architecture Driver Initialized.
[    0.340236][    T1] Bluetooth: Core ver 2.22
[    0.340309][    T1] NET: Registered protocol family 31
[    0.340326][    T1] Bluetooth: HCI device and connection manager initialized
[    0.340350][    T1] Bluetooth: HCI socket layer initialized
[    0.340371][    T1] Bluetooth: L2CAP socket layer initialized
[    0.340412][    T1] Bluetooth: SCO socket layer initialized
[    0.341266][    T1] clocksource: Switched to clocksource arch_sys_counter
[    1.789876][    T1] FS-Cache: Loaded
[    1.789904][    T1] *** VALIDATE ramfs ***
[    1.790176][    T1] CacheFiles: Loaded
[    1.806261][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    1.807310][    T1] NET: Registered protocol family 2
[    1.808529][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 12288 bytes, linear)
[    1.808598][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.808836][    T1] TCP bind hash table entries: 8192 (order: 5, 163840 bytes, linear)
[    1.809289][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.809471][    T1] UDP hash table entries: 512 (order: 2, 24576 bytes, linear)
[    1.809550][    T1] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes, linear)
[    1.809867][    T1] NET: Registered protocol family 1
[    1.810822][    T1] RPC: Registered named UNIX socket transport module.
[    1.810840][    T1] RPC: Registered udp transport module.
[    1.810854][    T1] RPC: Registered tcp transport module.
[    1.810867][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.812696][    T1] PCI: CLS 0 bytes, default 64
[    1.814424][    T1] hw perfevents: enabled with armv7_cortex_a12 PMU driver, 7 counters available
[    1.817394][    T1] Initialise system trusted keyrings
[    1.817621][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.829627][    T1] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.831361][    T1] FS-Cache: Netfs 'nfs' registered for caching
[    1.833140][    T1] NFS: Registering the id_resolver key type
[    1.833190][    T1] Key type id_resolver registered
[    1.833206][    T1] Key type id_legacy registered
[    1.833291][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.833324][    T1] Installing knfsd (copyright (C) 1996 [email protected]).
[    1.836927][    T1] Key type cifs.spnego registered
[    1.836961][    T1] Key type cifs.idmap registered
[    1.836992][    T1] ntfs: driver 2.1.32 [Flags: R/W].
[    1.837785][    T1] fuse: init (API version 7.31)
[    1.837958][    T1] *** VALIDATE fuse ***
[    1.837982][    T1] *** VALIDATE fuse ***
[    1.839222][    T1] JFS: nTxBlock = 7894, nTxLock = 63158
[    1.850776][    T1] SGI XFS with security attributes, no debug enabled
[    1.892796][    T1] NET: Registered protocol family 38
[    1.892833][    T1] Key type asymmetric registered
[    1.892851][    T1] Asymmetric key parser 'x509' registered
[    1.892869][    T1] Asymmetric key parser 'pkcs8' registered
[    1.892886][    T1] Key type pkcs7_test registered
[    1.893107][    T1] bounce: pool size: 64 pages
[    1.893212][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.893293][    T1] io scheduler mq-deadline registered
[    1.893315][    T1] io scheduler kyber registered
[    1.902908][    T1] dma-pl330 ff250000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.902935][    T1] dma-pl330 ff250000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    1.904100][    T1] dma-pl330 ffb20000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.904125][    T1] dma-pl330 ffb20000.dma-controller:       DBUFF-64x8bytes Num_Chans-5 Num_Peri-6 Num_Events-10
[    1.905006][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.907677][    T1] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 38, base_baud = 1500000) is a 16550A
[    1.908821][    T1] ff190000.serial: ttyS1 at MMIO 0xff190000 (irq = 39, base_baud = 1500000) is a 16550A
[    1.910000][    T1] ff690000.serial: ttyS2 at MMIO 0xff690000 (irq = 40, base_baud = 1500000) is a 16550A
[    2.997219][    T1] printk: console [ttyS2] enabled
[    3.003856][    T1] ff1b0000.serial: ttyS3 at MMIO 0xff1b0000 (irq = 41, base_baud = 1500000) is a 16550A
[    3.015452][    T1] dw-apb-uart: probe of ff1c0000.serial failed with error -28
[    3.026158][    T1] rockchip-vop ff930000.vop: Adding to iommu group 0
[    3.034078][    T1] rockchip-vop ff940000.vop: Adding to iommu group 1
[    3.046733][    T1] rockchip-drm display-subsystem: bound ff930000.vop (ops 0xc10d38c0)
[    3.056332][    T1] rockchip-drm display-subsystem: bound ff940000.vop (ops 0xc10d38c0)
[    3.065412][    T1] rockchip-drm display-subsystem: failed to bind ff980000.hdmi (ops 0xc10d6738): -517
[    3.076209][    T1] rockchip-drm display-subsystem: master bind failed: -517
[    3.084554][    T1] usbcore: registered new interface driver udl
[    3.096953][    T1] brd: module loaded
[    3.116259][    T1] loop: module loaded
[    3.121419][    T1] zram: Added device: zram0
[    3.126434][    T1] usbcore: registered new interface driver rtsx_usb
[    3.137727][    T1] libphy: Fixed MDIO Bus: probed
[    3.143192][    T1] tun: Universal TUN/TAP device driver, 1.6
[    3.151362][    T1] rk_gmac-dwmac ff290000.ethernet: IRQ eth_lpi not found
[    3.159266][    T1] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    3.166829][    T1] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available yet, deferred probing
[    3.178698][    T1] PPP generic driver version 2.4.2
[    3.184958][    T1] usbcore: registered new interface driver rt2500usb
[    3.192396][    T1] usbcore: registered new interface driver rt73usb
[    3.199622][    T1] usbcore: registered new interface driver rt2800usb
[    3.207043][    T1] usbcore: registered new interface driver rndis_wlan
[    3.214485][    T1] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    3.223644][    T1] usbcore: registered new interface driver pegasus
[    3.230866][    T1] usbcore: registered new interface driver rtl8150
[    3.238088][    T1] usbcore: registered new interface driver r8152
[    3.245112][    T1] usbcore: registered new interface driver asix
[    3.252023][    T1] usbcore: registered new interface driver ax88179_178a
[    3.259722][    T1] usbcore: registered new interface driver cdc_ether
[    3.267126][    T1] usbcore: registered new interface driver dm9601
[    3.274308][    T1] usbcore: registered new interface driver smsc75xx
[    3.281636][    T1] usbcore: registered new interface driver smsc95xx
[    3.288965][    T1] usbcore: registered new interface driver net1080
[    3.296183][    T1] usbcore: registered new interface driver rndis_host
[    3.303691][    T1] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    3.312871][    T1] usbcore: registered new interface driver cdc_ncm
[    3.320098][    T1] usbcore: registered new interface driver cdc_mbim
[    3.327787][    T1] dwc2 ff540000.usb: ff540000.usb supply vusb_d not found, using dummy regulator
[    3.337964][    T1] dwc2 ff540000.usb: ff540000.usb supply vusb_a not found, using dummy regulator
[    3.400632][    T1] dwc2 ff540000.usb: DWC OTG Controller
[    3.406754][    T1] dwc2 ff540000.usb: new USB bus registered, assigned bus number 1
[    3.415500][    T1] dwc2 ff540000.usb: irq 47, io mem 0xff540000
[    3.422603][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    3.432673][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.441568][    T1] usb usb1: Product: DWC OTG Controller
[    3.447639][    T1] usb usb1: Manufacturer: Linux 5.4.0-rc1-RockMyy32-Blobby dwc2_hsotg
[    3.456625][    T1] usb usb1: SerialNumber: ff540000.usb
[    3.463489][    T1] hub 1-0:1.0: USB hub found
[    3.468563][    T1] hub 1-0:1.0: 1 port detected
[    3.474755][    T1] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    3.484936][    T1] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    3.623358][    T1] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    3.632730][    T1] dwc2 ff580000.usb: DWC OTG Controller
[    3.638850][    T1] dwc2 ff580000.usb: new USB bus registered, assigned bus number 2
[    3.647592][    T1] dwc2 ff580000.usb: irq 48, io mem 0xff580000
[    3.654634][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    3.664702][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.673597][    T1] usb usb2: Product: DWC OTG Controller
[    3.679819][    T1] usb usb2: Manufacturer: Linux 5.4.0-rc1-RockMyy32-Blobby dwc2_hsotg
[    3.688819][    T1] usb usb2: SerialNumber: ff580000.usb
[    3.695628][    T1] hub 2-0:1.0: USB hub found
[    3.700710][    T1] hub 2-0:1.0: 1 port detected
[    3.708489][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.716634][    T1] ehci-pci: EHCI PCI platform driver
[    3.722506][    T1] ehci-platform: EHCI generic platform driver
[    3.729488][    T1] ehci-platform ff500000.usb: EHCI Host Controller
[    3.737089][    T1] ehci-platform ff500000.usb: new USB bus registered, assigned bus number 3
[    3.746854][    T1] ehci-platform ff500000.usb: irq 46, io mem 0xff500000
[    3.850312][   T88] usb 1-1: new high-speed USB device number 2 using dwc2
[    3.864312][    T1] ehci-platform ff500000.usb: USB 2.0 started, EHCI 1.00
[    3.872407][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    3.882479][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.891372][    T1] usb usb3: Product: EHCI Host Controller
[    3.897639][    T1] usb usb3: Manufacturer: Linux 5.4.0-rc1-RockMyy32-Blobby ehci_hcd
[    3.906431][    T1] usb usb3: SerialNumber: ff500000.usb
[    3.913185][    T1] hub 3-0:1.0: USB hub found
[    3.918298][    T1] hub 3-0:1.0: 1 port detected
[    3.924585][    T1] usbcore: registered new interface driver cdc_acm
[    3.931745][    T1] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    3.941611][    T1] usbcore: registered new interface driver usblp
[    3.948638][    T1] usbcore: registered new interface driver cdc_wdm
[    3.955935][    T1] usbcore: registered new interface driver usbserial_generic
[    3.964103][    T1] usbserial: USB Serial support registered for generic
[    3.971720][    T1] usbcore: registered new interface driver ftdi_sio
[    3.979001][    T1] usbserial: USB Serial support registered for FTDI USB Serial Device
[    3.988167][    T1] usbcore: registered new interface driver keyspan
[    3.995357][    T1] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    4.004965][    T1] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    4.013993][    T1] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    4.023022][    T1] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    4.032328][    T1] usbcore: registered new interface driver option
[    4.039433][    T1] usbserial: USB Serial support registered for GSM modem (1-port)
[    4.043948][   T88] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    4.048283][    T1] usbcore: registered new interface driver oti6858
[    4.057987][   T88] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.065153][    T1] usbserial: USB Serial support registered for oti6858
[    4.073877][   T88] usb 1-1: Product: USB2.0 Hub
[    4.082190][   T88] hub 1-1:1.0: USB hub found
[    4.086706][    T1] usbcore: registered new interface driver pl2303
[    4.091970][   T88] hub 1-1:1.0: 4 ports detected
[    4.098710][    T1] usbserial: USB Serial support registered for pl2303
[    4.111485][    T1] usbcore: registered new interface driver qcserial
[    4.118776][    T1] usbserial: USB Serial support registered for Qualcomm USB modem
[    4.127499][    T1] usbcore: registered new interface driver sierra
[    4.134624][    T1] usbserial: USB Serial support registered for Sierra USB modem
[    4.144646][    T1] usbcore: registered new interface driver iforce
[    4.151793][    T1] usbcore: registered new interface driver pxrc
[    4.158788][    T1] usbcore: registered new interface driver xpad
[    4.165823][    T1] usbcore: registered new interface driver usbtouchscreen
[    4.174593][    T1] i2c /dev entries driver
[    4.185020][    T1] rk808 0-001b: chip id: 0x0
[    4.195086][    T1] DCDC_REG1: supplied by vcc_sys
[    4.201727][    T1] DCDC_REG2: supplied by vcc_sys
[    4.208501][    T1] DCDC_REG3: supplied by vcc_sys
[    4.214392][    T1] DCDC_REG4: supplied by vcc_sys
[    4.221184][    T1] LDO_REG1: supplied by vcc_sys
[    4.228410][    T1] LDO_REG2: supplied by vcc_sys
[    4.233994][    T1] vcc33_mipi: Bringing 1800000uV into 3300000-3300000uV
[    4.242959][    T1] LDO_REG3: supplied by vcc_sys
[    4.249741][    T1] LDO_REG4: supplied by vcc_io
[    4.256519][    T1] LDO_REG5: supplied by vcc_io
[    4.259303][  T124] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    4.263269][    T1] LDO_REG6: supplied by vcc_io
[    4.275773][    T1] vdd10_lcd: Bringing 800000uV into 1000000-1000000uV
[    4.284766][    T1] LDO_REG7: supplied by vcc_sys
[    4.290612][    C0] random: fast init done
[    4.296189][    T1] LDO_REG8: supplied by vcc_sys
[    4.302979][    T1] SWITCH_REG1: supplied by vcc_io
[    4.308985][    T1] SWITCH_REG2: supplied by vcc_io
[    4.319015][    T1] rk808-rtc rk808-rtc: registered as rtc0
[    4.326397][    T1] i2c i2c-2: Invalid 7-bit I2C address 0x00
[    4.332878][    T1] i2c i2c-2: of_i2c: Failure registering /i2c@ff660000/af-controller@0
[    4.341975][    T1] i2c i2c-2: Failed to create I2C device for /i2c@ff660000/af-controller@0
[    4.352711][    T1] IR NEC protocol handler initialized
[    4.358605][    T1] IR RC5(x/sz) protocol handler initialized
[    4.365067][    T1] IR RC6 protocol handler initialized
[    4.370943][    T1] IR JVC protocol handler initialized
[    4.376819][    T1] IR Sony protocol handler initialized
[    4.382793][    T1] IR SANYO protocol handler initialized
[    4.388855][    T1] IR Sharp protocol handler initialized
[    4.394924][    T1] IR MCE Keyboard/mouse protocol handler initialized
[    4.402256][    T1] IR XMP protocol handler initialized
[    4.408132][    T1] ir_imon_decoder: IR iMON protocol handler initialized
[    4.415756][    T1] IR RCMM protocol handler initialized
[    4.421988][    T1] usbcore: registered new interface driver uvcvideo
[    4.429277][    T1] USB Video Class driver (1.1.1)
[    4.434675][    T1] gspca_main: v2.14.0 registered
[    4.444363][    T1] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: [email protected]
[    4.458993][    T1] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 500000 KHz
[    4.468599][    T1] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 600000 KHz
[    4.479816][    T1] sdhci: Secure Digital Host Controller Interface driver
[    4.487514][    T1] sdhci: Copyright(c) Pierre Ossman
[    4.493154][    T1] Synopsys Designware Multimedia Card Interface Driver
[    4.501032][    T1] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[    4.509903][    T1] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[    4.518266][    T1] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[    4.525495][    T1] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[    4.537359][    T1] mmc_host mmc0: card is polling.
[    4.555474][    T1] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    4.579473][    T1] dwmmc_rockchip ff0d0000.dwmmc: IDMAC supports 32-bit address mode.
[    4.588360][    T1] dwmmc_rockchip ff0d0000.dwmmc: Using internal DMA controller.
[    4.596753][    T1] dwmmc_rockchip ff0d0000.dwmmc: Version ID is 270a
[    4.603988][    T1] dwmmc_rockchip ff0d0000.dwmmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[    4.615806][    T1] dwmmc_rockchip ff0d0000.dwmmc: allocated mmc-pwrseq
[    4.623245][  T124] usb 3-1: config 1 has an invalid interface number: 255 but max is 6
[    4.623247][    T1] mmc_host mmc1: card is non-removable.
[    4.636114][    T1] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    4.638239][  T124] usb 3-1: config 1 has no interface number 6
[    4.657057][  T124] usb 3-1: New USB device found, idVendor=0bda, idProduct=481a, bcdDevice= 0.00
[    4.662077][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.666985][  T124] usb 3-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[    4.666988][  T124] usb 3-1: Product: USB Audio
[    4.666991][  T124] usb 3-1: Manufacturer: Generic
[    4.666995][  T124] usb 3-1: SerialNumber: 201405280001
[    4.699555][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    4.706803][   T31] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[    4.707099][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    4.725930][  T152] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    4.738314][  T152] mmc1: new high speed SDIO card at address 0001
[    4.738873][    T1] input: Generic USB Audio Consumer Control as /devices/platform/ff500000.usb/usb3/3-1/3-1:1.255/0003:0BDA:481A.0001/input/input0
[    4.811405][    T1] input: Generic USB Audio as /devices/platform/ff500000.usb/usb3/3-1/3-1:1.255/0003:0BDA:481A.0001/input/input1
[    4.824762][    T1] hid-generic 0003:0BDA:481A.0001: input,hiddev96,hidraw0: USB HID v1.11 Device [Generic USB Audio] on usb-ff500000.usb-1/input255
[    4.839700][    T1] usbcore: registered new interface driver usbhid
[    4.846710][    T1] usbhid: USB HID core driver
[    4.851960][    T1] ashmem: initialized
[    5.495259][   T31] dwmmc_rockchip ff0c0000.dwmmc: Successfully tuned phase to 157
[    5.503739][   T31] mmc0: new ultra high speed SDR104 SDXC card at address 0001
[    5.512525][   T31] mmcblk0: mmc0:0001 BC2QT 59.6 GiB 
[    5.520098][   T31]  mmcblk0: p1
[    6.956522][    T1] usbcore: registered new interface driver snd-usb-audio
[    6.965711][    T1] u32 classifier
[    6.969519][    T1]     input device check on
[    6.974803][    T1] Initializing XFRM netlink socket
[    6.980682][    T1] NET: Registered protocol family 10
[    6.986940][    T1] Segment Routing with IPv6
[    6.991955][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    6.999662][    T1] NET: Registered protocol family 17
[    7.005424][    T1] NET: Registered protocol family 15
[    7.011265][    T1] Bluetooth: RFCOMM TTY layer initialized
[    7.017503][    T1] Bluetooth: RFCOMM socket layer initialized
[    7.024037][    T1] Bluetooth: RFCOMM ver 1.11
[    7.029012][    T1] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    7.036411][    T1] Bluetooth: HIDP socket layer initialized
[    7.042762][    T1] 8021q: 802.1Q VLAN Support v1.8
[    7.048232][    T1] lib80211: common routines for IEEE802.11 drivers
[    7.055365][    T1] Key type dns_resolver registered
[    7.061058][    T1] ThumbEE CPU extension supported.
[    7.066616][    T1] Registering SWP/SWPB emulation handler
[    7.072874][    T1] Loading compiled-in X.509 certificates
[    7.080612][    T1] Btrfs loaded, crc32c=crc32c-generic
[    7.100947][   T88] rockchip-drm display-subsystem: bound ff930000.vop (ops 0xc10d38c0)
[    7.110131][   T88] rockchip-drm display-subsystem: bound ff940000.vop (ops 0xc10d38c0)
[    7.119189][   T88] dwhdmi-rockchip ff980000.hdmi: Detected HDMI TX controller v2.00a with HDCP (DWC MHL PHY)
[    7.130774][   T88] rockchip-drm display-subsystem: bound ff980000.hdmi (ops 0xc10d6738)
[    7.139836][   T88] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    7.148010][   T88] [drm] No driver support for vblank timestamp query.
[    7.286121][   T88] Console: switching to colour frame buffer device 240x67
[    7.343990][   T88] rockchip-drm display-subsystem: fb0: rockchipdrmfb frame buffer device
[    7.353536][   T88] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0
[    7.363626][   T88] rk_gmac-dwmac ff290000.ethernet: IRQ eth_lpi not found
[    7.371380][   T88] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    7.378936][   T88] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[    7.387600][   T88] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
[    7.394709][   T88] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
[    7.401817][   T88] rk_gmac-dwmac ff290000.ethernet: integrated PHY? (no).
[    7.409528][   T88] rk_gmac-dwmac ff290000.ethernet: cannot get clock clk_mac_speed
[    7.418090][   T88] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[    7.430681][   T88] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[    7.437804][   T88] rk_gmac-dwmac ff290000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[    7.446583][   T88] rk_gmac-dwmac ff290000.ethernet:         DWMAC1000
[    7.453206][   T88] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register supported
[    7.462351][   T88] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine supported
[    7.471495][   T88] rk_gmac-dwmac ff290000.ethernet: COE Type 2
[    7.478106][   T88] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
[    7.486763][   T88] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
[    7.494758][   T88] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
[    7.502158][   T88] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
[    7.509465][   T88] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    7.519196][   T88] rk_gmac-dwmac ff290000.ethernet: device MAC address d6:d2:97:0c:06:17
[    8.558410][   T88] libphy: stmmac: probed
[    8.563001][   T88] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.574381][   T88] mdio_bus stmmac-0:01: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    8.586732][    T1] input: gpio-keys as /devices/platform/gpio-keys/input/input2
[    8.595729][    T1] rk808-rtc rk808-rtc: setting system clock to 2013-01-18T08:50:12 UTC (1358499012)
[    8.606156][    T1] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.617118][    T1] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.625289][  T124] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    8.629494][    T1] ALSA device list:
[    8.635703][  T124] cfg80211: failed to load regulatory.db
[    8.645941][    T1]   #0: Generic USB Audio at usb-ff500000.usb-1, high speed
[    8.654060][    T1] ttyS2 - failed to request DMA
[    8.736119][    T1] EXT4-fs (mmcblk0p1): recovery complete
[    8.756868][    T1] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    8.766921][    T1] VFS: Mounted root (ext4 filesystem) on device 179:1.
[    8.777907][    T1] devtmpfs: mounted
[    8.783254][    T1] Freeing unused kernel memory: 2048K
[    8.789537][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.796644][    T1] Run /sbin/init as init process
[    9.034078][    T1] systemd[1]: System time before build time, advancing clock.
[    9.055444][    T1] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    9.080424][    T1] systemd[1]: Detected architecture arm.

Welcome to Ubuntu 18.04.1 LTS!

[    9.111777][    T1] systemd[1]: Set hostname to <tinkerboard>.
[    9.118854][    T1] systemd[1]: Failed to open netlink: Operation not permitted
[    9.171718][  T180] systemd-fstab-generator[180]: Failed to write unit file -.mount: Bad address
[    9.181764][  T180] systemd-fstab-generator[180]: Failed to write unit file tmp.mount: Bad address
[    9.192717][  T173] systemd[173]: /lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
[    9.234995][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/sysfsutils.service: Bad address
[    9.248212][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/loadcpufreq.service: Bad address
[    9.261437][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/hostapd.service: Bad address
[    9.274323][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/brcm40183-patch.service: Bad address
[    9.287229][    C1] dwmmc_rockchip ff0c0000.dwmmc: Unexpected interrupt latency
[    9.296122][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/ap6212-bluetooth.service: Bad address
[    9.309844][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/cpufrequtils.service: Bad address
[    9.323193][  T186] systemd-sysv-generator[186]: Failed to write unit /run/systemd/generator.late/speech-dispatcher.service: Bad address
[    9.362690][    T1] systemd[1]: SO_PASSCRED failed: Bad address
[    9.369357][    T1] systemd[1]: Failed to fully start up daemon: Bad address
[!!!!!!] Failed to start up manager, freezing.
[    9.386273][    T1] systemd[1]: Freezing execution.
[   19.856711][    C0] random: crng init done
[   38.887253][   T49] vcc_sd: supplied by vcc_io
[   38.892281][   T49] vcc_sd: disabling

No display on kernel 4.17

Currently, on Tinkerboard systems (didn't test on a MiQi yet), the DRM cannot initialise the screen, throwing a "-12" error.

[    0.286298] rk_iommu ff930300.iommu: Failed to get clk 'aclk': -2
[    0.286638] rk_iommu: probe of ff930300.iommu failed with error -2
[    0.287025] rk_iommu ff940300.iommu: Failed to get clk 'aclk': -2
[    0.287299] rk_iommu: probe of ff940300.iommu failed with error -2
...
[    1.537347] rockchip-drm display-subsystem: Linked as a consumer to ff930000.vop
[    1.545693] rockchip-drm display-subsystem: Linked as a consumer to ff940000.vop
[    1.554665] rockchip-drm display-subsystem: Linked as a consumer to ff980000.hdmi
...
[    7.258289] rockchip-drm display-subsystem: master bind failed: -12
[    7.265388] rockchip-vop: probe of ff940000.vop failed with error -12

This leads to no initialized screens and, therefore, no graphical output, making RK3288 systems unusable with this kernel.

Not applying any DTS patch does not affect the issue.

The IOMMU issues are problematic though. The addresses shown are ones of the VOP MMU nodes, so this will be investigated first since it's highly plausible that these two problems are linked.

Can we use Chromebit userspace drivers?

I noticed that my Chromebit has libmali.so -> 1.4 Midgard-"r22p0-01rel0".
Since it has RK3288, the same as Asus TinkerBoard. Could i reuse it's libs to get hardware acceleration working on the tinkerboard?

(i've tried Armbian images, TinkerOS v2.0.7-8 and i never get chrome with video hardware acc working).

My attempt was:

  1. Copy libmali.so from Chromebit and place it to /home/linaro/mali_test in TinkerBoard
  2. Run LD_LIBRARY_PATH=/home/linaro/mali_test /etc/chrome

Output:
file /dev/mali0 is not of a compatible version (user 11.4, kernel 10.6)

What else should i grab to make it work? Or can i bypass that compatibility check to see if it works anyway?

I could share the libs if they fit for your project too.
I've also seen that they have rk3288_vpu module rather than rockchip_vpu.

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.