yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] ToddeSwe:
Hi!

My ext4 partition is 1 GB, and i have 3 GB free space on my SD card.

I formated my ext4 partition, then i installed V4 and then from MAGDLR i installed the update after renaming it to update.zip.

Is that the right way to do it?

How do i use a ADB what ever that is? :)

Can you please tell me how to use it?

I downloaded an WiFi ADB app from the market and now i have an ip adress and a portnumber, what do i do with it?

I don't think my device use my ext4 partition and maybe i have done something wrong... i did not use any config syntax when installing...

I looked in the readme file for config.txt now and maybe it's what i have done wrong... can i NOW afterwards just put a config.txt with parameters and reboot to tell it to use ext4 partition like:

use_ext4_partition=1

copy_data=1
[HD2 Android NAND Development] ToddeSwe:
YES i could and i did :) Now it works fine!!! :)

I've decided to put you in my will, that's how good this ROM is :)

First time ever the SD card speed test app shows the right speed of my SD card!
[HD2 Android NAND Development] ToddeSwe:
Realy spoke to soon! :(

Sorry to say but now my phone is realy fu:ed up for real. :)

Turned my phone off and started it, now i don't have ONE app left... everything is gone.... and i have to accept and enter username and password at Facebook and so on .... what went wrong? But still on ext4 partition though :)

Is my ext4 corrupted now or what have happened?

Could it be that i used HTC Sync on Android for the first time? But it looked like it worked while doing it ...
[HD2 Android NAND Development] bauner:
do you know which settings in config.txt you had set to =1

before you restarted

? (because some settings gets automaticly switch to =0 after reboot to prevent from running again)

because you wrote about copy_data=1 in your prev post.

copy_data is not a valid setting in v4/5! (it was valid on older versions and gets interpreted as copy_data_from_nand= in v4/5 for compatibility reasons if an old config.txt is used in newer versions)

Valid settings for copy are:

copy_data_from_nand=

copy_data_from_img_to_ext4=

If you set copy_data_from_nand=1 then your ext4 data is overwritten with the data from internal nand data partition.

if you had copy_data_from_img_to_ext4=1 then your ext4 data is overwritten with the data from /sdcard/data.img

If you not set one of these to 1 the you really had an data corruption. (I hope this is not so... To find out the reason can be much work:o)
[HD2 Android NAND Development] ToddeSwe:
Hi and thanks!

This explains alot! :)

So a correct config.txt should only contain

use_ext4_partition=1

and nothing else to have it to use ext4 all the time.

I don't want to make any backup, so i delete that line with the copy function and everything should be ok after that?!
[HD2 Android NAND Development] bauner:
right for using an existing ext4 partition use only this:

use_ext4_partition=1

do not delete the other settings. Only set it to 0.

If you want to reformat your ext4 use this and reboot:

use_ext4_partition=1

format_ext4_partition=1

But sometimes a backup is very helpfull... you can do it with this settings and reboot:

use_ext4_partition=1

backup_current_data=1

backupfile_free_space=30

then you can everytime restore your data from this backup with this settings and reboot:

use_ext4_partition=1

format_ext4_partition=1

recover_data_from_backup=1
[HD2 Android NAND Development] ToddeSwe:
Wow! Nice lesson! :) Thanks!

So if i keep this lines:

use_ext4_partition=1

format_ext4_partition=0

backup_current_data=0

backupfile_free_space=30

recover_data_from_backup=0

then i can just change them before i restart the device, then it does it ONE time and set the 1's to 0 when it has used them one time?

E.g i use the:

backup_current_data=1

backupfile_free_space=30

one time, then the next boot it will NOT make a new backup and the 1 is set to 0 by it self!? Nice feature. :)

Thanks again!

Looking forward to your next release now, but i just make a backup and use it when i have updated to your next release. :)

I don't know what the heck you have done with this latest test release but it is much faster.
[HD2 Android NAND Development] bauner:
you´re right the format/copy/backup/restore settings runs only 1 time.
[HD2 Android NAND Development] bauner:
I found an bug in V5 update which deletes your backup.img on sdcard on first boot.

I fix is now in 1. post
[HD2 Android NAND Development] happyhallsy8:
bauner... seem to have some stability issues on ext4 with high io load.... used v4 stably for a couple of days then to v5 alpha and it demounts the sd if the io is to high...

i fixed this in my situation by going back to data.img instead.
[HD2 Android NAND Development] bauner:
could you reproduce this, or is it only randomly occurred?
[HD2 Android NAND Development] ToddeSwe:
What does the 30 in the line "backupfile_free_space=30"?

Why not 10 or 40? :)
[HD2 Android NAND Development] ToddeSwe:
This problem happened to me yesterday to, the upload/download arrows was like a christmas three all lighted up all the time and slowing down the device when trying to access the internet.

But i have not had this since yesterday evening. No problem all day.

Report regarding this, have worked fine without this problem all day! Hope it was a one time thing.
[HD2 Android NAND Development] bronx:
any news on full/dft version?
[HD2 Android NAND Development] bauner:
thats the freespace in backup.img if you want to rename and use it as data.img

you can use any size >5
[HD2 Android NAND Development] bauner:
Tomorrow comes an 2nd testversion which should fix the random reboots and with removed delayed metadata writeback

it also comes as full dft and full cwm version!

But its only an early testversion too, so don´t expect to much...
[HD2 Android NAND Development] bauner:
was your device connected on usb?
[HD2 Android NAND Development] ToddeSwe:
Not at the time it happened, but it had been connected that evening it happened.

But it has not happened again so i hope it was just a one time thing....

lots of "happened" :)

Have a nice weekend!
[HD2 Android NAND Development] ToddeSwe:
I have not had any random reboots at all, the other thing about delayed metadata writeback is something i don't know anything about. :) but it sound good. But i think i have a VERY stable device now, so i will wait for the real release of this ROM whenever it's done.
[HD2 Android NAND Development] white-energy:
You mean like.. today? now?
[HD2 Android NAND Development] bauner:
Later today I start to make the new rom/update packages, but before I have to find an bug in my init script for v5

Release of V5 test2 comes late tonigt or tomorrow morning
[HD2 Android NAND Development] bauner:
Here are a few benchmark results from my tests last night.

V5 Test2

Quadrant normal

Run1 1478

Run2 1752

Run3 1770

Quadrant under high cpu load (with "for i in `seq 4`; do yes >/dev/null & done" running)

Run1 1507

Run2 1516

Run3 1509

Tap Benchmark normal

Run1 2664

Run2 2671

Run3 2784

Tap Benchmark under high cpu load (with "for i in `seq 4`; do yes >/dev/null & done" running)

Run1 558

Run2 591

Run3 585

time dd if=/dev/zero of=/data/empty.file bs=100000 count=2000 normal

Run1 200000000 bytes transferred in 12.646 secs (15815277 bytes/sec)

Run2 200000000 bytes transferred in 13.477 secs (14840097 bytes/sec)

Run3 200000000 bytes transferred in 13.187 secs (15166451 bytes/sec)

time dd if=/dev/zero of=/data/empty.file bs=100000 count=2000 under high cpu load (with "for i in `seq 4`; do yes >/dev/null & done" running)

Run1 200000000 bytes transferred in 12.777 secs (15653126 bytes/sec)

Run2 200000000 bytes transferred in 12.361 secs (16179920 bytes/sec)

Run3 200000000 bytes transferred in 12.776 secs (15654351 bytes/sec)

And now the results of V4 (but only 1 run)

Quadrant normal

Run1 1340

Quadrant under high cpu load (with "for i in `seq 4`; do yes >/dev/null & done" running)

Run1 931

Tap Benchmark normal

Run1 2520

Tap Benchmark under high cpu load (with "for i in `seq 4`; do yes >/dev/null & done" running)

Run1 212

time dd if=/dev/zero of=/data/empty.file bs=100000 count=2000 normal

Run1 200000000 bytes transferred in 13.117 secs (15247388 bytes/sec)

time dd if=/dev/zero of=/data/empty.file bs=100000 count=2000 under high cpu load (with "for i in `seq 4`; do yes >/dev/null & done" running)

Run1 200000000 bytes transferred in 16.031 secs (12475828 bytes/sec)
[HD2 Android NAND Development] bauner:
The random reboots in V5 Test1 happens on high load and much more often if usb is connected.

The reboot bug should be complete fixed in V5 Test2

The "delayed metadata writeback" in Test1 was an very ugly hack to test how much the ext4 performance improves by writing the metadata with 30sec delay (very dangerous in some cases!)

But the performance improvements were very small so I don´t include it in future...
[HD2 Android NAND Development] ToddeSwe:
Do you advise me to update when you release the next test version then?

Maybe i can't wait on the other hand :)
[HD2 Android NAND Development] bauner:
you should update because it should be much more stable... but before final version release some more tests are needed.
[HD2 Android NAND Development] ToddeSwe:
Since i must have a working phone during daytime at work i'm a bit scared to try alpha and betas, but i seems to me like yours alphas and betas are problem free to me. So i will make the update when it's done and ready.

Must ask: Are you planing on a Sense 3 ROM some time after this ROM? I'm just asking because it seems to me that you are very good at this. I've never used a Android ROM that is that problem free like yours. And trust me, i have tried alot of them.
[HD2 Android NAND Development] M..N:
Do you plan on using the desire gb test rom released, also would you make a version for clk
[HD2 Android NAND Development] bauner:
I thought that you use alpha 1... alpha 2 should be stable and usable for everyday work (it remains still alpha because I could not test it for an longer time on normal use. And some functions like overclocking, audio gain, bluetooth 60ma drain and so on... are not included in v2)

next days I can make an clk version too from v5 test2

After V5 final release I start working on gingerbread rom...
[HD2 Android NAND Development] bauner:
V5 Alpha2

Clockwork Mod Full

Clockwork Mod Update for v4/v5a1

is now in 1. Post

The DFT full and update version comes tomorrow
[HD2 Android NAND Development] ToddeSwe:
The right procedure to apply the update is to rename it to update and use the MAGDLR option apply update and NOT install zip file?

Must tell you that when i was trying to put the update file on my Sd card i had my first two reboots. But now USB connection works fine after this update.

AND i feel that the ROM is much faster than before :)
[HD2 Android NAND Development] ToddeSwe:
With or without sense? If sense what version? :)
[HD2 Android NAND Development] tardcutt:
Hi Bauner,

I just installed the alpha 2 on my HD2... And now I cannot connect to the wifi..

mobile data works fine though...

Any idea? I installed from alpha 1 by the way...
[HD2 Android NAND Development] MrHagen:
Trojan horse?!

When I try to download your file Kaspersky displays that in the file is trojan horse.

What's wrong with this file?
[HD2 Android NAND Development] sakipis:
internal 512?or sd?
[HD2 Android NAND Development] elgar:
SD of course. I have HD2 EU
[HD2 Android NAND Development] elgar:
I think it is a faulse action of Kaspersky. Don't mind it, just ignore. My Avira or Comodo doesn't detect anything in that file.
[HD2 Android NAND Development] jpfarquitectura:
I did all the procedure and my hd2 after the first reboot only shows 101mb of free internal memory. What am i doing wrong? i use many apps and for me its very important for this to work.

.data

config.txt with this three lines:

data_img=1

data_size=1024

copy_data=0

im using an 8gb (class6). I did a format, then i created the config.txt inside the.data and then i flashed the rom, but with no luck. Any ideas?
[HD2 Android NAND Development] elgar:
copy_data=1

Sent from my HTC HD2 DESIRE ROM
[HD2 Android NAND Development] jpfarquitectura:
Thanks for the reply!, ill try tomorrow morning! cant wait!
[HD2 Android NAND Development] CaCtuZ123:
Running it for 2 days and except for 2 minor FC errors which I had with the original Cotulla build. Otherwise it is very smooth and batterydrain is low. Quadrant score of 1951, the highest I ever got with a sense build :-)

Nice work :D
[HD2 Android NAND Development] kitcar:
Can you give more detail how to do it?

just copy system.img to where? sd root folder?

thanks~
[HD2 Android NAND Development] binisoft:
I have done the same setting (with copy_data=0) and after flashing it works fine with 1 GB free internal memory.
[HD2 Android NAND Development] swordfish2009:
that is what I was looking for :)

fast one.. just stared the phone.. will check and report if any issues found,.
[HD2 Android NAND Development] anderin:
This mod is awesome. All runs fine. But I´ve a little question: Is it possible to change the size of a created (and running, plenty of apps!:D) data.img with this app?

BIG THANKS!!!!
[HD2 Android NAND Development] swordfish2009:
I think it should be..
[HD2 Android NAND Development] bauner:
some virus scanner can give you false positive heuristic results... just disable your scanner to download
[HD2 Android NAND Development] bauner:
it should work, but keep a backup of your original data.img if something goes wrong
[HD2 Android NAND Development] bauner:
the folder must be named data (you wrote .data) and it must be in root of your sd card with the config.txt inside

if copy_data is set to 1 the phone will copy your existing data to data.img

if you set to 0 it will start with an clean data.img
[HD2 Android NAND Development] Realplayer-88:
VERY WEL DONE BAUNER!

I got it working!

I now have 1.80 GB on internal memory. I am not finished with installing apps.

It works great (minor problem: robo voice, but can be fixed by pressing loudspeaker and go back and hang up, every next call is perfect)

I used 2048 MB as data :D Thank you so much :D
[HD2 Android NAND Development] af974:
Thanks Bauner for your work, this build is the only one with Data on SD that works on my phone and since i liked so much DFT initial release then Projection release...well i like this one too :D.

Battery is fine, i just noticed a bit of lag in Menu and some applications but this is because the Data on SD.
[HD2 Android NAND Development] Realplayer-88:
I have the DFT initial release..but what is the projection release?

I have bauner's version with the DATA on SD :D

2048 DATA SIZE :D still having 1.80 GB :D
[HD2 Android NAND Development] ClydeB1:
This one I guess - http://xdaforums.com/showthread.php?t=897191 ;)

@bauner, any intention to build a Desire HD rom with data on SD :D
[HD2 Android NAND Development] AlaneCzeQ:
I was reading about your kernel and I was very impressed, is wake up lag shorter than on the other Desire Stock Roms ?

What are other pluses compared to stock desire ? sorry about noobish questions
[HD2 Android NAND Development] DannyBiker:
Does the kernel support headset buttons ?

Also, am I not reading well or the op doesn't mention the size of the CMW layout ? 150, 250, 300, 400 ? A2SD included ?
[HD2 Android NAND Development] ToddeSwe:
The same goes for me, no wifi and me to from alpha 1
[HD2 Android NAND Development] tardcutt:
I got my wifi working on alpha 1... Now I installed alpha 2 and suddenly my wifi cannot connect.. lol...

Hope he fixes this soon...
[HD2 Android NAND Development] SkitzoDelic:
Is it good when i make the sd Card like this to enable more app storage.

8gb Card - 1gb ext3 Primary and the rest Fat32 Also Primary.

Because i just have 56 mb for apps. (Internal Storage)

The build is great and Fast man. Thnx for it. Great Work.
[HD2 Android NAND Development] bauner:
the testkernel´s funtions are near the same as on stock kernel...

More in final...
[HD2 Android NAND Development] bauner:
for best performance you should use an ext4 partition.

The first partition on sdcard must be fat32!

If you already have an sdcard with 2 partitions you can do an autoformat to ext4 and autocopy your existing data into it on next reboot with the following settings set to =1 in /sdcard/data/config.txt (all other should be set to 0)

use_ext4_partition=1

format_ext4_partition=1

copy_data_from_nand=1 (only if you want to copy your existing data from phone to ext4. Set it to =0 to start clean)
[HD2 Android NAND Development] bauner:
It seems that something with dhcp ist wrong in wifi!

As workaround you can set an static ip till it´s fixed.

later tonight I start to find the reason
[HD2 Android NAND Development] bauner:
the size should be >230mb
[HD2 Android NAND Development] bauner:
with sense but not sure about the version this time...
[HD2 Android NAND Development] bauner:
copy the zip to sdcard and boot into recovery.

apply update (if you rename it to update.zip) and install zip file (if not renamed) should work.
[HD2 Android NAND Development] SkitzoDelic:
Okay im tryin it now.

I First made the SD fat32 then resized it and had 1024 open.

Made the ext4 out of it.

Set both to Primary.

Did it with miniTool Partition Wizard.

Then installed the Build and did nothing in CWM, only installed the update.zip offcourse.

meanwhile typing this Android was starting up.

Internal Storage is still at 56 mb :(

What am i doing wrong.

Im not that great with This xD
[HD2 Android NAND Development] bauner:
after doing some stress testing V5a2 looks very stable (expect the wifi dhcp issue).

I installed/deinstalled >50 apps with 2 on access scanners running and big wifi downloads in backround and did many reboots without getting any error/fc/data corruption on ext4 partition
[HD2 Android NAND Development] bauner:
you need the right settings in config.txt

look here

http://xdaforums.com/showpost.php?p=13786867&postcount=787
[HD2 Android NAND Development] ToddeSwe:
quiet please :)

Please everyone PLEASE be quiet so he can work on the WiFi thingy :D
[HD2 Android NAND Development] bronx:
lol... :D

if it ain't broken, don't fix it, that's what they say. I shall wait for v5 final before the flash. so far v4 is GREAT for me. no issues at all - 129 hrs up time with no compromises, cool huh? ;) it is even more stable than latest windows mobile I had (b.a.e. - before android era ;) ).
[HD2 Android NAND Development] SkitzoDelic:
Hell yeahh!! it workeddd.

Thnx Bro !
[HD2 Android NAND Development] ToddeSwe:
But if we don't test it takes longer time for him to find bugs.... :)
[HD2 Android NAND Development] bronx:
:D true, true... ... but still waiting for dft version, as I dont use cwm. :/
[HD2 Android NAND Development] miki1971:
Close to a perfect sense ROM, fastest i ever try and very stabile. Only Romanian language is missing, for me is very important i use dictionary to write on the phone. Can somebody tell me where can i find a romanian dictionary for sense ?
[HD2 Android NAND Development] bauner:
there is an app in market "morelocale 2" which can add romanian (and much more) languages and it´s confirmed to work with my rom.

But I don´t know if it translates the sense related apps too
[HD2 Android NAND Development] bauner:
The wifi issue is an permission problem on v5a2 rom.

After a quick chmod 777 for all files in /system/etc/dhcpcd it works fine.

No I look whats wrong in my zip packages to find out the reason (and if both (full cwm and update cwm) are affected)

An fix comes soon...
[HD2 Android NAND Development] bauner:
the wifi dhcp bug was only in the cwm update from v4-5 to v5 alpha2 (i did to much cleanups in updater-script....)

A new bugfree V4/5a1 to V5a2 update package is now in 1. post (you can also use it on v5 alpha2 to fix the wifi problem!)

You don´t need the fix if you installed the V5 alpha2 cwm full version
[HD2 Android NAND Development] bauner:
As the wifi bug is fixed now I can start to make V5a2 dft/clk versions.

Release comes tomorrow evening, because I need some sleep before....
[HD2 Android NAND Development] tardcutt:
Confirmed.. The wifi is fixed now!

Thanks Bauner...

EDIT: apparently when I tried it before, I left my static IP on... I turned that off, and the wifi still couldn't connect.. Anyone has the same problem?
[HD2 Android NAND Development] miki1971:
i tried morelocale 2 but translate only the interface, what i need is romanian language on xt9 to write sms and emails. Other Roms with HTC Sense like imilka or Chalid have romanian language but doesnt work so smooth and fast like this one. Is there a language pack to add on this Rom ?
[HD2 Android NAND Development] ToddeSwe:
G

Yes no fix here, aplied the "fix" just now but it does not work for me.

I have another thingy i want to share as well, when applying my updates and so on MAGDLR says E:can't find misc or something likewise ... what is that?

My plan now is to apply the full CWM now and see if that solves anything at my end.

Yes, that did it, now is WiFi working.
[HD2 Android NAND Development] bass122:
Nice Desire rom here~ Thanks man ~ You make my day.

Really really smooth there, even in first boot.

Everything seems to work perfect.

Got tired to try those GB sense, it's time to go back to original and stable one.

Just some question,

1. How to check if I'm successfully format ext4 ?

2. Is my data storage in data.img or the ext4 ?

3. I found that the default "config.txt" set "mount_data_img_sync=1"

Should I keep it or it will set to 0 later ?

Does that mean I'll always have a backup and cause fat32 1GB space?

4. How to set the ext4 size when "format_ext4_partition=1" ?

Thanks man.

I really appreciated it.

Edit: I just use "SD Tools" to test my sdcard speed and it' W:7.8 R:15.

That means I'm in ext4 right?
[HD2 Android NAND Development] PayAndDie:
how big should be the CWM partition?
[HD2 Android NAND Development] bass122:
if you use existing cwm be sure that the system partition is at least 230mb and boot partition at least 7mb!

it's in readme.txt
[HD2 Android NAND Development] norpan111:
How is this compared to dhd roms in speed and stability ? Does any dhd rom comes near this? Could someone post a video ?:) thanks !
[HD2 Android NAND Development] bauner:
V5alpha2 full dft rom

and

V5alpha2 Update for V4 DFT rom

is now in 1. post
[HD2 Android NAND Development] mugen82:
any kind souls able to mirror it? having issues with rapidshare...
[HD2 Android NAND Development] norpan111:
Is these desire roms still fastest? remember the SD days they where always fastest... I mean if you compare this to stock gingerbread or cm7/ desire hd rom? How does this rom messaure up? I would like to try but running quite stable cm7 mod here, tough i miss fast n stable old desire roms with sense =) any toughts? Rom maker? Users?
[HD2 Android NAND Development] norpan111:
One more thing.. where is the zip file to install from cwm? :S downloaded for cwm but only find dft etc.. i dont find the zip install file? or should i install the .rar ? i dont get it? Ive read the readme and it doesnt say that
[HD2 Android NAND Development] PayAndDie:
it is in the folder named "copy_all_to_sd" or what ever. You have to copy data and the update.zip on your sd card.
[HD2 Android NAND Development] ToddeSwe:
SO, in the future i can just use this zip file on my Sd card and MAGDLR to flash/update my ROM? No more DFT and connections with my PC?!
[HD2 Android NAND Development] tdizzle404:
Wow this is really nice ill test and report any bugs if found. But it sounds great.
[HD2 Android NAND Development] corlygunnz:
any chance we getting a close version?
[HD2 Android NAND Development] maxld:
Is the alpha2 properly rooted? Apps state that not.

Edit, okay - I am a dummy, all is working well :)
[HD2 Android NAND Development] AlaneCzeQ:
Thats what I am doing, zip on card and if needed flash :)
[HD2 Android NAND Development] peterpan1957:
Help please !

I have install this rom, every thing is fine. But my space 68,25 MB. What must i do for a 1GB on SD. I have formated my sd card Fat32 ext4 1Gb.

peterpan 1957
[HD2 Android NAND Development] ToddeSwe:
Use: use_ext4_partition=1 in your config.txt file inside data folder. :)