Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,470 Members 40,899 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] CM7 Developers Thread

Tip us?
(Last edited by dalingrin; 22nd May 2011 at 08:06 PM.)
Recognized Developer - OP
Thanks Meter 2,754
Posts: 1,404
Join Date: Nov 2007
Default [DEV] CM7 Developers Thread

Please limit this thread to development comments and questions!
The users thread is for all other posts.
When in doubt, post in the users thread.

After many long nights of banging our heads against keyboard, the CM7 port is finally shaping up.
In addition to nightly releases, we may from time to time be releasing test builds here for your feedback and enjoyment. If you find issues please feel free to post here in this thread. Leave all other feedback for the user thread.
Where to get progress news:

I will tweet progress from time to time.
Twitter: @dalingrin

We are usually in #nookie on freenode.

You can always check the Cyanogen git@
Current Issues

****Should be fixed in nightly 13****

-Standy battery life is not as good as stock
Because of a kernel bug CM7 does not fully sleep. The result
is ~1% battery drain per hour while the screen is off. With normal use I usually go
1 - 2 days between charging.
***fixed in 2.6.32 builds***

-A few apps do not scale to full screen
In order to get Market and Maps to work fully the lcddensity has to be
set to something other than 160 causing a few apps not to scale properly.

-Wifi slow to reconnect at times

-Video playback is slow

-Default rotary lockscreen does not fit screen

-Market partially works

-Bluetooth does not work
****Update**** Bluetooth now works in CM7.
Bluetooth is working seemingly perfect except for the range. Unfortunately, the range is terrible.
Depending on the device you are paried with, the range is between 1-5ft. Any ideas on how to
fix the range issue would be much appreciated.

-Do not use SetCPU profiles
If you enable SetCPU profiles it will become a runaway process eating 100% cpu.
Setting your cpu clock can be done in Cyanogenmod Settings. Under Performance->CPU Settings

-Internal storage partition is not mounted on boot and is not shareable via USB
Download and Install

This is installable ONLY with an ext4 aware Clockwork Mod Recovery.

*** Also it is critical to be aware that installing CM7 will write to the internal emmc of your device. You are advised NOT to try it. But if you choose to do so, understand you do so entirely at your own risk. Read sections 15-17 of the GPL for the gist of this disclaimer. There is no warranty or claim of usefulness or fitness for any particular purpose. No one but you shall accepts responsibility for what may happen if you download or try to use this development software. ***

Download for CM7:


Install instructions:
The Following 99 Users Say Thank You to dalingrin For This Useful Post: [ Click to Expand ]
Recognized Developer - OP
Thanks Meter 2,754
Posts: 1,404
Join Date: Nov 2007
Post Reserved.
The Following 4 Users Say Thank You to dalingrin For This Useful Post: [ Click to Expand ]
(Last edited by fattire; 5th August 2011 at 12:30 AM.) Reason: Just added some more info
fattire's Avatar
Recognized Developer
Thanks Meter 4,393
Posts: 1,523
Join Date: Oct 2010
Developer Tips

(Standard do-at-your-own-risk-and-responsibility disclaimers apply.)

* For those developers building from source:

In $OUT, you'll find a few files:

recovery.img --> rename to uRecRam
kernel --> rename to uRecImg

Now you've got the ext4 clockworkmod for mmc built from source.

* Also, there's also a script in $OUT called:

Assuming this works, it should repack your $OUT/root (mmc ramdisk) into a uRamdisk that can be used with a bootable SDcard. The stuff in /system would go in the /system partition of the SD card (p2).

The result: a bootable CM7 on SD. It may not be wise to distribute as Cyanogenmod for encore is a fast-moving target-- unless you plan to create a new one every day or something.

* If you don't like the buttons at the top for some reason, there's the SoftKeys app as well as Button Savior.

* There is a slightly-themed u-boot.bin in device/bn/encore/prebuilt/boot/. It is simply a recompiled u-boot from BN's source.

Info about emmc geometry

If your emmc is hosed and you want to start COMPLETELY from scratch, understand that the underlying geometry (before any partitions are created) of your emmc must be set up correctly on OMAP machines such as the nook before any partitions are created.

You can read more about that stuff here. If you are booted into an "emergency" SD card and have a totally hosed emmc, you can use fdisk to format /dev/block/mmcblk0 to the correct geometry, and then create the partitions one at a time, with a vfat partition as your /boot partition (p1). Then put mlo, u-boot.bin, uImage, uRamdisk, uRecImg, and uRecRam in /boot (p1) and you should have a bootable system.

Read the link above about SD/MMC formatting for OMAP3. Your nook is an OMAP3621, so you gotta get that geometry right, otherwise it won't boot. Luckily, the instructions on using fdisk are pretty good.

More info:

your emmc: /dev/block/mmcblk0
your sd: /dev/block/mmcblk1

Partition Info

the partitions you should have created are at:

/dev/block/mmcblk0p1 == /boot
/dev/block/mmcblk0p5 == /system

/boot, /rom, and /media are of type "vfat"
/system, /data, and /cache are of type "ext4"

/factory (p3) isn't used by cm7

partition 4 is just there to allow you to create partitions 5-8

Sample instructions for copying files from cm7 on local computer to emmc /boot

You should be able to copy those four files simply by getting the lastest cm7, unzipping it on your computer, then once you boot into your bootable SD card, do:

COMPUTER> adb shell
# mkdir /data/bootmountpoint
# mkdir /data/systemmountpoint
# mount /dev/block/mmcblk0p1 /data/bootmountpoint
# mount /dev/block/mmcblk0p5 /data/systemmountpoint
# exit
COMPUTER> adb push mlo /data/bootmountpoint/
COMPUTER> adb push u-boot.bin /data/bootmountpoint/
COMPUTER> adb push uImage /data/bootmountpoint/
COMPUTER> adb push uRamdisk /data/bootmountoint/
COMPUTER> adb push  my/path/to/sdcard/system /data/systemmountpoint/
The Following 11 Users Say Thank You to fattire For This Useful Post: [ Click to Expand ]
thecubed's Avatar
Senior Member
Thanks Meter 5,921
Posts: 916
Join Date: Aug 2008
Location: Austin, TX

Man, everyone makes better (prettier) release threads than I do.
The Following User Says Thank You to thecubed For This Useful Post: [ Click to Expand ]
(Last edited by fabienk; 19th February 2011 at 01:32 PM.)
Thanks Meter 3
Posts: 49
Join Date: Aug 2007
oups, to delete
(Last edited by foxdl99; 19th February 2011 at 01:53 PM.)
foxdl99's Avatar
Senior Member
Thanks Meter 5
Posts: 247
Join Date: Aug 2010
Location: Pasadena, MD
I can mount SD card find from my PC on Ubuntu.

Some apps don't show up on search, only one worth noting right now is Dolphin browser. I can find all kinds of add-ons, but not the app itself.

The lockscreen defaulted to the slider, but when I rebooted it went back to rotary. I went to settings and changed it back to slider.

Edit: Also to note is when I first launch the market, I get a force close on search function unless I use menu->search first. Will try fix permissions. Edit: fix permissions doesn't work, I must use menu->search the first time.

Edit 2: Beautiful Widgets shows up in market but says it isn't there when I try to install.
LG G2x - Rooted, Bionix Reloaded 1.0
Troubles with Windows? Install Ubuntu instead and stop feeding the animals!
Senior Member
Thanks Meter 83
Posts: 125
Join Date: Feb 2011
I had no trouble mounting SD to my PC (windows 7 64). I don't remember which now, but many apps showed in market, allowed me to install, but when I tried to 'open' from their market page I was told they weren't there - just opening my app drawer showed them and they worked fine. Something in market for that one.
So You Bought a NC, Now What? - The Idiots Guide to your First Day with a NOOKcolor
[Step-by-Step] Installing-Updating-Removing CM7

Currently Running: B&N NOOKcolor @ 1.1 Ghz, CyanogenMod 7 nightly, kernel: update-1100mhz-froyo_CM7-emmc-cwm
T-Mobile G1 flying on CM6.1
Senior Member
Thanks Meter 5
Posts: 108
Join Date: Jul 2009
Default screen on/off notification

is the screen on/off setting working?
chemical1der's Avatar
Senior Member
Thanks Meter 16
Posts: 154
Join Date: Sep 2008
Location: Iron
I've also been able to mount to sd via Ubuntu and OS X.
cosine83's Avatar
Senior Member
Thanks Meter 47
Posts: 554
Join Date: Apr 2010
Location: Las Vegas, NV

Is there any way to get/use the recovery without using a burn to SD method?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes