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:



sd_ramdisk_packer.sh



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

Partition Info

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

Code: 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/

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, andin /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/mmcblk0your sd: /dev/block/mmcblk1the partitions you should have created are at:/dev/block/mmcblk0p1 == /boot/dev/block/mmcblk0p5 == /systemetc/boot, /rom, and /media are of type "vfat"/system, /data, and /cache are of type "ext4"/factory (p3) isn't used by cm7partition 4 is just there to allow you to create partitions 5-8You 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: