Jump to content


Photo

[DEVS]CyanogenMod For The Andypad.

- - - - -

  • Please log in to reply
63 replies to this topic

#21
Sami Beck

Sami Beck

    Diehard

  • Developer Team
  • PipPipPipPip
  • 338 posts
  • Gender:Male
  • Devices:ZTE Blade, XOOM, Andypad Pro
  • Twitter:@SamSamoon

I compared your 2.06 and my old 2.06. both are same. so probably you can use 2.08 too.

but please don't think bootloader is compatible on all cases. on RK2818, some tablets are compatible, but some other tablets are not compatible. if incompatible bootloader is flashed, tablet will be bricked. it can't enter flash mode, so Windows flash tool can't reflash it on that case.



I see. I believe your issue can happen. I think reboot/poweroff service in stock init.rc is not normal. there is the reason why they were added.



thanks. now I understand Andypad Pro has Broadcom SDIO wifi, and at least fw_bcm4329.bin and nvram_B23.txt is needed. I'll add them in next image.
(and thanks for entire dmesg. I'll check it later)

--
btw wlan.ko module is just a wrapper. actual wifi driver is in kernel.
proprietary files currently I'm using is taken from N50DT ROM, but all of them should work on other RK2918 tablets. I also tried files from T760 ROM on my N50DT. it works fine of course.

Will you be uploading it to the source of the generic RK2918 image?

  • 0
Posted Image


Perfect Condition Unlocked GEN 2 Blade: £75

http://android.modac...ocked-for-sale/

#22
Sami Beck

Sami Beck

    Diehard

  • Developer Team
  • PipPipPipPip
  • 338 posts
  • Gender:Male
  • Devices:ZTE Blade, XOOM, Andypad Pro
  • Twitter:@SamSamoon

Also, if anyone wants them, i've uploaded the files here http://www.bristolco...andypad_cm7.rar


What does the system.img consist of? (as in where is it from)

  • 0
Posted Image


Perfect Condition Unlocked GEN 2 Blade: £75

http://android.modac...ocked-for-sale/

#23
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

Will you be uploading it to the source of the generic RK2918 image?


really sorry, my English is not well. I could not understand "it" and "the source of the generic RK2918 image", what is it?

  • 0

#24
hoahoa

hoahoa

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:window N50
Thank you for your great working, fun_.
I have red your thread in XDA. I have N50 like you. Few day ago, i make a CM7 img base on your system.img and booting.img. It is perfect, but still have some problem with 3G, TS and when connect with computer, it has only SD card, no internal memory ( in SDK 2.0, as connect to Computer, has 2 memory: SD and internal ). I have calib TS but then it wrong in left-bottom screen and it's still in " haptic feedback' condition as in lock screen. I have a question: how can i turn haptic feedback as i touch screen.
Hope you have final CM7 mod for N50.
TY

  • 0

#25
Csharpe

Csharpe

    Regular

  • Members
  • PipPip
  • 68 posts
  • Devices:HTC Desire, AndyPad

I compared your 2.06 and my old 2.06. both are same. so probably you can use 2.08 too.

but please don't think bootloader is compatible on all cases. on RK2818, some tablets are compatible, but some other tablets are not compatible. if incompatible bootloader is flashed, tablet will be bricked. it can't enter flash mode, so Windows flash tool can't reflash it on that case.



I see. I believe your issue can happen. I think reboot/poweroff service in stock init.rc is not normal. there is the reason why they were added.



thanks. now I understand Andypad Pro has Broadcom SDIO wifi, and at least fw_bcm4329.bin and nvram_B23.txt is needed. I'll add them in next image.
(and thanks for entire dmesg. I'll check it later)

--
btw wlan.ko module is just a wrapper. actual wifi driver is in kernel.
proprietary files currently I'm using is taken from N50DT ROM, but all of them should work on other RK2918 tablets. I also tried files from T760 ROM on my N50DT. it works fine of course.


I got WLAN working already, just make sure they're correctly referenced in the BoardConfig. Same chip as HTC Incredible etc.
Any idea on camera? I see in my dmesg that they're correctly initialized, but maybe I have to add the old camera.so to the build? I'm not so sure if that will work since CM7 requires other format, or the camera apk is just incompatible with dual cameras?

Logcat warns me about missing keylayout files too, maybe they should be included in vendor, although, most of it works.

unyaffs: do you unpack it right away to the mounted ext3 image? I'm not sure but I think I'm losing permissions somewhere. Step by step would be helpfull.

Great job so far!


  • 0

Posted Image



#26
Sami Beck

Sami Beck

    Diehard

  • Developer Team
  • PipPipPipPip
  • 338 posts
  • Gender:Male
  • Devices:ZTE Blade, XOOM, Andypad Pro
  • Twitter:@SamSamoon
Charpe you upload your files to your GitHub?

  • 0
Posted Image


Perfect Condition Unlocked GEN 2 Blade: £75

http://android.modac...ocked-for-sale/

#27
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

I got WLAN working already, just make sure they're correctly referenced in the BoardConfig. Same chip as HTC Incredible etc.


can you tell me detail?
did you try just adding 2 files mentioned in dmesg?
I think no need to change BoardConfig.mk.

Any idea on camera? I see in my dmesg that they're correctly initialized, but maybe I have to add the old camera.so to the build? I'm not so sure if that will work since CM7 requires other format, or the camera apk is just incompatible with dual cameras?


currently I'm not sure how mediaserver and vpu_server socket and libvpu works. need more time and investigation.

Logcat warns me about missing keylayout files too, maybe they should be included in vendor, although, most of it works.


then, some of buttons are not work correctly? which buttons?
and, as I said, I want to see "getevent -p", "ls /dev", "find /sys" and so on. I have no info about them.

unyaffs: do you unpack it right away to the mounted ext3 image? I'm not sure but I think I'm losing permissions somewhere. Step by step would be helpfull.


procedure should be same (I'm not sure exactly what you did), just "(sudo) unyaffs system.img" on ext3 system. what I asked is, please check your tool. if tool is wrong, "correct procedure" is meaningless...

thank you for your cooperation.

Edited by fun_, 01 December 2011 - 09:36 AM.

  • 0

#28
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

I have red your thread in XDA. I have N50 like you. Few day ago, i make a CM7 img base on your system.img and booting.img. It is perfect, but still have some problem with 3G, TS and when connect with computer, it has only SD card, no internal memory ( in SDK 2.0, as connect to Computer, has 2 memory: SD and internal ). I have calib TS but then it wrong in left-bottom screen and it's still in " haptic feedback' condition as in lock screen. I have a question: how can i turn haptic feedback as i touch screen.


thank you for your report!
which do you have, N50 or N50DT?

probably TS calibration is not needed (at least on my N50DT). please cancel it by pressing BACK.
I think internal NAND flash can be mounted from PC, but I'll check it again.

on N50DT, currently haptic heedback(vibrator) alwys work on every single touch :(
I'll check it too.

thank you.

  • 0

#29
hoahoa

hoahoa

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:window N50
My device is N50DT. Launcher 3.0 in SDK 2.0 has convinient multi task - buttom . How to use multi task in ADWlauncher CM7.
Is "accelerometer.invert_y=1" in build.prop needed?

  • 0

#30
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

My device is N50DT. Launcher 3.0 in SDK 2.0 has convinient multi task - buttom . How to use multi task in ADWlauncher CM7.
Is "accelerometer.invert_y=1" in build.prop needed?


sorry, no idea for launcher.

following 3 lines are needed for N50DT
accelerometer.flip_xy=1
accelerometer.invert_x=1
accelerometer.invert_z=1

  • 0

#31
Csharpe

Csharpe

    Regular

  • Members
  • PipPip
  • 68 posts
  • Devices:HTC Desire, AndyPad
dbus.conf and bluetooth folders still get wrong permissions.

Currently I've tried:

 # fix permissions on for BlueTooth - AndyPad kernel
    chown bluetooth bluetooth /system/etc/dbus.conf
    chown bluetooth bluetooth /system/etc/bluetooth/audio.conf
    chown bluetooth bluetooth /system/etc/bluetooth/input.conf
    chown bluetooth bluetooth /system/etc/bluetooth/main.conf


I'm not sure what's going on though... Dbus is acting weird. Any ideas?

  • 0

Posted Image



#32
Sami Beck

Sami Beck

    Diehard

  • Developer Team
  • PipPipPipPip
  • 338 posts
  • Gender:Male
  • Devices:ZTE Blade, XOOM, Andypad Pro
  • Twitter:@SamSamoon

dbus.conf and bluetooth folders still get wrong permissions.

Currently I've tried:

 # fix permissions on for BlueTooth - AndyPad kernel
    chown bluetooth bluetooth /system/etc/dbus.conf
    chown bluetooth bluetooth /system/etc/bluetooth/audio.conf
    chown bluetooth bluetooth /system/etc/bluetooth/input.conf
    chown bluetooth bluetooth /system/etc/bluetooth/main.conf


I'm not sure what's going on though... Dbus is acting weird. Any ideas?


Can I have a link to your git hub as Im interested in looking at the files!

  • 0
Posted Image


Perfect Condition Unlocked GEN 2 Blade: £75

http://android.modac...ocked-for-sale/

#33
Csharpe

Csharpe

    Regular

  • Members
  • PipPip
  • 68 posts
  • Devices:HTC Desire, AndyPad

Can I have a link to your git hub as Im interested in looking at the files!


I'm not going to release it as long as they don't work :) sorry.

fun_, after some more checking, I seem to lose all permissions & user groups on files right after build. in product/rk2918/system/*, all files just have my own uid... I really have to find how to fix this.

What command do you use exactly to build?
I do: . build/envsetup.sh
$lunch
$66
$make -j2


Edited by Csharpe, 01 December 2011 - 08:21 PM.

  • 0

Posted Image



#34
Sami Beck

Sami Beck

    Diehard

  • Developer Team
  • PipPipPipPip
  • 338 posts
  • Gender:Male
  • Devices:ZTE Blade, XOOM, Andypad Pro
  • Twitter:@SamSamoon

I'm not going to release it as long as they don't work :) sorry.

fun_, after some more checking, I seem to lose all permissions & user groups on files right after build. in product/rk2918/system/*, all files just have my own uid... I really have to find how to fix this.

What command do you use exactly to build?
I do: . build/envsetup.sh
$lunch
$66
$make -j2



I used the generic RK2918 and it only built a 33MB system :(

  • 0
Posted Image


Perfect Condition Unlocked GEN 2 Blade: £75

http://android.modac...ocked-for-sale/

#35
tumby

tumby

    Newbie

  • Members
  • Pip
  • 21 posts
  • Gender:Male
Copying over the /system/etc/firmware directory seems to have fixed wifi.

I've updated the zip on my server with that, plus some random apk changes, including replacing the launcher with Zeam, marketplace and removing some phone specific apk.

http://www.bristolco...andypad_cm7.rar

  • 0

#36
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

Copying over the /system/etc/firmware directory seems to have fixed wifi.

I've updated the zip on my server with that, plus some random apk changes, including replacing the launcher with Zeam, marketplace and removing some phone specific apk.

http://www.bristolco...andypad_cm7.rar


thank you for your info!

I'll add that 2 files for wifi in my repo/next my image. I'll try bluetooth too.

  • 0

#37
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

I used the generic RK2918 and it only built a 33MB system :(


if you need prebuilt working image, please use my image, or tumby's image.

  • 0

#38
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

fun_, after some more checking, I seem to lose all permissions & user groups on files right after build. in product/rk2918/system/*, all files just have my own uid... I really have to find how to fix this.


all files in product/rk2918/system/* are intermediate file to make system.img. they must have your own uid. nothing is wrong.

as I said, your previous procedure, "build, make empty ext3 image, mount, unyaffs system.img on ext3" is quite correct. but, please use correct unyaffs tool. you can check permissions just after unyaffs.

please, please believe me.

  • 0

#39
Csharpe

Csharpe

    Regular

  • Members
  • PipPip
  • 68 posts
  • Devices:HTC Desire, AndyPad
I got it to boot & extract to ext3 perfectly now. the other version of unyaffs was the solution. I still got a few questions though:
- As for the ext3 image, whenever I push something to it from adb, tablet doesn't want to boot anymore (how do you create the ext3 image, blocksize, rw, command?)


- Sometimes, even without pushing something, tablet doesn't want to boot anymore (shutdown wrong?)


- I've been trying to rewrite the touchscreen input for rockchip devices so it doesn't need calibration like a resistive touchscreen (capacitive doesn't need tweaking), and only need to invert the X-axis. This way it'll be more accurate, and the old method doesn't work for me anymore (since I'm using my own builds).
My current code: (InputReader.cpp)

Reads if axis needs to be inverted:
...

 if (! in.tryGetProperty(String8("touch.pointercal.invertX"), tempInvX)) {
        out.invertX = false;
    } else {
    	out.invertX = (tempInvX != 0.0f);
    }

    if (! in.tryGetProperty(String8("touch.pointercal.invertY"), tempInvY)) {
        out.invertY = false;
    } else {
    	out.invertY = (tempInvY != 0.0f);
    }
...


Code to actually invert the touch input, I'm using this code: (I'm not sure if mRaxAxes.y is actually the right one to use, pseudo it'd be x = screenwidth - x;)

//calibration for VE devices (rockchip)
       	if(mCalibration.invertX)
       	{
		x = mRawAxes.x.maxValue - x;
       	}

       if(mCalibration.invertY)
       	{
		y = mRawAxes.y.maxValue - y;
       	}



I'll release my file too, soon!

Edited by Csharpe, 02 December 2011 - 06:53 PM.

  • 0

Posted Image



#40
fun_

fun_

    Newbie

  • Members
  • Pip
  • 34 posts

I got it to boot & extract to ext3 perfectly now. the other version of unyaffs was the solution. I still got a few questions though:
- As for the ext3 image, whenever I push something to it from adb, tablet doesn't want to boot anymore (how do you create the ext3 image, blocksize, rw, command?)


- Sometimes, even without pushing something, tablet doesn't want to boot anymore (shutdown wrong?)


as I already explained, your ext3 creating procedure is correct. I think we should not use our time for it anymore. we should investigate real issue.

just for the record, here is my current command lines,
dd if=/dev/zero of=system_ext3.img bs=1M count=144
mkfs.ext3 system_ext3.img
mount -o loop system_ext3.img /mnt
cd /mnt
unyaffs /PATH/TO/system.img
umount /mnt

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users