yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Boradan:
Problem with flash.cfg in version 2.5

Hi there. Im having a SERIOUS problem when trying to install version 2.5. I Think its also the cause of people losing data (not actually the nand_data switch)....

The problem is caused (I think) by the flash.cfg file for the installer (NOT the confix.txt for Setting ext4 etc)

The flash.cfg reads:

system ya|boot|ro filesize system.img
userdata ya|asize allsize

Other Nand ROMS using daf, the flash.cfg file normally contains something like:

boot ya|boot|ro filesize+2M boot.img
system ya filesize+2M system.img
misc ya 1M
recovery ya|ro 3M
cache ya 3M
userdata ya|asize|hr allsize

As a result of this, when I enter CCW after flashing the ROM, I get the following error message:

E:Can't find misc
E:failed to find "cache" partition to mount at "/cache"
E:Cant mount /cache/recovery/command
E:Cant find misc

Followed by a few other lines relating to mounting /cache or reading files from /cache and not being able to find misc

If I try to wipe the cache partition, it doesnt exist

This is probably the cause of settings being lost for people as Misc and cache do not exist after the install....

If I try to modify or change the flash.cfg file, the installer is giving me this error:

Error happen
Read below for more information

Error Description: Config load failed.
Info: .\RSPL\RSPL.cpp (712)

Error Description: CONFIG: file not exist
Info: .\RSPL\RSPL.cpp (346)

Seems like the file is fubar in some way (maybe a problem with the upload).

Possibly the people having issues with loss are those who are new to this rom and installing 2.5 and then the upgrade to 2.6. People with no issues are the ones with an older version of the 2.5 (non corrupted).....

Andy
[HD2 Android NAND Development] lowedwin:
Please help

Hi dandiest,

Thanks for your hard work.

Well, i read all the thread in this post and i followed every single step.

i uses one of the guide to setup my ext4. my total internal storage is 3.71GB.

after install a lot of application by using dlzupdata/androidapp method, the interal storage becomes 3.23GB.

Since then,when i try to compose a message, it popups a message said that Storage Full

You don't have enough free space remaining in yourphone's storage. Please delete some or applications to make at least 2500kb free space. Tap "Settings" below to manage your apps.

Not only this, i can't even install apps from market.

Did i do something wrong??

i'm on v2.6.
[HD2 Android NAND Development] dandiest:
OK, I need beta testers for testing my crazy ideas, :D

now only test the new Initrd, with the following features:

boot_mode ; 0 for nand, 1 for SD, 2 for MALRD

swap_mode; 1 for using the 3rd partition on SD, 2 for using vfat FS on Nand. (this will only be activated when nand_data=1)

so you have to partition you sd as this:１st Fat32, 2nd Ext4, 3rd swap.

for the swap, less than 100M should be enough.

for 1st installation, need to set the format_ext4=1, the 2nd swap partition will be automatically formated with ext4 for initializing

for SD, if put only my nand system.img in the folder, it will be automatically converted to ext2, but, yes, will take some time.

for SD, can also enjoy all the feature for ext4 except the swap_mode 2.

If all the functions test successfully, I will active the RAM optimization, will also give 2 mode: 0 for load some files directly into RAM, 1 will reserve 25% RAM used for compressed swap. :D
[HD2 Android NAND Development] Touccer:
I'm so curious to try new feature of this fantastic ROM ;)

Sign me as beta tester
[HD2 Android NAND Development] mattbee:
I'm Game..I'm up for some testing with you..

M..
[HD2 Android NAND Development] Willy318is:
Count me IN, for the Beta Testing..

Just initially make it Lite, and later you can fill it up.

Will
[HD2 Android NAND Development] regenboog:
How to delete all mail at once

Great build for me (2.6), but does somebody know how to select all mail and delete it?
[HD2 Android NAND Development] ForceField:
I tried this rom but it didn't work for me on ext4 only with data.img

each time I was booting the device was locking at the HTC white screen.

Does anybody was able to make it work on ext4?
[HD2 Android NAND Development] rdeheld1:
Yes now it works!, Iwas strugeling with the same white HTC screen, did many formats, now changed from 16 gb class10 card to 8 GB class6 card and goes like a rocket

4.1 NOR FLASH MEMORY

NOR, named after the specifi c data mapping technology (Not OR), is a high-speed Flash

technology. NOR Flash memory provides high-speed random-access capabilities, being able

to read and write data in specifi c locations in the memory without having to access the

memory in sequential mode. Unlike NAND Flash, NOR Flash allows the retrieval of data as

small as a single byte. NOR Flash excels in applications where data is randomly retrieved or

written. NOR is most often found built into cellular phones (to store the phone’s operating

system) and PDAs and is also used in computers to store the BIOS program that runs to

provide the start-up functionality

4.2 NAND FLASH MEMORY

NAND Flash was invented after NOR Flash, and is named after the specifi c mapping

technology used for data (Not AND). NAND Flash memory reads and writes in high-speed,

sequential mode, handling data in small, block sizes (“pages”). NAND Flash can retrieve or

write data as single pages, but cannot retrieve individual bytes like NOR Flash.

NAND Flash memory is commonly found in solid-state hard drives, audio and video Flash

media devices, television set-top boxes, digital cameras, cell phones (for data storage) and

other devices where data is generally written or read sequentially.

For example, most digital cameras use NAND-Flash based digital fi lm, as pictures are

usually taken and stored sequentially. NAND-Flash is also more effi cient when pictures are

read back, as it transfers whole pages of data very quickly. As a sequential storage medium,

NAND Flash is ideal for data storage.

NAND Flash memory is less expensive than NOR Flash memory, and can accommodate

more storage capacity in the same die size.

Flash memory which stores a
[HD2 Android NAND Development] puta merda:
GPS zone

Just testing the nand version after 1 week using SD. I must admit...very stable rom. I live in Indonesia,what should my gpszone id would be?
[HD2 Android NAND Development] B-Man2005:
i would like to be beta tester !!!!!!!
[HD2 Android NAND Development] dandiest:
for testing, hold on, let me add some debug out first in order for me to know what's going wrong if there is. :D
[HD2 Android NAND Development] B-Man2005:
no... ! come on ... i have to leave soon today :)

and i can wait for help :D

but its just the initdr file right ??? im in hospital , cant download huge builds :(
[HD2 Android NAND Development] Alterego:
Can you please tell name of your card that you are now using?

I am looking to buy new one and need some info.

Tx
[HD2 Android NAND Development] ForceField:
Thanks for the info.

I am on a 16gb Class 2 and I noticed that while booting for the first time my ext4 partition vanished.

so I had to reformat and make new partition with gparted.
[HD2 Android NAND Development] dddrko:
+1 for that
[HD2 Android NAND Development] zarkiwarki:
hi there

using this rom now for almost a week and it runs really smooth.

nice work.

any plans for a android 2.3 build?

searched the thread and could not find some answers about that.
[HD2 Android NAND Development] B-Man2005:
stop buggin man ....

there is not even a 2.3 sense phone on the market yet ....

sorry
[HD2 Android NAND Development] thermax04:
Iam using 2.6 nand version on hd2 Tmous with no sd partions, And I noticed the following:

1 - it takes 120 seconds after the MAGLDR111 screen 123 go go go till it starts after reboot!!, is it normal!!!

2 - It consume too much of RAM , I have only 159 MB although I have no apps working on the background , even I installed only 5 apps and widgets!!!!

3 - It rotate the screen very slow, I rotate the screen to landscape and wait a while till it rotate!!! and I calibrated the sensors!!!

Any IDEAS
[HD2 Android NAND Development] zarkiwarki:
ah... thats the problem...

well im not that informed about android so i thought this would be a normal question.

guess not...
[HD2 Android NAND Development] B-Man2005:
1. yes its normal for some roms ... couse its not developed by htc or well payed developers right ... so who cares

2. ram consumption seems normal to me with a new sense build ... the other roms here remaining quiete the same

3. oh lord ... dont forking never calibrate !!! flash again . dont calibrate ... then turn the phone to another side ^^ and - wow ..... right ???

;) ;)
[HD2 Android NAND Development] B-Man2005:
no big deal ;)

we all startet from the start as a starter who startet from the start ^^ :D
[HD2 Android NAND Development] thermax04:
I used JDMS 1.6.2 for 2 weeks, and it was booting in less than 1 minute, and I got more than 260 MB free ram

!!! REALLY?
[HD2 Android NAND Development] B-Man2005:
yes, dooont calibrate ... never !! even if , then you should google for a solution but i would reflash ;)
[HD2 Android NAND Development] sathara:
Yea very really ... try please
[HD2 Android NAND Development] thermax04:
1 - Should I reflash 2.5 first then upgrade to 2.6 again?

2 - Can I backup my settings and apps by MyBackup Pro v2.6.1 before reflashing and restoring them after? I dont want to adjust everything all over again

3 - what is the best app to move apps to sd without this sd partitions method
[HD2 Android NAND Development] B-Man2005:
2. yes you can backup everything ... like i do too with titanium backup

and i prefer a reflash yes ... just flash 2.5 and then update to 2.6

little tipp: put the update on sdcard before flashing 2.5 and then you got 2.6 from the beginning. and you should restart after first boot then load your backups...

let it settle down for a few minutes and its going to be smooth like butter

3. i used app2sd before i startet to use ext4 partition ... i like it
[HD2 Android NAND Development] Touccer:
In the next version can you use a 100% stock Desire Z/HD rom? Because a lot of apps are no present. Your rom is very fast and i can't wait for new release but it would be great if you can create a HD2 NAND rom identical to the stock desire Z/HD rom ;)

P.S: what about use the newest HTC Thunderbolt/Mecha leaked rom? :)
[HD2 Android NAND Development] Hedgehog57:
Clear up the data in Applications/Manage applications settings menu and enter it again. It started to work for me then (using PPP).
[HD2 Android NAND Development] tafo:
Hi guys .. this rom is working flawlessly .. i insalled MDJ kernal 10.3.. running well so far

But i having a strange issue! The ext partition is running well! And all installed programs are there ..but while using root explorer and enter system.. i can see its 256 mb used and only 36 kb left! I cant update the radio app Due to this problem! Why ? Knowing thet I partitioned the ext 4 1024mb.. i have the 512 HD2.. if any can have information regarding this issue , help is appreciated, best regards
[HD2 Android NAND Development] ksaleem:
Thanks for answering tomj777. I have tried few thing not sure what else to try, let me know if you want to try something to see if it makes any difference.

I am not sure if SD Card have anything to do with it but I am using SanDisk Mobile Ultra microSDHC 8 GB (SKU SDSDQY-8192-E11M)
[HD2 Android NAND Development] nightcraw:
If you look at the memory using SystemPanel you would notice a lot of items in memory are program you are not even running. I believe this is some sort of cache feature (why do you think this ROM is so fast?). Until you actually run into problem with out of memory, this is a non-issue. RAM should be used as much as possible to improve performance. Having too much free ram just means your resource is under utilized. (free ram mean you are not using them for anything.)
[HD2 Android NAND Development] Derek0228:
I changed kernel to prj 0.4 and i can say

it's literally flying!!!!!!

I mean, smooth as a non-hd build O_o. But downside is, it's now raping my battery D:

If it continues like this, battery may be depleted in less than an hour and a half. :(

But, i only wanted to say the build is absolutely awesome, and that if it stops raping my battery with prj v0.4,

then it'll be absolutely perfect

. This is my daily driver for sure. :D

Thank you Dandiest
[HD2 Android NAND Development] nightcraw:
I use CurrentWidget + Power Control Widget + a shortcut to Running Services to figure out what's draining the battery. Turn everything off on the Power Control, start killing them one at a time, turn off screen wait 2~3 minutes and check value at CurrentWidget. Repeat until it is down to 5~7mA. Works every time.
[HD2 Android NAND Development] Boradan:
As longas you arent using Data2ext, it should be fine once you get the battery prob sorted.

Mine was flying too, until the 3rd reboot, and then it could no longer see the ext4 partition. Effectively had a hard reset, lost all data and had to go through setup again. Reapplying the MDJ 10.3 from Post 2 got it all back again.
[HD2 Android NAND Development] abu2x:
I'm on T-MOUS

for sure i've followed this:

then

but my internal still 596MB.

i got this message at init.log at SDcard

did i failed to create ext4?:( i've reboot many times .whats wrong with me?

i use transcend 8GB class 6

another thing, can you make the keybord have arrow?
[HD2 Android NAND Development] ahchu:
yes ...nand data change to "0" it will help u
[HD2 Android NAND Development] dandiest:
OK, eventually solved all the problem, let's test again.

How to test:

as mentioned before, I have redeveloped the script, so, all the configs needs to check. :)

my intention is to merge the Nand&SD into one, thus, i reorganized the file structure, now, we will only use two folders, 1 is for contain the config.txt as well as the SD&Nand build files which is permanent - folder name is Desire_DL, the other is for upgrade which is temporary, folder name is Update_DL.

the config.txt s now under Desire_DL folder, have the following parameters.

For Nand:

For SD.

Please download my nand v2.4 build, extract the system.img to Desire_DL folder, and extract the test package to it also, the config file should be:

Other config:

gps_zone: your gps zone country code.

ppp_mode: 0 will be PPP mode, 1 for RMNET.

this package is for testing only, which includes the debug output, please send me the result along with the init.log at the root of your sdcard.

Please don't disseminate this test package!!!.

thanks
[HD2 Android NAND Development] SHoWa147:
dandiest in this package, is fix de nand_data=1???
[HD2 Android NAND Development] marzinho:
@dandiest

I'd like to participate in beta test, so count me in please :D
[HD2 Android NAND Development] shakenfr:
hello, i'd like to participate too

best

bruno
[HD2 Android NAND Development] criszz:
i allready formated my card with swap partition :D where is download ?
[HD2 Android NAND Development] dandiest:
ok, all sent.

I'm uploading the whole build now, will send for testing soon.
[HD2 Android NAND Development] dandiest:
yes yes, thanks, it should like

system ya|boot|ro filesize+20M system.img

userdata ya|asize|hr allsize
[HD2 Android NAND Development] B-Man2005:
not booting with new init file , stuck on first htc screen

confic.txt is in right folder

and i used ext4 , nand data , and sdboost , but swap = 0

should i use format ext first ???

i used 2.6 before, pushed the initrd into /system but the desire_ folder to sd and config file like i said

but no boot !!!!!!
[HD2 Android NAND Development] Daekin:
thanx, will try that...
[HD2 Android NAND Development] dandiest:
hmmm, I tested fine.

you put the config.txt under Desire_DL folder, right?

oh, btw, sometimes, push initrd.gz to /system will cause some unknown issue, and cannot boot(so i always push twice :D ), in this case, you can just eject your sdcard, it should be able to boot into your system.

Otherwise, reflash and push it again.
[HD2 Android NAND Development] B-Man2005:
mmhh can you send me your confic.txt settings for

these essential settings ??

nand data 1

ext4 1

sd boost 1

no swap on sd

so i can copy paste in my config.txt
[HD2 Android NAND Development] criszz:
new intrid

booted just fine with test intrid in 20 min with :

data_img=0

data_ext=1

sd_boost=0

nand_data=0

format_ext4=1

swap_mode=1

conf.txt in Desire_DL folder, intrid in Update_DL, new flash from 2.5. First setup screen crashed 1 time, started again by himself and fished well, current location was not detected over wi-fi.(works well on 3g) seems faster than 2.6 v. i keep testing and report after reboot.
[HD2 Android NAND Development] dandiest:
the swap will not activated, unless you set nand_data to 1
[HD2 Android NAND Development] criszz:
so i need to modify config.txt and reboot?
[HD2 Android NAND Development] dandiest:
Yes, but, have your created the swap partition already?
[HD2 Android NAND Development] criszz:
yes ,is my 3-rd partition ( 384 mb) , reboot and now stuck to htc screen . i will waitt more anyway.

ten minutes later : still stuck :))

~ 30 min later : i will reflash with correct line.
[HD2 Android NAND Development] dandiest:
No need to reflash, just eject your sdcard before reboot, it will then boot into Sense with nand data, and then you can insert the sdcard again and paste the content of init.log here
[HD2 Android NAND Development] dandiest:
which version?
[HD2 Android NAND Development] B-Man2005:
dandi could you please give me a manual to update the ne initdr 3.0 !!!!!!

i run 2.5 right now with ext4 partition

so i dont want any swap. just ext4 option sdboost option and nand data option!!

first i had 2.5 on my phone then pushed the initdr in system copied config.txt in desire_dl folder with followed instructions and it doesnt start even after 20 mins

boot_mode=0

data_img=0

sd_boost=1

data_ext=1

nand_data=0

swap_mode=0

ppp_mode=1

gps_zone=de

format_ext4=1
[HD2 Android NAND Development] B-Man2005:
or can i use this ?? couse i want to test vfat option with nand data

boot_mode=0

data_img=0

sd_boost=1

data_ext=1

nand_data=1

swap_mode=2

ppp_mode=1

gps_zone=de

format_ext4=1

but i dont know why it doesnt start ... first flash 2.5 then push the initdr then reboot right ?? or what am i doing wrong ???
[HD2 Android NAND Development] dandiest:
1st, it is not v3.0, it's only update the initrd, v3.0 is uploading now.

yes, you can try this config, it says use vfat as swap can improve performance a lot. so, need your test :D
[HD2 Android NAND Development] takumibox:
can't wait, where is the 3.0:D
[HD2 Android NAND Development] B-Man2005:
but how to update ??

push init

copy config.txt to desire_dl folder

thats it right ??
[HD2 Android NAND Development] adipan:
Hi and first- big thanks for this great build! best for me so far.

I'm on ver 2.6 and I have a small issue /question re: editing the keys layout so I can wake up the phone using the volume up button (it's quite tired);

I've tried editing the qwerty.kl in both /system/usr/keylayout and /system/squashed/usr/keylayout but neither will let me edit them (I keep getting- read only file system);

I've extracted the original successfully (I have it now on both SDcard root and PC), edited it and then tried pushing it back:

C:\asdk\tools>adb remount

remount succeeded

C:\asdk\tools>adb push qwerty.kl /system/usr/keylayout/qwerty.kl

failed to copy 'qwerty.kl' to '/system/usr/keylayout/qwerty.kl': Read-only file system

And:

C:\asdk\tools>adb shell

# su

su

# cp sdcard/qwerty.kl /system/usr/keylayout/qwerty.kl

cp: can't create [...] file exists

then tried rm - rm failed [...] Read only file system.

Chmod 0777 also returns Unable to chmod - read only file system ....

I've also tried the same with the qwerty.kl in /system/squashed/usr/keylayout - didn't work.

Any help- greatly appreciated; Thanks!
[HD2 Android NAND Development] dandiest:
oh... as I don't give out each individual link from usr, which is squashed as a single folder.

OK, i will create it in v3.0 final version. :D
[HD2 Android NAND Development] dandiest:
there is a rosie.apk on my sd thread, download and put it at root/system/app, reboot.
[HD2 Android NAND Development] adipan:
Thank you! will wait for 3.0 then;

If anyone's interested- the current key mapping for our HD2 for the volume up button says:

'key 115 VOLUME_UP'

and in order to be able to wake up the phone using it shoud be:

'key 115 VOLUME_UP WAKE'
[HD2 Android NAND Development] B-Man2005:
what about changelog of v 3.0 ?!?!
[HD2 Android NAND Development] kazuni:
I would like to participate in beta test as well, thank you
[HD2 Android NAND Development] saftazeen:
Dandiest where is the beta bulid

i wanna to test it,so plz can u share the linke

and wat u suggest fo size of both of ext4 and swap

plzzzz send it am w8 :D:D:D
[HD2 Android NAND Development] Peterdejong8:
Go on with the good work!:D
[HD2 Android NAND Development] dandiest:
normally, if I change the 1st version, that means this is a total new base I made instead of only some modification to the current base.

so you can imagine :D

I'm using the v3.0 now, so far, the current is stabled at 3ma when standby, even though never saw 2ma, I'm still quite satisfied with it.
[HD2 Android NAND Development] saftazeen:
plzzzz can u share v3 now,hungry to use it
[HD2 Android NAND Development] B-Man2005:
when able to download ?
[HD2 Android NAND Development] francescozanghetta:
In for testing V3.0

Hi dandiest,

thanks for you great job.

I'm in for testing:D
[HD2 Android NAND Development] lixmao:
:rolleyes::mad::eek:
[HD2 Android NAND Development] B-Man2005:
dandi ??? are you out there ?
[HD2 Android NAND Development] Proz00:
dandiest can u port rafpigna new IO improvement ?

to ur build :)
[HD2 Android NAND Development] solikhd2:
really like ur builds:)

but i got the problem,that my computer didnt recognizes my htc,

anyone knows a fix?
[HD2 Android NAND Development] B-Man2005:
yes maybe he could use some nice stuff from rafdroid

Patched sql lib to improve I/O speed and disk usage (credits to nowhere)

Patched ext mount options to dramatically improve I/O speed when using EXT3/EXT4 for data
[HD2 Android NAND Development] B-Man2005:
man you have to be more specific ...

windows version

htc sync installed

etc
[HD2 Android NAND Development] hatorihanzo:
Not sure if this question has been asked before or not.. but what's the best between ext4 or sd for this build? or doesnt make any difference at all? please help
[HD2 Android NAND Development] B-Man2005:
ext should be faster
[HD2 Android NAND Development] dandiest:
2st test version uploaded but I then realized the nand_data may have some problem, and change again, the new build is uploading now, but takes time.

anyway, this one is good enough for test,

http://www.multiupload.com/K286XSG7SL

For Nand users, just flash it.

For SD user, extract the whole folder to your sdcard, put your data.img to the folder and run as normal, you may need to change the config.txt.sd to config.txt which I provide for reference.

For MADLDR, extract the whole folder to your sdcard, put your data.img to the folder and run as normal, you may need to change the config.txt.MADLDR to config.txt which I provide for reference and config the MADLDR to load from the folder of Desire_DL.

Please report problem here with the log, otherwise, I don't know the problem.
[HD2 Android NAND Development] thermax04:
Iam using 2.6 nand version on hd2 Tmous, How important is to upgrade to this kernel? mine is 10.oc