Jump to content


Photo

Racer 2.6.32 kernel


  • Please log in to reply
94 replies to this topic

#41
deadlink

deadlink

    Regular

  • Members
  • PipPip
  • 91 posts
  • Location:Russia, Samara
  • Interests:programming
  • Devices:ZTE RACER
  • Twitter:@deadlink

There is a device /dev/msm_camera/.

kernel with msm_camera in /dev/:
Attached File  test_kernel.zip   3.23MB   29 downloads

Maybe something is wrong with init?

Edited by deadlink, 08 June 2011 - 06:48 AM.

  • 0
Posted Image

#42
rickywyatt

rickywyatt

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,491 posts
  • Gender:Male
  • Location:London UK
  • Interests:Android
    Rom Modding &
    MoDaCo moderator
  • Devices:OneX Samsung S3 LTE Nexus 7
  • Twitter:@rickywyatt1982
when opening the camera i get this from logcat
V/CameraHolder( 1040): open camera 0

D/QualcommCameraHardware(  135): createInstance: E

E/QualcommCameraHardware(  135): startCamera X: /dev/msm_camera/control0 open fa

iled: Unknown error: 0!

E/QualcommCameraHardware(  135): createInstance: startCamera failed!

D/QualcommCameraHardware(  135): ~QualcommCameraHardware E

D/QualcommCameraHardware(  135): ~QualcommCameraHardware X

E/CameraService(  135): Fail to open camera hardware (id=0)

E/CameraHolder( 1040): fail to connect Camera

E/CameraHolder( 1040): java.lang.RuntimeException: Fail to connect to camera ser

vice

E/CameraHolder( 1040):  at android.hardware.Camera.native_setup(Native Method)

E/CameraHolder( 1040):  at android.hardware.Camera.<init>(Camera.java:258)

E/CameraHolder( 1040):  at android.hardware.Camera.open(Camera.java:220)

E/CameraHolder( 1040):  at com.android.camera.CameraHolder.open(CameraHolder.jav

a:124)

E/CameraHolder( 1040):  at com.android.camera.Camera.ensureCameraDevice(Camera.j

ava:1794)

E/CameraHolder( 1040):  at com.android.camera.Camera.startPreview(Camera.java:18

46)

E/CameraHolder( 1040):  at com.android.camera.Camera.access$5900(Camera.java:94)



E/CameraHolder( 1040):  at com.android.camera.Camera$3.run(Camera.java:938)

E/CameraHolder( 1040):  at java.lang.Thread.run(Thread.java:1019)

I/ActivityManager(  213): Displayed com.android.camera/.Camera: +1s358ms (total

  • 0
Remember to read the fourm rules<br /><br />Maker of the AIO tool for Orange San Diego here<br />and the maker of the Motorola Razr I AIO tools here

#43
TigTex

TigTex

    Enthusiast

  • Members
  • PipPipPip
  • 177 posts
  • Gender:Male
  • Location:Lisbon, Portugal
  • Devices:ZTE Racer and ZTE Blade
Can you post a dmesg output here?

try to do "dmesg | grep camera > /sdcard/dmesg.log"

The error in the logcat is different than with my kernel (not found vs open failed).

deadlink, the smartass makes the phone run at lower speeds when the screen is off and always run at full speed when it's on (i read that somewhere, hope it's correct). That's why maybe the battery drains more when using. But you have better performance, that's what matters ;)
also, did you made that new board-mooncake?

Edited by TigTex, 08 June 2011 - 01:36 PM.

  • 0
.::. TigTex .::.

#44
deadlink

deadlink

    Regular

  • Members
  • PipPip
  • 91 posts
  • Location:Russia, Samara
  • Interests:programming
  • Devices:ZTE RACER
  • Twitter:@deadlink

did you made that new board-mooncake?

I replaced some code of the 29 core from zte sources. If you read /proc/devices you will see msm_camera! Its mean that camera work... Does not it?

  • 0
Posted Image

#45
TigTex

TigTex

    Enthusiast

  • Members
  • PipPipPip
  • 177 posts
  • Gender:Male
  • Location:Lisbon, Portugal
  • Devices:ZTE Racer and ZTE Blade

I replaced some code of the 29 core from zte sources. If you read /proc/devices you will see msm_camera! Its mean that camera work... Does not it?


it means that the device is there, doesn't mean it works... see the "dmesg" output. There is something there related to the camera that might help you.
Also, i see you've deleted the sections related to the brasilian zte camera... we want their camera to work...

i think you need this code

#ifdef CONFIG_MSM_CAMERA
static uint32_t camera_off_gpio_table[] = {
	 
#if 0 
	GPIO_CFG(0,  0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT0 */
	GPIO_CFG(1,  0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT1 */
	GPIO_CFG(2,  0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT2 */
	GPIO_CFG(3,  0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT3 */

Edited by TigTex, 08 June 2011 - 02:25 PM.

  • 0
.::. TigTex .::.

#46
Sebastian404

Sebastian404

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,104 posts
  • Gender:Male
  • Location:Somwhere Near Mountain View, California
  • Devices:lots of them
  • Twitter:@sebastian404

Just use the tomg's kernel + the zipped files and you get a perfect working kernel. No camera though.


looking at the files, there is no real difference between TigTex's and Deadline's updates to my first commit, tho the TS_OFFSET_X & TS_OFFSET_Y in msm_ts.c seems to be different, the fix for the camera seems to be in the config....


# CONFIG_MT9D115 is not set
# CONFIG_MT9D113 is not set
is now:
CONFIG_MT9D115=y
CONFIG_MT9D115_QTECH_SUNNY_SOCKET=y
# CONFIG_MT9D115_QTECH_SUNNY_FPC is not set
CONFIG_MT9D113=y
CONFIG_MT9D113_QTECH_SUNNY_SOCKET=y

and

# CONFIG_SENSOR_ADAPTER is not set
is now
CONFIG_SENSOR_ADAPTER=y


I managed to loose my Racer a few weeks ago so I can really test this.....

  • 0

#47
TigTex

TigTex

    Enthusiast

  • Members
  • PipPipPip
  • 177 posts
  • Gender:Male
  • Location:Lisbon, Portugal
  • Devices:ZTE Racer and ZTE Blade
About the calibration, you can use msm_ts.c new offsets and also new values on my board-mooncake.c . I am sure it's perfectly calibrated.
About the config, the MT9D115 and MT9D113 are the 2 differences between my stock rom (tmn softstone) and the brazilian x850 (the camera doesnt work on 2.2/2.3 roms because the kernel doesn't have that modules enabled). I've been testing the camera with and without that modules. No change. So it's something that deadlink did on it's file that made this work (well, the msm_camera is in /dev). But he removed support for mt9d115, the main reason for me to make a custom kernel... also he's board-mooncake has wrong calibration values and battery voltages. This night I'll try to skype with deadlink and have a better look at all of this. Maybe tomorow we have a fully working kernel ;)

  • 0
.::. TigTex .::.

#48
rickywyatt

rickywyatt

    Hardcore

  • Moderator Team
  • PipPipPipPipPipPip
  • 1,491 posts
  • Gender:Male
  • Location:London UK
  • Interests:Android
    Rom Modding &
    MoDaCo moderator
  • Devices:OneX Samsung S3 LTE Nexus 7
  • Twitter:@rickywyatt1982
@ Sebastian404 could you build a kernel ill be happy to test it

  • 0
Remember to read the fourm rules<br /><br />Maker of the AIO tool for Orange San Diego here<br />and the maker of the Motorola Razr I AIO tools here

#49
electricdel

electricdel

    Newbie

  • Members
  • Pip
  • 28 posts
  • Gender:Male
  • Devices:HTC Desire HD
Any chance of a complete update.zip to try?
Many Thanks

  • 0

#50
deadlink

deadlink

    Regular

  • Members
  • PipPip
  • 91 posts
  • Location:Russia, Samara
  • Interests:programming
  • Devices:ZTE RACER
  • Twitter:@deadlink
I build kernel with working camera! ;)
Maybe kernel config not optimized, and touchscreen without tigtex offsets, but all work now =)
Tigtex, i don't know what is the difference in brazilian Racer. Try to fix it with my config and board.
Attached File  test_kernel.zip   3.26MB   25 downloads
And config:
Attached File  config_camera_work.txt   51.61KB   28 downloads

  • 0
Posted Image

#51
lgomes

lgomes

    Newbie

  • Members
  • Pip
  • 9 posts
  • Devices:ZTE x850
deadlink,

i flash this test_kernel.zip with working camera, but my brazilian Racer freeze at android logo boot.

You get kernel cyanomodgen ??? With repo sync ???

If yes, where to place and do an make menuconfig ???

In trying to compile the kernel but i dont find a way to put the stock config.

============================ EDIT ==================================

Sorry, the ROM work, i format some things before install, so the issue.

But in brazilian Racer the cam dont work with your ROM.

Show the message box cannot connect to camera.

Edited by lgomes, 09 June 2011 - 02:34 AM.

  • 0

#52
deadlink

deadlink

    Regular

  • Members
  • PipPip
  • 91 posts
  • Location:Russia, Samara
  • Interests:programming
  • Devices:ZTE RACER
  • Twitter:@deadlink

But in brazilian Racer the cam dont work with your ROM.

I'm not saying that will work with brazilian Racer =)
Try this kernel. It is build on the cyanogen repository with tigtex's touchscreen offcets and i think all cool...
Attached File  racer_kernel_2.6.32.9_by_deadlink.zip   3.26MB   74 downloads

  • 0
Posted Image

#53
mladenovic73

mladenovic73

    Diehard

  • Members
  • PipPipPipPip
  • 362 posts
  • Gender:Male
  • Location:Serbia
  • Interests:Android phones,medicine
  • Devices:ZTE Racer,Huawei G300

I'm not saying that will work with brazilian Racer =)
Try this kernel. It is build on the cyanogen repository with tigtex's touchscreen offcets and i think all cool...
Attached File  racer_kernel_2.6.32.9_by_deadlink.zip   3.26MB   74 downloads


The best kernel so far.Thanx.Keep the good work

  • 0

#54
mladenovic73

mladenovic73

    Diehard

  • Members
  • PipPipPipPip
  • 362 posts
  • Gender:Male
  • Location:Serbia
  • Interests:Android phones,medicine
  • Devices:ZTE Racer,Huawei G300

I'm not saying that will work with brazilian Racer =)
Try this kernel. It is build on the cyanogen repository with tigtex's touchscreen offcets and i think all cool...
Attached File  racer_kernel_2.6.32.9_by_deadlink.zip   3.26MB   74 downloads


The best kernel so far.Thanx.Keep the good work

Sorry for double post

Edited by mladenovic73, 09 June 2011 - 10:53 AM.

  • 0

#55
Vlatko25

Vlatko25

    Diehard

  • Members
  • PipPipPipPip
  • 335 posts
  • Gender:Male
  • Location:Macedonia-Gostivar
  • Devices:ZTE RACER 2.3.7 #257 Racer Boy

The best kernel so far.Thanx.Keep the good work

Sorry for double post

B
How to install the new Kernel?anyone explain pls

  • 0

#56
deadlink

deadlink

    Regular

  • Members
  • PipPip
  • 91 posts
  • Location:Russia, Samara
  • Interests:programming
  • Devices:ZTE RACER
  • Twitter:@deadlink

How to install the new Kernel?anyone explain pls

1.Copy the kernel to the root of your sd-card
2.Start clockworkmod recovery
3.Choose "instal zip from sdcard" - "choose zip"
4.After installing, do "reboot system now"

Edited by deadlink, 09 June 2011 - 12:03 PM.

  • 0
Posted Image

#57
Vlatko25

Vlatko25

    Diehard

  • Members
  • PipPipPipPip
  • 335 posts
  • Gender:Male
  • Location:Macedonia-Gostivar
  • Devices:ZTE RACER 2.3.7 #257 Racer Boy
[quote name='deadlink' date='Jun 9 2011, 14:02' post='1724850']
1.Copy the kernel to the root of your sd-card
2.Start clockworkmod recovery
3.Choose "instal zip from sdcard" - "choose zip"
4.After installing, do "reboot system now"
[
Thank it works,really.

  • 0

#58
Jésus Alberto

Jésus Alberto

    Newbie

  • Members
  • Pip
  • 35 posts
  • Devices:HTC Excalibur

I'm not saying that will work with brazilian Racer =)
Try this kernel. It is build on the cyanogen repository with tigtex's touchscreen offcets and i think all cool...
Attached File  racer_kernel_2.6.32.9_by_deadlink.zip   3.26MB   74 downloads


The camera does not work yet. What could be the reason ZTE had made a different hardware to the Racer that came to here?

  • 0

#59
deadlink

deadlink

    Regular

  • Members
  • PipPip
  • 91 posts
  • Location:Russia, Samara
  • Interests:programming
  • Devices:ZTE RACER
  • Twitter:@deadlink

The camera does not work yet. What could be the reason ZTE had made a different hardware to the Racer that came to here?

Maybe tigtex wil be fix it... I don't know why zte had made a different hw...

  • 0
Posted Image

#60
equiliym

equiliym

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,346 posts
  • Gender:Male
  • Location:Novi Sad
  • Devices:ZTE Racer
  • Twitter:@equiliym
can i somehow turn off leds in red and green buttons? its rather annoying for them to glow every time i turn my display on

  • 0
Suffering-oriented programming.. "First make it possible. Then make it beautiful. Then make it fast."
if i helped please press the vote up button :3




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users