yashsingh1/xdaforums huggingface dataset:
[Kindle Fire Android Development] pyrorob:
using root explorer i can tell that

/dev/block/platform/mmci-omap-hs.1/by-name/boot

is symlinked to

/dev/block/platform/mmci-omap-hs.1/mmcblk0p7

so if you wanted to mount boot

you could type

mount -o rw,remount /boot

i believe..
[Kindle Fire Android Development] JackpotClavin:
well i did a dd if= from the phone to the sdcard, but now we can just grab the boot.img from the update on amazon's site
[Kindle Fire Android Development] soundslikemitch:
Can you post pictures? This is the main reason I am not trading my fire for a nook.
[Kindle Fire Android Development] JackpotClavin:
http://i.imgur.com/9zWTk.jpg :D just gettings rid of those error messages now. had the wrong filesystem for /cache
[Kindle Fire Android Development] soundslikemitch:
I love you.screw the nook.
[Kindle Fire Android Development] hitsndc:
Wow JackpotCalvin! How were you able to flash the clockwork recovery? Also are you still able to load your KF as normal?
[Kindle Fire Android Development] ckong1:
really nice work
[Kindle Fire Android Development] death2all110:
another way to mount things as is done in the init.rc:

mount mtd@/system system

so for rw..."mount -o rw,remount -t ext4 mtd@system /system"

anyway mounts are as follows:

backup -> mmcblk0p6

boot -> mmcblk0p7

bootloader ->mmcblk0p2

cache -> mmcblk0p11

dfs -> mmcblk0p4

dkernel -> mmcblk0p3

media -> mmcblk0p12

recovery -> mmcblk0p5

splash -> mmcblk0p8

system -> mmcblk0p9

userdata -> mmcblk0p10

xloader -> mmcblk0p1
[Kindle Fire Android Development] JackpotClavin:
well we're at a bit of a road block as of right now as we have no way to navigate through the menu, we can just press OK and reboot the kindle. also, pressing reboot now does not start the device normally, it just reboots into clockwork. i'm looking for the flag that the OS puts in /cache or /data to trigger a recovery reboot because pressing reboot now does not remove that flag so it will continue to reboot into clockwork unless you do a little hackery to put the stock recovery back on it and then reboot it into the stock recovery and make it fail the signature verification this fluke update.zip i made. we need to find a way to make a fail safe to reboot into recovery as well in case when we start roming, something goes wrong
[Kindle Fire Android Development] littleemp:
Do you think something like this might work?

https://market.android.com/details?id=com.koushikdutta.rommanager&hl=en
[Kindle Fire Android Development] matt314159:
Emphasis mine. I can't wait. Great work so far, this seems to be going a lot faster than I imagined at first. I wish I had the programming chops to become a dev, instead i just look on from the sidelines, and maybe monetarily support projects when and where I can.
[Kindle Fire Android Development] beatlesfan01:
Awesome work guys. I've got the Nook Tablet but thought I'd pop over to see how it's going. Again, awesome work.
[Kindle Fire Android Development] wizang:
The official clockword mod does not support the fire yet... if that's what you're asking. That is what OP is trying to do.
[Kindle Fire Android Development] timmytim:
How did you boot into recovery?
[Kindle Fire Android Development] JackpotClavin:
well i've just made a clockwork backup of my current system. i believe ive found a way that we can manage to "navigate" through the menu, even though it's a real pain in the ass to do
[Kindle Fire Android Development] hitsndc:
Sounds like we may have to be connected to our PC to run the commands...??
[Kindle Fire Android Development] transfuntioner:
See kfire/u-boot/include/fastboot.h, PUBLIC_SAR_RAM_1_FREE. I havent tried but I dont think it needs to be mapped. Copy "recovery" there or null it depending on which boot mode you want.
[Kindle Fire Android Development] JackpotClavin:
yep. i basically have to change the menu so whatever we need is 1st on the list. to do that we will need to flash a new recovery for every task... shouldn't be too hard if i make a script for what we need :D
[Kindle Fire Android Development] JackpotClavin:
woah. that went right over my head. i'm not very familiar with custom recoveries coming from only motorola phones, can you explain further?!
[Kindle Fire Android Development] transfuntioner:
Ok let's backstep a bit. So is your current mod replacing the stock sbin/recovery with clockwork's recovery binaries, and once you boot recovery mode (eg. via adb or clockwork) it stays in recovery on subsequent boots until you switch back the stock bootloader?

I think we can peek that mem location and poke it if that's the case..
[Kindle Fire Android Development] JackpotClavin:
well i really cannot find what the device looks for in order to reboot into recovery. the only way i can get it to reboot into recovery is to put a spoof update.zip in the /sdcard/kindleupdates/ folder and it activates the "update kindle" button in the settings -> device menu. if you press update after flashing clockwork to the recovery partition it will reboot into clockwork. the only problem is i dont *actually* know what the hell the "update kindle" button does in order to trigger a reboot into recovery. whether it throws a file into a directory or whatnot is beyond me. if you flash clockwork and open rom manager and press reboot recovery or use adb reboot recovery does not do anything besides a normal reboot so the normal flags that other devices have to reboot into recovery do not work on the fire. i know that for the moto droid family, if theres a file under /data/.recoverymode it will boot into recovery, but i don't know what the equivalent is for the kindle
[Kindle Fire Android Development] boomn:
Just a random, uninformed idea: could cwm be programmed to navigate by Morse code or something similar? One short press to move up, two to move down, three to select, long press for power, etc?
[Kindle Fire Android Development] JackpotClavin:
i asked koush but he hasn't gotten back. if it were possible, i'd like to implement like a 5 a long press to be out OK, and short presses to be a scroll down, and a 3 second long press to be back. i'm not really sure how to do that though, not familiar with C++
[Kindle Fire Android Development] hitsndc:
Good job Calvin! I hope more devs will be looking into this soon so you guys can swap information to complete the task. CWM is just the first step but its a big step since the KF source is already released. As soon as this CWM is working good, more devs will join in to create the Roms. :)
[Kindle Fire Android Development] JackpotClavin:
okay i found this in a log

Read bootmode from the eMMC

bootmode = '0x0000000000004000'

Read bootmode from the eMMC

bootmode = '0x0000000000005001'

Entering into recovery mode !!!

the flag is on what ever eMMC is... if it's 4000 it's a normal boot and if it's 5001 it goes into recovery. i also found that on the logcat after rebooting into recovery, it says bootmode=5001

hope this helps somebody get closer
[Kindle Fire Android Development] transfuntioner:
Yeah the standard 'reboot recovery'/'adb reboot recovery' is disabled. It looks like it is set in nvram.

The boot loader source says that it is the 0x5000 bit in bootmode. I was able to grab it when I ran update kindle before it rebooted. Bootmode was changed to "5001 0".

See my fastboot thread (currently still in kf general) for other bootmode findings.

If you have fastboot setup, you should try fastboot oem recovery as well (for another path to the recovery)..
[Kindle Fire Android Development] teookie:
I've had my kindle for a few hours now and I'm rooted with google apps and custom launcher. :cool: Can't wait for you guys to get CW figured out. I need to make a backup!

My other hobby is RC airplanes. One of the battery chargers I use only has one button. To navigate through the menus you do this:

short press = scroll through menu 1 item.

quick press then immediate long press = change direction of menu scrolling

long press = select present menu item

This works very well. The ability to change scrolling directions might not be required in clockwork though as most menus are short.
[Kindle Fire Android Development] transfuntioner:
Ok, looks like you found it also :) Set the bootmode via the idme command
[Kindle Fire Android Development] JackpotClavin:
Wait you can use fastboot on the fire? Can you tell me how?

Edit: just saw the thread in general... this changes everything. I'm gonna give cm7 a shot for the fire. Not gonna try stock ics as I'm not 100% sure how to port to devices on non-cm source. The good thing is that I'd imagine that stock ics is that optimized for omap4 devices (galaxy nexus) so porting cm9 to the kindle should be sooner than other board varients
[Kindle Fire Android Development] Dees_Troy:
Someone with a copy of device configs for the Fire that's used to compile CWM and a Kindle Fire handy should come by our IRC channel on Freenode in #twrp. A true touchscreen gui would get past all of this 1 button mess.

twrp 2.0 touchscreen gui recovery - who needs a volume rocker?
[Kindle Fire Android Development] JackpotClavin:
Oh wow, will do this tonight
[Kindle Fire Android Development] hitsndc:
Wow releasing this for the Kindle Fire would be a good release...New Recovery tool for a new device...Nice!
[Kindle Fire Android Development] JackpotClavin:
Will port this later
[Kindle Fire Android Development] andTab:
I like this idea.

With CM7 available, many are probably tempted to jump into the pool for ROMs but it would obviously be much better/easier and safer if we had a working recovery (that also allows us to make a backup of the original KF rom).

Is anyone working on getting CWM working with one of the suggested solutions (eg either the above or the solution to have selection just cycle through the options every 3+ seconds with the button just selecting)?
[Kindle Fire Android Development] ursubpar:
maybe use adb to move about the recovery menus?

adb shell
input keyevent <volume button code>
[Kindle Fire Android Development] DooMLoRD:
@JackpotClavin

for CWM on this device did u need to change graphic.c file in CWM-R sources?

i have started work, along with my teammate, to make a touch-enabled CWM recovery
[Kindle Fire Android Development] JackpotClavin:
The only things I edited were the files related to the location of the items in the menu so what we needed to do wouldn't require moving up or down, just pressing OK
[Kindle Fire Android Development] DooMLoRD:
thats good...

so it will be relatively easy :)
[Kindle Fire Android Development] Groundhack:
I know clavin posted his cwm in the cm7 rom thread not sure if you can start wiith his work and modify it..
[Kindle Fire Android Development] Znomon:
I didn't read the thread but for my nexus there is a CWM that uses the touchscreen to navigate with soft keys. So you shouldn't be far away.
[Kindle Fire Android Development] bradsinram:
Well we have twrp and have for a while so it doesn't really nice and I've used the touch cwmr on the gnex and twrp's a million times better
[Motorola Droid RAZR] spyder560:
Anyone else experience this? It sounds rattle-y and a bit crackley as well. But I only notice it during phone calls on speakerphone. When I play music, it's perfect.
[Motorola Droid RAZR] EXYZ1000:
I do. But I lower it down and it becomes OK.
[General Questions and Answers] rakisto:
To my avail, this will not work...

After editting the ini file with 0x1949, adding the correct parts SDK file (The kindle fire registers as a samsung device and comes up properly in the device manager), also after restarting adb server...

I run adb devices and it is blank. What am I missing??? I have followed just about every forum / tutorial out there and it wont show the device!

helppppppp
[General Questions and Answers] andee777:
same problem

updated all appropriate files. ran adb-kill command, then adb device command. get nothing listed under devices. go through device manager and update driver, still nothing listed under devices...:confused:
[T-Mobile LG G2x] edekalil:
Earlier I flashed cm7 and gapps to mi g2x. First I could Not get to complete the setup for syncing with Google to get my phone numbers. Later I noticed that I could notget the data to work. Is there something cm7 has a problem with or did I do something wrong?

Eddie
[HTC EVO 3D] scott951:
Ok so I don't have this device and there is a bunch of people that want to try it so here you go.

If you brick your **** don't blame me! Its a test build Don't even know if it will boot!

Adb me some logcats and we can get it working

logcat.miui.us and paste link I will see what I can do!

I would hope others would step in and help out with this!

Test 15 http://www.mediafire.com/?c1osls4cz4lnizg

Last test of the night
[HTC EVO 3D] scott951:
just in case
[HTC EVO 3D] scott951:
ok last one for fun!
[HTC EVO 3D] Garrytheogre:
not a fan of miui but I'm willing to give it a try . what's the chances of a brick with this ?

shouldn't effect recouvery right so i can always restore ?
[HTC EVO 3D] scott951:
yeah I included the stock boot.img so you should be fine there is no recovery added so will not brick you device.

but test at your risk.

I have been asked a bunch of times to help out. if there is a aosp kernel that would help a bunch
[HTC EVO 3D] Garrytheogre:
will this suffice

xdaforums.com/showthread.php?t=1313117

got an error 6 on flashing then it aborts the flash
[HTC EVO 3D] thizzlemania91:
Tld you guys he was working on it :) its always good to follow ppl on Twitter. Right Scott LOL
[HTC EVO 3D] scott951:
Cwm or twrp?
[HTC EVO 3D] Garrytheogre:
revolutionary cwm
[HTC EVO 3D] scott951:
ok test two with the kernel you said http://www.mediafire.com/?9bx2vmhd0ec82pg
[HTC EVO 3D] maaafeb05:
Just making a backup now and will test it and report back.

By the way, does it support multilanguage like Arabic? Do we need to choose kernel ? Thanks
[HTC EVO 3D] coreless88:
Hi,

Tried and get the error status 7.
[HTC EVO 3D] scott951:
test 3 http://www.mediafire.com/?5xlvk3bsccjs4e3
[HTC EVO 3D] iamdata:
I will be following this closely and will try flash tonight. How exciting its like xmas!

Sent from my Evo 3D GSM...bring on the AOSP!!!
[HTC EVO 3D] nattskift:
Downloaded.

Error during flash.

Installing update...
mount() expects 4 args. got 3
E:Error in /sdcard/roms/SHOOTERU-MIUI-1.11.11.11-TEST-BUILD-3.zip
(Status 7)
Installation aborted.

Recovery.log coming up...
[HTC EVO 3D] maaafeb05:
it does not work gave me status error 7

this one when ran on test 2, will check test 3 and report back
[HTC EVO 3D] scott951:
test3?

seems weird
[HTC EVO 3D] nattskift:
Recovery.log:

-- Installing: /sdcard/rom/SHOOTERU-MIUI-1.11.11-TEST-BUILD-3.zip
Finding update package...
I:Update location: /sdcard/rom/SHOOTERU-MIUI-1.11.11-TEST-BUILD-3.zip
Opening update package...
Installing update...
Creating filesystem with parameters:
Size: 838859776
Block size: 4096
Blocks per group: 32768
Inodes per group: 7315
Inode size: 256
Journal blocks: 3200
Label:
Blocks: 204799
Block groups: 7
Reserved block group size: 55
Created filesystem with 11/51205 inodes and 6651/204799 blocks
script aborted: mount() expects 4 args, got 3
mount() expects 4 args, got 3
E:Error in /sdcard/rom/SHOOTERU-MIUI-1.11.11-TEST-BUILD-3.zip
(Status 7)
Installation aborted.
result was NULL, message is: assert failed: install_zip("/sdcard/rom/SHOOTERU-MIUI-1.11.11-TEST-BUILD-3.zip")
[HTC EVO 3D] scott951:
Ok updater script and build prop are jacked up
[HTC EVO 3D] nattskift:
The two lines that contain mount and only has three args are

mount("MTD", "userdata", "/data");

mount("MTD", "system", "/system")

Must be one of those right?

Is there anything i can do to help?
[HTC EVO 3D] Philstadt:
finaly ;)

YEAH,

MIUI is out for GSM version ;)

Hope that we will get a stable version soon :)

I wrote on facebook to MIUI china.

They wrote that they will release a gsm verison for evo 3d soon ;)

Nice to see you here scot :D
[HTC EVO 3D] nattskift:
Cool! Any chance you could link to their page? :)
[HTC EVO 3D] Philstadt:
When i'm at home,ok?
[HTC EVO 3D] Flashmaniac:
Mount Date like that :

mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");

and System like that:

mount("ext4", "EMMC", "/dev/block/mmcblk0p22");
[HTC EVO 3D] ancola66:
The good news. I would love to use MIUI rom ( ago with HD2, DHD ). and now I'd love to have it on EVO 3D GSM. We appreciate your development. Thank you very much.
[HTC EVO 3D] Philstadt:
Does anyone can confirm that test 3 is working?
[HTC EVO 3D] Flashmaniac:
No, it doesn't.
[HTC EVO 3D] kspsp:
updater script

i have made somme change (copie crypto updater-script)

show_progress(0.500000, 0);
ui_print(" [#] Verifying Model ID");
assert(getprop("ro.product.device") == "shooteru" || getprop("ro.build.product") == "shooteru" || getprop("ro.product.board") == "shooteru");
ifelse(is_mounted("/system") == "/system", unmount("/system"));
ifelse(is_mounted("/data") == "/data", unmount("/data"));
show_progress(0.500000, 40);
ui_print(" [#] Writing Data (EXT4)");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
package_extract_dir("data", "/data");
format("ext4", "EMMC", "/dev/block/mmcblk0p22");

ui_print(" [#] Writing System (EXT4)");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
package_extract_dir("system", "/system");
symlink("busybox", "/system/xbin/[");

no error when install but lock to htc white screen :(
[HTC EVO 3D] kag8:
Deleted...,..
[HTC EVO 3D] Ganii:
Ok,little problems with updater-script,but easy to fix!

Biggest problem,I think,that`s why it doesn`t work,is the

kernel.

We need a working AOSP based kernel!
[HTC EVO 3D] nattskift:
This has been something I've been thinking about aswell... wouldn't it be relatively easy to diff the cdma and gsm kernel sources from htc, and then apply the differences to the CDMA aosp kernel, with special help from sensation kernel? Or is the aosp kernel source not released yet?
[HTC EVO 3D] scott951:
That's is it
[HTC EVO 3D] Philstadt:
I think the source files and board files for gsm Version are ready to download at htc dev Website...should be easy to port a Kernel ;)
[HTC EVO 3D] nattskift:
Tried to change them and resign etc, but I kept getting (Status 1) errors...
[HTC EVO 3D] Ganii:
format("ext4", "EMMC", "/dev/block/mmcblk0p22");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");

That`s right and I tried,but hangs on HTC Splash image.

As I said,I think we need the right kernel!
[HTC EVO 3D] Spades.J:
Maybe I have a way to find kernel source AOSP
[HTC EVO 3D] scott951:
I will upload another build in a few hours
[HTC EVO 3D] Philstadt:
With aosp Kernel? :)
[HTC EVO 3D] scott951:
get me that logcat that would help

paste it at http://logcat.miui.us
[HTC EVO 3D] Exostenza:
Thank you so much for adding to the GSM community. It is so read here!
[HTC EVO 3D] Nasoroz:
Thanx man thats what I was waiting for

something worth to lose waranty for :D

---------- Post added at 10:37 PM ---------- Previous post was at 10:32 PM ----------

Does it require s-off
[HTC EVO 3D] lamlopeala:
Thank you for bringing goodness to our GSM phones!!!! Cant wait for your it to fully work ;)
[HTC EVO 3D] 123bart8:
I am not a developer but maybe this can help you? It's from Crypt0night.

http://pastebin.com/9yBp13V9
[HTC EVO 3D] iamdata:
so i was reading a few weeks ago about cm7 wiki and building an AOSP kernel this sounds just like what we are talking about here.

im not sure where to go from here but ALOT of info!!

this must be golden!

http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
[HTC EVO 3D] scott951:
20 mins til next test build is uploaded
[HTC EVO 3D] brummer101:
Awesome, looking forward to help out! :)
[HTC EVO 3D] iamdata:
Sweet im looking forward to this too.

Sent from my Evo 3D GSM...bring on the AOSP!!!
[HTC EVO 3D] scott951:
http://www.mediafire.com/?o4cbmd6qbvdd1ly

ok crossing my fingers
[HTC EVO 3D] iamdata:
Nearly downloaded ... Will flash right away

Sent from my Evo 3D GSM...bring on the AOSP!!!
[HTC EVO 3D] iamdata:
Wiped. Flashed. Stuck on white HTC logo screen.

:( still I will wait 5more mins

Edit .. no further progress on white screen have tried battery pull.
[HTC EVO 3D] scott951:
get me a logcat please first
[HTC EVO 3D] kspsp:
same issue here

good tuto for compil asop kernel

http://blog.csdn.net/zmyde2010/article/details/6989225
[HTC EVO 3D] scott951:
One logcat will get us miles guys...

adb logcat > Shooteru.txt

or adb bugreport > bugreport-shooteru.txt
[HTC EVO 3D] nattskift:
Logcat inc, on a really ****ty computer, so installing the adb drivers take some time :/
[HTC EVO 3D] steveruthless:
this is what i'm looking for..downloading now..will report later.
[HTC EVO 3D] kag8:
please show me how to do this adb thing, or post a link to the logcat instructions, i would like to help in testing
[HTC EVO 3D] scott951:
ok guys with out a logcat I am done so pm me one or email me scott at miui.us
[HTC EVO 3D] XAnub1sX:
How about some instructions for getting the logcat?
[HTC EVO 3D] scott951:
do you have android sdk installed on your computer?

go to the > android-sdk folder /then / platform tools

copy path to clip board

open start> run > cmd

cd paste path

then

adb logcat > shooteru.txt

or

adb bugreport > shooteru-bugreport.txt
[HTC EVO 3D] iamdata:
im working on getting you a logcat.....

TRY this for now.. http://pastebin.com/SSdU0g42

but it is from a recovered image to my sense rom, i dont know if it will go back for enough for the miui, so telling you this now.. and i will reflash miui and then dump a new file (y)

---------- Post added at 12:26 AM ---------- Previous post was at 12:16 AM ----------

forget that old adb, this is the one you want. i kept seeing it loop!

http://pastebin.com/96t2VM8W
[HTC EVO 3D] scott951:
I got one via pm thanks.

Uploading another build
[HTC EVO 3D] kag8:
installing android sdk, wil test new build and post logcat if necessary, thanks for your efforts
[HTC EVO 3D] XAnub1sX:
Thanks for the info. I will help out when I can.
[HTC EVO 3D] iamdata:
waiting for the next one, maybe i will catch that one...
[HTC EVO 3D] scott951:
ok I have instructions in OP its up
[HTC EVO 3D] scott951:
from lack of feedback Im guessing build 5 was a no go?
[HTC EVO 3D] XAnub1sX:
I will let you know shortly
[HTC EVO 3D] kag8:
have just flashed it, 1st time booting its still at htc white logo screen, gonna give it a few mins more before trying a logcat