yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] lukesan:
That is a nOOb question, but we've all been nOOb's so ;-)

Lets say that this way we don't have to fear the TMOUS HD2's with 1GB internal mem.

The Storage of the programs is on the card instead of the internal memory.
[HD2 Android NAND Development] bauner:
You have to flash the complete rom not only system or boot.img! all your data will be deleted! (because the kernel partition has increased slightly to original build)

Subsequent updates of my mod can be done without complete reflash

Copy the data folder before flashing into the main directory of the memory card and edit the included config.txt to your needs.

In the config.txt are the following options (more to come with updates...)

data_img = 1 (0 = use data partition in phone 1 = using data.img on sd card)

DATA_SIZE = 512 (size of data.img on the sc card in mb)(auto creating on 1. boot. can take a few minutes!)

copy_data = 1 (1 = copy data partition from phone to data.img on sd card on 1. boot (after copy a file "to_copy_again_delete_me" is created in the data folder to prevent copy on each restart. To re-copy the data from the phone simply delete this file and reboot))

dass rom muss das 1. mal komplett geflasht werden. alle deine daten werden gelöscht! (weil sich die kernel partition leicht vergrößert hat)

die späteren updates für meinen mod können danach ohne komplett flashen zu müsen eingespielt werden

vor dem flashen den data ordner ins hauptverzeichnis der speicherkarte kopieren und die darin enthaltene config.txt bearbeiten.

in der config txt gibt es im moment folgende einstellungen

data_img=1 (0=daten partition im telefon verwenden 1=daten aud sd karte in data.img)

data_size=512 (größe der data.img auf der speicherkarte in mb)

copy_data=1 (daten partition beim start vom telefon in die data.img kopieren (danach wird eine datei "to_copy_again_delete_me" im data ordner erstellt die verhindert dass jedes mal beim starten kopiert wird. Um erneut die daten vom telefon zu kopieren die datei einfach löschen und neu starten ))
[HD2 Android NAND Development] bauner:
to backup your data from original rom:

install z4root

do a permanent root in z4root

install MyBackup Root from market

backup your programs and settings with mybackup on sd

to import in new rom:

install z4root

do a permanent root in z4root

install MyBackup Root from market

restore your backup from sd card.

It worked perfectly for me.
[HD2 Android NAND Development] Realplayer-88:
is it possible to keep your own data without rooting the phone?

I rather don't do that
[HD2 Android NAND Development] bauner:
z4root is very easy and works perfect, and it have an option to set a non permanent root (rom is unrooted again after restart)

the alternative is to install a tool like appbrain which saves a list of your installed programs for faster reinstalling from market.
[HD2 Android NAND Development] Realplayer-88:
Is it also possible to change 512 MB to 2048? Or is this to high? and will it not work?

Please give me step by step what to do?

I think this is it.

Copy the map DATA to the root of the SD card.

Then put your phone off

Press long on power on button..

choose menu 4.. and connect with usb on computer ..

and then run the dft file you made bauner?

Then I must delete something after first boot?

please help
[HD2 Android NAND Development] bauner:
you can do so...

you must nothing delete after boot.

but if you want 2048 edit the file config.txt in data folder on sdcard before you flash to the following:

data_img=1

data_size=2048

copy_data=0
[HD2 Android NAND Development] Realplayer-88:
Yes, okay, I get the point that I must configure the text with 512 to 2048.

But the thing is: this was in the readme file:

1=copy data from phone partition to data.img on sd (can take a few minutes. after copy you find an file to_copy_again_delete_me in data folder. delete this file to make a new copy on next reboot)

???

And are my steps correct?

Thankyou, is it so that I lose all my settings and stuff?
[HD2 Android NAND Development] bauner:
your steps are correct

If you dont want to root your device with z4root and make a backup with mybackup root you lose your complete settings and stuff

this file is generated if you had work with data on phone (data_img=0)

and want to switch to data.img on sd (data_img=1)

after this the phone would start with an clean data.img when copy_data=0. if copy_data=1 it will auto copy your existing data from phone to data.img.

when copy process is finish the file to_copy_again_delete_me is generated on your sd card to prevent coping again on every reboot. (only a security reason if you forget to switch copy_data= back to 0 after copying your data)
[HD2 Android NAND Development] Realplayer-88:
Okay thankyou very much.

I love this rom, it is so stable, I just want to have more space for apps.

Because I only have 50 MB over at the moment.

I hope this rom works for me!

Thankyou!

Do I have to have a clean SD card with only the data map or other maps that I used with the stock rom?
[HD2 Android NAND Development] bauner:
it should work with other data on card
[HD2 Android NAND Development] anderin:
Hello,

Is it compatible with "prj's kernel v0.3"?

Thanks!
[HD2 Android NAND Development] swordfish2009:
hey seems nice..

what sd card do you suggest to use for data.img? I have 8gb class 2 which seems to be very slow and causes lag I think
[HD2 Android NAND Development] elgar:
Can I use this mod with another Rom based on Leo Stock Desire? Do I need to replace the system.img and proceed?
[HD2 Android NAND Development] bauner:
its already included

do not switch the kernel because i´ve modified the initrd for data.img support
[HD2 Android NAND Development] bauner:
i´ve not tried it. you can try if you want.

just replace my system.img with your one and flash it.

if its not booting remove battery restart with pushed on/off and flash another...
[HD2 Android NAND Development] bauner:
i use an sandisk 16gb class 4

but I have an 2gb class 2 also

wait a few minutes

I do some benchmarks....
[HD2 Android NAND Development] bauner:
benchmark results

nand clean rom with only neocore and quadrant installed

neocore 1. run 31,3

neocore 2. run 31.3

quadrant 1. run 1248

quadrant 2. run 1311

sandisk sdhc class4 16gb with data copied from nand to 2gb data.img

neocore 1. run 31,2

neocore 2. run 31,5

quadrant 1. run 1908

quadrant 2. run 2107

noname class2 2gb with data copied from nand to 1gb data.img

neocore 1. run 31,4

neocore 2. run 31,4

quadrant 1. run 1779

quadrant 2. run 1874

sound was on in neocore

all cards are fat32 formated with the panasonic sd format tool (32kb cluster size)
[HD2 Android NAND Development] elgar:
2nd thing:

I use ext4 with the following config.txt:

use_ext4_partition=1

format_ext4_partition=1

use_ext2_instead_ext4=0

use_dataimg=0

data_img_size=512

mount_data_img_sync=1

copy_data_from_nand=0

copy_data_from_img_to_ext4=0

The size of ext4 partition I use is 512Mb. The size I guess can be anything up to 2Gb depending on your needs (how many apps you want to install). I decided to use standard measures in Mb like 128, 256, 512, 768, 1024, etc. With 512Mb ext4 partition my total internal memory is 512Mb + whatever is free memory in NAND after flashing the rom (it's about 130Mb - I can't remember now). I have about 90 apps installed, and I still have about 366Mb of internal memory free.

After you have formatted your SD card you don't need to reformat fat32. I usually delete files from previous rom that are created by the rom (which might not be necessary - I don't really know).

Both fat32 and ext4 must be primary. I use default size clusters (I've formatted using linux).

With clockworkmod recovery updating this rom should be an even easier job, but I haven't tried it yet, but I am going to when the next update comes out (hopefully very soon :-).
[HD2 Android NAND Development] havlaz:
hi.. is it oxded or deoxded
[HD2 Android NAND Development] gagi75:
1.lets clear something ...fat 32 particion phone use for applications

ext4 phone use for backup and restore am i right...

2.gps not working i wos put some aplication from maket but nothing to much time for searching satelites i dont now whas problm,maybe a port or somehing else..

3.depend of rom you must to change ext is it 2 or 3 or 4 whats neht DO I must format only ext particion or whole card and do proces from biginig to the end ..

so ext 4 can bee 1.5 gb is it ok

4.i am saying only bicouse when i restart phone he stock on animation window and goes again and again BUT when i pull sd card remove battery thn put him on hegoes and evrithing is fine put on card in fone evrithig is good,realy strange:confused::confused:

and i am doo all proces in my laguage on you toube bicouse i wish to help people

thanks thanks m8

:):):):):):):):):):):):):)
[HD2 Android NAND Development] bauner:
v2 is odexed

but v3 which comes today is deodexed
[HD2 Android NAND Development] bauner:
the fat32 is the partition that you see as sdcard in android

(if enabled in config) the ext4 partition (or data.img inside the data folder on fat32 partition) is used to store all your apps and settings (it shows you as internal phone memory)

gps should work out of the box...

you can use ext4 or ext2 (in v3 also reiserfs and btrfs) as filesystem for the second partition (you should use ext4 its faster and the risk of data corruption is lower)

you can try to update to v3 (release today) it could be that an sleep was set to low in v2 can cause your problems if you use an slow sd card
[HD2 Android NAND Development] idevmag:
great news, really excited to see v3 :)

Thanks for the great job bauner

iDev
[HD2 Android NAND Development] kuba28ms:
woooow :-)
[HD2 Android NAND Development] bauner:
sorry v3 is delayed till tonight

I found an bug that cause an bootloop if boot without sdcard
[HD2 Android NAND Development] gagi75:
sir i do like you say but again restar phone if i remove sd card boot normaly

i wont to store on sd card

and plesae if you can look my config txt

use_ext4_partition=1

format_ext4_partition=1

use_ext2_instead_ext4=0

use_dataimg=0

data_img_size=kolika je ext/4 particija

mount_data_img_sync=1

copy_data_from_nand=0

copy_data_from_img_to_ext4=0

is this good i min is this right .txt

the fact is a names tehincal and i am bad whit that biciuse i dont now english well

i have idea why you dont put like this:

if you wont to put 1 is on 0 is off somethin like that ext/4=1

if you wont to put 1=on or 0=off copy_data_from_nand=1......etc

its easy to understand minig yours tehnical words for me and other people...

thanks for answering to me m8
[HD2 Android NAND Development] bronx:
thanks for an update Bauner, can't wait to try it. any major changes? the only issue/bug I've spotted in v2 so far is the low incall volume, so I wonder what other things could be improved..?
[HD2 Android NAND Development] bauner:
now its done... im uploading right now...

you can read the changelog and download in a few minutes in the 1. post
[HD2 Android NAND Development] gagi75:
thanks m8 you are the best

thanks again cheers

sory one woestion how to do up date

must i delete previos version or just up date via sd card in clock work

thanks
[HD2 Android NAND Development] bauner:
its online now in first post

-you can flash the std version (nand data gets erased. data.img/partition gets not erased)

-update via clockwork (no data gets erased if you only use update.zip)

-update direct from sdcard on boot with the update package (no data gets erased)
[HD2 Android NAND Development] gagi75:
update from zip i think from clokwork 2n doption there whit out wipe data etc....

i only use cwm bicouse is easy....

whats about config i have idea do you see maybe .... i wos doo all tutorial in my language can i use yours rom for exsample in my contry
[HD2 Android NAND Development] gagi75:
a am dowloading and will tested tonight bicouse of that i am asking to be simople for understanding...what city you are in german
[HD2 Android NAND Development] bauner:
sorry i don´t understand what you exactly mean...

with your posted settings you use a clean ext4 partition on sdcard as data storage.
[HD2 Android NAND Development] gagi75:
yes whats minig thtats sentes exsaple

when i install all aplications i wish to back up

question

what must i change in config to do that exsample

use_ext4_partition=1

format_ext4_partition=1

use_ext2_instead_ext4=0

use_dataimg=0

data_img_size=kolika je ext/4 particija

mount_data_img_sync=1

copy_data_from_nand=0 whats this when is 1 please tell me in easy way and where is root

copy_data_from_img_to_ext4=0 whtas this when is 1 whats do is this whole data from phone and goes to ext 4

and when i format sd card will bacup still be there

i really have wishh to understand beter....

thanks

ps 3 days i wos need to learn ho do hspl how do mdglr clockwork flash radio but his words something i dont undersand...aaaaaaaaaaaaaaa
[HD2 Android NAND Development] maxxpop:
I have been waiting for this long time , thank you bauner!

Q: what Have I done wrong? Market download doesnt seem to work, I have allready tryied the fix_permissions=1 code.:(

EDIT: had to reboot twice after fix_permissions=1

thanks
[HD2 Android NAND Development] jirka607:
Please what is it reiserfs/btrfs

and is the ext 4 faster than DATA.IMG on Class 2 SD ?

Thanks
[HD2 Android NAND Development] mr.juziu:
Could you place a mirror, please?

Rapidshare not works for me.

Thanks!

mr.juziu
[HD2 Android NAND Development] hg3atintin:
Good job! Im getting no lag att all, downloading 20 apps simultaneously on the market and no lag at all when they are installing.

:D
[HD2 Android NAND Development] jirka607:
Which FS?

Should i USE Data.img or EXT4 on Class 2 SD card?
[HD2 Android NAND Development] bauner:
Reiserfs and btrfs are alternative filesystems.

Reiser performs very good on database operations.

Btrfs is an newer but currently not complete stable filesystem

Data.img with sync set to 0 could be faster than ext4.

But the risk of data corruption is higher in data.img with sync 0.

Ext4 is generally a good choice for normal use.
[HD2 Android NAND Development] hg3atintin:
Bauner I have found a bug. In stock browser go to settings and plug ins. If the plug ins is set to always the browser fc. If set to on demand its ok. Only way the fix the fc is to delete all browser data in settings, programs. Is there a fix for this?

Edit: new bug? 3g icon in taskbar newer changes to H when I'm using hsdpa. Working now. Reboot fixed the icon.
[HD2 Android NAND Development] jirka607:
So i must decide between EXT4 and dataimg with sync on class2

Is there a way to make EXT4 in WINXP or is there that Gparted to install on USB?

Thanks

but if i am right data.img should be same or little faster than EXT4 on Class2
[HD2 Android NAND Development] bauner:
data.img with mount_data_img_sync=0 could be a little bit faster as ext4 but the risc of data corruption is higher.

you can create a sencond partition with any program and with any filesystem.

if you set format_ext4_partition=1 it gets formated automaticly to ext4 on boot
[HD2 Android NAND Development] jirka607:
but there isnt speed difference between data.img and EXT4 because i like data.img more

Will the clockword partition create EXT4 to use with this wonderfull ROM

thanks
[HD2 Android NAND Development] bauner:
mirrors are now in the 1. post
[HD2 Android NAND Development] hg3atintin:
Bauner is there any fix for the bug I posted about?
[HD2 Android NAND Development] bauner:
for me it works...

did you try to set fix_permissions=1 and wipe_dalvik_cache=1 in config and restart?
[HD2 Android NAND Development] hg3atintin:
So if you have latest flash and go to stock browser and set plug ins to always on and press back to start to surf the web. You don't get a force close? Are you sure?
[HD2 Android NAND Development] idevmag:
Thanks forHey bauner, I m trying to use UOT kitchen to put battery % and different icons. But UOT always return error. I m using v3 and /system/framework/framework-res.apk

Thanks

idev
[HD2 Android NAND Development] bronx:
positive. everything works great.

fantastic job Bauner. no bugs so far. I'am on magldr 1.13 and using 1024 bytes data.img on fat32, 8gb class6 card.

[EDIT]

Bauner - You've added smartass governor... are You using it? is it in any way better than interactive one??
[HD2 Android NAND Development] hg3atintin:
Weird I can only set plug ins to on demand or off or else the browser fc. Did fix permissions and removed dalvik cache.
[HD2 Android NAND Development] bauner:
no fc for me...
[HD2 Android NAND Development] gagi75:
cant boot phone hahahahhhahahahah
[HD2 Android NAND Development] bauner:
smartass is added but not enabled by default.

Interactive gives me much better reaction
[HD2 Android NAND Development] bauner:
Ive tested it without errors.

what error did you get?
[HD2 Android NAND Development] WarlockW:
Help ?

Little confused about the Conf File ..

I have a t-mobile HD2 and want everything in Nand Memery ..

Nothing on SD Card ..

What should the config file look like ?

Can Someone Post it for me ?
[HD2 Android NAND Development] bauner:
set everything to 0
[HD2 Android NAND Development] WarlockW:
Thanks .. for the quick reply :)

Will Give it a shot ..

Sorry .. what should I use as a CWM Config ?

misc ya 1M

recovery rrecov|ro|nospr filesize recovery-raw.img

boot yboot|ro 10M

system ya 400M ----------------------425 ?

cache ya 10M

userdata ya|asize|hr allsize

???
[HD2 Android NAND Development] gagi75:
do you do particion on sd card fat32 and ext 4
[HD2 Android NAND Development] bauner:
misc ya 2M

recovery ya|ro 8M

boot ya|boot|ro 8M

system ya 230M

cache ya 40M

userdata ya|asize|hr allsize

this cfg is included in v3 cwm package
[HD2 Android NAND Development] hg3atintin:
Accidently deleted browser.apk. Need to reflash and reformating my ext 4 partitions.

Hopefully the plug-ins set to always on will work in the stock browser.

Edit: Reflashed problem still there. Odd.
[HD2 Android NAND Development] bauner:
do you have more plugins installed?

did you start clean or do you use userdata from an other rom?
[HD2 Android NAND Development] bronx:
well, it is weird indeed.... are You using newest adobe flash version?

anyway, great build. once again - thanks Bauner. I'll send You some beer money soon. ;)
[HD2 Android NAND Development] imilka:
reiserfs... interesting, always wanted to try :)

and how does it perform? :)
[HD2 Android NAND Development] hg3atintin:
Clean flash with task 29 and format ext 4 with your config and before that with gparted.

Reflashed, first thing i did was. Browser, settings, plugins set to always on press back = fc.
[HD2 Android NAND Development] gagi75:
when i flash whit v3 i wos have v2 then no clock wos and other app on screen i do copy paste from v3 on v2 yours rom is that good all things was there is that good do i have new rom oror how i now is i do corect

what is this

use_reiserfs_instead_ext4=0

use_btrfs_instead_ext4=0

and can i change valuve for thhis :

backupfile_free_space=50 (can i put much more or is this default)

and this is mine after boot

use_ext4_partition=1

format_ext4_partition=1

use_ext2_instead_ext4=0

use_reiserfs_instead_ext4=0

use_btrfs_instead_ext4=0

use_dataimg=0

data_img_size=1024

mount_data_img_sync=1

copy_data_from_nand=0

copy_data_from_img_to_ext4=0

backup_current_data=0 ( if i put can i go on recovery mod if set is 1)

backupfile_free_space=50

wipe_dalvik_cache=0

or how will be if i wish save data gor later

thanks
[HD2 Android NAND Development] jirka607:
Little problem :)

Mobile data connection still shows connecting and never connects

with V2 it was immediately
[HD2 Android NAND Development] elgar:
Installed the latest version of cwm. Flashed update.zip. Stuck on go go go! My config.txt is everything=0 except use ext4=1

What am I doing wrong? Why can't it boot?
[HD2 Android NAND Development] gagi75:
remove batery again if again stock remove sd card
[HD2 Android NAND Development] elgar:
I've figured it out I think. It seems that the cwm recovery version included with this rom is an older version, because the latest version didn't work with this rom, had to use the one that comes with this rom. Everything worked. Thank you bauner!
[HD2 Android NAND Development] bauner:
set format to 1 on first boot. if you created ext4 with pc it can be that the flag huge_file is set which makes mount impossible

this version needs at least 8mb boot partition! most cwm roms uses lower space... my initrd is bigger
[HD2 Android NAND Development] jirka607:
Data Connection

Please the V3 is so fine but my data connection cant connec it still show connecting but nothing happen......

PLease help
[HD2 Android NAND Development] bauner:
???

these are alernative filesystems for the sd card partition

max is 2048-your actual used space

this gets automaticly set to 0 after boot. if you set it back to 1 all your data gets deleted

backup_current_data=1

backupfile_free_space=50

creates an image file with all your data and 50mb free space (you can rename it to data.img and use it directly with 50mb free storage if use_ext4_partition=0 and use_dataimg=1)

or you can restore it to your ext4 partition on next boot with this

use_ext4_partition=1

format_ext4_partition=1

recover_data_from_backup=1
[HD2 Android NAND Development] gagi75:
ok i was create data image for recovery,still is good no bugs i find for me is dam good rom m8.........never again will trie anodther rom

thanks m8 sorry for english
[HD2 Android NAND Development] anderin:
This build/mod/rom is perfect. I have tried a lot of builds, and this one is the BEST for our HD2! THANKS!
[HD2 Android NAND Development] kuba28ms:
Hello All

I have Problem Boot time

I have Ext4 Partition 2048 mb (on Sandisk 16gb Class2) and Config

use_ext4_partition=1

format_ext4_partition=1

use_ext2_instead_ext4=0

use_reiserfs_instead_ext4=1

use_btrfs_instead_ext4=0

use_dataimg=0

data_img_size=0

mount_data_img_sync=1

copy_data_from_nand=0

copy_data_from_img_to_ext4=0

backup_current_data=0

backupfile_free_space=50

wipe_dalvik_cache=0

run_fix_permissions=1

recover_data_from_backup=0

and my phone boot up long time ~2-5min every restart

why?
[HD2 Android NAND Development] khanem:
+1. first time i got 2 mA with any rom. My battery drainage is minimal. But more testing is needed to be sure that it's stable. sense builds are the way to go.
[HD2 Android NAND Development] bauner:
did you try

wipe_dalvik_cache=1

run_fix_permissions=1

(with this it can take very long to boot.)

if this not help you can make a backup and try if ext4 works better

backup_current_data=1

backupfile_free_space=5(or what you like)

after this

use_ext4_partition=1

format_ext4_partition=1

recover_data_from_backup=1
[HD2 Android NAND Development] jirka607:
DATA.img

Is there any speed difference between 1GB and 2GB data.img

Thanks
[HD2 Android NAND Development] nicsarnero:
Thank you for the new work bauner

The V3 works great.

For me the Best Rom!!!
[HD2 Android NAND Development] kuba28ms:
bauner

it's no problem I make with Gparted raiserFS partition and not Ext4?

now it's working

Problem has when i restore my backup (apps and data) with mybackup root

I don't know why?
[HD2 Android NAND Development] rock4mayo:
There are plants to create a desire hd rom with this config?
[HD2 Android NAND Development] gagi75:
thanks bauner tell me how log take gps find satelits any program can see if gps is working and mdglr1.13 is it compatible whit yours rom

thanks m8 best of the best

i find this

NTP_SERVER=north-america.pool.ntp.org

XTRA_SERVER_1=

http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=

http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=

http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

i find for serbia

where i must put this files

server 2.rs.pool.ntp.org

server 1.europe.pool.ntp.org

server 2.europe.pool.ntp.org

and europa
[HD2 Android NAND Development] elgar:
I kept the ext4 partition unformatted after the newest update. The Rom has recognized it very well, I have all my apps, but I don't see them in the market in my apps section. Is there a fix for it? Because otherwise the update from one version to a newer one doesn't make sense, if I have to reinstall everything from scratch.