Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,807 Members 53,170 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] unofficial CyanogenMod7 port for RK2818/RK2918 tablets

Tip us?
 
fun_
Old
(Last edited by fun_; 26th November 2011 at 09:00 AM.)
#1  
Senior Member - OP
Thanks Meter 637
Posts: 2,376
Join Date: Aug 2010
Default [DEV] unofficial CyanogenMod7 port for RK2818/RK2918 tablets

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.ph...on#Google_Apps (Google Apps)
http://wiki.cyanogenmod.com/index.ph...ng_from_source
http://source.android.com/source/
http://review.cyanogenmod.com/#q,status:merged,n,z (CyanogenMod merged changes)
http://forum.xda-developers.com/show....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_externa...erbread-naobsd (placeholder for patches to cherry-pick)
https://github.com/naobsd/cm_framewo...erbread-naobsd (placeholder for patches to cherry-pick)
https://github.com/naobsd/cm_package..._TSCalibration
https://github.com/naobsd/cm_system_...erbread-naobsd (placeholder for patches to cherry-pick)
https://github.com/naobsd/rkutils

* links
http://www.arctablet.com/blog/archos...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/showthrea...nogenMod-V.7.1 bq Verne Plus
http://gathering.tweakers.net/forum/...s/1456249/last Yarvik TAB210
The Following 8 Users Say Thank You to fun_ For This Useful Post: [ Click to Expand ]
 
fun_
Old
(Last edited by fun_; 26th November 2011 at 08:59 AM.)
#2  
Senior Member - OP
Thanks Meter 637
Posts: 2,376
Join Date: Aug 2010
* 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)
The Following User Says Thank You to fun_ For This Useful Post: [ Click to Expand ]
 
fun_
Old
(Last edited by fun_; 26th November 2011 at 12:12 PM.)
#3  
Senior Member - OP
Thanks Meter 637
Posts: 2,376
Join Date: Aug 2010
* 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...e_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:
Select Code
echo 1 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
device mode:
Code:
Select Code
echo 0 > /sys/bus/platform/drivers/dwc_otg/force_usb_mode
or, try this app: http://forum.xda-developers.com/show...&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:
Select 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:
Select 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:
Select 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:
Select Code
/data/misc/pointercal
/data/misc/idc/*
The Following 2 Users Say Thank You to fun_ For This Useful Post: [ Click to Expand ]
 
jschill31
Old
#4  
jschill31's Avatar
Senior Member
Thanks Meter 141
Posts: 673
Join Date: Jul 2010
Location: Midwest
Fun,

Any chance of a Telechip port?

Cheers


HTC DNA 4G LTE
Nexus 7 Tablet
Sony S Tablet (My 3yr old gets more use out of it than me)
Toshiba AT10-A (someone please figure out root)
EVO 4G LTE retired)
HTC INC (retired)
HTC Hero (retired)
Nook Color (retired)
Want an ego boost? Go to: www.peopleofwalmart.com
 
snipes420
Old
(Last edited by snipes420; 24th April 2011 at 06:15 AM.)
#5  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Jul 2007
Location: Creston

 
DONATE TO ME
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...
 
geoRG77
Old
(Last edited by geoRG77; 25th April 2011 at 09:56 AM.)
#6  
geoRG77's Avatar
Member
Thanks Meter 3
Posts: 41
Join Date: Oct 2006
fun_ is working on audio support, but video support seems to be hard to add, any help is welcome
AndroTab.info: site dedicated to provide technical informations and resources for development of cheap Android tablets.
 
lefeudedieu
Old
(Last edited by lefeudedieu; 24th April 2011 at 05:10 PM.)
#7  
lefeudedieu's Avatar
Senior Member
Thanks Meter 5
Posts: 374
Join Date: Feb 2010
Location: Toulouse
Hi,

I have already adapted CM7 to RK2808 on Rocktab resistive screen.

Sound works and video MP4.

If these elements can help you:

http://www.slatedroid.com/topic/1483...en-cm7-080211/

I noticed a lot of files missing .so in the lib in your system.img.



For the sensors you can try to take those CM7 for HTC G1.

http://forum.xda-developers.com/forumdisplay.php?f=448

And rename for RK2818.

This had worked on CM6 on APAD after disabling the rotation parameters in Menu Cyanogen.
DREAM : FroYo Relax
Dapeng A8500
ASUS transformer
ZT280 C91
WOPAD i7
WOPAD 7001
APAD RK2808
EKEN M001
ROCKTAB RK2818
 
geoRG77
Old
(Last edited by geoRG77; 25th April 2011 at 09:56 AM.)
#8  
geoRG77's Avatar
Member
Thanks Meter 3
Posts: 41
Join Date: Oct 2006
@lefeudedieu: Hi and thanks for your reply, I will try it
AndroTab.info: site dedicated to provide technical informations and resources for development of cheap Android tablets.
 
fun_
Old
(Last edited by fun_; 25th April 2011 at 04:23 AM.)
#9  
Senior Member - OP
Thanks Meter 637
Posts: 2,376
Join Date: Aug 2010
Quote:
Originally Posted by snipes420 View Post
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.

Quote:
Originally Posted by snipes420 View Post
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

Quote:
Originally Posted by snipes420 View Post
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.

Quote:
Originally Posted by snipes420 View Post
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.

Quote:
Originally Posted by snipes420 View Post
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.

Quote:
Originally Posted by snipes420 View Post
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.
The Following User Says Thank You to fun_ For This Useful Post: [ Click to Expand ]
 
aduhai
Old
#10  
Member
Thanks Meter 3
Posts: 32
Join Date: Mar 2010
Location: Kuala Terengganu, Malaysia
Flash on my Acho C901 Pro MID ( www.acho.com.cn ), working fine, but when enable Wifi, MID keep restarting and cant open screen anymore.

Tags
rk2818
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes