MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

[HOWTO] Build and update kernel using CWM

22 posts in this topic

Posted · Report post

I finally found out how to build a kernel and flash it using CWM. Here is a step by step guide that tells you how to do it. As a starting point, I assume the device is not rooted and comes directly out of the box.

First, you need the device and an SD card. Make a folder called "image" on the card. This folder is used for flashing ClockworkMod - download it from here, extract the image.bin into the image folder and then go to the settings of Android and use the SD flash method to install it.

CWM is installed now - fine. Let's move on to getting root access on the device. Copy this zip file onto your SD card.

After that, reboot the device and hold the Power and VOL Down buttons simultaneously. CWM will start up - use the "Install zip file" option to install the zip file and - voila - your device is rooted now.

Now on to the real stuff - to be able to install a new kernel we have to get the image of the stock kernel out of the device first - in order to do so, make a full Backup in CWM - it is copying a file called "boot.img" onto your SD card.

This boot.img contains the actual kernel and the ramdisk. We have to unpack both of them using a script called split_bootimg.pl - it throws out two files: boot.img-kernel.gz and boot.img-ramdisk.cpio.gz. Make a backup of both of them in case anything goes wrong!

If you already compiled the kernel you just have to do the following easy steps:

Take the boot.img-ramdisk.cpio.gz and your own zImage and combine them into a new boot.img which can be flashed using CWM's restore method. You need a tool called mkbootimg for that. Utilize it using the following command:

./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.cpio.gz --base 0x02600000 -o boot.img

Done. Copy the new boot.img onto your SD and overwrite the old one. Make sure you adjust the MD5 sums so CWM doesn't complain and flash it using the restore method.

I followed these simple instructions to build my own kernel:

http://forum.xda-developers.com/showthread.php?t=1686310

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Sadly, the camera driver is missing in the kernel source.

I tried patching the Blade's camera driver into it, but nothing happens with that either:

https://github.com/K...0157729d96f6db7

So it looks like we can gain the advantage of really nice customized kernels but only with the precompiled Wi-Fi module and no camera. Shame.

If somebody wants to build my kernel, here is the source: https://github.com/schmatzler/zte-tureis-optimized

A flashable boot.img can be downloaded here: http://schmatzler.de/boot.img

MD5SUM: 0737828b3ee7f69c3c0ce1bda05f95d8

I already added a lot of governors and the BFQ scheduler in there, you can activate them with SetCPU. Have a lot of fun :)

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

A little follow-up on the camera: If I compile my own kernel and enter *983*24474636# into the dialer, it shows "Sensor error".

When I use the stock kernel, it does at least show that it's accessing an MT9T112 sensor.

Sadly my knowledge about driver engineering is absolutely nonexistant. So I can't do anything about that problem.

I even opened the device and looked if there is anything written on the sensor, but - no. Just a part number that is nowhere to find.

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted · Report post

Do you have the original kernel that shipped with your device?

If yes, get /proc/config.gz from your phone using the original kernel and check the difference between this and the kernel config you use. Maybe you'll find some more info about the camera.

I'm developing a custom CM7 rom for ZTE Racer, I also ported 2.6.35.7 kernel from cyanogenmod's source and camera was a thing that wasn't working that I fixed.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

I use the original config.gz, but it's not working.

The config option for the MT9T112 is activated in the default config, but it is only recognized with the stock kernel. It just looks like ZTE did not include all code that is neccessary for the device. I also contacted them, but no answer so far. I doubt I will get one.

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted · Report post

Weird, MT9T11X option is supposed to enable the camera driver. This driver is also used in ZTE Racer & works fine. Maybe the board file isn't updated properly by ZTE as you said.

0

Share this post


Link to post
Share on other sites

Posted · Report post

I will order a broken ZTE Blade now on Ebay and swap out the camera.

If I can get that to work I have a better camera than I already have and will continue with ROM development.

Maybe I can get a newer Android tree to run.

0

Share this post


Link to post
Share on other sites

Posted · Report post

I will order a broken ZTE Blade now on Ebay and swap out the camera.

If I can get that to work I have a better camera than I already have and will continue with ROM development.

Maybe I can get a newer Android tree to run.

If you need any help about development I'm interested to help... maybe you won't need to change the camera at all. I'll look into your sources in the next 2 days that I have free time, maybe I can fix it.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

That would be very cool.

I will get the Blade's camera nevertheless...because it is a bit better - 5MP instead of just the 3MP in the Tureis.

The config screen is giving me the following information:

Camera Information:

ID:0x2682

NMae:MT9T112-3.0Mp-AF

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted · Report post

That would be very cool.

I will get the Blade's camera nevertheless...because it is a bit better - 5MP instead of just the 3MP in the Tureis.

The config screen is giving me the following information:

Camera Information:

ID:0x2682

NMae:MT9T112-3.0Mp-AF

You can get the camera but the difficult thing will be to swap the camera modules. I don't know if it's easy or not, but there's a possibility of breaking the camera completely (or the phone). I wouldn't risk it.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

I already opened the Tureis, it's a piece of cake :)

I got a broken Orange San Francisco (=ZTE Blade) now. Display and camera module are still intact. Will swap out the module and then let's see if it works. :)

There is QTECH written on it, I think there is a driver somewhere.

Edit:

The new module works with the stock rom, but the image is turned 90 degrees.

The sensor information is exactly the same:

Camera Information:

ID:0x2682

NMae:MT9T112-3.0Mp-AF

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Looks like I got really unlucky here.

I ported every known camera sensor for the ZTE Blade into the Tureis' kernel but it still won't initialize. Not the original module, nor the one from the Orange San Francisco:

<3>[02-03 03:09:59.450000] [66: mt9t11x_wq]mt9t11x_sensor_dev_probe: rc=0x0,model_id = 0x2682

<3>[02-03 03:09:59.450000] [66: mt9t11x_wq]mt9t11x_sensor_dev_probe: model_id = 0x2682

<3>[02-03 03:10:00.850000] [66: mt9t11x_wq]mt9t11x_sensor_dev_probe: rc=0x0,model_id = 0x2682

<3>[02-03 03:10:00.850000] [66: mt9t11x_wq]mt9t11x_sensor_dev_probe: model_id = 0x2682

<3>[02-03 03:10:01.050000] [66: mt9t11x_wq]msm_i2c msm_i2c.0: (007a) Error during data xfer (-5)

<3>[02-03 03:10:01.050000] [66: mt9t11x_wq]msm_sync_init: failed to initialize mt9t11x

Both of them work in the stock kernel. It just looks like I got 2 unknown camera modules here.

I won't give up. Next thing is trying to get the 5MP version of the Blade sensor. There are just 2 options. It could be an OV5640 or an OV5642 - and drivers for both of them do exist. Wish me luck to get this sucker fully customized!

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted · Report post

I'm getting near it! Got the ZTE Blade with the OV5642 5MP sensor now and this one is being recognized via the kernel. It shows "OV5642" when I enter the dialer code mentioned above! :)

The Camera and the Camcorder app still crash, however. But I think I can resolve that problem in the next days.

Looks like I got a Frankenmobile now - upgraded camera with better resolution, yahoo. :)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok now I also got the kernel to populate /dev/msm_camera entries but it still doesn't work.

I'm afraid I need some help here. More infos:

0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok now I also got the kernel to populate /dev/msm_camera entries but it still doesn't work.

I'm afraid I need some help here. More infos: http://www.modaco.co...mera-to-tureis/

Hi mate, I try to roote it to use Iink2sd app, but when I put image.bin to Image folder, system updates from settings doing nothing, it found this file in Image folder but just rebooting my phone and when I press Power and Vol- FTM mode is on, no custom recovery,

ZTE tureis (UK not branded) GB 2.3.5 build TUREISV1.0.0B01, any ideas? thanks

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

The Image.bin from CWM should reboot your phone and start the Bootloader which will automatically overwrite your recovery partition with Clockworkmod.

At least that's what it did on my phone.

I flashed the Brightpoint Update first, though. BP_P725AV1.0.0B06.

You should try doing that first if CWM doesn't flash.

Edited by schmatzler
0

Share this post


Link to post
Share on other sites

Posted · Report post

The Image.bin from CWM should reboot your phone and start the Bootloader which will automatically overwrite your recovery partition with Clockworkmod.

At least that's what it did on my phone.

I flashed the Brightpoint Update first, though. BP_P725AV1.0.0B06.

You should try doing that first if CWM doesn't flash.

thanks, btw I can not find any downloadable this BP update and how to install it? via ZTE update tool or from SD Image folder?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Well I've done everything you mentioned, no lucky. Any image.bin file in the Image folder dosn't work at all. Just rebooting after "system update" has been selected.

not sure what to do now.

0

Share this post


Link to post
Share on other sites

Posted · Report post

I don't know how this could possibly happen.

As there is no fastboot active via USB in the bootloader there is no other way to root the device :(

The zergrush exploit has already been fixed...

0

Share this post


Link to post
Share on other sites

Posted · Report post

sorted, it was my SD card issue (weird) I have just put another memory card and all bin files updated straightaway, thanks

0

Share this post


Link to post
Share on other sites

Posted · Report post

Umm, you should of also mentioned me. After all I'm the one who manged to find out how to root the tureis

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.