Without much ado I am presenting you this repo for CM10 that lets you build somewhat functional CM10 ROM for Kindle Fire HD 8.9".
(Obviously this is not end-user friendly yet. If you don't know how to compile CM10 yourself, you are not a target audience for this yet, sorry. Many things don't work to make it viable main ROM yet anyway)
Build instructions (assuming you met all other CM10 build dependencies).
mkdir android/system cd android/system curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/repo chmod a+x ~/repo repo init -u git://github.com/CyanogenMod/android.git -b jellybean wget -O .repo/local_manifest.xml https://github.com/verygreen/android_manifests/raw/master/bowser-jb/local_manifest.xml repo sync -j16
. build/envsetup.sh lunch cm_bowser-userdebug . vendor/cm/get-prebuilts mka bacon
recovery.img and cm-10-XXXXXXXX-UNOFFICIAL-bowser.zip
For the first install only:
Step 0; Connect kindle to your computer, have android sdk installed and adb and fastboot in the path.
Step 1: (very important) Back up raw partitions from kindle responsible for recovery, boot and system.
(this requires root, though root-less installation is also possible, you will need the backups to return to stock!)
adb shell su -c "chmod 777 /dev/block/*"
adb pull /dev/block/mmcblk0p9
adb pull /dev/block/mmcblk0p10
adb pull /dev/block/mmcblk0p11
Save these block images.
Step 2: Prepare and run CWM:
rm -f /tmp/stack; for i in $(seq 1024) ; do echo -ne '\x00\x50\x7c\x80' >>/tmp/stack ; done adb push /tmp/stack /data/local/tmp/ adb shell su -c "dd if=/data/local/tmp/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot bs=6519488 seek=1" adb shell su -c "chmod 777 /cache" adb push /path/to/cm-10-XXXXXXXX-UNOFFICIAL-bowser.zip /cache/ adb shell su -c "echo 0 > /sys/block/mmcblk0boot0/force_ro" adb shell su -c "echo -n 3 | dd of=/dev/block/mmcblk0boot0 bs=1 count=1 seek=4104" fastboot flash recovery /path/to/recovery.img -i 0x1949
Now reboot kindle: either power it off and on via it's GUI, or do adb reboot from a different terminal session (do not interrupt fastboot command still waiting!)
You'll see a "fastboot mode" on the screen and fastboot command started earlier will finally finish after writing the image onto the kindle.
Reboot kindle again via fastboot:
fastboot reboot -i 0x1949
Step 3: In CWM recovery, do install from sdcard and install the cm-10...zip file we transferred in the previous step.
the /data/ settings from stock amazon install are not compatible with CM10, but (very important)Do not reformat /data/ and /cache from CWM, this will result in a corrupted filesystem due to 3.0.21 kernel currently used by amazon not having necessary fs features!!!
Instead, clean /data via adb while booted to CWM:
adb shell "mount /data" adb shell "rm -r /data/*"
(note by default this CM10 install starts with adb disabled, so you'll need to enable it in settings again).
How to reflash back to stock
Step 1: Remember where did you put those backups from step 1 during install.
fastboot flash recovery /path/to/mmcblk0p9 -i 0x1949
(note: I don't remember if stock rom is smart enough to wipe /data in this case or if it bootloops, so you might want to do rm -r /data/* before the final reboot)
once Kindle enters fastboot mode and recovery image is written, write the other two images too:
fastboot flash boot /path/to/mmcblk0p10 -i 0x1949 fastboot flash system /path/to/mmcblk0p11 -i 0x1949 # This one will take a few minutes fastboot reboot -i 0x1949
Not so short video on the install starting from somewhere around step 3 for those who cannot perform the steps, but need to ensure this ROM is not for them yet:
Many things don't work yet:
- Video playback
- Sensors (no rotation)
- probably some other stuff I have not noticed yet.
Please do send in your patches/fixes.