CM10 development for Kindle Fire HD 8.9"

Search This thread

verygreen

Senior Member
Feb 13, 2011
1,305
2,637
TN
linuxhacker.ru
Hi all!

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).
Download code:
Code:
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:
Code:
. build/envsetup.sh
lunch cm_bowser-userdebug
. vendor/cm/get-prebuilts
mka bacon

In the out/target/product/bowser output dir you'll have two important files generated:
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!)
Code:
adb shell su -c "chmod 777 /dev/block/*"
adb pull /dev/block/mmcblk0p9
adb pull /dev/block/mmcblk0p10
adb pull /dev/block/mmcblk0p11
[code]
Save these block images.
Step 2: Prepare and run CWM:
[code]
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
This last command will stop waiting for the fastboot device to appear. Do not unplug the kindle from USB.
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:
Code:
fastboot reboot -i 0x1949
This will reboot you into CWM recovery
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:
Code:
adb shell "mount /data"
adb shell "rm -r /data/*"
Step 4: Now, installation is complete, you may reboot and it will bring you to your freshly-installed CM10 - enjoy.
(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.
Step 2:
Code:
fastboot flash recovery /path/to/mmcblk0p9 -i 0x1949
Now either connect a powered off kindle, or reboot an already connected kindle.
(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:
Code:
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
Now you are back to factory stock.

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:
- Sound
- Video playback
- Sensors (no rotation)
- Camera
- BT
- probably some other stuff I have not noticed yet.

Please do send in your patches/fixes.
 
Last edited:

Witcher_Kh

Member
Jul 17, 2012
26
11
These are some amazing news!
Thanks a lot, verygreen. You are doing a really importaint thing. In my country no amazon services work, so the stock ROM is the biggest problem with Kindle 8.9.
Looking forward for the next builds!
Best regards.
 

xDecapitator

Senior Member
Jun 1, 2012
100
12
California
Sorry if this is a stupid/annoying/heard it a million times please shut up already question, but does this mean anything the 7" variant?
 

Witcher_Kh

Member
Jul 17, 2012
26
11
So, can you tell us what is the status of the build right now? What works fine, what doesn't? When can we see the first build to test?
Thanks for your answers and best regards!
 

F@@dog

Senior Member
May 25, 2012
77
21
Dallas TX
This question belongs in general discussion not Development

So, can you tell us what is the status of the build right now? What works fine, what doesn't? When can we see the first build to test?
Thanks for your answers and best regards!




I am not the first to answer your question in the following manner and I am sure I won't be the last. These developers spend hours of their free time developing code so that people like you and I can use it without paying unless it is through a donation to the developer. They typically don't have time to answer every person who asks when will the code be ready. so for you and others who are not developers your answer is:

"The next release will be ready when it is released and not until."
 

somdave2005

Member
Nov 11, 2007
36
5
I'm assuming that with CM10, you won't be able to use all the special Amazon services like Amazon videos, lending library, etc. Doesn't that take away the whole point of buying a Kindle fire HD?
 

ZilverZurfarn

Senior Member
Feb 11, 2009
970
23
Göteborg
I'm assuming that with CM10, you won't be able to use all the special Amazon services like Amazon videos, lending library, etc. Doesn't that take away the whole point of buying a Kindle fire HD?
No - KF HD is a beautiful piece of hardware at a nice price, crippled by Amazons software. Where I live, almost all Amazon content is blocked anyway, so I won't lose anything. Amazon ebooks are basically the only content available to me, but that's just a matter of installing the Kindle app in CM.
 

aaron.a

Senior Member
Dec 24, 2010
646
98
eagerly watching and waiting... i havent got the stones to try it out now but ill test the first alpha! thanks for your work
 

Doli69

Member
Jul 11, 2008
5
0
What about KFHD 7" ? If CM10 will work for KFHD 8.9", will work for 7" too or not? Sorry my english, please.
 

craby1925

Senior Member
Nov 17, 2010
337
33
I am eager to try working this over to the 7HD but it might be premature. Do you guys think this software will still work with the fire 2 and 7HD?

Sent from my EVO using Tapatalk 2
 

esox_hu

Senior Member
Dec 16, 2010
51
4
I am eager to try working this over to the 7HD but it might be premature. Do you guys think this software will still work with the fire 2 and 7HD?

Sent from my EVO using Tapatalk 2

I thought i ask the same. I have KFHD 7" as well and want to try CM10 on it..
 
Last edited:

verygreen

Senior Member
Feb 13, 2011
1,305
2,637
TN
linuxhacker.ru
I thought i ask the same. I have KFHD 7" as well and want to try CM10 on it..
Just to clear this up.
I do not have Kindle Fire HD 7" and so I cannot try.
We've got a volunteer to try this at irc and bootloader unlock works the same way (as expected, but you need a different bootloader binary).
We were not able to get anything to show up on the screen after booting CM10, thought it appears the OS boots and behaves fine, backlight is on too.

Anyway, I'd much rather prefer people to buy Nexus 7, it costs the same as Kindle Fire HD 7, but is a much more open device with much more developer support.
If you need CM10 and further, get Nexus 7 and you'll be soo much more happier. You still can run kindle app on it to read your books if you so desire.

With this out of the way, let's not touch on the 7" device topic here anymore, it's for 8.9" development discussion only. Thank you for your understanding.
 

fattire

Inactive Recognized Developer
Oct 11, 2010
2,281
6,473
www.eff.org
Yes, exactly.

Anyway, I'd much rather prefer people to buy Nexus 7, it costs the same as Kindle Fire HD 7, but is a much more open device with much more developer support.
If you need CM10 and further, get Nexus 7 and you'll be soo much more happier. You still can run kindle app on it to read your books if you so desire.

Hear, hear!

The N7 is an amazing deal, has incredible specs with pretty much everything included, AND it's been made easily unlockable by the distributor. To anyone who wants continued access to devices in the future, there's no reason to support closed, locked systems.

So I just want to voice my agreement. If you're in the market for a 7" tablet, N7 > Kindle Fire HD 7".

Pass it on.
 

FroyoShark

Senior Member
Sep 12, 2011
323
70
Minnesota
youtube.com
Hear, hear!

The N7 is an amazing deal, has incredible specs with pretty much everything included, AND it's been made easily unlockable by the distributor. To anyone who wants continued access to devices in the future, there's no reason to support closed, locked systems.

So I just want to voice my agreement. If you're in the market for a 7" tablet, N7 > Kindle Fire HD 7".

Pass it on.

I would have gotten the N7 but I wanted a larger screen.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    Development for the KFire HD 8.9 is progressing rather nicely to my point of view. I just haven't released anything yet. :)

    I'm working on Android 4.2.1. And the kernel is fully migrated to 3.0.50 (which matches AOSP kernel/common)

    Right now I have display running a newer version of the gfx blit system + powervr libs built for jellybean, bluetooth, hw accelleration, and sensors.

    I'm currently updating the wifi driver to match AOSP, and then I need to troubleshoot codecs/camera, graphics memory allocation and audio.

    Almost every facet of the device is running updated drivers.

    Sent from my DROID RAZR HD using Tapatalk 2
    25
    Hi all!

    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).
    Download code:
    Code:
    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:
    Code:
    . build/envsetup.sh
    lunch cm_bowser-userdebug
    . vendor/cm/get-prebuilts
    mka bacon

    In the out/target/product/bowser output dir you'll have two important files generated:
    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!)
    Code:
    adb shell su -c "chmod 777 /dev/block/*"
    adb pull /dev/block/mmcblk0p9
    adb pull /dev/block/mmcblk0p10
    adb pull /dev/block/mmcblk0p11
    [code]
    Save these block images.
    Step 2: Prepare and run CWM:
    [code]
    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
    This last command will stop waiting for the fastboot device to appear. Do not unplug the kindle from USB.
    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:
    Code:
    fastboot reboot -i 0x1949
    This will reboot you into CWM recovery
    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:
    Code:
    adb shell "mount /data"
    adb shell "rm -r /data/*"
    Step 4: Now, installation is complete, you may reboot and it will bring you to your freshly-installed CM10 - enjoy.
    (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.
    Step 2:
    Code:
    fastboot flash recovery /path/to/mmcblk0p9 -i 0x1949
    Now either connect a powered off kindle, or reboot an already connected kindle.
    (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:
    Code:
    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
    Now you are back to factory stock.

    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:
    - Sound
    - Video playback
    - Sensors (no rotation)
    - Camera
    - BT
    - probably some other stuff I have not noticed yet.

    Please do send in your patches/fixes.
    12
    from hashcode@twitter, seems that everything else is good to go now except audio.

    https://twitter.com/Hashcode0f/status/291949787551518720

    @klescuts soon as I get audio working, ill release cm10.1 for KDHD8.9
    11
    I've decided to release my current 2nd-bootloader setup + CM10.1 ROM even though the audio is not working yet.

    You can find all of the information in these 2 threads:

    2nd-bootloader install for coming from Amazon stock OS:
    http://xdaforums.com/showthread.php?t=2128175

    CM10.1 ROM for install in custom recovery:
    http://xdaforums.com/showthread.php?t=2128201

    Enjoy and please read through the OP's before starting the installs.
    11
    Not to be a bother, but has any more progress been made? I realize that these sorts of things take time, but even the slightest news of progress would be nice.

    Process is being made. Trust me, it'll be worth the wait.

    If you are a Kindle Fire 2 owner, don't think we forgot about you!