Rikomagic Kitkat kernel source and MK802IV Linux kernels

Forum to discuss the new Quad Core Rikomagic MK802 IV Mini PC

Moderators: KEgg, twjordo, tatubias

Rikomagic Kitkat kernel source and MK802IV Linux kernels

Postby linuxium » Sat Jun 28, 2014 3:24 pm

Please see https://plus.google.com/+IanMORRISON/posts/LeVKkape7Wj

Rikomagic have provided me their latest Kitkat kernel source which I have loaded on my github at https://github.com/linuxium/rkm-kk

I've also compiled some test Linux kernels for the MK802IV:

S/N from 201307** till now 1080p - https://drive.google.com/file/d/0B99O3A ... WNTbGhYNmM

S/N from 201307** till now 720p - https://drive.google.com/file/d/0B99O3A ... Wc5TkFsamc

S/N from 201305***to 201306*** 1080p - https://drive.google.com/file/d/0B99O3A ... Xl5OVlqOEE

S/N from 201305***to 201306*** 720p - https://drive.google.com/file/d/0B99O3A ... ldYOEx1SzA

Please try and I would appreciate any feedback.
linuxium
 
Posts: 56
Joined: Thu May 23, 2013 5:44 am

Re: Rikomagic Kitkat kernel source and MK802IV Linux kernels

Postby millo1978 » Sat Jun 28, 2014 4:02 pm

Thanks for all! :)

This is normal kernel or multiboot?

I'm dowloading... :)

---------------------
Edit:
Installed with flash tool v.137 (1080p for ap6210)

Not multiboot :( (I need dualboot)

It boots normally...
date and hour weren't correct...
no problem with wifi and bluetooth...
in "Settings-- about device -- Status" we haven't informations (see picture) ...
Strange... in "about device" all strings are as the original ... Don't you have changed names or install wasn't good?
Attachments
tmp_3287-Screenshot_2014-06-28-20-21-371716527677.png
tmp_3287-Screenshot_2014-06-28-20-21-371716527677.png (155.89 KiB) Viewed 9280 times
tmp_3287-Screenshot_2014-06-28-20-21-11407554109.png
tmp_3287-Screenshot_2014-06-28-20-21-11407554109.png (126.02 KiB) Viewed 9280 times
millo1978
 
Posts: 13
Joined: Tue Apr 08, 2014 11:49 am

Re: Rikomagic Kitkat kernel source and MK802IV Linux kernels

Postby linuxium » Mon Jun 30, 2014 1:40 pm

These are kernels for running with a Linux RFS and not an Android RFS.
linuxium
 
Posts: 56
Joined: Thu May 23, 2013 5:44 am

Re: Rikomagic Kitkat kernel source and MK802IV Linux kernels

Postby v1ron » Sun Jul 06, 2014 8:46 am

Hello Linuxium! First of all, thanks that it is possible to run Linux on these devices instead of Android.

However, it is not easy to make the working kernel from sources as it is for the official Linux kernel. Here are some suggestions:
1. It would be great if there will be four branches of the kernel on github, with different .config files, so users can clone a repository and easily build the kernel for their device model. Because any little change in the .config results in the broken kernel image.
2. There will be additional readme_rk3188.txt file with the build instructions and notes.

I am trying to make the Debian minimal rootfs using cross-debootstrap. Now I have working armhf rootfs image, and it does not work with your precompiled image "S/N from 201307** till now 1080p". It does not show the login prompt, probably because it cannot find the proper console device. Only if I have precompiled kernel and ubuntu rootfs, it does work. It seems rootfs needs some additional changes? I noticed that the kernel does not map the console to the display device at the boot time as it must.

So, I tried to compile the new kernel from this thread with "Map the console to the primary display device" option and without it, however, it does not work at all even with original ubuntu rootfs. My HDMI display does not wake up from the sleep mode at the boot time. What I did:
1. Copied a config file from arch/arm/configs to .config
2. Compiled the kernel with "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- kernel.img"
3. Replaced the kernel.img of the https://plus.google.com/+IanMORRISON/posts/TTXkb7pX7SG with mine to boot it from the SD card.
4. Booted from SD card and there is the black screen.

I also tried to compile older kernel from https://github.com/aloksinha2001/Linux3188.git and I have the same result. I've noticed that my kernel is greater by size: it has 9MB in size when your kernel has only ~3MB. Is there some another way to make the compressed kernel?
v1ron
 
Posts: 2
Joined: Sun Jul 06, 2014 6:03 am

Re: Rikomagic Kitkat kernel source and MK802IV Linux kernels

Postby v1ron » Sun Jul 13, 2014 12:06 pm

After a couple of recompilations I have finally found the configuration, and the framebuffer console does work for me without any issues. Now I have standard Debian rootfs which can be run in this configuration without changes (only need to copy firmware files from rikomagic to /lib/firmware). Any other Linux distribution can be created this way.

I am doing my improvements here:
https://github.com/v1ron/rkm-kk/

Here is the config file which works acceptable for me (MK802IV with AP6210 chipset) in the repository.

Now I can see what the device is. I'm doing any stress testings like attaching my USB devices to it and running x264. USB speed seems good enough to even burn blu-ray disks on this device :lol: . Wifi works acceptable, so I can connect to the device via SSH.

Summary: fast enough device, but the kernel has unfortunately a bunch of problems. I have backported USB wifi drivers for my AWUS036H adaptor, and it does not work. USB stack reports errors "urb->transfer_buffer address not align to 4-byte...". Hopefully will fix and I can grab some weak open wifi network here and use the device as a router :mrgreen: . Installing xfce, MALI400 drivers, etc planned... Hopefully there will be further development to rewrite the drivers and push them to the official kernel like for Wondermedia devices (I have some experience with them).

UPD: Solved USB wifi problems by selecting the new version of the host driver (yes, the kernel has two versions... the old one is selected by default) and disabling the OTG host driver. It is better to use this OTG jack to plug the power cable. Now I am happy user of the free wifi access point and can share it using the built-in adapter.
Attachments
IMG_20140713_122325-lq.jpg
MK802IV Debian
IMG_20140713_122325-lq.jpg (201.52 KiB) Viewed 9100 times
v1ron
 
Posts: 2
Joined: Sun Jul 06, 2014 6:03 am

Re: Rikomagic Kitkat kernel source and MK802IV Linux kernels

Postby nifares » Mon Jul 21, 2014 3:12 am

kernel 3.0.xx is not safe, rk3188 and rk3288 kernel support 3.15.xx, can you kernel upgraden on 3.15 version
nifares
 
Posts: 5
Joined: Sun Sep 08, 2013 9:26 am


Return to Rikomagic MK802 IV Quad Core Forum

Who is online

Users browsing this forum: No registered users and 3 guests