[DEV] unofficial CyanogenMod7 port for RK2818/RK2918 tablets

Status
Not open for further replies.
Search This thread

fun_

Senior Member
Aug 20, 2010
2,376
651
this is a work-in-progress development project for porting CyanogenMod 7 (gingerbread/2.3.7) and ClockworkMod Recovery 5 to RK2818/RK2918 tablets.

there is no support from any makers/vendors. you must agree all risks by installing non-supported files, it may brick your tablet, and you may lose official support/warranty.

* YOU MUST READ CAREFULLY POST#1, #2, AND #3!
* DO NOT USE FILES FOR OTHER TABLETS! IT WILL BRICK YOUR TABLET!

* project page
http://androtab.info/rockchip/cyanogenmod/

* RK2818 tested tablets
mivvy MIDroid A2
Craig CMP738A
RAmos T11AD
ACHO C901 PRO
ARCHOS 7htv2
4G Systems oneTab
Yarvik TAB210
... and more!

* RK2818 current status (2011/11/18)
not work:
3G, HDMI, and many things which you expect to work

work:
accelerometer, audio, gapps, hardware accelerated video, internal NAND flash, SD card, touchscreen with calibration app, USB host/device, USB GPS dongle, wlan

* RK2918 tested tablets
Yuandao N50DT

* RK2918 current status (2011/11/26)
not work:
3G, bluetooth, camera, hardware accelerated video, HDMI, and many things which you expect to work
work:
3D, accelerometer, audio, gapps, internal NAND flash, SD card, touchscreen, USB host/device, vibrator, wlan

* changelog
refer git log

* resources
http://www.cyanogenmod.com/ (What is CyanogenMod?)
http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Google_Apps (Google Apps)
http://wiki.cyanogenmod.com/index.php?title=Building_from_source
http://source.android.com/source/
http://review.cyanogenmod.com/#q,status:merged,n,z (CyanogenMod merged changes)
http://forum.xda-developers.com/showthread.php?t=1286305 (rkflashtool)
https://github.com/naobsd/cm_device_rockchip_rk2818
https://github.com/naobsd/cm_device_rockchip_rk2918
https://github.com/naobsd/cm_external_skia/compare/gingerbread-naobsd (placeholder for patches to cherry-pick)
https://github.com/naobsd/cm_frameworks_base/compare/gingerbread-naobsd (placeholder for patches to cherry-pick)
https://github.com/naobsd/cm_packages_apps_TSCalibration
https://github.com/naobsd/cm_system_vold/compare/gingerbread-naobsd (placeholder for patches to cherry-pick)
https://github.com/naobsd/rkutils

* links
http://www.arctablet.com/blog/archo...se-cm7-android-2-3-market-root-archos-7-htv2/ ARCHOS 7HTv2
http://forum.archosfans.com/viewtopic.php?f=81&t=57534 ARCHOS 7HTv2
http://forum.archosfans.com/viewtopic.php?f=81&t=55132 ARCHOS 7HTv2 (not updated?)
http://forum.archosfans.com/viewtopic.php?f=80&t=57832 Arnova 10
http://www.forotablets.com/showthread.php/2190-New-CyanogenMod-V.7.1 bq Verne Plus
http://gathering.tweakers.net/forum/list_messages/1456249/last Yarvik TAB210
 
Last edited:

fun_

Senior Member
Aug 20, 2010
2,376
651
* How to dump stock update.img (if you don't have stock update.img)
1. get temporary root
2. dump update.img from backup partition with rkdump for android

* How to make update.img
1. unpack stock update.img for your tablet with AFPTool.exe(Windows) or rkunpack(Unices) (DO NOT USE FILES FOR OTHER TABLETS!)
2. replace boot.img and system.img with files from CM7
3. (if necessary) unpack system.img with fsck.cramfs(RK2818) or loopback mount system.img(RK2918), tweak accelerometer properties in build.prop, add gapps, remove/replace TSCalibration.apk, then repack system.img with mkfs.cramfs
4. repack update.img with AFPTool.exe(Windows) or rkafpack(Unices)

* How to flash update.img
1. use RKAndroidBatchUpgrade.exe(RK2818) or RKBatchTool.exe(RK2918)
(TBD)
 
Last edited:
  • Like
Reactions: laberinto_6

fun_

Senior Member
Aug 20, 2010
2,376
651
* RK2818 issues
some apps get FC
no camera preview
no UI to change USB mode
no USB mass storage mode (mount from PC) under some condition

* RK2818 FAQ
- how to make update.img
http://wiki.archosfans.com/index.php?title=Dump_your_Home_Tablet_rom_and_create_a_custom_rom

- lags on initial boot
please wait several seconds after calibration screen popped

- install failed on some apps (e.g. Angry Birds)
remove SD card before install

- I want to change USB mode host<->device
host mode:
Code:
echo 1 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
device mode:
Code:
echo 0 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
or, try this app: http://forum.xda-developers.com/showpost.php?p=19414868&postcount=543

- lags on 3D apps
yes, there is no 3D hardware on RK2818

* RK2918 FAQ
- boot.img in SDK2.0 based ROM
in (some of) SDK2.0 based ROMs, new format is used for boot.img(and recovery.img). it's almost same as standard android boot.img format. it has both kernel and ramdisk.
in general, unpackbootimg/mkbootimg can be used to unpack/repack for this format. but it doesn't work with boot.img for RK2918 tablets. Rockchip uses non-standard way to generate hash value which is stored in header of boot.img. if you flashed repacked boot.img, your tablet will go into recovery mode. it means we can't make customized boot.img(ramdisk).
but there is workaround. we can convert SDK2.0 boot.img into pre-SDK2.0 format.
Code:
$ unpackbootimg -i boot.img
$ rkcrc -k boot.img-zImage kernel.img
$ rkcrc -k boot.img-ramdisk.gz ramdisk.img
then flash kernel.img into kernel partition, and ramdisk.img into boot partition.

- accelerometer tweaks
for Yuandao N50DT
Code:
accelerometer.flip_xy=1
accelerometer.invert_x=1
accelerometer.invert_z=1

* common FAQ
- no gapps
download gapps for CM7 and add files in zip into system.img

- how to use internal NAND flash as SD card?
Settings -> CyanogenMod settings -> Application -> Use internal storage -> On -> reboot
if enabled, internal NAND flash is mounted on /mnt/sdcard and SD card is mounted on /mnt/nand.

- I like portrait / my favorite portrait apps are upside down / accelerometer axes are wrong on some apps
make /data/local.prop with following 3 lines, then reboot.
Code:
accelerometer.hwrotation=270
input.hwrotation=270
ro.sf.hwrotation=270

- I want to do calibration again
delete following files if exist, reboot, run calibration app, then reboot again
Code:
/data/misc/pointercal
/data/misc/idc/*
 
Last edited:

snipes420

Member
Jul 25, 2007
14
4
Creston
Craig CMP738a boots up and results are identical to your findings.
initial bootup.
the calibration utility hung for a few seconds and asked if it should be killed. waiting allowed the procedure to complete.
started the music app. started playing a song. no audio came from the speakers but audio counter counted up. Headphones did not have sound either.
Tried connecting to wireless, says obtaining IP address... doesnt seem to want to connect to WPA2 network of mine. but it did connect fine to my WEP network.
Trying to view the gallery program for photos is very laggy.
A few videos would play in the video program but they were all like slideshows. A few would not play at all. no audio from the videos obviously.
Phone app and Camera (crashes) app are useless on this device I have.
USB Keyboard works in the usb host port.
FAT32 Flash drive doesnt seem to mount automatic.
SDCARD doesnt seem to be recognized. (nothing in /dev?)

Very cool so far tho.

Edit: since I am using the stock kernel for this device I would think I could get the hardware working... audio... video??? or maybe I need the rockchip support libraries...
 
Last edited:

lefeudedieu

Senior Member
Feb 27, 2010
374
5
Toulouse
Last edited:

fun_

Senior Member
Aug 20, 2010
2,376
651
Craig CMP738a boots up and results are identical to your findings.

thank you for your report! I added CMP738A to "tested" list.

in general, it should work on most RK2818 tablets. I tested ~20 eclair/froyo firmware(boot/system.img) for other tablets on my mivvy A2, and they worked well. it should be same for my CM7.

initial bootup.
the calibration utility hung for a few seconds and asked if it should be killed. waiting allowed the procedure to complete.

some process is running in background. please wait several seconds :)

Tried connecting to wireless, says obtaining IP address... doesnt seem to want to connect to WPA2 network of mine. but it did connect fine to my WEP network.

hmm. I'm using both WPA and WPA2 enabled APs. I'll try WPA2-only AP.

Trying to view the gallery program for photos is very laggy.
A few videos would play in the video program but they were all like slideshows. A few would not play at all. no audio from the videos obviously.

no 3D hardware in RK2818.
hardware accelerated video is not supported on my CM7.

FAT32 Flash drive doesnt seem to mount automatic.
SDCARD doesnt seem to be recognized. (nothing in /dev?)

I didn't test USB drive yet. I have only multi-card-reader, it doesn't work well on android. I'll try it when I get simple USB flash memory stick or something.

SD card should work... please show me detail if you can't investigate it.

Edit: since I am using the stock kernel for this device I would think I could get the hardware working... audio... video??? or maybe I need the rockchip support libraries...

please use your own bootloader/kernel because there is no source.

audio will work, but I didn't do anything yet.
to support hw video, libstagefrighthw.so for RK28 is needed. if you find it, please tell me.
 
Last edited:
  • Like
Reactions: OMFGNuts

aduhai

Senior Member
Mar 10, 2010
117
27
Kuala Terengganu, Malaysia
Thnks on your new image.

Flash on my Acho C901 Pro MID ( www.acho.com.cn ), working fine, smooth. Wifi is working now. Everthing looking ok. Web browser seldom force close. Some application fail to install. So far so good.

Bugs:
Install market: cannot open
Install gmail : cannot open
Install youtube: can hear only sound, no video
Login gmail account in browser: Browser forced close.
 
Last edited:

fun_

Senior Member
Aug 20, 2010
2,376
651
Thnks on your new image.

Flash on my Acho C901 Pro MID ( www.acho.com.cn ), working fine, smooth. Wifi is working now. Everthing looking ok. Web browser seldom force close. Some application fail to install. So far so good.

Bugs:
Install market: cannot open
Install gmail : cannot open
Install youtube: can hear only sound, no video
Login gmail account in browser: Browser forced close.

thank you for you report.

try to remove SD card for app install failure.
I can't understand "Install market/gmail: cannot open". do you know how to add files into cramfs system.img?
market is working for me. I can see non HQ video on youtube. (poor frame rate, of course)

it seems bit unstable (app died silently) than before.
 

aduhai

Senior Member
Mar 10, 2010
117
27
Kuala Terengganu, Malaysia
thank you for you report.

try to remove SD card for app install failure.
I can't understand "Install market/gmail: cannot open". do you know how to add files into cramfs system.img?
market is working for me. I can see non HQ video on youtube. (poor frame rate, of course)

it seems bit unstable (app died silently) than before.

Yes remove SD can resolve problem.
Ok, I dint know how to install gapps-gb-20110307signed.zip. I just unziped the file, and copy all file under app folder to my sd card. I double click the file and its install. When I tried to run the market and gmail, it just open in white screen and immediate close.
The other bug is, I cant login to google account in browser, It just hang and force close.
 

jackxl

Member
Mar 1, 2008
17
0
realy looking forward to a stable release for this.

got an archos 7 ht v2 wich is not realy slow.


also have a HTC Kaiser wich runs on Cyanogenmod 6. and runs realy smooth.. lot better then my tablet.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    this is a work-in-progress development project for porting CyanogenMod 7 (gingerbread/2.3.7) and ClockworkMod Recovery 5 to RK2818/RK2918 tablets.

    there is no support from any makers/vendors. you must agree all risks by installing non-supported files, it may brick your tablet, and you may lose official support/warranty.

    * YOU MUST READ CAREFULLY POST#1, #2, AND #3!
    * DO NOT USE FILES FOR OTHER TABLETS! IT WILL BRICK YOUR TABLET!

    * project page
    http://androtab.info/rockchip/cyanogenmod/

    * RK2818 tested tablets
    mivvy MIDroid A2
    Craig CMP738A
    RAmos T11AD
    ACHO C901 PRO
    ARCHOS 7htv2
    4G Systems oneTab
    Yarvik TAB210
    ... and more!

    * RK2818 current status (2011/11/18)
    not work:
    3G, HDMI, and many things which you expect to work

    work:
    accelerometer, audio, gapps, hardware accelerated video, internal NAND flash, SD card, touchscreen with calibration app, USB host/device, USB GPS dongle, wlan

    * RK2918 tested tablets
    Yuandao N50DT

    * RK2918 current status (2011/11/26)
    not work:
    3G, bluetooth, camera, hardware accelerated video, HDMI, and many things which you expect to work
    work:
    3D, accelerometer, audio, gapps, internal NAND flash, SD card, touchscreen, USB host/device, vibrator, wlan

    * changelog
    refer git log

    * resources
    http://www.cyanogenmod.com/ (What is CyanogenMod?)
    http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Google_Apps (Google Apps)
    http://wiki.cyanogenmod.com/index.php?title=Building_from_source
    http://source.android.com/source/
    http://review.cyanogenmod.com/#q,status:merged,n,z (CyanogenMod merged changes)
    http://forum.xda-developers.com/showthread.php?t=1286305 (rkflashtool)
    https://github.com/naobsd/cm_device_rockchip_rk2818
    https://github.com/naobsd/cm_device_rockchip_rk2918
    https://github.com/naobsd/cm_external_skia/compare/gingerbread-naobsd (placeholder for patches to cherry-pick)
    https://github.com/naobsd/cm_frameworks_base/compare/gingerbread-naobsd (placeholder for patches to cherry-pick)
    https://github.com/naobsd/cm_packages_apps_TSCalibration
    https://github.com/naobsd/cm_system_vold/compare/gingerbread-naobsd (placeholder for patches to cherry-pick)
    https://github.com/naobsd/rkutils

    * links
    http://www.arctablet.com/blog/archo...se-cm7-android-2-3-market-root-archos-7-htv2/ ARCHOS 7HTv2
    http://forum.archosfans.com/viewtopic.php?f=81&t=57534 ARCHOS 7HTv2
    http://forum.archosfans.com/viewtopic.php?f=81&t=55132 ARCHOS 7HTv2 (not updated?)
    http://forum.archosfans.com/viewtopic.php?f=80&t=57832 Arnova 10
    http://www.forotablets.com/showthread.php/2190-New-CyanogenMod-V.7.1 bq Verne Plus
    http://gathering.tweakers.net/forum/list_messages/1456249/last Yarvik TAB210
    3
    * RK2818 issues
    some apps get FC
    no camera preview
    no UI to change USB mode
    no USB mass storage mode (mount from PC) under some condition

    * RK2818 FAQ
    - how to make update.img
    http://wiki.archosfans.com/index.php?title=Dump_your_Home_Tablet_rom_and_create_a_custom_rom

    - lags on initial boot
    please wait several seconds after calibration screen popped

    - install failed on some apps (e.g. Angry Birds)
    remove SD card before install

    - I want to change USB mode host<->device
    host mode:
    Code:
    echo 1 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
    device mode:
    Code:
    echo 0 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
    or, try this app: http://forum.xda-developers.com/showpost.php?p=19414868&postcount=543

    - lags on 3D apps
    yes, there is no 3D hardware on RK2818

    * RK2918 FAQ
    - boot.img in SDK2.0 based ROM
    in (some of) SDK2.0 based ROMs, new format is used for boot.img(and recovery.img). it's almost same as standard android boot.img format. it has both kernel and ramdisk.
    in general, unpackbootimg/mkbootimg can be used to unpack/repack for this format. but it doesn't work with boot.img for RK2918 tablets. Rockchip uses non-standard way to generate hash value which is stored in header of boot.img. if you flashed repacked boot.img, your tablet will go into recovery mode. it means we can't make customized boot.img(ramdisk).
    but there is workaround. we can convert SDK2.0 boot.img into pre-SDK2.0 format.
    Code:
    $ unpackbootimg -i boot.img
    $ rkcrc -k boot.img-zImage kernel.img
    $ rkcrc -k boot.img-ramdisk.gz ramdisk.img
    then flash kernel.img into kernel partition, and ramdisk.img into boot partition.

    - accelerometer tweaks
    for Yuandao N50DT
    Code:
    accelerometer.flip_xy=1
    accelerometer.invert_x=1
    accelerometer.invert_z=1

    * common FAQ
    - no gapps
    download gapps for CM7 and add files in zip into system.img

    - how to use internal NAND flash as SD card?
    Settings -> CyanogenMod settings -> Application -> Use internal storage -> On -> reboot
    if enabled, internal NAND flash is mounted on /mnt/sdcard and SD card is mounted on /mnt/nand.

    - I like portrait / my favorite portrait apps are upside down / accelerometer axes are wrong on some apps
    make /data/local.prop with following 3 lines, then reboot.
    Code:
    accelerometer.hwrotation=270
    input.hwrotation=270
    ro.sf.hwrotation=270

    - I want to do calibration again
    delete following files if exist, reboot, run calibration app, then reboot again
    Code:
    /data/misc/pointercal
    /data/misc/idc/*
    2
    Awesome, so does anyone have a img file for the arnova 10b? Its taking way to long for the archos devs to release a stable rom.

    Sending a PM to you and tlyonstlyons with a link to my 10b 'port'. I was mistaken earlier when I linked to the froyo kasty rom. This is the eclair kasty rom with the capacitive screen working. I have some work to do to get it rooted, but most things work and it's a bit faster than the stock rom.

    I tried with the froyo kasty rom and things are actually slower. It probably needs some settings tweaked. I am able to run Netflix for a short time and get sound, but no video.
    2
    Here is my experience with Arnova 10b...

    I could get it fully functional with a few tweaks:

    1. I used Dump_your_Home_Tablet_rom_and_create_a_custom_rom guide to modify the system image and replace TSCalibration.apk with the one from the oficial update.
    2. Modified the build.prop and added:

    ro.build.touchscreen=1

    (not sure does this make any difference, but comment says this should be set for the capacitive touchscreens)

    3. A also had problems with the WiFi (actually the problem is with the dhcpd). I fixed the permissions /etc/dhcpd/dhcpd-run-hooks which seem to be improperly set:

    sudo chmod 555 /etc/dhcpd/dhcpd-run-hooks

    (also /etc/dbus.conf was not readable by everyone and I changed that too)

    4. At the end the biggest problem was making the TSCalibration for the capacitive screen to run at boot time. I still didn't find a solution for this, but I'm using the following workaround using the adb:
    - after flashing the new rom I connect the tablet to the PC and run:

    adb shell am start -a android.intent.action.MAIN -n com.rockchip.tscalibration/.TSCalibration

    This enables the touchscreen and everything works just fine. In case the tablet is already locked you could unlock it with:

    adb shell input keyevent 82

    My knowledge on the android system is pretty limited and I'll appreciate if somebody can tell me how can I permanently solve the TSCalibration problem.

    Oh... and for the accelerometer I needed only sensor.accelerometer.invert_x=1 in the /data/local.prop.
    ...Also by default the internal memory is mounted to /mnt/nand and if you want to use it as a default storage to install apps on it you need to edit /etc/vold.fstab to look like that:

    dev_mount flash /mnt/sdcard auto /devices/virtual/block/mtdblock8
    dev_mount sdcard /mnt/sdcard/external_sd auto /devices/platform/rk28_sdmmc0/mmc_host/mmc0
    dev_mount usb /mnt/usb auto /devices/platform/dwc_otg/usb1


    I hope that helps... And fun_ thanks for sharing! ;)
    2
    Anybody else with the arnova 10b, tried it yet?

    Got the Arnova 10b 8gb with the capacitive screen, here's where I'm at.

    Try 1: Used AFPTool to unpack the official 3.6.0 update.img from Archos, replaced boot.img and system.img with the ones from AndroTab, repacked with AFPTool and flashed.

    Result: Boots CM7 to the calibration screen. Screen is completely unresponsive. No hardware "back" button to try skipping calibration. Flashed back to 3.6.0 with RKAndroidBatchUpgrade.


    Try 2: Used NewTuxFlash to remove TSCalibration.apk from system.img, repacked with AFPTool and flashed.

    Result: Boots CM7 to home screen. Screen is still completely unresponsive. Flashed back to 3.6.0.


    So, now I'm stuck. I suspect that I need the screen calibration tool from the official 3.6.0 update but NewTuxFlash doesn't want to open the system.img file from the official update or from the dump I made from my tablet using rkdump. I thought it should be able to open the one from my rkdump, but maybe I did something wrong... I'll try using rkutils under Linux later today.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone