yashsingh1/xdaforums huggingface dataset:
[Kindle Fire Android Development] soupmagnet:
To create the sdcard with the proper formatting and remove the 'msftres" flags:

Using adb shell, make sure the sdcard isn't mounted, and launch 'parted'

$ adb shell
~ # umount /sdcard
~ # parted /dev/block/mmcblk0

Remove any sdcard partition you currently have and create a new one with the proper formatting

(parted) rm 12

(parted) mkpartfs primary fat32 2309 7690

The previous command assumes your sdcard's "start block" is the same as stock.

This next part seems counter intuitive but it's necessary to remove the 'msftres' flags that can prevent the sdcard from being mounted properly.

Remove the sdcard partition again, recreate the partition using 'mkpart', but this time don't specify a file system.

(parted) rm 12
(parted) mkpart primary 2309 7690

Give the partition you just made a name and quit 'parted'

(parted) name 12 media
(parted) quit

mount your sdcard (note: this is different from mounting to USB)

~ # mount /sdcard
[Kindle Fire Android Development] sharonbw:
Nice. I did more than was necessary.

---------- Post added at 08:18 PM ---------- Previous post was at 08:14 PM ----------

That last bit confused me when I was slogging thru this . I'm still thinking these directions are over the heads of the folks that need a "guide". Tomorrow when I'm not on my second glass of wine I might try to do a step by step. I love you guys!

Edit: I must be at least on my third glass.

---------- Post added at 08:23 PM ---------- Previous post was at 08:18 PM ----------

Can you post that please.
[Kindle Fire Android Development] awidawad:
Here you go: http://xdaforums.com/showthread.php?t=1632375

Enjoy :)
[Kindle Fire Android Development] BrooklynNY:
Just did this dual boot thing. I'm now running cm10.1 from @twa normal boot, and cm7 from here. It's Awesome to have the two OS's ability on a device like this. But personally, who needs/wants cm7/gingerbread?! After using and getting used to jellybeans :) , why would I wanna even touch that moldy bread??? Anyone?

I'm thinking of flashing the ICS alt-rom. Maybe.
[Kindle Fire Android Development] :
The CM7 battery lasts like 3 weeks without charging with moderate use... that's why I like it
[Kindle Fire Android Development] Guitarman:
Sometimes I like the simplicity of GB on the Fire but for OTG support I use CM10. I love the fact that I can choose which OS version simply by rebooting the device :)

Sent from my Fire Kindling A-Pad
[Kindle Fire Android Development] waffull:
Where are unmount and parted found?

Please excuse my ignorance. When I connect via adb, I can see /sdcard and /dev, but running unmount or parted command return:

/system/bin/sh: unmount: not found

or

/system/bin/sh: parted: not found

Thanks for the help.
[Kindle Fire Android Development] soupmagnet:
It's 'umount', not 'unmount' and it is a shell built-in. The 'parted' binary usually comes with recovery. You can find it separately but you should be in recovery to use it anyway.
[Kindle Fire Android Development] tobiascuypers:
How can I convert the u-boot-1.4a.bin to an iso. (For extraction purposes, just so I can look at it?) I've tried multiple programs but all fail?
[Kindle Fire Android Development] :
Thanks for the Guide. I'm thinking, what if I want to change my Rom (Primary or Alternate)? Will there be anything that can help me choose the slot? And will the sdcarb be actually divided into two memory slots(2.5 and 2.5 gb)?
[Kindle Fire Android Development] :
The alt Roms must be prepackaged to install to the alt partition

Sent from Nexus 5 on Slimkat
[Kindle Fire Android Development] budgierless:
Will this work for me?

Hi,

Sorry if this question has been asked already somewhere, I use a kindle fire HD 7", will this dual boot method work for me, if not, then why not? has i have need seen any posts that states which kindle's this mod is meant for.

thanks
[Kindle Fire Android Development] chykal:
This is for the original kindle fire (otter) only. Not the HD version. Why? Because it is created to replace the bootloader for that device.
[Kindle Fire Android Development] coolpixs4:
link is death
[Kindle Fire Android Development] three-p-o:
Here you go

Hmm, they are free, but looks like you have to sign up to download. Anyone have a better option that I don't have to pay for?

Mediafire offered me 200MB with 0MB/month download... Yes, that is a zero. It seemed pointless.
[Kindle Fire Android Development] AustinFire:
Thanks!:)

Maybe try dropbox.com or box.com. I use dropbox personally, but I've heard that Box.com is pretty good. :D
[Kindle Fire Android Development] wmka2000:
This stock rom optimized to install in seconde partition or just modified and rooted update as per first thread.
[Kindle Fire Android Development] AustinFire:
I can confirm that it is optimized for the second partition(s).
[Kindle Fire Android Development] three-p-o:
when I recompiled it after making the modifications I zipaligned the apk's if thats what you are talking about.
[Kindle Fire Android Development] eldarerathis:
Well that's 200MB per file, not total, and the 0MB is basically direct links (i.e. you don't get any). You can still distribute files with a free account, the public link just forces the user to land on a Mediafire page first (with ads and whatnot) so that they make money. My account info says I've served 1.25 TB of data and I don't have a paid account with them. It's what I use for my ROMs because cloud storage sites like Dropbox impose a fairly small monthly bandwidth limit on public links.
[Kindle Fire Android Development] AustinFire:
Yeah
[Kindle Fire Android Development] YaKillaCJ:
Hey thanx alot first and for most. I have a request.

Being that im an advanced user and kno my way around partitioning, console and what not. I would prefer to custom setup the partitions to the size of my liking and not the automated one (much apreciated however for making it simple).

So can you display the default partition setup allowing us power users to custom fit?

I mean we can do it after using your script but hey, its easier just to skip to the template is what I mean.
[Kindle Fire Android Development] eldarerathis:
Sure. This is the partition table that 'fastboot oem dualformat' creates:

> adb shell parted /dev/block/mmcblk0 print
Model: MMC M8G2FA (sd/mmc)
Disk /dev/block/mmcblk0: 7734MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 131kB 262kB 131kB xloader
2 262kB 524kB 262kB bootloader
3 524kB 11.0MB 10.5MB dfkernel
4 11.0MB 212MB 201MB ext4 dfs
5 212MB 229MB 16.8MB recovery
6 229MB 296MB 67.1MB ext4 backup
7 296MB 307MB 10.5MB boot
8 307MB 312MB 5243kB ext4 splash
9 312MB 849MB 537MB ext4 system
10 849MB 2041MB 1192MB ext4 userdata
11 2041MB 2309MB 268MB ext4 cache
12 2309MB 6233MB 3924MB fat32 media
13 6233MB 6245MB 11.5MB boot2
14 6245MB 6717MB 472MB ext4 system2
15 6717MB 6851MB 134MB ext4 cache2
16 6851MB 7690MB 839MB ext4 userdata2
[Kindle Fire Android Development] three-p-o:
I can confirm, with my own setup, that it does not matter on the sizes etc. just so long as you give yourself enough space. My mmcblk0 has 7818GB instead of the 7734GB eldarerathis has.

It is advisable that everyone sticks to the same partition numbers though so that we can make a standard alt image and not have 20 different versions of the roms because someone's boot2 is 14 and cache2 is 16 etc.

Stick with these partition numbers:

Boot2 = 13
system2 = 14
cache2 = 15
userdata2 = 16

I think we might have a hard enough time getting rom packagers to start providing 2 different versions, primary and alternate.

Edit: On another note, has anyone tried my 6.3 rom other than AustinFire? Anyone having issues? I got a PM saying it is bad, but AustinFire was able to get it to work. I am just looking to see if it is working or failing for anyone else.
[Kindle Fire Android Development] eldarerathis:
I might give it a try over the weekend if I have some time. If I do I'll let you know how it goes. Need my CM7 altrom for work until then, unfortunately.
[Kindle Fire Android Development] fiddlefaddle:
Can you dual boot Ubuntu with this? Just wondering... thanks a TON DEVS!!!
[Kindle Fire Android Development] three-p-o:
I just did a quick search, and the only ways I found so far to do ubuntu involve running a VM on top of android.
[Kindle Fire Android Development] animefun135:
everything seems to be ok but 5 GB of free space I can only upload files to 3.5 GB, how to fix this problem?
[Kindle Fire Android Development] three-p-o:
eldarerathis already answered this on page 2, see quote below.
[Kindle Fire Android Development] animefun135:
ok thanks, deleting dualboot... :(
[Kindle Fire Android Development] fiddlefaddle:
Yes I know I can do that.. But with this new FFF can I fully boot ubuntu? Just asking lol:)
[Kindle Fire Android Development] shravbits:
Very well done. I will be trying this soon
[Kindle Fire Android Development] three-p-o:
I belive that is not a question for this thread. The boot loader just facilitates dual boot and does not change the capabilities of the hardware.

if you can boot Ubuntu without this boot loader, then you should be able to with it.

Edit: additional info on installing roms. Apparently the issue that was reported to me in regards to my 6.3 alt rom is because of a bug in twrp 2.1. I recommend upgrading to 2.1.1 if you are having issues.
[Kindle Fire Android Development] fiddlefaddle:
Another question..:D Can I use ICS with this? As my starting ROM?
[Kindle Fire Android Development] wmka2000:
Yes I used Reloaded as my default and modified kindle stock rom as alt and every thing goes Okay till now, will update later when have more time to try both.
[Kindle Fire Android Development] three-p-o:
I'm using AOKP 34 as primary and the 6.3 alt rom on mine.
[Kindle Fire Android Development] smirkis:
I'm gonna dive into this when otg is all sorted out. how's everyone managing with only 3.6gb usable sdcard space?
[Kindle Fire Android Development] WattB006:
Thanks for the info. I was wondering the same thing. I already have it installed. Now I am going to finish it all up.
[Kindle Fire Android Development] YaKillaCJ:
Yea good question. Imma probably go custom and use ICS for more space. 1 plus is that the games requiring additional data will be able to share it from the sd. Im so caught up on what will do what because I really wanna use ics but everything don't function 100%. Cm7 does everything I throw at it tho, lol. Im loaded on mid/high quality games and no way they can fit on both.
[Kindle Fire Android Development] raiderep:
I'm managing well and really like it. Got everything set up for making my own and going to work on modaco gr8 on second tonight....fingers crossed!

Sent from my Galaxy Nexus
[Kindle Fire Android Development] YaKillaCJ:
Hmm im not using dual boot but have a custom partition already. 2.47 GBs of internal storage and only 400 MBs of free space with everything installed on internal. I kno i can manage to strip ot down another 200mbs.

If I use Gingerbread built in Apps to SD. Would ICS and GB be able to share it?

Probably not but figured I would ask.

Which kernel is being used by the CM7 Kang posted here?

Hopefully IntersectRavens latest. If not, can someone post one because I need CIFs.
[Kindle Fire Android Development] raiderep:
Oops...bad post, miss read the question....carry on :eek:

Sent from my Galaxy Nexus
[Kindle Fire Android Development] lovejoy777:
now we have usbstorage can we start to have roms etc on a flashdrive set as our secondary partition?. if alt boot led to a flashdrive partition instead of sdcard partition?
[Kindle Fire Android Development] eldarerathis:
Tried this today, everything seems to work just fine for me. Using TWRP 2.1.1 at the moment. Thanks!
[Kindle Fire Android Development] eldarerathis:
It's the vanilla CM7 kernel. I've got permission to repackage IntersectRaven's kernels for altboot, though, so I'm going to try to get to that tomorrow if I can.
[Kindle Fire Android Development] eldarerathis:
Okay, here's IntersectRaven's 2.6.35.14 CM7 kernel packaged for altboot partitions. Credit to IR for the kernel, naturally, and for giving me permission to repackage it: http://www.mediafire.com/?6b5545b55tx5jwd

Just flash in recovery on top of a CM7 altboot install. I haven't checked the CIFS or TUN functionality (I don't use them myself), but overclock works fine and it boots and runs without any issues.

I'll also add this to the second post with all of the other downloads.
[Kindle Fire Android Development] Alessioromatm:
I've installed FFF extended and I've packaged gedeROM for dualboot but when I try to flash this rom,the installtion do an error,this is the log:
[Kindle Fire Android Development] eldarerathis:
There's an error in your updater-script, it seems. It's specifically complaining that format() is not being called correctly.
[Kindle Fire Android Development] Alessioromatm:
these are the lines that i've changed on updater-script:

format("EXT4", "/dev/block/mmcblk0p15");

mount("EXT4", "/dev/block/mmcblk0p15", "/cache");

package_extract_file("boot.img", "/dev/block/mmcblk0p13");

Original lines are:

format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");

mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");

package_extract_file("boot.img", "/dev/block/mmcblk0p7");
[Kindle Fire Android Development] Sblood86:
Notice you've only given 2 arguments to the format command in your script vs the 4 arguments listed in the original? Without a value for each argument required the format command is going to fail cause it doesn't actually know what to do. Incidentally the number of arguments actually varies between edify binaries (the binary built with cm7 requires 3 arguments, whereas cm9 requires a 4th argument).
[Kindle Fire Android Development] Alessioromatm:
so,what do i write?
[Kindle Fire Android Development] lovejoy777:
isn't system 16 not 15?

edit. if the orig is wanting you to mount system it looks like you've changed it to mount/format cache?
[Kindle Fire Android Development] Alessioromatm:
On the package ROM guide it's written "Remember that system=14, cache=15, and data=16."

however i don't understand what you say in the EDIT of your post :confused:

EDIT: Now I understood,I changed the order about mount and format only on the post,on updater script the order of functions is the same as the original file
[Kindle Fire Android Development] eldarerathis:
So basically, the original script looks like this:

format("ext4", "EMMC", "/dev/block/mmcblk0p9", "0");

Yours looks like this:

format("EXT4", "/dev/block/mmcblk0p15");

The issue is that the format() command requires 4 arguments to be provided. In the original script there are 4 arguments ("ext4", "EMMC", "/dev/block/mmcblk0p9" and "0"). Your script only has 2, so it needs to provide 2 more arguments in order for format() to be able to run. It needs to be changed to:

format("EXT4", "EMMC", "/dev/block/mmcblk0p15", "0");

That should work. Same goes for anywhere else you call format(), like for /system2 and /data2 (mmcblk0p15 will be cache2).
[Kindle Fire Android Development] Alessioromatm:
I've changed the format() arguments as you say but now when I try to install my dualboot rom the kindle shows this error:

now these are my lines that i've changed on updater-script:

format("EXT4", "EMMC", "/dev/block/mmcblk0p15", "0");

mount("EXT4", "EMMC", "/dev/block/mmcblk0p15", "/cache");

package_extract_file("boot.img", "/dev/block/mmcblk0p13");
[Kindle Fire Android Development] anantshri:
any plans on integrating features from http://xdaforums.com/showthread.php?t=1632375&page=3 into dualboot FFF.
[Kindle Fire Android Development] Alessioromatm:
anyone can help me with ics rom packaging for dualboot?
[Kindle Fire Android Development] anantshri:
can you attached your old and updated update-script.

that might enable someone to help you.
[Kindle Fire Android Development] Alessioromatm:
I installed ics rom as first rom then i not need to package it,thank you anyway

EDIT: I need help again,I want install MoDaCo rom as alternate rom but on its updater-script there aren't format and mount functions...

I have attached MoDaCo updater-script to the post
[Kindle Fire Android Development] anantshri:
he is not formatting the partition

so what you can do is add a comment above fllowing command (line 5)

run_program("/sbin/busybox", "mount", "/data");

also replace this command with your mount command to mount data

secondly

line 15

run_program("/sbin/busybox", "mount", "/system");

replace with mount for /system

and instead of this

ui_print("Writing Boot");

package_extract_file("boot.img", "/tmp/boot.img");

run_program("/sbin/busybox", "dd", "if=/dev/zero", "of=/dev/block/platform/mmci-omap-hs.1/by-name/boot");

run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/platform/mmci-omap-hs.1/by-name/boot");

delete("/tmp/boot.img");

you cna put your own boot.img extract file code (Line 415-419)
[Kindle Fire Android Development] three-p-o:
I did it. It has a few issues. You can read more here, http://xdaforums.com/showpost.php?p=25695280&postcount=133

I haven't released a bin for it, but if you know how to build it, its working fine.

Kinda hoping that someone can take my work and fix the screens so we have the initlogo instead of just normalboot showing.
[Kindle Fire Android Development] eldarerathis:
I would like to integrate Hashcode's changes, but it's not something I'm going to have time for in the next week or so. I'm going to be traveling for work this week.

Are you using Hashcode's splash images? I was planning to use ones similar to my current images when I get the time to look at this because having more solid color will allow them to be compressed smaller in RLE format. I may even reduce the text size on all of them to compensate for the extra text. Good to know that it's a fairly straightforward merge, though; thanks!
[Kindle Fire Android Development] three-p-o:
I made a few adjustments, upped code to 4 menu items instead of 3 and I made a conditional in the format function, instead of a function for each, I have a flag being passed and an if statement being used to format based on that flag.

I used Hash's splash screen as a base to make new ones, again 4 menu items. See attachment.

I think the ultimate "fix" is going to be if we can have multiple images on display at once.

For example, have abase image, with other items overlayed on top of it depending on the situation. For example, in the attachment, if the text at the bottom was another image on its own we would not need 5 separate splash images each using up 16kb, we instead have 1 or 2 main images with smaller images to display at the bottom when conditions are met.. not sure how much code that would need, or if its even possible.
[Kindle Fire Android Development] Alessioromatm:
maybe I use only a rom,if I want to flash FFF 1.4,what should i do before flashing the bootloader? Just execute fastboot oem format then flash the new bootloader?
[Kindle Fire Android Development] Alessioromatm:
Someone can help me?
[Kindle Fire Android Development] three-p-o:
Basically, yes, or wait for a multiboot release based on 1.4.

My 1.4.1 merges the 2, but you have to know how to compile it to use it. I'm honestly hoping someone else can fix it so that my hack fix, of dropping the initlogo, is not needed.
[Kindle Fire Android Development] Alessioromatm:
ok but if I flash FFF 1.4 I don't lose my primary rom that I installed? I say right?
[Kindle Fire Android Development] three-p-o:
No, the OS on the primary partition should not be wiped as the secondary OS was made from the Media partition.

You will lose all the data on your Media partition and may have to format it for anything, android/Windows/Mac/Linux, to recognize it.
[Kindle Fire Android Development] smirkis:
I would fastboot OEM format before just because.
[Kindle Fire Android Development] Alessioromatm:
After I typed "fastboot oem format",I flashed FFF 1.4 and I formatted the sd card but now when I try to install titanium backup pro the os shows "Impossible to install Titanium backup.Free space and try again" (in italian language).Is it a problem related to the change of bootloader or not? Other apps are installed correctly

P.S: before the change of bootloader,i had titanium backup pro installed and it worked

EDIT: I solved the issue by myself
[Kindle Fire Android Development] Scaevola:
I'm also using dualboot and I recently had the same issue after a rom upgrade. (I didn't do anything regarding dualboot config, just flashing an upgrade.)

I solved it by manually copying Titanium Backup apk to the data/app folder.
[Kindle Fire Android Development] Alessioromatm:
I solved the issue as you :)
[Kindle Fire Android Development] AustinFire:
Any progress on FFF 1.4.1?
[Kindle Fire Android Development] three-p-o:
Not by me. I don't know if anyone has cloned it to work on it though.
[Kindle Fire Android Development] thedeveloper1:
CM9 Dualboot

Is there CM9 available for dualboot?
[Kindle Fire Android Development] mspallz:
how exactly did u flash bootloader??it says error:cant load u-boot.bin
[Kindle Fire Android Development] three-p-o:
That is a original kindle image modified to install onto the alternate partitions used by the dualboot loader. You have to have already installed the dualboot loader and repartitioned the internal storage before you can use that image.
[Kindle Fire Android Development] mspallz:
thnx..but i was asking u how u flashed FIREFIREFIRE extended bootloader??if i tried to flash through cmd it says error could not find u-boot.bin...if i try to flash it using kindle fire utility, it says md5 mismatch: aborting..

wat should i do??where exactly should i locate u-boot.bin??i tried placing it in folder where adb.exe is run from..didnt work..i am asking u abt flashing bootloader because in instructions it said first to flash dual bootloader and then to fastboot oem dualformat...please help
[Kindle Fire Android Development] three-p-o:
I have always flashed the bootloader via fastboot.

From one of the other FFF threads..

Howto flash by hand

Get into fastboot mode somehow. Having and older FFF from the TWRP installer is a good start. Currently KFU or fbmode is the easiest

flash with "fastboot -i 0x1949 flash bootloader u-boot.bin" (take out "-i 0x1949" if FFF is already installed)

disable fastboot: "fastboot -i 0x1949 oem idme bootmode 4000"

reboot: "fastboot -i 0x1949 reboot"
[Kindle Fire Android Development] ProfEngr:
What changes did you make to the ROM package for the alternate locations? I'd like to attempt it myself instead of bugging the dev about it.

Sent from my TBolt with the XDA App using 1 opposable thumb
[Kindle Fire Android Development] three-p-o:
All my changes are detailed here, http://xdaforums.com/showpost.php?p=25156337&postcount=101

The issue I ran into was fixed by rebuilding the kernel using the rom kitchen and using the v2 version of the FFF dualbooting bootloader. my 1.4.1 version also works, but as far as I know, I'm the only one using that.
[Kindle Fire Android Development] ProfEngr:
Well, unless I get some more free time and a few more brain cells I'll have to continue standing on the shoulders of giants. I won't be able to mess with a dual boot until my hub, battery, OTG cable, & sd card show up anyway. Two ROMS w/ SwitchMe app really puts a hurt on the 8GB. I had to expand userdata/ by 512MB the other week just to get the app to try to boot a 2nd profile & it still didn't do that to my satisfaction. The overall plan is to run Stock/rooted/otaRootkeeper on main & Energy/hashcode on Alt. or vice versa with ntfsmount for the external SD card hardware as main media storage.

How do you guys (the ones out of school & working anyway) find the time to work on this stuff? Between work, wife, kid, & house I barely have time to turn around. Major props to your abilities & dedication.
[Kindle Fire Android Development] pokey9000:
Massive cooperation, kids who sleep through the night, and the ability to thrive on 4 hours of sleep.
[Kindle Fire Android Development] ProfEngr:
Wish me luck. Going to try it with NRG's ROM on primary (since I flash hash's kernels alot) and stock/rooted as alternate.

Question though...

In TWRP, if I do a nandroid will it backup the alt boot as well? Something tells me no.