RK30xx kernel source for custom modding...

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

RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Oct 15, 2012 5:56 am

I found reference to a rk30xx tablet here. It's the bq Edison tablet and the kernel source can be found here. Now I only need to wait for my MK808 to arrive to see if that's enough to build a custom kernel.

Could any of you having the MK808 already check to see whether the kernel config can be retrieved?
This can be done by executing following:

Code: Select all

adb pull /proc/config.gz > cat config.gz | gunzip > defconfig-mk808
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

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 7:05 am

I will try this once I am at home (about 3 hours)

deadhp1
Posts: 677
Joined: Thu Sep 20, 2012 5:22 pm

Re: RK30xx kernel source for custom modding...

Postby deadhp1 » Mon Oct 15, 2012 9:48 am

I'll also be taking a look, and passing along this great find to some other devs!

eCCoMaNia
Posts: 111
Joined: Wed Sep 26, 2012 10:56 am

Re: RK30xx kernel source for custom modding...

Postby eCCoMaNia » Mon Oct 15, 2012 9:54 am

deadhp1 wrote:I'll also be taking a look, and passing along this great find to some other devs!

great news really, I hope it will be usefull for ug802 and mk808 both...

BooLE
Posts: 61
Joined: Tue Sep 25, 2012 9:41 am

Re: RK30xx kernel source for custom modding...

Postby BooLE » Mon Oct 15, 2012 10:32 am

deadhp1 wrote:I'll also be taking a look, and passing along this great find to some other devs!



Just checked it, and it is a real kernel source, but I just guess that there are still drivers missing for some specifics.

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

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Oct 15, 2012 10:51 am

BooLE wrote:Just checked it, and it is a real kernel source, but I just guess that there are still drivers missing for some specifics.

That's why I'm curious to see the kernel config ;) I could be wrong, but looking at the android build.prop file it looks to be based on the "rk30sdk" config, which is part of the the kernel sources we have now. It would surprise me if we're missing any drivers. If only I had the MK808 to check... mine is somewhere between china and europe they told me :)

I posted some more info on the Modaco forum (see here)
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

evildave
Posts: 21
Joined: Mon Oct 08, 2012 7:49 am

Re: RK30xx kernel source for custom modding...

Postby evildave » Mon Oct 15, 2012 12:13 pm

Omegamoon wrote:I found reference to a rk30xx tablet here. It's the bq Edison tablet and the kernel source can be found here. Now I only need to wait for my MK808 to arrive to see if that's enough to build a custom kernel.

Could any of you having the MK808 already check to see whether the kernel config can be retrieved?
This can be done by executing following:

Code: Select all

adb pull /proc/config.gz > cat config.gz | gunzip > defconfig-mk808



Code: Select all

remote object '/proc/config.gz' does not exist

(on ics)

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 12:36 pm

evildave wrote:

Code: Select all

remote object '/proc/config.gz' does not exist

(on ics)


I get the same on JB.

kriss_fr
Posts: 10
Joined: Mon Oct 15, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby kriss_fr » Mon Oct 15, 2012 1:18 pm

no config file in /proc for me too.

But do you have check this one in the tar.gz ?
kernel/arch/arm/configs/bqEdison_defconfig

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 2:12 pm

There is a file:
kernel/arch/arm/configs/rk3066_sdk_defconfig & kernel/arch/arm/configs/rk30_sdk_defconfig

execute the following command in the kernel folder:

Code: Select all

$ make rk3066_sdk_defconfig
$ make menuconfig


When executing make menuconfig, you will get the following configuration:
You do not have the required permissions to view the files attached to this post.

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

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Oct 15, 2012 2:34 pm

kriss_fr wrote:no config file in /proc for me too.

But do you have check this one in the tar.gz ?
kernel/arch/arm/configs/bqEdison_defconfig

Too bad. I'm really puzzled why companies don't enable the kernel option to support this. They don't seem to understand the word "open" in open source, which is a shame!

Next question then ;) Could one of you post a debug dump just after a fresh reboot of the device?
This can be done by executing following:
adb shell dmesg > mk808_boot_dmesg

By analyzing the boot sequence we can reverse engineer a lot of the kernel options, and see which components/drivers are used
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

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 2:54 pm

See the attachment for the mk808_boot_dmesg
You do not have the required permissions to view the files attached to this post.

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

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Oct 15, 2012 3:31 pm

yobikap wrote:See the attachment for the mk808_boot_dmesg
Thanks, that's a great help!
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

deadhp1
Posts: 677
Joined: Thu Sep 20, 2012 5:22 pm

Re: RK30xx kernel source for custom modding...

Postby deadhp1 » Mon Oct 15, 2012 3:43 pm

That's the dmesg for the JB MK808 rom right?
I'll grab the dmesg for the ICS rom in a few minutes, I just need to reflash my MK808 with it.
The BQ Edison kernel source is for ICS 4.0.4.

I've tried running the BQ Edison firmware on the MK808, but wasn't able to get HDMI output without using the MK808 kernel.
The kernel does have the source for the standard rockchip hdmi drivers.
I did confirm that the BQ Edision uses the rk903 wifi, which is able to run the rk901 wifi in the MK808.

ICSmk808_boot_dmesg.txt
You do not have the required permissions to view the files attached to this post.

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 3:55 pm

Yes that is the JB dmesg

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 3:58 pm

Omegamoon wrote:
yobikap wrote:See the attachment for the mk808_boot_dmesg
Thanks, that's a great help!


You are most welcome :).

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

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Mon Oct 15, 2012 5:35 pm

Looking at the dmesg output I draw the conclusion that they used "rk3066_sdk_defconfig" as a basis. I see for instance that they compiled support for front face and back camera sensors, which is a bit odd to say the least. I don't see any reference to HDMI in the debug log, which is a bit weird. Did you have no display attached when generating the log?

From the quick scan I did at least following config options are used in the MK808 kernel:

Code: Select all

CONFIG_ARCH_RK30=y
CONFIG_MACH_RK3066_SDK=y
CONFIG_WIFI_CONTROL_FUNC=y

CONFIG_CMDLINE="console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00120000 mtdparts=rk29xxnand:0x00002000@0x00002000(misc),0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00008000@0x00010000(recovery),0x000C0000@0x00018000(backup),0x00040000@0x000D8000(cache),0x00300000@0x00118000(userdata),0x00002000@0x00418000(kpanic),0x00100000@0x0041A000(system),-@0x0053A000(user) bootver=2012-08-29#1.16 firmware_ver=4.0.4"

CONFIG_FB_ROCKCHIP=y
CONFIG_FB_WIMO=n
CONFIG_LCDC_RK30=y
CONFIG_HDMI_RK30=y
CONFIG_RGA_RK30=y
CONFIG_HDCP_RK30=n

CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_RK29_BL=y

CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_IOSCHED="cfq"

CONFIG_LS_CM3217=y
CONFIG_GYRO_L3G4200D=y
CONFIG_SENSORS_AK8975=y
CONFIG_GS_LIS3DH=y
CONFIG_SENSOR_DEVICE=y
CONFIG_GSENSOR_DEVICE=y
CONFIG_COMPASS_DEVICE=y
CONFIG_GYROSCOPE_DEVICE=y
CONFIG_LIGHT_DEVICE=y

CONFIG_ION=y
CONFIG_ION_ROCKCHIP=y

CONFIG_CPU_IDLE=y
CONFIG_CPU_FREQ=y
CONFIG_DDR_FREQ=y
CONFIG_DVFS=y
CONFIG_ASHMEM=y
CONFIG_FUSE_FS=y

Be aware, this is not a complete config, it's just from what I saw in the dmesg! As you see, although this log was created with the JB image, it references ICS (4.0.4) in the CONFIG_CMDLINE. My guess is that there is no significant difference in kernels between ICS and JB. Again, my guess is that a rebuild with the "rk3066_sdk_defconfig" config should end up with a working kernel.

There are some minor differences between the MK808 kernel and the settings in "rk3066_sdk_defconfig", probably very important differences, but I think it is doable. More kernel options can (should!) be reverse engineered from the debug log. I think we have ourselves a nice new project :D
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

dt2158
Posts: 4
Joined: Mon Oct 15, 2012 12:53 pm

Re: RK30xx kernel source for custom modding...

Postby dt2158 » Mon Oct 15, 2012 6:19 pm

I also ordered the MK808 and waiting for the device and currently investigating the suggested kernel.

When compilling make rk3066_sdk_defconfig there is missing vpu_service.c

any ideas? (Visual processing unit?)

dt

yobikap
Posts: 119
Joined: Tue Oct 09, 2012 1:08 pm

Re: RK30xx kernel source for custom modding...

Postby yobikap » Mon Oct 15, 2012 6:29 pm

Omegamoon wrote:I don't see any reference to HDMI in the debug log, which is a bit weird. Did you have no display attached when generating the log?


That's true, I did not attached the device to hdmi. The television is not in the same room as where I can debug.

The rk901 wifi drivers is standard selected in rk3306_sdk_defconfig, and if I am not mistaken there is no support for hdmi? They are pretending as if the television is a tablet screen, something in that direction.

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

Re: RK30xx kernel source for custom modding...

Postby Omegamoon » Tue Oct 16, 2012 12:55 am

dt2158 wrote:I also ordered the MK808 and waiting for the device and currently investigating the suggested kernel.

When compilling make rk3066_sdk_defconfig there is missing vpu_service.c

any ideas? (Visual processing unit?)

dt

That should read "Video Processing Unit" ;) Disable it for the time being and we'll find out later if we need it. Set CONFIG_RK29_VPU=n in your kernel config.
Last edited by Omegamoon on Tue Oct 16, 2012 1:15 am, edited 1 time in total.
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


Return to “Development”

Who is online

Users browsing this forum: No registered users and 2 guests