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.

Building CyanogenMod7

144 posts in this topic

Posted (edited) · Report post

So, you think you can help! Or, you don't want to wait for Tom G to upload his latest build (I understand although I like his builds better).

As the source tree is public now, you can easily build CM7 on your PC!

I. Requirements

- Decent machine (dual-core CPU and at least 2GB of RAM)

- at least 10GB of free space

- Ubuntu 10.10

- Applications:

-- For 32&64bit systems:

git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
-- For 64bit only:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
WARNING! On Ubuntu 10.10, you need to add the partner repo:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"

sudo apt-get update
- Repo The main multi-git checkout system of Google. Manages huge lists of repositories as one. To install it:
  1. Open a superuser terminal (either from menu, or by typing "sudo bash" into a terminal
  2. Type "curl http://android.git.kernel.org/repo > /bin/repo" to acquire the latest repo launcher
  3. Type "chmod a+x /bin/repo" to give the launcher run capabilities
You're done! II. Acquiring the source code To download the source code, you already got repo. So now, we will open a new sudo terminal (see a bit back) and checkout the source to the root partition (somewhy when I've tried to check out to manually mounted partitions, it always failed). To do so, enter these lines to the terminal (these will create a directory "cm7" in your home directory, e.g. /home/[username]/cm7):
mkdir cm7


cd cm7


repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Now, we initialized the repo to this folder. And now, prepare some sandwiches and coffee to your PC, the download will take a loooooong time :P
repo sync -j16
(The j16 addon is needed to pre-initialize 16 projects, it is a bit faster and you know what will come) There are at this time 216 packages, some of them small (mostly the applications) or huge (prebuilt binaries, device trees). When the sync is done, you need to add the ZTE Blade device tree to the source. The device tree is maintained by Tom G (actually, he made it work, if you didn't know, all credits for the main releases goes to him and to anyone who contributed to the tree), if you accidentally talk with him, at least don't spare a simple "thanks" :D So, to get the device tree...
git clone git://github.com/TomGiordano/android_device_zte_blade.git device/zte/blade
As soon as it's done, set it up :huh: III. Setting up the device tree For given copyright stuff, we can't include some libraries, binaries in the device tree directly, but they are needed for building. So, you will need them from a device. Best choice is installing the latest CM7 build of Tom, and using that as a source. Now, to set up the device tree, you need your phone connected to your PC in debug mode (if you don't know what debug mode is, why are you here?? If you don't know how to enable debug mode over USB under Ubuntu, read here). Let's get back to that sudo terminal! Type
cd device/zte/blade

./extract-files.sh
to the terminal, assuming that you're still in the CM7 root directory (/home/[username]/cm7/). This will grab all needed files from your phone. With this, you finished setting up the tree. III.a Getting RomManager If you're building for the first time, you may need to grab the latest RomManager. To do so, run this command from terminal:
~/cm7/system/vendor/cyanogen/get-rommanager
IV. Building the source Building is the final and easiest part. In the sudo terminal, go back to CM7 root
cd ~/cm7
And now let's collect all devices in the source!
source build/envsetup.sh
This command will list all discovered devices. Next step is, to select the build you want to make. For this, type
lunch
in the terminal! This will bring up a list with a lot of devices. We specifically need the ones beginning with zte_blade-*! Usually I like to build the eng version (meaning engineer version), but you can of course try the userdebug one too! To select the device, look at the name, and get the number of it (in my case, zte_blade-eng's number is 34). Then type that and press enter. It will set up the environment to build CM7 for the Blade. After that, you only need to execute the following command:
make -j[n] bacon

Replace [n] with the number of your CPU's cores!

This will take some time, but after the first build, it will be a lot faster!

After the build, you can find the output at ~/cm7/out/target/product/blade/, called update.cm-XXXX-signed.zip. Put it on your SD card, and flash from Recovery.

If you want Google Apps, download the CM7 version from here.

Edited by fonix232
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Appendix A

Keeping your source up-to-date

To keep your source up-to-date, every time before you build it, do a repo sync from the root of CM7, and a git pull in the device tree:

cd ~/cm7

repo sync

cd device/zte/blade

git pull
After that, do Step IV. again! Appendix B Keeping your files up-to-date This step comes just after Appendix A. When you update the device tree you can't know if anyone added a required file or not. So, you have to run the extract-files script again:
cd ~/cm7/device/zte/blade

./extract-files.sh

This way you can ensure you're totally fresh :P

Edited by fonix232
0

Share this post


Link to post
Share on other sites

Posted · Report post

Will this Work in any Debian Based enviroment e.g. Debian Squeeze?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Will this Work in any Debian Based enviroment e.g. Debian Squeeze?

This tutorial is directly for Ubuntu Linux 10.10 (mostly x64). I have not tested it on any other environment, so I can't guarantee it will work.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thank you for this. building TOM G's latest rom now :P

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for spreading the knowledge.

0

Share this post


Link to post
Share on other sites

Posted · Report post

wow thank you so much for spreading this, i gained so mych information about android since in bought my ZTE BLADE. android is truly amazing.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks!!

This is exactly what I really needed to start to compile myself the android system

About Debian, I'm just downloading all the sources and let's see if it will work :P

0

Share this post


Link to post
Share on other sites

Posted · Report post

anyone had any success? repo sync is so awfully slow here!

0

Share this post


Link to post
Share on other sites

Posted · Report post

anyone had any success? repo sync is so awfully slow here!

Yes. and yes it is slow, but that's because 1X projects are all being synced...

0

Share this post


Link to post
Share on other sites

Posted · Report post

Just ended now my first attempt.

I have the get-rommanager in this path:

cm7/vendor/cyanogen/get-rommanager

and not

cm7/system/vendor/cyanogen/get-rommanager

Apart this, I'm trying to compile the image...it shouldn't take too long

0

Share this post


Link to post
Share on other sites

Posted · Report post

Yes. and yes it is slow, but that's because 1X projects are all being synced...

great! is the white screen bug sorted? and any general speed-up in ui performance? would be great if you can share your own build :-)

0

Share this post


Link to post
Share on other sites

Posted · Report post

First problem:

make: *** No rule to make target `vendor/zte/blade/proprietary/reg_code', needed by `out/target/product/blade/system/wifi/regcode'. Stop.

make: *** Waiting for unfinished jobs....

Searched for that file, but without clue.

0

Share this post


Link to post
Share on other sites

Posted · Report post

great! is the white screen bug sorted? and any general speed-up in ui performance? would be great if you can share your own build :-)

TBH. it is better than r2 by a small bit, but all in all it is best for TOM G to release his official updates instead of me simply compiling the source and handing it out, would be quite silly really.. sorry

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

TBH. it is better than r2 by a small bit, but all in all it is best for TOM G to release his official updates instead of me simply compiling the source and handing it out, would be quite silly really.. sorry

Thanks for the info. re: sharing the rom, I totally understand where you're coming from :-)

EDIT: alright, just finished building mine as well, used unzip-files.sh instead to extract from a de-crossed rom with saunalahti ril

Edited by whatcolour
0

Share this post


Link to post
Share on other sites

Posted · Report post

First problem:

make: *** No rule to make target `vendor/zte/blade/proprietary/reg_code', needed by `out/target/product/blade/system/wifi/regcode'. Stop.

make: *** Waiting for unfinished jobs....

Searched for that file, but without clue.

Mine also stops with same error.. :P

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

First problem:

make: *** No rule to make target `vendor/zte/blade/proprietary/reg_code', needed by `out/target/product/blade/system/wifi/regcode'. Stop.

make: *** Waiting for unfinished jobs....

Searched for that file, but without clue.

Is that a typo or are there really 2 forms reg_code and regcode?

It's easy enough to fix, either fix the type if that's causing the issue or check that extract_files.sh/unzip_files grab it from your phone/rom or remove it from the copy steps - I'd try the first option since it may well be needed, I think it tells the wifi driver which region you are in and there fore what wifi frequencies can legally be used.

Edited by rjm2k
0

Share this post


Link to post
Share on other sites

Posted · Report post

Is anybody controlling a single project with allocated work to team members?

or is this a free for all to see who can build it the quickest? ;o)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Just a quick one, can someone confrim then that the white screen issue has gone and been fixed?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is anybody controlling a single project with allocated work to team members?

or is this a free for all to see who can build it the quickest? ;o)

At the moment i think it's pretty much a free for all still, hopefully once/if this becomes an official cyanogen build it will come under more control with access and code reviews for others to add to.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Is that a typo or are there really 2 forms reg_code and regcode?

It's easy enough to fix, either fix the type if that's causing the issue or check that extract_files.sh/unzip_files grab it from your phone/rom or remove it from the copy steps - I'd try the first option since it may well be needed, I think it tells the wifi driver which region you are in and there fore what wifi frequencies can legally be used.

Actually yesterday night I got it working changing the name in reg_code (or regcode I don't remember now).

Anyway I got a update.zip but, after flash it, the phone went into a reboot loop.

Later I'll probably give it another try.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Nice one, ill try this out on my linux mint later!

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Fixed thanks to fonix. :P

Edited by punkmilitia
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

I post here my experience while building this rom. I hope that some informations will help people to build the rom, but in the end my final rom doesn't work (the phone keeps rebooting in clockmodwork)

First I describe you my building environment :

I'm using Debian Sid 32 bits for my day to day work, but for my first try compiling cyanogenmod, I wanted to follow as close as possible the tuto so I created a ubuntu 10.10 64bits chroot.

You can do this with theses commands under any linux distributions (You just need to have deboostrap installed) with a 64bits linux kernel (so you can do this on a 32bits user space system with a 64bit kernel).

All the commands are done in root

# mkdir ubuntu

# debootstrap --arch=amd64 --variant=buildd --verbose maverick ubuntu

# mount procfs -t proc ubuntu/proc/

# mount sysfs -t sysfs ubuntu/sys/

# mount -o bind /dev ubuntu/dev/

# mount -o bind /dev/pts/ ubuntu/dev/pts/

# chroot ubuntu

Then, I followed the instructions of the tutorial, but I just want to add that you must add the partner repository BEFORE installing the packages to have sun-java6 installed.

Everything worked except for the extract-file part.

I had the same problem as Pierg75 and dannejo (I use JJ9 which must miss some files), so I used unzip-file.sh to extract the file from some zipped rom. (BTW the script has some typo problem, I give you a corrected one on my ftp).

I tried to extract the file from differents roms (cyanogen_blade-ota-cm7-beta2.zip, r0.2_update_de-crossed_blade_signed.zip, flb-froyo-blade-r8a.zip and Japanese_Jellyfish_RLS9.zip) but none of them had all the required files...

So I've done a mix of all of them using this priority: cyanogen_blade-ota-cm7-beta2.zip > r0.2_update_de-crossed_blade_signed.zip > flb-froyo-blade-r8a.zip > Japanese_Jellyfish_RLS9.zip.

I also give you the resulted directory containing all the proprietary files on my ftp.

And then I successfully compiled the rom (which is also on the ftp), then flashed it on my phone (I formated /boot /system /data and /cache), but it doesn't work.

The phone stay 1 minute on the ZTE blade splash screen and then reboot on clockworkmod recovery..

Here are all the files I was speaking about: http://paulgrandperrin.free.fr/android/

Do you have any ideas why the rom is not booting?

And btw thanks to everyone involved in custom rom development for the zte!

0

Share this post


Link to post
Share on other sites

Posted · Report post

And then I successfully compiled the rom (which is also on the ftp), then flashed it on my phone (I formated /boot /system /data and /cache), but it doesn't work.

The phone stay 1 minute on the ZTE blade splash screen and then reboot on clockworkmod recovery..

Do you have any ideas why the rom is not booting?

I have the same problem.

Installed the new rom, stays for some secs on the green android screen and them reboot into recovery mode.

I used a clean (not really :P ) debian 64bit machine to build the image without setting up a temp ubuntu installation.

0

Share this post


Link to post
Share on other sites
This topic is now closed to further replies.

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