[Q] Installing ROM [NAND] - don't have DAF.EXE - HD2 Android Q&A, Help & Troubleshooting and Genera

Good day fellow HD2 owners,
I'm truly sorry but just recently got myself a HD2 and been trying to install and updated version of a nice ROM.
I was able to get the following installed
Radio 2.15.50.14
HSPL 2.08
MAGLDR 1.13
ClockworkMod Recovery 5.0.2.6
and then i found a DAF.exe file - (i had to leave the phone in flasher mode and the .EXE file did the rest). As you probably already guest the ROM is a bit out of date. So i tried to install a newer one. Well i came a cross many, many ROMS. But they seem a bit more advance and tbh i dont quite understand yet.
I been wanting to install the following ROM - http://forum.xda-developers.com/showthread.php?t=1298188 - but i just dont know what to do after i donwload the file since there is not DAF.EXE file in there.
Also whats the deal with all the partitions on all that jazz??? If there is a tutorial or posts out there i will appreciate if someone could point me in the right direction.
Thank you in advance.

daf.exe is basically the tool that partitions the NAND into separate sections, then it loads the image for each section into that section, , bootloader, recovery, data (blank) cache (blank) and most importantly, system.
But nowadays most roms don't use that method, instead you set up the partition layout the way you want it (it tells you in each roms first posts what system size to choose, this is teh important one, teh other sizses rarely need changing) by installing clockwork (which still uses a daf,exe to install , but only fills the recovery partition, all others stay blank) I'd recommend you get the nand tool-kit for partitioning.
Then, you boot into magldr, choose 8-AD recovery which runs the clockwork recovery program,. and from there you choose flash zip from sd card, , browse to the rom.zip you downloaded and put on your sd card, and the images for the bootloader and system partition are loaded into the blank partitions you created.
The plus side of doing it this way is that. assuming you aren't changing the system size (same sized rom) you can flash a new rom without needing daf.exe, and since daf.exe requires a PC, doing it this way means no need for a computer. You can downlaod the rom onto your sd straight through your phone and flash it on the bus, or at work, whatever.
Most roms come in two flavours, cLK and magldr (don't confuse cLK with CWM, two different things) you have magldr, so be sure and get magldr version.
Also, don't forget to set up an EXT partition on your sd card before you flash teh rom (You only need to do this once, not every time you flash) and the system will automatically use it as internal storage.

Related

CONFUSED

I see this in many roms i don't know what this means ZIP, CWM and DFT ; please can somebody explain what that means, and in what case i have to use them. thanks
htcp85 said:
I see this in many roms i don't know what this means ZIP, CWM and DFT ; please can somebody explain what that means, and in what case i have to use them. thanks
Click to expand...
Click to collapse
Zip is what you flash with cwm (clockworkmod recovery. Dft (dark forces team) is the one you have to flash using a computer. Cwm is more convenient and easier, you can make nandroid backups and you don't even need a computer to flash it.
i agree, it can be a bit confusing. but reading all the stickies, watching the vids can help.
but here is a bit for you:
DFT - used for installing over usb after you have flashed magldr. it is the most analogous to installing a WM rom. after loading into magldr > flash usb > connect phone to computer, you run DAF.exe and it installs android to nand.
read this for more info: http://forum.xda-developers.com/showthread.php?t=893948
CWM/ZIP - CWM allows you to flash nand roms via zips found on your sd card. but what really makes it nice is it lets you back up your rom so you can try out new roms and then, if you don't like them/they are unstable, you simply can load your old rom.
installing CWM is like installing a DFT rom or flashing anything when you used WM. you enter magldr > flash usb > and then run DAF.exe found in the CWM folder.
the tricky thing about CWM and zip roms is that different zip roms use different CWM sizes (135mb, 150, 200, 400, etc.) i know this has to do with size saving but other than that i don't know much. but the rom chef often puts exactly what you need in his/her installation instructions.
after installing CWM you are ready to flash via your sd card. from the hyperdroid thread:
# Boot into MAGLDR (Power On and HOLD the Power Button till MAGLDR options are shown)
# Boot into AD SD or AD Recovery to enter CWM Recovery Mode
# Go to mounts and storage and mount sdcard
# Copy the ZIP you downloaded to your sdcard and unmount (note: you can have the zip already on your sdcard from a card reader, from before or download it separately - this step is not crucial).
# Select install zip from sdcard
# Find the ROM.zip and install
# Reboot and remove Phone from USB (or it can already be disconnected - you can flash on the go...)
# After initial setup, reboot to get everything settled
hope this helps.
thanks very much mattfmartin and jsmccabe78 for the info.

Want to change ROM but confused about a few things.

Hi.
After getting my HD2 last week I tentatively but successfully flashed my first ROM, which was the Rafdroid 4.0.2.
I had correct radio.
I installed HSPL 2.08.
I installed MAGLDR 1.13
I got the Rafdroid ZIP file
Prepared SD card with Primary Partition and 1GB ext3 partition.
Downloaded the 400MB CWM partition and flashed to HD2
Then installed the Rafdroid Zip from SD card via CWM.
Everything seemed to go fine and I've been using the Rafdroid for a week. But now I want to try a new ROM, specifically the NexusHD2-Gingerbread V2.7 ROM.
Now I'am a bit unsure on how best to proceed still being new to the world of NAND. A few things in the Nexus ROM thread confuse me.
Installing CWM_Recovery_for_NexusHD2 (135MB system and 2MB cache)
Does this mean I need to reflash to CWM partiton size 1.3v 150MB? I'm unsure what the 2MB cache means.
Enter ClockworkMod Recovery when you're on MAGLDR 1.13 (hold "Power" button during boot) and select "AD Recovery" or "Boot AD SD" (if ever copied CWM's initrd.gz and zImage to SD).
The first part of this I understand but I don't know what the bold bit is. Do I need to copy these files to my sd card? I didn't do anything like this when I flashed Rafdoid.
Thanks for your time. Hopefully a few pointers can get me on my way
Yes, reflash cwm but with a different partition layout.
(look in cwm folder find flash.cfg, open it in notepad, you will see the numbers to change)
The bit in bold - ignore that, there are two types of cwm, one that installs to the nand, like you have, and one that runs from sd, so ignore the sd bit.
So,
Into magldr,,
usb flashing,,,
flash the new layout with the sizes the rom suggests, (you can tinker with your own sizes as you get used to changing, it's the system size that is important, a few meg bigger than the unzipped size of the system folder in the rom.zip)
When that completes, back into magldr,
Ad recovery (option 8 I think) to boot cwm, and flash the rom.
You can set the system size to what you like, so long as it is bigger than the roms system folder, but anything over is wasted, it doesn't count towards internal storage, so if the rom says 135 and you flash 150 layout, there is 15meg wasted space. (that being said, 150 is a good size to use, since quite a few roms use that or smaller,, sense free roms will mostly all fit in 150 layouts,) meaning you can switch between them without flashing cwm again. Also means you can restore cwm backups from any of them into that layout, so you can set one up, take backup, flash another, take backup, flash a third, then any time restore either of the backups.
Use flash.cfg to change partition.. Btw. I read in NexusHD rom topic you need to flash 135MB system and 2MB cache.
About the second problem:
Just make sure you have zipped rom on your sd card, enter MAGLDR, select AD Recovery and flash zip.
I think the second way is possible if you manually copy those files, never tried it.
Hi Sam and volv.
Many thanks for taking the time to answer my queries!
Should I get rid of the Rafdroid sd card layout and just re format the card to FAT32? I don't think I'll be going back to it.
Another thing about the backup - where are they stored - in the NAND memory or on the sd card for loading back into NAND?
Everything else you've posted has been very clear and super helpful. I'll definitely be a lot more confident at flashing the ROM tomorrow!
Thank you.
Warren_Orange said:
Hi Sam and volv.
Many thanks for taking the time to answer my queries!
Should I get rid of the Rafdroid sd card layout and just re format the card to FAT32? I don't think I'll be going back to it.
Another thing about the backup - where are they stored - in the NAND memory or on the sd card for loading back into NAND?
Everything else you've posted has been very clear and super helpful. I'll definitely be a lot more confident at flashing the ROM tomorrow!
Thank you.
Click to expand...
Click to collapse
Hi,
Before starting anything,BACKUP YOUR STUFF.
Go to ad recovery>backup and restore and make a backup of your current system and data.This is stored on your sd card in clockworkmod/backup.
Next ,flash your new partition.
Then go to ad recovery and wipe data,cache partition,and dalvik(advanced)
Then go back and choose install zip from sd card(having placed your new ROM zip on the root of your sd card using a card reader)
Most roms support using the ext partition, so definitely keep it.
Before you flash, in cwm, do a 'wipe data/factory reset','wipe cache', and then 'advanced - wipe dalvik cache'. This will clear out the data and such from the previous rom, so no need to format it. (there may be some leftover folders from certain apps in the fat32 partition, you can manually delete them as and if necessary, shouldnt cause any problems)
backups get saved to the sd card, in a folder called clockwork, so be sure and back that up if you plan on formatting your sd card.
Hi again.
I just want to say the flash went like clockwork (no pun intended ) The NexusHD ROM has a really nice feel to it. Its my first taste of stock Android and I like it.
I was going to sell the HD2 and keep my old Hero, but I'm not so sure now after trying NEXUS HD ROM.
Hmmn decisions decisions.
Once again thanks for all your help. It definitely filled in the missing blanks.
Ta Ta
you can use every flash.cfg and change the values to the needet. Run the flash tool and after that flash the zip via recovery

Bit of a noob here, got a quick question!

So I just bought a HD2 last week, after a little trial and error I managed to install this ROM http://forum.xda-developers.com/showthread.php?t=1117787 following the guide in the thread.
Every thing is running fine, no bugs, really fast and am really pleased with the phone and rom.
The only thing that I am a little unsure of, is that looking around the forums at other roms and also in the MIUI forums I see a lot of people talking about needing specific cache/partition/swap (not exactly sure which) sizes to run each ROM, in the MIUI forum it says "rom need to be at 150mb for magler/cLK to work right."
But following the guide for the ROM there is no mention of this an I did not do this step, the only thing I did was use CWM to create a EXT and swap (just chose sizes I thought would suffice) to get apps2sd to work once I had installed the rom.
Now I know the ROM runs fine but my question is will it run any better if I created the correct sized cache/partition/swap (whatever the hell it is!!)?
Sorry for sounding such a noob but this phone is a little different from my old hero to install ROMs on
When you flash clockwork mod you can edit the size of the system.
Open the folder of clockwork mod you downloaded and edit flash.cfg file with notepad and change system size to 150M .
That´s it
When you flash clock work mod???
As far as I can tell CWM just runs of my SD card (if I wipe the files off the SD card that are provided with the rom, it doesnt load CWM when I hold the power button then choose the number one option)
This is what I dont get, is CWM supposed to be permanently flashed to the nand as well, like the ROM is? And if it does just run off the SD, then why does it need a certain system size and what does this do?
Okay i think i have to write much now
Okay first you flash magldr (it´s the ´base´)
then you flash Clockwork Mod via USB Flasher option in magldr:
"For MAGLDR 1.13, booting from NAND:
Download the file attached
Download a partition layout incl. recovery from this thread which fits your ROM you want to use best and unzip it into "C:\recovery" for example
Copy over the recovery image file from inside the zip archive into this folder "C:\recovery", delete existing "recovery-raw.img" and rename copied image file to "recovery-raw.img"
Flash the recovery and partition layout using "DAF.exe" as usual and described in the thread of raiderx or the ROM provider
Boot Recovery with menu point "8. AD Recovery"
You're done"
Go here to get it :http://forum.xda-developers.com/showthread.php?t=987531
Before flashing it edit the flash.cfg file like i described it before ,then flash the .zip ROM..
Thanks for the detailed reply, so I'm gathering that this will install CWM onto my nand, but as I have the ROM running fine and don't really mind that CWM runs from the SD card, are there any benefits to doing this?? And will I lose some storage space on the phone if I do this?
you can use the sd version too
I suggest that when you change your ROM next time ,use the nand version with the right partition .

Ok, I give up, NONE OF THE METHODS WORK

I am now sitting in front of my HD2 for more than three hours and have watched several tutorials on how to get any android rom onto my HD2.
With MAGLDR I get the "123456 GO GO GO" - and then nothing happens
And before that there is a NAND KERNEL OPEN FAILED
Trying to get to the USB Mass Storage mode, Windows 7 (64) does not recognize the SD card. However, this shows then up in the USB eject menu (Eject MAGLDR)
With cLK I get some "flash_read_image: failed (511 errors) ERROR: Cannot read recovery_header" error
On my SD card, there is a ZIP file as downloaded "NexusHD2-IceCreamSandwich_Beta10.zip", formatted as FAT32.
Before, I flashed a stock WinMo 6.5, installed HSPL and a matching Radio one more time...
So no method works for me. Please help me.
1 - the mass storage in magldr doesn't work (for large files at least)
2 - you need to flash cwm with the correct partition layout after flashing magldr(or clk) and before flashing the rom.
Zuzler said:
I am now sitting in front of my HD2 for more than three hours and have watched several tutorials on how to get any android rom onto my HD2.
With MAGLDR I get the "123456 GO GO GO" - and then nothing happens
And before that there is a NAND KERNEL OPEN FAILED
Trying to get to the USB Mass Storage mode, Windows 7 (64) does not recognize the SD card. However, this shows then up in the USB eject menu (Eject MAGLDR)
With cLK I get some "flash_read_image: failed (511 errors) ERROR: Cannot read recovery_header" error
On my SD card, there is a ZIP file as downloaded "NexusHD2-IceCreamSandwich_Beta10.zip", formatted as FAT32.
Before, I flashed a stock WinMo 6.5, installed HSPL and a matching Radio one more time...
So no method works for me. Please help me.
Click to expand...
Click to collapse
i just recommend you to try flashing one more time from a scratch !!
install everything back to stock !! (install spl 1.42.0000 and stock rom)
reboot your device and start again !!
1) install hspl 2.08
2) install radio 2.15.50.14
3) do a task29
4) install magldr/clk (your choice)
5) flash recovery
now !!
insert your memory card in ur pc via a card reader only (dont use any mass storage or anything else !! use a good card reader only !! )
format it to fat32 with allocation size unit to 32kb !!
put the card into phone !!
boot up the device and make a partition 512mb ext -0mb swap !!
http://forum.xda-developers.com/showthread.php?t=1013852
flash this rom!!
atleast for the start or any other rom of your choice !! !!
try booting up !!
may help !!
GOOD LUCK
i think your problem lies in the ext4 partition that you have to make.
Today i tried this ROM which works great.
First things first:
I have a EU HD2 too (512Mb)
with a 16Gb SD card
make sure you have HSPL 2.08 if not see this thread
What i did:
First download these:
-Notepad++ (if you don't have it)
-the ROM from the above link.
-MAGLDR 1.13 (but HD2 Toolkit takes care of this too )
-HD2 Toolkit (for various reasons including Task 29)
-i use 4EXT 2.2.7 by Dansta34 recovery instead of CWM, it's great and does EXT4 partitions
-i flashed 2.15.50.14 radio (but i think 2.14.50.04 is better, at least for me so i'm going to flash it back)
-Now i removed my SD card from the phone and format it in Windows as FAT32, no partitions just yet.
-Plugged the phone to my PC via USB
-Ran HD2 Toolkit and pressed the Task29 button (now your phone is wiped) while with the phone in bootloader (turn on while pressing the Volume down button)
-Use HD2 Toolkit to flash MAG Loader too, just press the button while in bootloader
-Now bring your phone in MAG Loader (turn on and keep the far right button/end call button pressed until the list appears on the screen) and choose USB Flasher (option 5)
-Go to the folder where you downloaded TBD Ext4 Recovery V2.2.7 ported & moded by Dansta34 and find the flash.cfg file.
-Open the file with Notepad++ and change it to look like this(if you are going to try the rom above):
misc ya 8M
recovery rrecov|ro|nospr filesize recovery_leo.img
boot yboot|ro 5M
system ya 220M
cache ya 5M
userdata ya|asize|hr allsize
-Save and close the file.
-Run DAF.exe from the same TBD Ext4 Recovery V2.2.7 ported & moded by Dansta34 folder to flash Recovery.
-When finished enter MAG Loader again and choose option 8 - AD Recovery by pressing the far left button/call button. wait for it to load.
-Choose from the recovery menu Advanced (scroll down with the Volume down button and confirm with the call button)
-Choose Partition SD Card, choose Remove all partitions and start from scratch
-Choose first SDEXT 1024, second SDEXT - skip, swap 128 and most important Choose EXT4 file system.
-Go back and choose File System Check, choose SDCARD and let it repair.
-Now you can remove your SD card and copy the ROM on your FAT32 partition (the largest one in case you run Linux on your PC).
-Let it copy and put the SD card in your phone.
-Boot in MAG Loader, choose AD Recovery and select install ROM from SDcard.
-When prompted choose the proper options (EU HD2, MAGLDR, etc.)
You should be good to go now, it's a great rom.
Let me know if everything is ok, eventually PM me.
Good luck
I think there's the problem. I don't have a microSD cardreader, I only can copy the file directly to the microSD via the USB cable.
Any suggestions for that?
Do you still have the microSD -> SD adapter?
If not, i'm afraid you'll have to find one or a microSD card reader if your planning on flashing a lot
That's the root of your problems too
Disregard everything, it works!
I just had to wait for clockwork approx. one hour until it loaded...
That's not good either..You really don't have to wait that long over anything.
Anyway, when you decide to start fresh, look over my post above, it'll help, took me weeks to understand some things and luckly the search function works.
Yeah, I'll give it a shot, thanks!
The wait is really bad...
I know exactly how you feel, I've been there.
i still don't know everything either but little by little, searching here and there and we'll make it
katalin_2003 said:
-i use 4EXT 2.2.7 by Dansta34 recovery instead of CWM, it's great and does EXT4 partitions
Click to expand...
Click to collapse
Hi Katalin,
Thanks for your post. I intend to use this ext4 partition next time when I''ll flash a new ROM. Tell me please is really good or is just a new thing and that's all?
Salutare
I read about it last night when trying the new NRG ROM since a lot of people were having problems with CWM.
Apparently we needed EXT4 file system partition and CWM does EXT3 only.
The only thing i don't like about it it's the background, i think the rest it's better especially the partitioning menu.
I have written a guide that might can simplimify things some for you.
Sent from my HD2 using xda premium

Trying to install CWM from sd SD kernel failed

I want to re-partition my NAND, and don't have windows around. So I downloaded cwm-sd.zip and cwm.zip. I extracted cwm-sd.zip to the root of my sd card , copied cwm.zip with appropriate flash.cfg inserted. I will reboot, go to Mahler, ad sd. (As described)
But I will get sd kernel open failed.
I try with the latest stable clockworkmod. 5.0.26
Any ideas what the problem might be.
I want to repart nand only, so any other ideas not including windows pc are welcome, I have pc with Ubuntu on it.
Sent from my HTC HD2 using xda premium
1st-sorry, don't know why its not entering cwm
But
2n- it doesn't work like that. you can't repartition magldr from SD. If it did boot "ad SD" it would run cwm, nothing more. The SD cwm is so you can backup/flash roms without having nand cwm, but it relies on the nand already being partitioned.
If you want to partition from SD use clk instead of magldr.
I have a working CWM installed. I just want to re-part, really.
According to this thread,
http://forum.xda-developers.com/showthread.php?t=987531
it seems this should be possible. I dont want to re-install CWM though, I just want to re-part. I can cope with terminal and adb , I think, and these options are (I think) available under linux, but I dont know how to do it
Well, I disagree, but hey, you have the info. I'll be interested in reading your how-to if you manage it.
(Also, from your other threads you seem not to have noticed that partitioning also installs cwm at the same time)
deckoff said:
I have a working CWM installed. I just want to re-part, really.
According to this thread,
http://forum.xda-developers.com/showthread.php?t=987531
it seems this should be possible. I dont want to re-install CWM though, I just want to re-part. I can cope with terminal and adb , I think, and these options are (I think) available under linux, but I dont know how to do it
Click to expand...
Click to collapse
Even with this link i failed at setting up ADB on my Ubuntu machine but you may have better luck than i.
I am almost 100% sure I managed to do this way back in time. What I don't know is if I can use adb to partition NAND , and if so, how. Not to mention that the phone is not the typical android phone.
Sent from my HTC HD2 using xda premium
samsamuel said:
Well, I disagree, but hey, you have the info. I'll be interested in reading your how-to if you manage it.
(Also, from your other threads you seem not to have noticed that partitioning also installs cwm at the same time)
Click to expand...
Click to collapse
I have noticed it, I assume it will install over the existing one...
I dont have any info, I just cite a source. The process apparently fails for me, so I am stuck. I am probably misunderstanding it.
You CAN install cwm over the current one, by booting into cwm and then using flash zip from sd card, and selecting the new cwm.zip from your sd (just like flashing a rom), BUT this doesn't partition anything, it is just loading the contents of the zip into the recovery partition that already exists.
trust me, if you want to partition the phone without a pc, you need to be using cLK.
From the link above:
For MAGLDR up to 1.13, booting from SDCard (SD-files version):
Download the file attached
Extract the files to the root directory of your sdcard
Start recovery within MAGLDR with menu point "AD SD"
Recovery should start
You're done
Click to expand...
Click to collapse
What exactly is this used method used for? It is described in the Install CWM methods(if I am not wrong)
Flash.cfg files in clockworkmod.zip are used to re-part data and user partitions. What happens if I re-flash CWM.zip with custom flash.cfg file inside via method at the top of the post. Or just flashing CWM.zip with flash.cfg via the installed CWM. What and when reads the flash.cfg files and act accordingly?
It is not a question of trust, I would love to know the basic workflow of the process
The cwm that comes with a flash,cfg is for flashing to nand via usb - magldr - usb flasher, or the cLK equivalent.
the cwm-sd version, and the process outlined in your quote, is used to boot into a valid working copy of cwm from sd card instead of the nand recovery partition.
For example if your nand version of cwm gets corrupted, .. for example trying to use rom manager under magldr, corrupts the nand copy of cwm, so you can load to the sd version of cwm, and use that to do a backup of your rom and/or reinstall cwm into the nand partition. It does NOT let you repartition the nand in the process. The partitioning happens via teh daf.exe and flash.cfg, , its daf.exe that does it. cwm just works with teh contents of teh partitions, not teh actual partitions.
If you were really tight on space, you could omit the nand recovery partition altogether and only ever run cwm from sd, gaining a whole FIVE MEG to put towards the data partition!

Categories

Resources