RK30xx kernel source for custom modding...

User avatar
Omegamoon
Posts: 107
Joined: Mon Oct 15, 2012 5:43 am

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Sun Feb 10, 2013 5:55 pm

I've uploaded a new release of the kernel on my blog. Please give it a try! Lots of changes, one of them being added support for touchscreen monitors, taken from the 3.8 linux kernel. I released different kernels for DVI and HDMI output, and for each output connection a 720p and a 1080p version as well. All details can be found on my blog. I hope you like it!
For updates please visit www.omegamoon.com
A big round of applause to yobikap for donating a MK808 and tonikasch for donating a MK808B!

If you like what I'm doing, consider a small donation by clicking the "Donate" button on my website

fun
Posts: 124
Joined: Wed Nov 07, 2012 11:09 am

Re: RK30xx kernel source for custom modding...

Postby fun » Sun Feb 10, 2013 8:14 pm

Omegamoon wrote:I've uploaded a new release of the kernel on my blog. Please give it a try! Lots of changes, one of them being added support for touchscreen monitors, taken from the 3.8 linux kernel. I released different kernels for DVI and HDMI output, and for each output connection a 720p and a 1080p version as well. All details can be found on my blog. I hope you like it!


oh, very nice!

some days ago I bought this cheap touchscreen which (probably) speaks Win8 protocol,
http://hrtouch.en.alibaba.com/product/6 ... creen.html
and I realized this branch need to be ported for Win8 protocol,
http://git.kernel.org/?p=linux/kernel/g ... multitouch

I guess your kernel include these changes,
http://git.kernel.org/?p=linux/kernel/g ... 01;hb=HEAD
I'll try your kernel :)

my RK3066 stick is MK806, I'm not sure how similar to MK808. but at least USB OTG and USB host will work, then I can read /dev/input/* from adb shell with your kernel ;)

EDIT:
with your kernel, my TS is detected as multi touch device correctly. I can see events both ABS_MT_SLOT 0/1 while touching 2 fingers. I'm not sure single touch events from multi touch device is correct, but probably it's not your fault.

I got several hangup/reboot while testing. but I don't know where is the problem because I don't have serial console :(
at least MK806 is not compatible to yours, e.g. regulator driver is missing. I should make stable kernel for MK806 first...

anyway, thank you for your work :)

----
~ # /system/bin/getevent -p /dev/input/event2
add device 1: /dev/input/event2
name: "HuiToo Computer INC. HuiToo Computer INC."
events:
KEY (0001): 014a
ABS (0003): 0000 : value 0, min 0, max 4095, fuzz 0, flat 0, resolution 0
0001 : value 0, min 0, max 4095, fuzz 0, flat 0, resolution 0
002f : value 0, min 0, max 1, fuzz 0, flat 0, resolution 0
0035 : value 0, min 0, max 4095, fuzz 0, flat 0, resolution 0
0036 : value 0, min 0, max 4095, fuzz 0, flat 0, resolution 0
0039 : value 0, min 0, max 65535, fuzz 0, flat 0, resolution 0
input props:
INPUT_PROP_DIRECT

~ # /system/bin/getevent /dev/input/event2
(snip)
0003 0039 00000005
0003 0035 00000689
0003 0036 000009d8
0001 014a 00000001
0003 0000 00000689
0003 0001 000009d8
0000 0000 00000000
0003 0035 0000068b
0003 0000 0000068b
0000 0000 00000000
0003 0035 0000068e
0003 0000 0000068e
0000 0000 00000000
0003 0035 00000690
0003 0000 00000690
0000 0000 00000000
0003 0035 00000693
0003 0000 00000693
0000 0000 00000000
0003 0035 00000696
0003 0000 00000696
0000 0000 00000000
0003 0035 00000699
0003 0000 00000699
0000 0000 00000000
0003 0035 0000069b
0003 0000 0000069b
0000 0000 00000000
0003 0035 0000069e
0003 0000 0000069e
0000 0000 00000000
0003 0035 0000069f
0003 0036 000009d3
0003 002f 00000001
0003 0039 00000006
0003 0035 000008c6
0003 0036 00000989
0003 0000 0000069f
0003 0001 000009d3
0000 0000 00000000
0003 002f 00000000
0003 0036 000009c9
0003 0001 000009c9
0000 0000 00000000
0003 0036 000009bf
0003 0001 000009bf
0000 0000 00000000
0003 0036 000009b5
0003 0001 000009b5
0000 0000 00000000
0003 0036 000009ab
0003 0001 000009ab
0000 0000 00000000
0003 0036 000009a1
0003 0001 000009a1
0000 0000 00000000
0003 0036 00000997
0003 0001 00000997
0000 0000 00000000
0003 0036 0000098d
0003 0001 0000098d
0000 0000 00000000
0003 0036 00000989
0003 0001 00000989
0000 0000 00000000
0003 0035 0000069e
0003 0000 0000069e
0000 0000 00000000
0003 0035 0000069b
0003 0000 0000069b
0000 0000 00000000
0003 0035 00000699
0003 0000 00000699
0000 0000 00000000
0003 0035 00000696
0003 0000 00000696
0000 0000 00000000
0003 0035 00000693
0003 0000 00000693
0000 0000 00000000
0003 0035 0000068e
0003 0036 00000984
0003 002f 00000001
0003 0036 00000984
0003 0000 0000068e
0003 0001 00000984
0000 0000 00000000
0003 0036 0000097a
0003 002f 00000000
0003 0039 ffffffff
0003 0000 000008c6
0003 0001 0000097a
0000 0000 00000000
0003 002f 00000001
0003 0035 000008c5
0003 0036 00000970
0003 0000 000008c5
0003 0001 00000970
0000 0000 00000000
0003 0039 ffffffff
0001 014a 00000000
0000 0000 00000000
(snip)

User avatar
Omegamoon
Posts: 107
Joined: Mon Oct 15, 2012 5:43 am

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Feb 11, 2013 3:29 am

max wrote:Hi
Is there any way to make RK903 internal WIFI work?

There probably is, but since I don't own a device containing one I can't be of any help I'm afraid.
Still waiting for a sponsor ;)
For updates please visit www.omegamoon.com
A big round of applause to yobikap for donating a MK808 and tonikasch for donating a MK808B!

If you like what I'm doing, consider a small donation by clicking the "Donate" button on my website

User avatar
Omegamoon
Posts: 107
Joined: Mon Oct 15, 2012 5:43 am

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Feb 11, 2013 4:12 am

daemonium wrote:Hi Omegamoon, i've managed to compile my own kernel for mk802IIIs. Note: I'm doing this just to learn and for fun :)
I know there is no driver sources for the mediatek wifi & bt and i will ask you if there is any way i can use the stock rom's wifi&bt modules on my own kernel. I'm planing to overclock up to 1.4-1.5 too and i don't know how to unlock cpu freq. I followed deadhp1's howto to compile my kernel including what i thought was unlocking cpufreq. My kernel boots nicely but cpu freq still is locked up to 1.2.
Please, can you give me a hand on this?
Thanks so much :)

Enviado mediante un tirachinas de largo alcance

In regards to using the stock rom's wifi&bt modules... loading the modules should work maybe, just give it a try. Keep in mind though that these kernel parts are not separate pieces of code. They still have to work together with the rest of the kernel. In that respect, i wouldn't get my hopes too high if I were you :(

In regards to overclocking... check your specific board file in arch/arm/mach-rk30/board-rk30-[your board used].c. Add some frequencies in small steps, say 100Mhz at a time. Keeping the voltage the same as the highest frequency is the safest way to go. Don't go bananas on the overclocking. If you see smoke it's probably the last thing you see from your device :cry:
For updates please visit www.omegamoon.com
A big round of applause to yobikap for donating a MK808 and tonikasch for donating a MK808B!

If you like what I'm doing, consider a small donation by clicking the "Donate" button on my website

User avatar
Omegamoon
Posts: 107
Joined: Mon Oct 15, 2012 5:43 am

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Feb 11, 2013 4:28 am

fun wrote:I guess your kernel include these changes,
http://git.kernel.org/?p=linux/kernel/g ... 01;hb=HEAD

I almost completely replaces the hid driver, as well as large parts of the input driver.

fun wrote:with your kernel, my TS is detected as multi touch device correctly. I can see events both ABS_MT_SLOT 0/1 while touching 2 fingers. I'm not sure single touch events from multi touch device is correct, but probably it's not your fault.

I'm not sure if this means success or not ;)

fun wrote:I got several hangup/reboot while testing. but I don't know where is the problem because I don't have serial console :(
at least MK806 is not compatible to yours, e.g. regulator driver is missing. I should make stable kernel for MK806 first...

Hopefully the hangups are related to the differences between the MK808 and the MK806. The only application that is giving me trouble currently is Antutu. Up until now, it continuously crashes :(
For updates please visit www.omegamoon.com
A big round of applause to yobikap for donating a MK808 and tonikasch for donating a MK808B!

If you like what I'm doing, consider a small donation by clicking the "Donate" button on my website

fun
Posts: 124
Joined: Wed Nov 07, 2012 11:09 am

Re: RK30xx kernel source for custom modding...

Postby fun » Mon Feb 11, 2013 5:11 am

Omegamoon wrote:
fun wrote:with your kernel, my TS is detected as multi touch device correctly. I can see events both ABS_MT_SLOT 0/1 while touching 2 fingers. I'm not sure single touch events from multi touch device is correct, but probably it's not your fault.

I'm not sure if this means success or not ;)


it seems good, but I just checked raw event output from TS with my CWM ramdisk.
if I can get more time, I'll try it with Android system.

daemonium
Posts: 14
Joined: Fri Nov 23, 2012 12:30 pm

Re: RK30xx kernel source for custom modding...

Postby daemonium » Mon Feb 11, 2013 7:22 am

Omegamoon wrote:In regards to using the stock rom's wifi&bt modules... loading the modules should work maybe, just give it a try. Keep in mind though that these kernel parts are not separate pieces of code. They still have to work together with the rest of the kernel. In that respect, i wouldn't get my hopes too high if I were you :(

So many thanks for the answer, i've insmod wifi.ko from stock rom, i can see the driver loading, doing a search and unloading. So, i'm not lucky at this :(

Omegamoon wrote:In regards to overclocking... check your specific board file in arch/arm/mach-rk30/board-rk30-[your board used].c. Add some frequencies in small steps, say 100Mhz at a time. Keeping the voltage the same as the highest frequency is the safest way to go. Don't go bananas on the overclocking. If you see smoke it's probably the last thing you see from your device :cry:

So for overclocking maybe i've edited the wrong file, i've played with /arch/arm/mach-rk30/board-rk30-box.c
This is how it looks like. (just the relevant part).

Code: Select all

static struct dvfs_arm_table dvfs_cpu_logic_table[] = {
#ifdef CONFIG_MACH_RK30_BOX_HOTDOG
        /*{.frequency = 252 * 1000,     .cpu_volt = 1050 * 1000,        .logic_volt = 1000 * 1000},//0.975V/1.000V
        {.frequency = 504 * 1000,       .cpu_volt = 1050 * 1000,        .logic_volt = 1000 * 1000},//0.975V/1.000V
        {.frequency = 816 * 1000,       .cpu_volt = 1050 * 1000,        .logic_volt = 1000 * 1000},//1.000V/1.025V
        {.frequency = 1008 * 1000,      .cpu_volt = 1075 * 1000,        .logic_volt = 1050 * 1000},//1.025V/1.050V
        {.frequency = 1200 * 1000,      .cpu_volt = 1150 * 1000,        .logic_volt = 1100 * 1000},//1.100V/1.050V
        {.frequency = 1272 * 1000,      .cpu_volt = 1200 * 1000,        .logic_volt = 1150 * 1000},//1.150V/1.100V
        {.frequency = 1416 * 1000,      .cpu_volt = 1275 * 1000,        .logic_volt = 1150 * 1000},//1.225V/1.100V
        {.frequency = 1512 * 1000,      .cpu_volt = 1350 * 1000,        .logic_volt = 1200 * 1000},//1.300V/1.150V
        {.frequency = 1608 * 1000,      .cpu_volt = 1375 * 1000,        .logic_volt = 1200 * 1000},//1.325V/1.175V*/
        {.frequency = 252 * 1000,       .cpu_volt = 1075 * 1000,        .logic_volt = 1125 * 1000},//0.975V/1.000V
        {.frequency = 504 * 1000,       .cpu_volt = 1100 * 1000,        .logic_volt = 1125 * 1000},//0.975V/1.000V
        {.frequency = 816 * 1000,       .cpu_volt = 1125 * 1000,        .logic_volt = 1150 * 1000},//1.000V/1.025V
        {.frequency = 1008 * 1000,      .cpu_volt = 1125 * 1000,        .logic_volt = 1150 * 1000},//1.025V/1.050V
        {.frequency = 1200 * 1000,      .cpu_volt = 1175 * 1000,        .logic_volt = 1200 * 1000},//1.100V/1.050V
        {.frequency = 1272 * 1000,      .cpu_volt = 1225 * 1000,        .logic_volt = 1200 * 1000},//1.150V/1.100V
/*      {.frequency = 1416 * 1000,      .cpu_volt = 1300 * 1000,        .logic_volt = 1200 * 1000},//1.225V/1.100V
        {.frequency = 1512 * 1000,      .cpu_volt = 1350 * 1000,        .logic_volt = 1250 * 1000},//1.300V/1.150V
        {.frequency = 1608 * 1000,      .cpu_volt = 1425 * 1000,        .logic_volt = 1300 * 1000},//1.325V/1.175V */
#else
//      {.frequency = 252 * 1000,       .cpu_volt = 1075 * 1000,        .logic_volt = 1125 * 1000},//0.975V/1.000V
        {.frequency = 504 * 1000,       .cpu_volt = 1100 * 1000,        .logic_volt = 1125 * 1000},//0.975V/1.000V
        {.frequency = 816 * 1000,       .cpu_volt = 1125 * 1000,        .logic_volt = 1150 * 1000},//1.000V/1.025V
        {.frequency = 1008 * 1000,      .cpu_volt = 1125 * 1000,        .logic_volt = 1150 * 1000},//1.025V/1.050V
        {.frequency = 1200 * 1000,      .cpu_volt = 1175 * 1000,        .logic_volt = 1200 * 1000},//1.100V/1.050V
        {.frequency = 1272 * 1000,      .cpu_volt = 1225 * 1000,        .logic_volt = 1200 * 1000},//1.150V/1.100V
/*      {.frequency = 1416 * 1000,      .cpu_volt = 1300 * 1000,        .logic_volt = 1200 * 1000},//1.225V/1.100V
        {.frequency = 1512 * 1000,      .cpu_volt = 1350 * 1000,        .logic_volt = 1250 * 1000},//1.300V/1.150V
        {.frequency = 1608 * 1000,      .cpu_volt = 1425 * 1000,        .logic_volt = 1300 * 1000},//1.325V/1.175V */
//1.325V/1.175V
#endif
        {.frequency = CPUFREQ_TABLE_END},
};

As i understand this, Max freq sould be 1272, upper freqs are ignored. I didn't change any values because i assumed they were specific for this cpu.
Thanks so much!

EDIT Discovered this thanks to another user at Freaktab forum. Should i change the values to match max freq? Thanks

Code: Select all

#ifdef CONFIG_MACH_RK30_BOX_HOTDOG
        dvfs_clk_enable_limit(clk_get(NULL, "gpu"), 133 * 1000000, 266 * 1000000);
        dvfs_clk_enable_limit(clk_get(NULL, "cpu"), 252 * 1000000, 1200 * 1000000);

User avatar
Omegamoon
Posts: 107
Joined: Mon Oct 15, 2012 5:43 am

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Sun Mar 17, 2013 8:15 am

I tried to build a MK808B kernel with Wifi/Bluetooth support. See over here for the current status.
Any thoughts or ideas on how to proceed are much appreciated!
For updates please visit www.omegamoon.com
A big round of applause to yobikap for donating a MK808 and tonikasch for donating a MK808B!

If you like what I'm doing, consider a small donation by clicking the "Donate" button on my website

User avatar
leolas
Posts: 90
Joined: Sun Dec 30, 2012 7:56 am

Re: RK30xx kernel source for custom modding...

Postby leolas » Tue Mar 19, 2013 3:56 am

http://www.armtvtech.com/armtvtechforum/viewtopic.php?p=9742#p9742
Here are more tries to make rk903 works. Maybe you can look at there and see if it help us.

User avatar
Omegamoon
Posts: 107
Joined: Mon Oct 15, 2012 5:43 am

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Tue Mar 19, 2013 5:42 pm

@leolas :) Thanks, glad to see that I'm not the only one digging into this problem.
I'll switch over to that thread in regards to the RK903 problem(s)
For updates please visit www.omegamoon.com
A big round of applause to yobikap for donating a MK808 and tonikasch for donating a MK808B!

If you like what I'm doing, consider a small donation by clicking the "Donate" button on my website

pirinvk
Posts: 1
Joined: Sat Mar 09, 2013 1:10 pm

Re: RK30xx kernel source for custom modding...

Postby pirinvk » Fri Mar 22, 2013 8:43 am

greetings.
-when compiling the kernel I have no problem, as both JB ics.

-ICS with these tools in perfect, working kernel!
https://github.com/naobsd/cm_system_cor ... /mkbootimg

-but the problem I have to create BOOT.IMG JB.
if I use: https://github.com/naobsd/cm_system_cor ... /mkbootimg the tablet is locked and no lights.

-if you use the android kitchen to create the lights but BOOT.IMG if the recovery fails.

How to be the problem?

Thank you.

sorry for my English, is the translator ...

KainXS
Posts: 2
Joined: Mon Jan 28, 2013 8:39 pm

Re: RK30xx kernel source for custom modding...

Postby KainXS » Mon May 20, 2013 7:51 pm

anybody know what I can try if I am trying to compile a kernel for a tablet, use makemenu and configure it the build the kernel, then I sign it with rkrcrc but after flash I get a black screen

any ideas.

wa2707
Posts: 2
Joined: Thu May 30, 2013 8:55 pm

Re: RK30xx kernel source for custom modding...

Postby wa2707 » Thu May 30, 2013 9:10 pm

i try to unpack rk3066 rom to replace the zimage with other one that i compiled
so after unpacking rom i have :
kernel.img
boot.img
recovery.img
misc.img
system.img

can you plz help me to unpack kernel.img and boot.img
i try manu script and many tools but no result i try the tools unpackbootimg made by @fun but i get
"Android boot magic not found."
i put the boot.img and kernel.img in attachment if there is hwo can help me
thank you for your efforts and for sharing knowledge

wa2707
Posts: 2
Joined: Thu May 30, 2013 8:55 pm

Re: RK30xx kernel source for custom modding...

Postby wa2707 » Thu May 30, 2013 9:22 pm

this is the attachment :p
You do not have the required permissions to view the files attached to this post.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 1 guest