FORUMS
Remove All Ads from XDA

[RECOVERY] CWM Recovery 6.0.5.1.4a

1,606 posts
Thanks Meter: 2,062
 
By rbox, Recognized Developer on 20th September 2014, 06:11 AM
Post Reply Email Thread
THIS IS ONLY FOR FIRETV1 RUNNING FIREOS3 WITH UNLOCKED BOOTLOADER!

It's finally here! Recovery for the Fire TV. This is based off of CWM and the way versions will work is I will append an extra digit to the end of the CWM version. So 6.0.5.0.0 is my first release based off of 6.0.5.0. I will also be releasing a recovery based off of TWRP, at some point.

As usual, this WILL void your warranty and I am NOT responsible for anything you do with this. Installing it properly won't brick your Fire TV, but doing stupid things with it might. Of course, this requires that you are rooted to begin with.

Installation
  1. Unlock the bootloader: You must first unlock your bootloader. Failing to do this will result in recovery not working.
  2. Copy: Copy the recovery.img to Fire TV via adb, or whatever else you like.
  3. Flash: From an adb shell, run
    Code:
    su
    to get to root and then
    Code:
    dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
    Replacing /sdcard/recovery.img with the directory and name of file that you copied.
  4. Reboot:
    Code:
    adb reboot recovery
  5. Profit

Upgrade
The same as installation, just skip step 1.

Notes
Note that it does take a few seconds for it to start. The screen will be black, don't be alarmed. As long as the Amazon logo disappears, it is loading.

This comes with DHCP enabled ethernet, please don't ask about wifi. Maybe at some point I'll get that working, but for now it's not going to happen. When recovery starts, it will print out it's IP address. Note that this might be different from the one it gets while booted into the OS. This works with USB storage and USB input devices. Right now, it does not support input hotplug so unless you have a keyboard plugged in when it boots, it won't work. This will be fixed. Unpowered USB hubs are hit or miss. Powered should always work.

There are protections against flashing an unmodified stock image. Under no circumstances should you ever attempt to flash such an image. You can download modified stock images here.

If something fails to flash DO NOT reboot. Try again and/or retransfer the file over adb.


AOSP, custom kernels, etc
When using custom kernels be extra careful. If you are developing a kernel, it is best to flash recovery to the boot partition and the new kernel to test to the recovery partition. There is no known way of booting into recovery if your kernel can't boot. In the future, I plan on releasing a "boot menu" program to help with this situation.

USB Storage
USB storage should be working. When you go to the backup/restore menu, /storage/usbdisk should be one of the options. When you go to the install screen /storage/usbdisk should be one of the updates. FAT32 and ext4 should work. NTFS formatted partitions will not show up as an option.

Overscan
To accommodate people who need to apply overscan for their TV, I have enabled configurable overscan. By default it is disabled. You can control the amount of overscan either with FastForward and Rewind buttons or the 1 and 2 buttons. It will save it so the next time it reboots it will remember your choice.

adb sideload
Installing zips with sideload is the easiest method. Select sideload as the option to install, then from your computer run adb connect followed by adb sideload.

Controlling from the commandline
If you have no keyboard or cannot connect a keyboard, I wrote a little program called recovery-input that allows you to control recovery from an adb shell. @AFTVnews.com wrote a guide at http://www.aftvnews.com/how-to-remot...-tv-using-adb/

Finally, thanks to everyone who has donated!

Changelog and Downloads:
  • Nov 02, 2014 - 6.0.5.1.4a (md5sum: 67b1a13b7bec645cb9291e80478d4635)
    • Added the missing recovery-input program
  • Nov 01, 2014 - 6.0.5.1.4 (md5sum: 9ba1ee7a914fad9e9c5509db4677e3e9)
    • Fix ext4 external usb support.
    • Removed kernel patching. This recovery now REQUIRES the bootloader to be unlocked.
  • Oct 19, 2014 - 6.0.5.1.3 (md5sum: 4984a2ae6489422298557d32cd2386b7)
    • Enable vi in busybox
    • Enable adjustable overscan
    • Allow flashing custom kernels
  • Oct 05, 2014 - 6.0.5.1.2 (md5sum: ae21891b4fd1e58c513ae5cdd09f4d93)
    • Print the current IP address on start
    • Disable automatic flashing
    • Disable install-recovery warning
    • Don't show unmountable NTFS partitions
  • Sep 27, 2014 - 6.0.5.1.1 (md5sum: bd490fd43f287b7ea01a6cc9d00b2232)
    • Fixed USB storage behind a hub
  • Sep 26, 2014 - 6.0.5.1.0 (md5sum: f82eccfd3638909f02eea1ca59e1b2a2)
    • Fixed USB storage
    • Enabled overscan
    • adb sideload over network
    • Larger font
  • Sep 19, 2014 - 6.0.5.0.0 (md5sum: 5c126edda9ea12696bebee7e368841e5)
    • First release
The Following 50 Users Say Thank You to rbox For This Useful Post: [ View ]
 
 
20th September 2014, 01:06 PM |#2  
roligov's Avatar
Senior Member
Flag Durban
Thanks Meter: 95
 
More
Awesome! Thanks so much for your hard work Rbox

Edit:
Installed without issues. Remote not working as expected so I switched to the K400 and works 100% Great work, donated $10 for your efforts!
20th September 2014, 02:07 PM |#3  
AFTVnews.com's Avatar
Senior Member
Thanks Meter: 339
 
Donate to Me
More
Here are some guides with step by step instructions:

How to install ClockworkMod Custom Recovery on the Amazon Fire TV
http://www.aftvnews.com/how-to-insta...mazon-fire-tv/

How to update ClockworkMod Custom Recovery on the Amazon Fire TV
http://www.aftvnews.com/how-to-updat...mazon-fire-tv/

How to remotely control ClockworkMod on the Amazon Fire TV using ADB
http://www.aftvnews.com/how-to-remot...-tv-using-adb/

How to install a Custom ROM Image on the Amazon Fire TV
http://www.aftvnews.com/how-to-insta...mazon-fire-tv/

How to update a Rooted Amazon Fire TV to the Latest Version Without Losing Root
http://www.aftvnews.com/how-to-updat...t-losing-root/

How to Revert back to Stock Recovery and Stock Software
http://www.aftvnews.com/how-to-rever...tock-software/
The Following 6 Users Say Thank You to AFTVnews.com For This Useful Post: [ View ] Gift AFTVnews.com Ad-Free
20th September 2014, 02:32 PM |#4  
JJ-KwiK's Avatar
Senior Member
Thanks Meter: 147
 
More
Awesome man!
Thanks
20th September 2014, 06:30 PM |#5  
Senior Member
Long Island, NY
Thanks Meter: 434
 
More
Should adb sideload work over tcpip rather than just usb?

If so it doesn't work for me; soon as it's toggled in recovery the firetv isn't accessable over adb tcpip anymore.
20th September 2014, 06:43 PM |#6  
OP Recognized Developer
Thanks Meter: 2,062
 
Donate to Me
More
Quote:
Originally Posted by Luxferro

Should adb sideload work over tcpip rather than just usb?

If so it doesn't work for me; soon as it's toggled in recovery the firetv isn't accessable over adb tcpip anymore.

I never tested it. The problem with sideload is I believe it restarts the adb daemon. I'll see if I can figure out what's wrong with it.

Update: So I just tested it and looked in to the code. It looks like when recovery starts, it uses the full adbd. But when you go to do a sideload, it switches to the internal version called minadbd. minadbd only supports USB. So for the next version I will add in network support.
The Following 2 Users Say Thank You to rbox For This Useful Post: [ View ]
20th September 2014, 08:47 PM |#7  
AFTVnews.com's Avatar
Senior Member
Thanks Meter: 339
 
Donate to Me
More
Any way to use CWM to make a backup when there isn't enough free internal memory for the backup files? Like backing up to a mounted USB drive or network location.
20th September 2014, 08:53 PM |#8  
OP Recognized Developer
Thanks Meter: 2,062
 
Donate to Me
More
Quote:
Originally Posted by AFTVnews.com

Any way to use CWM to make a backup when there isn't enough free internal memory for the backup files? Like backing up to a mounted USB drive or network location.

If you have a USB drive plugged in before it starts, it *should* see it. I haven't tested it in a while but it was working at one point. But like I said, I was having problems getting it to work with a hub with a flash drive and a keyboard. I suppose if you created a commands file that told it to backup to the external storage and reboot afterwards, it wouldn't need a keyboard plugged in. If you can't get your USB drive to work, I'll figure out the commands file.
The Following User Says Thank You to rbox For This Useful Post: [ View ]
20th September 2014, 11:23 PM |#9  
CLran619's Avatar
Member
Flag san diego
Thanks Meter: 11
 
More
nice job i thought before summer ended we would have a recovery. i cant wait for a ROM for the FTV . fingers crossed. also can i use firmware version 51.1.0.1 instead of 51.1.0.2? id rather not "update" if it isn't necessary and im guessing the difference between the two makes no difference.

edit: dosent matter i upgraded and installed. recovery working just fine. thank u rbox.
21st September 2014, 07:49 AM |#10  
alex1301's Avatar
Senior Member
Flag Nuremberg
Thanks Meter: 142
 
Donate to Me
More
I don't have the fire TV yet and I don't know anything about the software of this thing, but wouldn't it be easier if we can boot into fastboot? With that every firmware version could be flashed. There was a fastboot cable for the fire tablet. Can't we build something like this for the fire tv?
21st September 2014, 07:53 AM |#11  
OP Recognized Developer
Thanks Meter: 2,062
 
Donate to Me
More
Quote:
Originally Posted by alex1301

I don't have the fire TV yet and I don't know anything about the software of this thing, but wouldn't it be easier if we can boot into fastboot? With that every firmware version could be flashed. There was a fastboot cable for the fire tablet. Can't we build something like this for the fire tv?

Yes, it would be easier. And a fastboot cable for the Fire TV is just a plain USB A to A cable. But the bootloader is locked and prevents one from using fastboot boot and fastboot flash.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes