yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] melethron:
Yeah. I think there are 2 reasons for this:

1.) Its an SVS Kernel. If the cpu is idle it uses almost NO power. Only 1mA. On a havs Kernel there is some code constantly running to calculate the mV values (while on SVS these values are fixed). This code needs cpu time of course. I think that its best to go "back to the roots" on kernels. snq's kernel with svs and the vdd level patch is close to stock, stable (rock-solid) and highly adjustable (i make a config file on sd-card in the next version where the desired voltages can be set - default will be the values from leedroid).

2.) the swap device may help. But this was ownheres idea and i wonder why he didn't update his rom yet. But this should only apply while it is used. The reason is this: HDroms need much RAM. If its low on RAM it needs to kill some apps. If this apps needs to be restarted it takes cpu (extract the apk ...etc) and needs to read some stuff. If it uses swap then it doesn't need to close the app. But again i think swap is only good for HD-ROMs because they need much ram. Oxygen 2.0 for example needs so few resources that i never would use swap on it, because if there is enough ram available then it should prefer the ram.

I also try to optimize it further. Like setting higher wifiscan intervals, dalvikvm behaviour (neophyte for example made app closing more aggresive - this may speed up app starts but may also lead to a tiny more battery usage ... so i try to look what others do and test it) etc.

I will continue my work for sure but it takes time. Next version will be cooked from stock and i still have much to learn for that.
[Desire Android Development] Tsuneku:
I can confirm this, and with airplane mode off: 14mah.

Take your time :)

P.s.: with smartass governor I have spontaneus hard reboot. Isn't a problem because with ondemand work fine, but I remember that you have same issue with setcpu and overclock: try to change governor.
[Desire Android Development] Terepin:
But you forgot to said it can't format SD card. Now I have to use win app to format it if needed. (No, I can't, optical drive is dead).
[Desire Android Development] melethron:
The issue with reboots on smartass comes from undervolting. Coutts kernel uses lower vdd values than snq's kernel. Smartass changes the clock really fast. If it then jumps from 245 mhz to 998 then it will be a really short time still at a lower mV value. This is not a software issue but more a physical issue. To change voltages there are semiconductor used. The formula for the voltage is:

This means a higher voltage needs a higher electric charge. The formula for the electric charge is:

So what does that mean. Changing voltages needs

time

..... because a higher electric charge have to be build up. So even if the cpu is stable with 900mV@245 mhZ and 1300mV@1300 Mhz it can still be unstable if it jumps up from 245 -> 998.

Havs is even worse in that situations because it calculates the voltage needed depending on load. This may cause a further delay of switching voltage. So (at least in theory) a SVS Kernel may be even more undervolted than a HAVS kernel.

The reason now that ondemand is more stable is that cpu clock is changed fewer times. But the physical issue is still there. Only the situations in which the instabiltiy may occur are less.

I will compile a kernel with the voltage table of snq. His table seems to be stable for 100% of the users (coutts table is also stable for most users but if its stable for 99% im in the 1% that has bad luck with cpu ;) ).

I dont know what you mean?! :confused:
[Desire Android Development] Terepin:
1. CWM can't format SD card. RA can.

2. Therefore I need to use third-party application to format it.

3. And because my optical drive isn't working, I can't use Linux distros for this purpose.

Understandable now? :)
[Desire Android Development] Tsuneku:
I spoke too soon, just rebooted with ondemand and witouth overclock, then the problem isn't setcpu :(

this is very dangerous, I have Loop on edge (EXT4, swap 100mb).

Any idea?
[Desire Android Development] melethron:
Yes, ...

Well you can use adb and busybox for that.
[Desire Android Development] melethron:
You can use neophytes test kernel. It is linked in the data2xyz thread. That one has higher vdd lvl. Or snq kernel. It works with ext 4 but you cant use swap.
[Desire Android Development] Terepin:
melethron, try asking Alex-V for the help. Or maybe even for permission to tweak his ROM. Check his thread and you will understand why I'm recommending his ROM. ;)
[Desire Android Development] Tsuneku:
You speack about this?

http://xdaforums.com/showpost.php?p=9786078&postcount=91
[Desire Android Development] Terepin:
Yep, that is the kernel he was talking about.
[Desire Android Development] thay:
I've cooked a bootanimation and a modded battery status bar icon and like to share it

bootanimation is here:

http://www.megaupload.com/?d=XCQKRI89

Battery mod is here:

http://www.megaupload.com/?d=W7MKQWC7
[Desire Android Development] Terepin:
http://xdaforums.com/showpost.php?p=10296821&postcount=398

What score I'll get with your script is beyond my imagination.
[Desire Android Development] melethron:
Well its cheating. Lote (loop) is the same score like ram. Benching ram instead of sdcard isnt intended ;)
[Desire Android Development] Terepin:
But that doesn't change the fact it FEELS smooth.

Talk to Alex and cooperate. You can both only gained from each other.
[Desire Android Development] melethron:
Thats the 1.72 base. Its amazing with data2sd. I use robos z with my script atm and its so smooth.

All credits to google (froyo 2.2.1) and htc. :)

I sent alex a pm and see if he can help me.
[Desire Android Development] Terepin:
He needs your help as well. Check it from here (starting from my post):

http://xdaforums.com/showthread.php?t=877546&page=28
[Desire Android Development] Nitin985:
how long does a first boot take ?
[Desire Android Development] Terepin:
Few minutes, until PIN code screen shows up. If you don't see ROM booting in ten minutes, there is something wrong.
[Desire Android Development] Tsuneku:
Nothing, same issue with neo's kernel :(
[Desire Android Development] melethron:
Hmm, try snqs kernel. Has no swap but at least you can test it. It can be found here.
[Desire Android Development] melethron:
Ram disk of DHD is "strange". There is:

# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount

# We chown/chmod /data again so because mount is run as root + defaults
mount yaffs2 mtd@userdata /data nosuid nodev
chown system system /data
chmod 0771 /data

in init.rc .... that mount should fail because there is no yaffs partition on dhd .....

and then there is this in init.spade.rc

on emmc

mkdir /system
mkdir /data 0771 system system
mkdir /cache 0770 system cache
mkdir /devlog 0700 root root
devwait emmc@system
# exec /system/bin/e2fsck_recvy -p emmc@system
mount ext3 emmc@system /system ro data=ordered
devwait emmc@userdata
exec /system/bin/e2fsck_recvy -p emmc@userdata
mount ext3 emmc@userdata /data nosuid nodev data=ordered
devwait emmc@cache
exec /system/bin/e2fsck_recvy -p emmc@cache
mount ext3 emmc@cache /cache nosuid nodev data=ordered
devwait emmc@devlog
exec /system/bin/e2fsck_recvy -p emmc@devlog
mount ext3 emmc@devlog /devlog nosuid nodev data=ordered

Looks like they just removed the init.bravo.rc and added init.spade rc ....

Or the mount yaffs need to be there because of some android specs .... :confused:

Oh and by the way ... the use a journaled filesystem with data=ordered .... seems they care about data safety ... :D ... no ext 2 ... no ext 3 with data=writeback .....
[Desire Android Development] Lanbase:
Ehrm, thats just the batt charge fix, isnt it?

Can you post the correct link, i ve been looking for this kernel quite a while now ;)

Btw i am following your progress in both d2we and this rom and will flash it soon.

Keep up the good work!

Grtz

Sent from my HTC Desire
[Desire Android Development] Tsuneku:
Too late, this morning I found the Desire in bootloop and EXT destroy :(
[Desire Android Development] Terepin:
Try this:

1. Total wipe.

2. Full SD format via Windows.

3. Unroot with official RUU.

This should help.
[Desire Android Development] Lanbase:
Maybey next time without life on the edge? ;)

Sent from my HTC Desire
[Desire Android Development] Terepin:
That would be ideal, unfortunately some SD cards can't operate at acceptable speed without LOTE.
[Desire Android Development] thay:
3 day's test with this rom (reiserfs+swap) all work's wonderful.:)

There is the same problem with all d2sd scripts ...need a compatible sd card if not problems can come
[Desire Android Development] melethron:
Sry, dont know the link myself. Im not at home atm. But ill look later.
[Desire Android Development] Lanbase:
Well, I think its advisable then to express this in the OP; A list with known sd cards that work good with this rom/d2we and wich don't.

This way the rom or d2we script wont be blamed for poor performance, and the script and rom dev improvement is more transparent.

Now, I have a 16gb c4 Sandisk sdcard, and about to flash this rom,

Will it give me good performance with this sdcard or is that unknown yet, do I need swap and wich FS do you guys advice for best results without Lote ;)

Great work here !

Sent from my HTC Desire
[Desire Android Development] xavierjohn22:
I just hope this is sooner because any ROM post i go and read that's using the phenomenal data2whatever has reboot issues. he he.

thanks for the rom, great @ beta stage.
[Desire Android Development] thay:
Try with reiserfs and swap

If it works with your sd this is a special rom:)
[Desire Android Development] ionhide:
Could someone here please post a Step-by-Step guide to how the SD card should be formatted..
[Desire Android Development] Terepin:
FAT32 + ReiserFS + Swap.

Or

FAT32 + Ext4 + Swap. (In this case you can use RA Recovery).
[Desire Android Development] Tsuneku:
I have formatted the SD and reinstall all from zero....

...without life on the edge :)
[Desire Android Development] nickislauw:
nice rom, quite stable and fast:) only thing i dont like is the CM boot animation :S

is there a way to get the original htc one?

ok nvm i got the htc one but the quietly brilliant text lags much when booting. :( hows that?
[Desire Android Development] ionhide:
Okay, how do i make a RaiserFS partion on Windows 7 ?
[Desire Android Development] melethron:
Next version will have stock animation. It lags because its on sd and the dalvik is also there. There is much i/o on boot there (check logcat and you see much dalvikvm stuff). I could put the bootanimation on internal but it is easier to replace if its in /data/local...

About speed... its not bad ... but 1.72 base is much faster. Next version will be even better. But im away one week and dont have much time to work on the rom ....

Hmm could be even different performance on SAME manufacteur. Most manufactors buy the components they get cheapest. The same card made half year later could be different considering the nand and controller ....

Cant see where the reboot issues lie. Maybe overflow of controller. I want to update the rom first. Then i look into issue with data2whatever. The problem is that i can only test it on my sd-card.... :(

Btw: It's alpha not beta ... ;)

Live cd of linux or gparted. Or you can wait for the next version. Ill include reiser tools then. There will be a patch for first install that makes a reiserFS partition...
[Desire Android Development] Terepin:
Is Alex helping you? :)
[Desire Android Development] melethron:
Yes. But he replaced all /system/libs and that is something i want to avoid. I dont wanna replace more than nescassary.
[Desire Android Development] thay:
I agree with this,for me your work is very good,stay tuned on this way
[Desire Android Development] Terepin:
But he can help you how to cook your own ROM, yes?
[Desire Android Development] ionhide:
Wow nice respond m8 :)

I too have had a reboot issue today, my phone has rebooted 3-4 times. I had to reinstall yesterday, and i didnt have this issue before, strangely enough.. I tried removing LOTE and reinstalling it. Will see if issue is resolved by that.
[Desire Android Development] melethron:
Well almost all that he could help me with is stuff i managed myself. But at least i know now that the issues lies in /system/libs and no binaries. I'm finished with most costum stuff (rooting, deodex, zipalign etc). It's time to start the actual porting. If that is done i need to compile a new kernel and optimize some stuff in the rom itself.
[Desire Android Development] Terepin:
Do you think you will manage to finish it this week?
[Desire Android Development] melethron:
Im not at home atm... i dont know how much time i have to work on the rom .... and i'm not sure how much time it takes ;)
[Desire Android Development] nickislauw:
well you are right, this rom is fast. but need much more optimize cuz i know it can be much faster. but its best HD rom and i tried them all! big up and take your time;)
[Desire Android Development] melethron:
.... it can be faster ... and it WILL be faster.... ;)
[Desire Android Development] Terepin:
Any ETA on 0.6?
[Desire Android Development] obviousd:
Hi melethron. Thanks for the ROM. Its the best HD ROM Ive tried by a fair distance. I was just wondering what the best format is for the partitions in your opinion. Ive got my 1st partition as ext3 and the 2nd as reiserfs (excluding the fat32 one). Would you recommend both being reiserfs? Or some other combo? Thanks

D
[Desire Android Development] melethron:
Im not at home atm. I had only 3 hours this week to work on the rom (rooting, deodex, etc is done - need to port it and compile a kernel now) and i think a cant work on it before weekend.

Call it 2nd and 3rd. Its confusing if you exclude the 1st fat partition (maybe someone reads your post and messes up all his partitions ;) )....

Only the format of the 2nd partition matters. The 3 partition is a swap partition and will be formated with "mkswap" anyway. Swap has its own format.

About reiserfs or ext3. You need to test.... It depends on SD card. Cant give a recommendation. Im using ext3 atm because nandroid a lot atm and test kernel without reiserfs support. But if im done ill use reiserfs.
[Desire Android Development] thay:
Why becomes 2 partition from reiserfs to ext3 (or in some cases ext2)formatted after first boot?

this is the log

+++ Your Partition(s) are NOT aligned and Avaritia HD modified them:

----------------------------------------------------------------------

+++ Your SD-Ext Partition started at sector: 13253625

=> your SD-ext partition was NOT 1024k aligned

and it should start at following sector: 13254656

+++ Your Swap Partition started at sector: 15309945

=> your Swap partition was NOT 1024k aligned

and it should start at following sector: 15310848

+++ OLD Partition table of your SD-Card:

----------------------------------------

__________________________fdisk_Partition_table_____________________________

Disk /dev/block/mmcblk0: 7948 MB, 7948206080 bytes

255 heads, 63 sectors/track, 966 cylinders, total 15523840 sectors

Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk0p1 63 13253624 6626781 b Win95 FAT32

/dev/block/mmcblk0p2 13253625 15309944 1028160 83 Linux

/dev/block/mmcblk0p3 15309945 15518789 104422+ 82 Linux swap

____________________________________________________________________________

+++ The Partitiontable has been modified

----------------------------------------

__________________________fdisk_Partition_table_____________________________

Disk /dev/block/mmcblk0: 7948 MB, 7948206080 bytes

4 heads, 16 sectors/track, 242560 cylinders, total 15523840 sectors

Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk0p1 63 13253624 6626781 b Win95 FAT32

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk0p2 13254656 15310847 1028096 83 Linux

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk0p3 15310848 15518789 103971 83 Linux

Partition 3 does not end on cylinder boundary

____________________________________________________________________________

+++ The SD-ext partition got formated with EXT3 afterwards:

-----------------------------------------------------------

=============================

+++ Your Partition(s) are already aligned and Avaritia HD didn't modify them

+++ Filesystem check found no errors - no log attached
[Desire Android Development] melethron:
Again, because it isnt aligned. You need to create the partition aligned. Use gparted and use "align to mib". Then it wont change anything ...

... or wait for the next version.
[Desire Android Development] thay:
Have seen only now your pvt :)

I tested with many sd cards and have always the 2 partition modified after boot

This using gparted with "align to mib"

Wait new version,however rom works great with ext3:)
[Desire Android Development] Lanbase:
Thanx Melethron for great ROM!

I formatted with Gparted Live CD, align to Mib

1st Partition : Primary, Fat32, 13+ GB

2nd Partition : Primary, ReiserFS, 1024MB

3rd Partition : Primary, LinuxSwap, 100MB

I use a Sandisk 16GB Class4 sdcard and do not use LOTE

the avarita Log states,

===========================================================

Avaritia HD by melethron

===========================================================

=============================

Thu Jan 6 16:10:50 GMT 2011

=============================

+++ Your Partition(s) are already aligned and Avaritia HD didn't modify them

-------------------------------------------------------------------------------

after every reboot btw.

###################################################################

It is my first HD rom, so I am easaly pleased I gues..

After from what I have read on all the threats of HD-roms

and Data to SD being always a bit slower than "normal" rom

with A2sd+ I was a little scared for performance drop.

But I am very very enthousiastic, I can not find any lags now

and market installs are almost the same as I am used to.

I score 1604 in quadrant now, but don't know if this says anything,

my sisters stock desire scores 1250 so I don't really get this quadrant stuff.

Taken into account that the new avarita version will be based on the

faster 1.72 base anyway, I beleive your building something really promising here.

Thanx again Melethron for your wise and smart development.

Grtz Lanbase
[Desire Android Development] melethron:
I ended up with ext3 myself while testing the formatting etc. I always remake my Partitiontable to test the script and i was to lazy to remake it with reiserfs. Ext3 is also fine.

If the sd-card is good than it is really smooth. Seems you are lucky :)
[Desire Android Development] Desaf:
hi guys great rom!

But i have 1 problem: When I get my phone out of the charger it keeps rebooting.

Someone knows why?
[Desire Android Development] melethron:
You use life on the edge?
[Desire Android Development] Lanbase:
Check your avaritia-log.txt on your sdcard, see if you can find anything.

Did you flash anything else apart from the rom?

Sent from my HTC Desire
[Desire Android Development] ionhide:
If I am not using LOTE, the phone is so slow.. I tried removing it, and market wont install updates etc..

Sent from my HTC Desire
[Desire Android Development] nickislauw:
well i dont use LOTE and my phone blazes on this rom.
[Desire Android Development] Desaf:
Yes I use it and I have 2 gb ext4 128 swap
[Desire Android Development] Desaf:
But should I use life on the edge or not. I now use it but my phone keeps rebooting. When I plug my charger loose

Can someone please answer my question
[Desire Android Development] Alex-V:
melethron will change something in the life on the edge patch...i also have reboots with it...i changed now my ext3 to reiserfs (if you can live without nand backup its not problem) ....

Reiserfs is much better in speed i think...(the fist load is also slow) but if you are in the system you don´t see a big difference to the life on the edge patch...and its safe :)

with kind regards...Alex
[Desire Android Development] thay:
If you have reboots i dubt you come lucky with reiserfs,the problem is sd cardAll those d2sd roms works great only with some sd cards otherwise at the moment there are no other solutions

Hope in future new scripts can solve this problem
[Desire Android Development] Alex-V:
I have talked long with melethron...and yes it can be the sd card (have the original from the phone 4gb)

but he will use another loopfile thing for the new life of the edge patch...and with this we should get a free reboots phone :)

I never have problems with reboots not with data2sd/ext/whatever only if i use the patch :)

I use only gparted and partitions aligned

But i must say without the patch reiserfs is still the fastest for me..so.. lucky...yes

with kind regards...Alex
[Desire Android Development] Desaf:
Thank you very much. When does the new update come?
[Desire Android Development] Alex-V:
That i can not say...maybe with the new rom from him... :)

with kind regards..Alex
[Desire Android Development] woti23:
not by default

barrier=none / barrier=flush

This enables/disables the use of write barriers in the journaling code. barrier=none disables it, barrier=flush enables it. Write barriers enforce proper ondisk ordering of journal commits, making volatile disk write caches safe to use, at some performance penalty. The reiserfs filesystem does not enable write barriers by default. Be sure to enable barriers unless your disks are battery-backed one way or another. Otherwise you risk filesystem corruption in case of power failure.

(source: man mount)
[Desire Android Development] thay:
And how to do this?
[Desire Android Development] woti23:
mount -o barrier=flush,noatime,nodiratime /dev/block/.... /mountpoint...
[Desire Android Development] Alex-V:
Ah ok...thx for info :)

with kind regards..Alex
[Desire Android Development] melethron:
Dont use LOTE for now. I think i change it that it is like "classic" data2sd with a loopfile. I still dont recommend it (and never will ;) )

Im back home tommorow. Then i have time to work on the rom again. But i wanna rewrite much in my script (split it up in 3-4 seperate scripts for logging and a setup file for vdd levels on external). I also need to look into some porting stuff and need to compile a kernel.

Wait a sec:

1. Barriers need hardware support. If it doesnt have it barrier will cause issues. Voodoo lagfix devs disabled it because it caused issues on the build-in card of SGS. I'm also disabling barrier on ext3/4 in next version. Im pretty sure that NO sdcard supports barrier because of 2:

2. Barriers is to enforce a flush of the HARDWARE write cache and i doubt that an sd-card has a write-cache ;)

EDIT: Barriers on is like 10 times slower on sqlite. Compare it on the phone. There is no difference.
[Desire Android Development] melethron:
@woti

Btw: Are you intrested in providing a kernel for the ROM? Would spare me some time.
[Desire Android Development] woti23:
oh yes, i'm dreaming of the future ;-)

"Super Talent release four new USB 3.0 flash drives (32GB and 64GB), two of which utilizes a 32 MB cache buffer for a nice speed boost."
[Desire Android Development] melethron:
No need to lagfix on those ^^

Btw: maybe next version of life-on-the-edge may be completly different:

http://xdaforums.com/showthread.php?t=903507

Why (ab)use "loop" to skip fsync ....

Ill test it tomorrow. Im back home then. I really like ownhere's idea.
[Desire Android Development] woti23:
sorry, but i doubt, i have the knowledge for that, i don't even unterstand c/c++ well.

that would not be serious. but if you need someone to test or to compile a modified source or try things out feel free to count on me.
[Desire Android Development] woti23:
i read that - but i can't test with the Z rom?

think he modified an other libsqlite?