[Q] Clockwork Mod Recovery - flash.cfg values - HD2 Android Q&A, Help & Troubleshooting and Genera

Hi All,
I've been flashing Android ROMs to my device for almost 10 months now.
This, off course, I've been doing using the Magldr and the CWMR.
Some developers seem to ask for specific values in the flash.cfg, before flashing the CWMR
My Question is:
What do these values actually control?
What effect do they have on my device internal/external memory?
Values usually are (values are example):
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 360M
cache ya 5M
userdata ya|asize|hr allsize
I'd really appreciate having an answer for this
Thank you.

misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 360M
cache ya 5M
userdata ya|asize|hr allsize
The system ya 360M is the system portion. This is the space in your NAND memory that is to be allocated to your system (Android). So you do not want nit too small as your Android will not have space to operate, and you don't want it too big either cause you will not have enough space for apps and personal data.
The boot yboot|ro 10M is t5he potion for your boot. This is the space in your NAND memory that is allocated for the boot. This portion basically holds all the information your HD2 uses while booting up in top Android. You do not want it too little as you will not be able to boot your Android. If it is to big you will just have wasted space on i n your NAND.
The cache ya 5M is the space in NAND allocated to your cache. Same thing you don't want it to small or too big
Hope that helps.

T-Macgnolia said:
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 360M
cache ya 5M
userdata ya|asize|hr allsize
The system ya 360M is the system portion. This is the space in your NAND memory that is to be allocated to your system (Android). So you do not want nit too small as your Android will not have space to operate, and you don't want it too big either cause you will not have enough space for apps and personal data.
The boot yboot|ro 10M is t5he potion for your boot. This is the space in your NAND memory that is allocated for the boot. This portion basically holds all the information your HD2 uses while booting up in top Android. You do not want it too little as you will not be able to boot your Android. If it is to big you will just have wasted space on i n your NAND.
The cache ya 5M is the space in NAND allocated to your cache. Same thing you don't want it to small or too big
Hope that helps.
Click to expand...
Click to collapse
Dear T-Macgnolia
Thanx a million for clarification, your time and support
Best regards,

Related

How to change recovery size

Sorry if this question has been asked before but how do I change recovery sizes for example one rom will says it only needs 350mb size recovery but my only option is the 400 mb recovery I heard there is a way to change it to 350 or any other size but I have no clue.I'm on tmobile hd2 by the way.
Sent from a guy living in a van down by the river
You have to find the flash.cfg file then open Wordpad and drag and drop it in Wordpad. Then look for this line of text.
misro 5M ---à system ya ???M cache ya 4M userdata ya
There should be numbers where I have the three question maks at just change that number to the size you want and save the file.
jriv said:
Sorry if this question has been asked before but how do I change recovery sizes for example one rom will says it only needs 350mb size recovery but my only option is the 400 mb recovery I heard there is a way to change it to 350 or any other size but I have no clue.I'm on tmobile hd2 by the way.
Sent from a guy living in a van down by the river
Click to expand...
Click to collapse
First of all you should tell us if you are using cLK or MAGLDR bootloader.
In MAGLDR partitioning is made when you are flashing ClockWorkMod Recovery. Find the file flash.cfg
it will look like this:
Code:
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 400M
cache ya 4M
userdata ya|asize|hr allsize
Change the
Code:
system ya 400M
to be like this
Code:
system ya 350M
And continue as usual.
In cLK partitioning is managed by cLK it self so you need to flash a specific cLK bootloader
you will find cLK with many different partitioning here: http://forum.xda-developers.com/showpost.php?p=11983838&postcount=2
Thanks for your help I'm using magldr.so I configure the flash.cfg file then I flash the recovery via daf is that correct?
Sent from a guy living in a van down by the river
jriv said:
Thanks for your help I'm using magldr.so I configure the flash.cfg file then I flash the recovery via daf is that correct?
Sent from a guy living in a van down by the river
Click to expand...
Click to collapse
Correct, that also mean that you need you 1st make a backup and restore your backup afterwards because new partitioning will erase your data.

[q] cwr 5/250/5 ?!!?!

People, please make me understand what is CWR 5/250/5 & how to do it?!
Does it has something to do with the SD Card?! And what if I have only 700MB out of the 8GB, would that hurt this CWR?!
its the partition size needed for the rom to work correct
1st number is the boot size required
2nd is the system partition
3rd is the cache size
Can you please help with the steps to do that?!
2ndly, would it harm if my sdcard has only 438MBs left out of the 8GB?!
Internal partition, nothing to do with your SD card. Go get the nand toolkit, cwm partition, select 250 done.
samsamuel said:
Internal partition, nothing to do with your SD card. Go get the nand toolkit, cwm partition, select 250 done.
Click to expand...
Click to collapse
Now that's what I call "Express Answer"!!! Thanks a lot for the quick & full answer! Because of you, I've done it!!
samsamuel said:
Internal partition, nothing to do with your SD card. Go get the nand toolkit, cwm partition, select 250 done.
Click to expand...
Click to collapse
Now that's what I call "Express Answer"!!! Thanks a lot for the quick & full answer! Because of you, I've done it!!
so impressed he answered twice, hehehe.
metaljoker said:
People, please make me understand what is CWR 5/250/5 & how to do it?!
Does it has something to do with the SD Card?! And what if I have only 700MB out of the 8GB, would that hurt this CWR?!
Click to expand...
Click to collapse
Here you go
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 250M
cache ya 5M
userdata ya|asize|hr allsize
copy paste this into your cwm in the flash.cfg (open it in notepad)
then flas the cwm via usb flasher in magldr (i assume you know this)
its just like flashing any daf rom !!

-< Partitioning Questions >-

OK .. Im about to flash a new rom (ParanoidAndroid HD2) but i am a little confused on how to do all the partitioning requested.
Heres an example:
misc ya 1M
boot yboot|ro 5M
system ya 200M
cache ya 2M
userdata ya|asize|hr allsize
I understand that i can use HDToolkit to partition the system and cache, but what about partitioning "boot" and "misc". And what is userddata ya?
Everything in that list gets partitioned when you do the system partition, so don't worry about it.
Also, your thread title says SD partitioning, which is nothing to do with anything in your post,, totally different thing.
So basically all i want to do is make sure the system partitioning is as recommended or enough and the same with the cache. The other partitioning is done during the installation.
If thats the case, thank you very much for your input.
Noob Dude said:
So basically all i want to do is make sure the system partitioning is as recommended or enough and the same with the cache. The other partitioning is done during the installation.
If thats the case, thank you very much for your input.
Click to expand...
Click to collapse
Basically yeah, just select 200MB in the HD2 Toolkit and let it do it for you.
thank you so much
Noob Dude said:
thank you so much
Click to expand...
Click to collapse
1.misc is for android misc data and boot is for the linux kernel and ramdisk in order to let the rom boot
2.normally we set boot to 5 and cache to >=2 because roms now dont really use this partition for cache, it's just used by cwm
3.misc and recovery should normally be 1 and 5~6
4.userdata is for android to store your system and application data in your daily usage
5.usually you can find an instruction for partitions size in a rom thread
EDIT:userdata is usually auomatically sized becasue it spreads at the end of the nand,
following other partitions...
if this helped you and enlarged your knowledge please press the thanks button
. |
. |
.\ /

[Q] exusHD2-JellyBean-4.1.2-CM10 V1.1 [NativeSD] not worked

Hi All!
I'm installed exusHD2-JellyBean-4.1.2-CM10 V1.1 [NativeSD] .but i have an error!
when my HTC hd2 device is booting , this still on android logo and not boot android
after 15 min on logo android not boot.
Same here... Stays on logo that goes round and round but nothing...
Make sure you have a ext4 partition on your sdcard
Sent from my NexusHD2 using xda premium
after you installed the rom don`t forget to change on services/bootsettings/ad sd dir/(from 4extr to --> NativeSD)
beshkan said:
Hi All!
I'm installed exusHD2-JellyBean-4.1.2-CM10 V1.1 [NativeSD] .but i have an error!
when my HTC hd2 device is booting , this still on android logo and not boot android
after 15 min on logo android not boot.
Click to expand...
Click to collapse
I had the same problem before increased the partition size. Make sure you got this when installing:
misc ya 1M
recovery rrecov|ro|nospr 7M recovery_leo.img
boot yboot|ro 5M
system ya 320M
cache ya 2M
userdata ya|asize|hr allsize
If you are using NativeSD method, don't need to change system partition size.
You just need Ext4 partition and define the boot folder to NativeSD.
Using NAND you have to increase system partition size to the recommended.
NexusHD2 JellyBean
non funziona internet con 3g gprs
AndWhale said:
I had the same problem before increased the partition size. Make sure you got this when installing:
misc ya 1M
recovery rrecov|ro|nospr 7M recovery_leo.img
boot yboot|ro 5M
system ya 320M
cache ya 2M
userdata ya|asize|hr allsize
Click to expand...
Click to collapse
how do i increase my partition size?
---------- Post added at 03:37 PM ---------- Previous post was at 03:21 PM ----------
djxcee said:
Make sure you have a ext4 partition on your sdcard
Sent from my NexusHD2 using xda premium
Click to expand...
Click to collapse
how do i do that?
bhayat2 said:
how do i increase my partition size?
---------- Post added at 03:37 PM ---------- Previous post was at 03:21 PM ----------
how do i do that?
Click to expand...
Click to collapse
i don't have hd2 t-mobile.
must i use Native-SD or SD method for installation?
how
Magic2010 said:
If you are using NativeSD method, don't need to change system partition size.
You just need Ext4 partition and define the boot folder to NativeSD.
Using NAND you have to increase system partition size to the recommended.
Click to expand...
Click to collapse
how can i Create Ext4 partition and define the boot folder to NativeSD?
beshkan said:
how can i Create Ext4 partition and define the boot folder to NativeSD?
Click to expand...
Click to collapse
ext4: steps are:
1) format sd card cia SDFormatter
2) use any partition tool (I use Gparted LiveCD, you can also use windows programs - use google) to decrease the size of the main fat32 partition (make enough space, like 1 or 2 gbs). create new primary partition with ext4.
2.5)using sdformatter before is important because (at least in my case) it leaves 4KB at the beginning of the sd card, dont know exactly what it is for but i think maybe it is important. so in order to get an ext4 partition its best to first format the sdcard with sdformatter in order to get that partition table WITH the 4KB section at the beginning and then just decrease the fat32 size to make space for ext4 at the end. so at the very end the partition table looks like this: 4KB(unallocated)-FAT32-EXT4
^
if you dont know how to properly use it, make yourself familiar with it by watching tutorials etc.
partition programs can wipe your whole system by a click, so be careful and KNOW what you do
boot folder is set by going into MAGLDR (press and hold power button at phone start), select "services" and then "set ad sd dir". there you can set the new folder (nativesd in your case). you can also use that to, for instance, boot into ext4recovery

[Q] How to customize the partition table?

First of all, I ahve searched the forum and I am unable to get an idea on how to customize the partition table. I want to customize the partition table as follows,
Code:
misc ya 1M
recovery rrecov|ro|nospr 5M cwm_recovery_leo.img
boot yboot|ro 5M
system ya 200M
cache ya 2M
userdata ya|asize|hr allsize
No idea what does this means. I know how to use hd2tool kit if it is to be used.
I can change the system partition size and cahce size by this app but other than that I have no idea.
Is there anything to run this code to update the partition table?
thanks for helping me......
SUNNY ARSLAN said:
First of all, I ahve searched the forum and I am unable to get an idea on how to customize the partition table. I want to customize the partition table as follows,
Code:
misc ya 1M
recovery rrecov|ro|nospr 5M cwm_recovery_leo.img
boot yboot|ro 5M
system ya 200M
cache ya 2M
userdata ya|asize|hr allsize
No idea what does this means. I know how to use hd2tool kit if it is to be used.
I can change the system partition size and cahce size by this app but other than that I have no idea.
Is there anything to run this code to update the partition table?
thanks for helping me......
Click to expand...
Click to collapse
well, if you are using clk 1.5.x.x it's extremely simple, just change partition layout from there (in settings), otherwhise on magldr just open the flash.cfg with a text editor and change the layout from there (then flash magldr you edited)... if you are on clk 1.4.x.x, upgrade to clk 1.5.x.x and change layout from there
I don't use cLK but in MAGLDR the above instructions aren't very clear. You have to download a CWM package to your PC then go into the CWM folder and open the file flash.cfg (not flash.cfg.txt) in notepad (which happens by default on Windows). Edit the values to whatever you need for your ROM (make sure to keep the formatting the same) then save the file. Boot your phone into MAGLDR and flash the CWM with the new partition table from the USB Flasher option.
Sent from my Nexus 4

Categories

Resources