yashsingh1/xdaforums huggingface dataset:
[Kindle Fire Android Development] thebrasskicks:
Got it running on mine. I had to flash the toybox fix to get wifi working. I restarted from the setup screen. The initial boot takes a while and setup wizard is a little slow, but once you get through with it and turn on kernel editor with very aggressive it runs smooth as butter. I'd say it runs even better than cm11 KK rom. Plus security updates so no need to worry about stage fright and godless exploits. Very nice rom and I really like customizations available in settings. No need for gravitybox and it comes with an ad blocker. My thanks to the devs on this one, I'm amazed that marshmallow is running on my fire from 2011 smoother than smooth. I'll be keeping this as my daily driver.
[Kindle Fire Android Development] Black Rock City:
I intalled:

otterx-u-boot_v2.05.zip (formatted for OtterX. Then wiped cache, rebooted to recovery, formatted data, wiped system)

otterx-recovery-TWRP-3.0.0-0.img

Then installed from TWRP recovery in this order:

ResurrectionRemix-M-v5.7.0-20160619-otterx.zip

open_gapps-arm-6.0-pico-20160712.zip (installed before booting the OS for the first time)

temp_touch_fix.zip (installed before booting the OS for the first time)

Everything installed smoothly (I think) but there are problems:

It boots into the MM setup. I first got a blank wifi screen, then rebooted after staring at that for a while. On the second boot, I see a brief moment when I can press a button labeled '+ Add Other WiFi Connection' and a line beneath that with a bogus MAC address starting with 2 followed by many zeros. Then it just says 'Turning on wifi' for at least 5 minutes before I give up and reboot.

So I tried going into recovery and reinstalling the temp_touch_fix.zip. This changes nothing, no improvement.

Then I tried downgrading to ResurrectionRemix-M-v5.6.5-20160316-otterx.zip (wiping and formatting beforehand), installed the same pico Gapps and temp_touch_fix. I see a different boot splash screen of course but the WiFi setup page is behaving the same as 5.7.0. No difference. Its stuck on 'Turning on Wifi'.

The only thing I can think to try is to downgrade TWRP to an earlier version like zip-otterx-twrp-2.8.2.0-recovery.zip. Will that help anything?

Am I installing the Toybox fix correctly? When and how should that be installed? I'm just pushing it with ADB and then using the TWRP install button to install temp_touch_fix.zip.
[Kindle Fire Android Development] Black Rock City:
I downgraded to otterx-twrp-2.8.2.0-recovery but I'm still stuck on the Select WiFi screen. My only theory now is that I might need to let it sit for a long time on that screen while it slowly builds a list of all available networks. I'm in a very crowded airspace with dozens of networks near me. Either that or I'm not patching Toybox correctly?

I will have to try downgrading to Cyanogenmod 12 lollipop unless someone here can help me to run Marshmallow.
[Kindle Fire Android Development] Iliyena:
It took some time for me as well but... not that long. Turn on mobile hotspot on ur cell and head out to get away from all the networks to test your theory. :/
[Kindle Fire Android Development] ShrineFox:
Is there a way to change the volume on the fly with this ROM, without having to go into settings each time? There doesn't seem to be any options for it in the overhead menu, surprisingly.

As you know, the original Kindle doesn't have any volume buttons or anything, so it's pretty annoying if your environment changes while watching a video or playing a game.
[Kindle Fire Android Development] mikeataol:
with root you can install the app "Custom Quick Settings" , and add the volume tile panel to quick settings pretty easily
[Kindle Fire Android Development] ShrineFox:
Thanks, but the lag is so unbearable I can't even download that.

EDIT: Finally got to it in the playstore, it says it's not compatible with my device. Is there a specific version of the APK I gotta hunt for?
[Kindle Fire Android Development] bflobills:
You can download 'volume in notification' for free.. I use it all the time on the fly and it works great!
[Kindle Fire Android Development] mikeataol:
This one is from the play store and Ive installed it on several marshmallow (aosp) machines
[Kindle Fire Android Development] ShrineFox:
Hmm, no offense, but I don't know how people manage to do anything using this ROM. I've spent the entire night just trying to install apps at all (let alone run them, but thanks for the apk btw). The OG Kindle just doesn't seem to have enough ram for this, even with all the performance tweaks.

Is there a lightweight enough OS to work on such a device without persistent lag? If not, I suppose I'm going back to stock for now. Would love to see future updates improve the performance, though.
[Kindle Fire Android Development] sd_shadow:
try cm11 or cm10 from

Random Builds and Development
[Kindle Fire Android Development] ShrineFox:
Thank you, that worked excellently. Now I'm perfectly pleased with my Fire.

I guess I'll leave Lolipop to the smartphones, haha
[Kindle Fire Android Development] dazemc:
Hey great work. I wanted to know if you have the source available? I'm trying my hand a building cm 13 for this device. I just wanted to start an unofficial build. Any help would be appreciated.
[Kindle Fire Android Development] Black Rock City:
I ran ifconfig -a in the terminal and no WLan0 interface was listed. So the crowded airspace theory isnt the problem. The MM 5.7 ROM runs fine without GaPPS installed...just no WiFi.

I also verified that the toybox fix was installed in System/bin/toybox and that its owner/permissions matched the stock toybox.

I then downgraded to Slimkat lollipop and WiFi is working perfectly, so its not a hardware problem.

I wonder if people who are having success with this ROM were upgrading from a previous ROM? I was going from stock Kindle to MM, maybe that is the problem? Seems like the ROM didn't have a driver for the WiFi chipset? Is there variation in the WiFi chipset used in the Kindle Fire depending on production date?
[Kindle Fire Android Development] dazemc:
So not sure why the toybox fix isn't working but the WiFi chipset is the same for all these devices...looking through the kernel config in source shows there in an option to add support... Maybe that option was forgotten at build time...away from the device right now but almost certain this is not one of hashcodes prebuilt kernels...I'm trying to help but there is only so much I can do without source...

Sent from my SM-G900T
[Kindle Fire Android Development] m.jude.m:
Was successful in loading the latest version (5.7.0) today using Pico Gapps I downloaded from the Open Gapps site. Installed the ROM, then Gapps, then the toybox fix (no rebooted until after all installed... wiped cache on install screen after each zip, then applied next zip in that order. It does take forever optimizing apps at boot (thought it froze a couple times but didn't touch). At Welcome screen I let sit for 5 minutes and rebooted system again (didn't advance past Welcome when I rebooted) again after reboot let sit at Welcome for 5 and continued with setup... It's real slow but wifi networks popped right up... Setup wifi and skipped the account stuff... Changed kernel settings (low memory killer) to very aggressive and rebooted... Sit for 5min and added account info (system was much faster) ... Reboot and sit 5 min... It's working great now. Came from stock rom (v6.3.4). Likely may not need all the steps I used but it worked first time with Pico Gapps... Had problems with stock Gapps read about Open Gapps site and downloaded the Pico... I'm very much a novice when it comes to any of this and don't understand half the crap I did to root and load Rom so you know I didn't change anything code related. Hope my luck rubbs off on others because it's nice having a Kindle I can use for my own purposes. Can't speak to long term performance till later because I dont have time to use right now... Will post longer term use tomorrow if I get a chance.
[Kindle Fire Android Development] viraj2595:
don't know what to expect from this .

I got this ROM (The latest June build) to work after installing toybox. I set low mremoy killer to very aggressive. Still I'm finding it kinda sluggish. [MENTION=6475899]thebrasskicks[/MENTION] mentioned that it seemed smoother than cm11, I don't feel so, I restored to cm11 and the difference is night and day. I wish it worked better, because I absolutely loved the ROM! Kudos to OP, great job! So someone just tell me, am I expecting waaay too much from this device or should I try the older builds from March:rolleyes:
[Kindle Fire Android Development] Duddha:
As for me this ROM works pretty good without Gapps. With gapps it's really sluggish.
[Kindle Fire Android Development] kindlekiller13:
Help!!!

this seems to be the only active kindle fire topic and it would be great if someone could help me with my problem. my situation is here: http://xdaforums.com/kindle-fire/help/wiped-os-recovery-help-t3427503 :good:
[Kindle Fire Android Development] bflobills:
I'll get back to you tomorrow - flying now. Don't worry, you're good
[Kindle Fire Android Development] kindlekiller13:
Are the gapps necisary?

I have booted the rom without them so can i just install google play after?
[Kindle Fire Android Development] kindlekiller13:
Wifi wont work

The wifi is not working on this rom any ideas on how to fix this?
[Kindle Fire Android Development] Iliyena:
Post 21 in this thread:
[Kindle Fire Android Development] kindlekiller13:
Thats not the version i have

So i should flash the 5.6.5 version? i'm downloading the file now and will do a re flash of the files above.
[Kindle Fire Android Development] Iliyena:
No... He had to flash the toybox-fix for WiFi, tried that?
[Kindle Fire Android Development] samreh:
Currently, I'm using Hellfire on my 1st Gen. 6.3.4. Kf. Can I use RR on my Kf.
[Kindle Fire Android Development] Iliyena:
The internal storage must be formated/partitioned as otterx. Otterwise (heh) your good to go!
[Kindle Fire Android Development] shagberg:
I just installed Hashbang's latest CM13 Aug 21 update and am running into the same Wi-Fi issue upon startup. However, running the Toybox fix didn't resolve it for me. Anyone else come across this issue and figure out how to solve it?
[Kindle Fire Android Development] Angelwind:
Hopefully soon, the 8/21 build seems faster. I tried to dirty flash 8/21 over 6/04 with the fix and it didn't work. :\
[Kindle Fire Android Development] Angelwind:
It seems that the newest version of toybox doesn't have an ARMv7 version, and I don't know how to compile. If someone can show me how to compile for ARMv7 I'll give it a shot and see if a newer version fixes it.
[Kindle Fire Android Development] shagberg:
Nice work, Angelwind! Any chance that there is an older version of toybox available to download from somewhere, that is compiled for ARMv7?
[Kindle Fire Android Development] crash4fun:
Hey everyone, I just want to make it clear because the information is a bit unorganized (at no fault to anyone).

DO NOT USE OtterX TWRP 3.0.0 to install this ROM! I installed OtterX TWRP 2.8.5 and finally Resurrection Remix booted up. Before it was stuck on the boot animation. I know it's weird, I figured the newest TWRP would be best for a MM ROM build but that is not the case here.
[Kindle Fire Android Development] sd_shadow:
where did you find OtterX twrp 3.0.0?
[Kindle Fire Android Development] crash4fun:
At this post (of yours as a matter of fact).

http://xdaforums.com/showpost.php?p=60800749&postcount=12
[Kindle Fire Android Development] sd_shadow:
Thanks

I thought I posted link there, but xda app wasn't show post correctly
[Kindle Fire Android Development] Angelwind:
I can't seem to find anything or anyone that has a armv7 toybox compiled. Maybe when I have time I'll grab a current build that has the same CPU and see if that might work.
[Kindle Fire Android Development] Angelwind:
I tried to use the CM13 build for the Nook Tablet since the hardware is similar, but the toybox build in that one wouldn't work.

Anyone know what toybox is doing that it's not loading the wifi connection correctly? It seems that the 12xx_sdio driver is not being loaded, so it is keeping the MAC address at 00:02:00:00:00:00. The only difference I've found with the loaded driver is the sdio driver is loaded in the 0604 build, but not in the 0821 build.
[Kindle Fire Android Development] transi1:
5.7.4 (r72):https://www.mediafire.com/folder/51hajv463yfxb/otterx
[Kindle Fire Android Development] mikeataol:
just letting you know that I am getting the incorrect mac address issue with this, hence no wifi
[Kindle Fire Android Development] transi1:
hm, i`m used latest HashBang repo: https://github.com/hashBang173 , maybe you know needed patch?
[Kindle Fire Android Development] Angelwind:
The patch hasn't seemed to work for any CM-(and possibly ASOP? I don't know how that works really)based build since June 4. I tried it with no success. If anyone knows how the patch works I can see if I can do something with it.
[Kindle Fire Android Development] GeTex:
Sorry to bug Everyone, I just found my Otter in a box, What is the status of this rom? Reliability and Performance? Debating between this and CM11
[Kindle Fire Android Development] Angelwind:
The ROM itself past the 06/04 version runs great I think. The problem is the fix that is out there to get WiFi working does not work in the 8/21 build. I tried to see if I could fix it somehow with a newer build or a build from the Nook Tablet that has similar hardware, but couldn't get it working, so I'm wondering what was modified in toybox that got WiFi working.

Other than that, great ROM.
[Kindle Fire Android Development] 3ch01c:
Could you clarify how to apply patch? Like I'm assuming something from github.com/HashBang173/android_device_amazon_otterx needs to be put into ResurrectionRemix-M-v5.7.4-20161010-otterx, but I have no idea what or where. That fix-mac.sh and wpa_supplicant.conf look like they might be relevant, though...
[Kindle Fire Android Development] transi1:
all commits from hashbang repo included,

try http://www.mediafire.com/file/e5kfpd3b14vb3gv/temp_touch_fix.zip

or old builds with temp_touch_fix.zip (flash temp_touch_fix.zip in twrp after rom .zip)
[Kindle Fire Android Development] 3ch01c:
Thanks. That seems to be the same toybox patch that's worked with previous versions, but I haven't had any luck with latest. Here's what I'm doing:

TWRP 2.7.1.0

Wipe Dalvik, Data, Cache, System

Install ResurrectionRemix-M-v5.7.4-20161010-otterx.zip [54d8eb751f6c82a36fb138a2900b9746], open_gapps-arm-6.0-pico-20161123.zip [4115abb43a280ce216fec5f94693ad90], temp_touch_fix.zip [f35bbd41ffb1386c80df64773137c78e]

Reboot system

Boots to setup, but no WiFi. :crying:
[Kindle Fire Android Development] transi1:
sorry, i don`t have otterx for test.

can somebody confirm wifi works on builds from list: https://www.mediafire.com/folder/51hajv463yfxb/otterx
[Kindle Fire Android Development] mikeataol:
Hi,

Wifi works on ResurrectionRemix-M-v5.7.0-20160619-otterx.zip if you apply the temp_touch.fix,

comes up as 02:00:00:00:00:00 if you do not do the toybox fix.

Wifi does not work in ResurrectionRemix-M-v5.7.4-20161010-otterx.zip, either with the toybox fix or without.

Is that what you mean? or did you want to find one that worked without adding the toybox fix?
[Kindle Fire Android Development] transi1:
thank you, mikeataol

can you try boot.img from 0619 to 1010? (with toybox fix)?
[Kindle Fire Android Development] mikeataol:
Hi,

flashing the 0619 boot img and the toybox fix after the 1010 rom still leads to mac address 02:00:00:00:00:00 :(

I saw the same problem in an acclaim build earlier this year... I tried changing

lowbytes=$(echo "$MACADDR" | sed -e 's#^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)$#\\x\6\\x\5\\x\4\\x\3#')

highbytes=$(echo "$MACADDR" | sed -e 's#^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)$#\\x\2\\x\1#')

to

lowbytes=$(echo "$MACADDR" | toybox sed -e 's#^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)$#\\x\6\\x\5\\x\4\\x\3#')

highbytes=$(echo "$MACADDR" | toybox sed -e 's#^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)$#\\x\2\\x\1#')

echo $MACADDR

......

the MACADDR file is correct after this (F0A225983FB9)

-----

I'm left thinking the printf functions in that script aren't working.
[Kindle Fire Android Development] Angelwind:
Does wifi start working at that point? It would be a great work around until this could be fixed by putting this in a startup script.
[Kindle Fire Android Development] mikeataol:
No, that does not correct the problem. It was just my attempt at debugging where it might be broken.
[Kindle Fire Android Development] Angelwind:
As a thought, is there any way to take the wifi drivers from a similar system like the Nook Tablet (acclaim) and install them into the Kindle Fire? They seem to have the same chipset, and if it's a driver issue somehow of not being able to call up the MAC address correctly maybe this would help.

Maybe if someone could explain how toybox fixes the MAC address I could help in some way? I'm not a programmer but I can debug fairly well. :)
[Kindle Fire Android Development] knowledgeless:
Missing Setup?

Hello. As someone new to these kinds of things I was very happy to get this ROM working last night. I managed to get Wifi working this afternoon as well. One thing i noticed though was that I was unable to download apps from the play store in the browser. After searching a bit I found out that my device was simply not registered to my account. I want to assume that where I bind my Kindle to my account is during the setup process, but no such windows/prompts come up for me(This is also my first time using Android). My process for install was done as this post instructed and I installed 5.7.4 first without Gapps, then I repeated steps 4-6 and installed Gapps 5.0 micro, 5.7.0, and the temp_touch_fix.zip, and finally I repeated steps 4-6 again, this time not installing Gapps, believing that it was what was messing with my device. So right now my device has 5.7.0 and the temp_touch_fix.zip installed. (It might be noteworthy that I flashed the fix after booting 5.7.0)

To sum that whole block of text up, I am running 5.7.0 and the Wifi fix without Gapps and my problem is not getting any kind of setup menu when first booting.

Thanks in advance!

Edit: I have otterx-u-boot_v2.05, zip-otterx-twrp-2.8.5.0-recovery, openrecovery-twrp-2.2.2.1-blaze, and fff-u-boot_v1.5 if that helps
[Kindle Fire Android Development] King_root:
Hey how did you build RR marshmallow for this device when cm11 was the last official update by cm? Even I want to start building now.
[Kindle Fire Android Development] Kraken13331:
how do you fix the wifi problem ?
[Kindle Fire Android Development] Disassembler0:
Thanks! This is exactly what helped to get WiFi working while I was resurrecting my Fire. This modification was needed in /system/bin/fix-mac.sh and /system/xbin/fix-mac.sh. I did it via TWRP terminal, but I imagine it's possible also using adb shell and nano.
[Kindle Fire Android Development] TXFI:
[MENTION=6751354]transi1[/MENTION] in case you still care, here's some progress on Wi-Fi on 20161010 build. Using the steps below Wi-Fi starts and works but only when it has first been disabled using Airplane mode, then rebooted, script run as root in terminal and then Wi-Fi enabled from Settings. It is not persistent and the fix-max.sh script has to be run after each reboot and with Wi-Fi disabled using Airplane mode first.. Otherwise it works OK.

0) Boot to TWRP recovery and wipe everything under Advanced Wipe three times. Shutdown Kindle.

1) Boot to TWRP recovery and transfer ResurrectionRemix-M-v5.7.4-20161010-otterx.zip and temp_touch_fix.zip to Internal Storage. Install them in that order. Install also Google Apps if you need them.

2) Boot up Android and using the built in File Manager in Root mode, edit /system/bin/fix-mac.sh as follows:

- on line 20, replace:

setprop wifi.ready 1 && \

with

insmod /system/lib/modules/wl12xx_sdio.ko && \

- on lines 30 and 31, add "toybox" in front of "sed" like this:

lowbytes=$(echo "$MACADDR" | toybox sed -e 's#^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)$#\\x\6\\x\5\\x\4\\x\3#')
highbytes=$(echo "$MACADDR" | toybox sed -e 's#^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)$#\\x\2\\x\1#')

- on line 49, replace:

setprop wifi.ready 1

with

insmod /system/lib/modules/wl12xx_sdio.ko

3) Sideload and install e.g. this terminal app: https://f-droid.org/en/packages/jackpal.androidterm/ Start it and say "su" and grant it permanent root

4) Set the Kindle to Airplane mode and reboot

5) After reboot, start terminal, su to root and run /system/bin/fix-mac.sh

6) Go to Wi-Fi Settings, enable Wi-Fi, choose your network.
[Kindle Fire Android Development] DbIMok:
I'm noob so I could not follow the instructions above. maybe someone will be helpful in describing my way

boot to recovery and wipe everything under Advanced Wipe. reboot to recovery. in recovery Advanced > Sideload

adb sideload ResurrectionRemix-M-v5.7.4-20161010-otterx.zip

I did not know how to edit fix-mac.sh, so I packed the modified into deymon.eu5.org/temp_touch_fix.zip

adb sideload temp_touch_fix.zip
adb sideload open_gapps-arm-6.0-pico-20180924.zip

reboot, wait system initialize... wifi don't work... then I tried to run

adb root
adb shell sh /system/bin/fix-mac.sh

but

insmod: failed to load /system/lib/modules/wl12xx_sdio.ko: File exists

ok, need Airplane Mode because need the driver not to load

adb shell settings put global airplane_mode_on 1
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE

reboot, then

adb root
adb shell sh /system/bin/fix-mac.sh

after that the WiFi started working, but I did not wait for the initialization of the account creation and created it through the Settings

adb shell am start -a android.settings.SETTINGS

that's all, I hope this was useful to someone and sorry for my English
[Kindle Fire Android Development] yyyxda:
In my OtterX, there is no

/system/bin/fix-mac.sh

but there is the

/system/xbin/fix-mac.sh

instead.

I made the changes there, and the wifi is working fine now!! I used the v5.7.4-20161010, and the temp_touch_fix.zip (with twrp 3.0).

Thank you for the solution!! It is really amazing to see such an old device, with low specs, running Android 6!!

Many thanks to the developers!!! :good::good::good:
[Kindle Fire Android Development] pkley:
It's been a very long time since I've done any flashing, I managed to get TWRP 2.8.5 loaded on otterx, pushed the zip file of 5.7.4-20161010-otterx.zip and gapps but when I try to Install them both, RR just sits there Flashing File 1 of 2. Thoughts?
[Kindle Fire Android Development] sd_shadow:
Did you check the md5 check sum or file size?
[Kindle Fire Android Development] 7abib0:
Is there a proper fix for wifi issue? I have to run the script after each boot.
[Kindle Fire Android Development] yyyxda:
I didn't find anything.

This is the reason why I changed into SlimPop (android 5). It does not have this wifi problem and in my opinion it is more responsive than this version here.
[Kindle Fire Android Development] 7abib0:
Thank you for your suggestion. It's more reliable :good:
[Kindle Fire Android Development] johnkeel105:
Hello I am trying to get this working on my old kindle fire. What is curious is there is no choice to download the ResurrectionRemix-M-v5.7.0-20160619-otterx.zip file. This is the last working version that I know of with the Toybox fix from what I have read. Can the original developer or someone post this version, so we have a decent working ROM for the old fire. Thanks!
[Kindle Fire Android Development] mikeataol:
re: ResurrectionRemix-M-v5.7.0-20160619-otterx.zip

I got it for you from a backup drive... it.s on my mega here:

https://mega.nz/file/vZwHjCZZ#wL01IjFs3hWcxa8QaHB_PtgKIS7gO4876caPcBGD5yo