yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] 9911726614:
What is the amount of Free ram In CM7 while playing Music......? and what is the free RAM ideally......... someone Plz reply.... thanks for the Nice rom going to try it when someone Reply..... about RAM
[Motorola Milestone Android Development] vadonka:
CM7 supports ext4 fs now so you can convert ext2 to ext3 and ext4

ext2 to ext3 convert:

boot to AOR and pick a console

umount /dev/block/mmcblk0p2

/system/bin/e2fsck -f /dev/block/mmcblk0p2

/system/bin/tune2fs -j /dev/block/mmcblk0p2

ext3 to ext4:

first two step is same as before

/system/bin/tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2

/system/bin/e2fsck -fpDC0 /dev/block/mmcblk0p2

reboot :)
[Motorola Milestone Android Development] keunhuvac:
Im using RR 3.3, and when enter unmount command, it shows: bash: unmount: command not found

What is the problem?

Edit: umount, not unmount!
[Motorola Milestone Android Development] chungtau:
Work great! Thanks!:D
[Motorola Milestone Android Development] tegezan:
is navitel and hd games loaded with this new release..?
[Motorola Milestone Android Development] salisbury_steak:
So coming from an ext 2... I assume I need to reboot once I'm on ext3? Before moving to the ext4 conversion steps?
[Motorola Milestone Android Development] 9911726614:
I think For me free RAM is Not that Enough....... so I m going to be on Froyo MOD.. thanks Sailshn For Reply..... well i had tried this Ausom Rom... working Gr8 ... but Now Revert back to Froyo Mod... thanks
[Motorola Milestone Android Development] keunhuvac:
Just type 5 commands and reboots after that!
[Motorola Milestone Android Development] Ok_Kaleidoscope5109:
can't we bring back Toggle 2G? It's really a huge benefit to my battery life...
[Motorola Milestone Android Development] vadonka:
you can donwload from market if you need them.
[Motorola Milestone Android Development] lucfig:
Has anybody saw the miui new statusbar? It is an awesome idea.

When u slide it normaly it brings notifications.

Pressing and holding home button brings recent apps.

Pressing and holding power button brings shortcuts(wifi,bt,power...)

Is there any possibility we will be seeing this in CM7?

The popups are also great. They all appear on the upper part of the screen.

But cant leave CM. There is nothing better than controlling my music with camera and volume buttons.

Thanks
[Motorola Milestone Android Development] vadonka:
the command is umount, and check that contained no whitespace or any trash char. it need to be working :)
[Motorola Milestone Android Development] keunhuvac:
Yes! I have ext4 partition on my SD card now!

Thank you!
[Motorola Milestone Android Development] chungtau:
Can I go back to ext2, as I could not Installed apps now ubder ext3?

:mad:
[Motorola Milestone Android Development] vadonka:
do you run e2fsck after tune2fs? your system mount ext4 partition properly?

boot up, open a console:

su

mount

if you see that /dev/block/mmcblk0p2 mounted to /sd-ext with ext4 filesystem, then go this dir

cd /sd-ext

mkdir test

ls

(you see that test folder created as well?)

if yes nothing wrong, you can remove that folder (rm test)

if the ext4 partition not mounted try to mount:

mount /dev/block/mmcblk0p2 /sd-ext

if you see nothing just you give back the prompt this is normal.

check mount command again, you see ext4 partition mounted now?

if ext4 mount failed, try e2fsck again.

if ext4 mounted, and you use an app2sdext script what is use mount with bind option check this:

/dev/block/mmcblk0p2 mounted to /sd-ext/app and /sd-ext/app-private and optionally /sd-ext/dalvik-cache

if you use app2sdext what is use symlink method check this:

ls -la /data

you can see that the symbolic link configured properly

if you have a root explorer just navigate to /data/app and check the free space, if everything ok you see the ext partition size.

if all of this ok what is write you will install application, if something wrong, let me now :)
[Motorola Milestone Android Development] kabaldan:
Thanks for the notice, I'll compile nls_utf8 module, then it will be possible to use iocharset=utf8 option when mounting cifs shares.
[Motorola Milestone Android Development] kabaldan:
This is actually not needed - installation of CM7 starts with format of the system partition, so whatever was there before doesn't really matter (apart from google apps that are backed-up by a script before the format is called).

The issue could arise only if you install CM7 and after that add another app2ext script to init.d. That would result in two concurrent app2ext scripts, leading to bad things.
[Motorola Milestone Android Development] illi4:
Dear all,

Could you please advice if hd games (such as modern combat 2 and gun bros) are running fine in this RC? In RC3 both games didn't load further the game menu.

As I purchased milestone as a gaming device, this is crucial for me )

Thank you in advance.
[Motorola Milestone Android Development] vadonka:
use autokiller in aggressive mode, and you can run these games, but hd games need a massive cpu speed and 3d acceleration hardware. this will drain your battery very quick, and probably the cpu overheated too if you play too much.

milestone is not really ready for hd games.
[Motorola Milestone Android Development] kabaldan:
Pushed to github:

https://github.com/nadlabak/android...mmit/f7477f8a0708b167350cf19dfc8ad0c518b4f8c8

nls_utf8.ko module can be downloaded here: https://github.com/nadlabak/android...d0c518b4f8c8/prebuilt/lib/modules/nls_utf8.ko
[Motorola Milestone Android Development] vadonka:
kabaldan: i noticed that the 125Mhz is too slow even when the phone is sleeping. sometime cause a random reboot just after the phone booting. i comment out this and now no problem with this. maybe you can refine the settings, 125Mhz is not needed, and replace 900Mhz with 1000Mhz. you can use the same vsel for 1000Mhz. the phone working faster like this.

i would change this: dalvik.vm.heapsize=32m to this dalvik.vm.heapsize=42m

and this: wifi.supplicant_scan_interval = 60 to this wifi.supplicant_scan_interval = 160

by the way, use wifi ap mode, with quicksshd and connect to my phone via pc use winscp and edit all files with my favor editor is really cool :D
[Motorola Milestone Android Development] kabaldan:
I'm not a big fan of 125Mhz opp either, but what to do with all 5 slots that we have now available ;).

The clocking options will be surely reconsidered.

As I have to make sure that the pre-selected vsel values will work on every possible Milestone out there, I have to set the vsel values higher than what is the optimum for my phone. So if I enable 1GHz by default, it will be set to vsel 66 (btw., vsel 66 is still within official OMAP specification).

I expect users will tweak the values for their custom needs themselves.

GUI interface for frequency/vsel setting is planned, but not implemented yet due to lack of free time.

VM heap size is set to 32M for a reason. Although higher values can cause slightly better performance because of less invocations of garbage collector, it leads to more RAM wasted for the same reason. As the amount of RAM is already very low on Milestone for Gingerbread, increasing VM heap size doesn't seem to me as a wise move. 32M should be enough for all applications - those that need more can be considered essentially broken.
[Motorola Milestone Android Development] hahaboy:
how to enable app2ext ?
[Motorola Milestone Android Development] latino147:
operating under 250mhz could lead to phone calls being missed! So to avoid questions like 'hey, I have missed calls on my phone, what's the fix?" you should avoid that scheme like the plague ;)
[Motorola Milestone Android Development] kabaldan:
AFAIK, phone call being missed because of 125Mhz will happen only when the CPU is locked to such low frequency (when screen is off) either by SetCPU or smartass governor. Both require changes made by user and in such case I have to presume that user knows what he's doing :).
[Motorola Milestone Android Development] latino147:
really? Learning something new again today :)
[Motorola Milestone Android Development] vadonka:
i use 42m for vm heap and i have ~60mb free ram after all my programs loaded, i have no problem with the memory. maybe you can add an option to vm settings tab. now the maximum settings is 32m. if you add 42m option it will be nice :) 12m option not needed at all, so you can remove that and add a 42m.

the another issue is the mountsd script. when i use ext4 the e2fsck exit code sometimes not that what the script needed, so i cut down this part, by the way ext4 is a journaled filesystem and do not compared to ext2 :) the mountsd script originally designed for ext2. the original script have an issue with ext4, sometimes not mounted the ext4 dirs, and not working the app2sd script.

anyway still the greatest milestone rom :)

i just realize now your name backward is nadlabak :)

i think you and nadlabak is a different person :D
[Motorola Milestone Android Development] kabaldan:
Btw., I suggest to not use the low frequency locking features, as it leads only to masking of symptoms of CPU abuse by broken apps etc. It will actually not lower the battery consumption when the phone functions as intended, as the strategy "do it fast and be done quickly, so you can rest again soon" seems to be the best one and actually most battery friendly. That is also one of the reasons why I set the interactive cpu governor as the default.

If someone has better results using e.g. conservative governor, then it's probably reason to look at the background apps CPU usage pattern, because something is probably not behaving as it should... The conservative strategy "do it slowly, take your time, do not clock higher to spare the battery unless really forced, do not hurry to rest again" is only good for very often low CPU demanding tasks constantly running in background. Which is not the thing I would want to have running on my phone.
[Motorola Milestone Android Development] fernandotakai:
I wish i had the same free memory.

Bluetooth headphones + Music == ~19mb of free memory :(

Edit:

I think i found the culprit: after disabling JIT, the Running Services screen tells me i have 68mb of free memory.
[Motorola Milestone Android Development] hefonthefjords:
kabaldan, with reference to the new change to the sd read/write buffer size in rc4..

please have a look at my post here... http://xdaforums.com/showpost.php?p=12693624&postcount=2

results of testing indicate a 3072kb setting is more beneficial.
[Motorola Milestone Android Development] hefonthefjords:
also, i've used the 128mhz setting for screen off for extended periods of time and never missed a call.
[Motorola Milestone Android Development] vadonka:
you switched the headers :)

read 6 write 34 ? you mean read 34 write 6 not? :)

by the way i will try with 3072 :)

AOR:

there is a problem about AOR. the ext module seems to be not supported ext4, and the vulnerable recovery kernel does not support the new ext4 module, so cannot be loaded. once you change the ext partition to ext4 cant mounted again in AOR.
[Motorola Milestone Android Development] n3n00:
Where can I change sd speed from 2048 to 3072?
[Motorola Milestone Android Development] vadonka:
\system\etc\rootfs\init.mapphone_umts.rc

line 288

.

.

.

# Increase read throughput from sd card

write /sys/block/mmcblk0/bdi/read_ahead_kb 2048

.

.

.

just change this value if you wish

i try it 3072 but im not experienced big improvement, so i think you can stay with 2048. i have a class10 card.
[Motorola Milestone Android Development] framir:
How i can take photo in wide format?

Thank you! :)
[Motorola Milestone Android Development] uptheironsrafi:
How is the battery life with RC4? is it better than RC3? I am currently running RC3 and battery life is abysmal compared to stock eclair.
[Motorola Milestone Android Development] Subbie171:
So wait a second, I can convert my ext2 partition to ext4 without formating it and then apply RC4 update and not run any app2ext script? Is that it?
[Motorola Milestone Android Development] lalit79:
yes u can convert without formating
[Motorola Milestone Android Development] kabaldan:
Subbie171:

If you are currently using app2ext under CM7 RC3 or older, you can actually simply upgrade to RC4 and not to convert anything. The included ext4 kernel module supports ext2, ext3 and ext4 partitions. So it will work out of the box with your current ext2 partition as it is.

The only mandatory thing is that you do not install another app2ext script after update to RC4, as one is already included.
[Motorola Milestone Android Development] hahaboy:
i just update my milestone, but the app2ext doesnt enable
[Motorola Milestone Android Development] n3n00:
Thanks... I was searching there but I'm blind xD. For me it was 4.7mbs/27mbs on 2048, 5.8mbs/36mbs on 3072. So there is kind of improvement... idk whats my cards class. I've got SanDisk 8gb card, doesn't say which class it is...
[Motorola Milestone Android Development] Subbie171:
Thanks guys, will try!
[Motorola Milestone Android Development] DannyDroid:
Just came from Miui as I was having huge RAM and lock up problems,

Great ROM!

Thank you.
[Motorola Milestone Android Development] hefonthefjords:
lol, what a spaz, i totally did switch the headers. :D

as a side note, even though these changes result in boosted performance on average, the individual results vary extremely wildly.
[Motorola Milestone Android Development] will5:
Great news! I´ll test :)
[Motorola Milestone Android Development] virus_spreade121:
Apart from Huge RAM available in CM7 , what all do you think is good in CM7 RC4 compared to Miui 1.4.1 ?

Or anyone can answer this question.
[Motorola Milestone Android Development] vadonka:
kabaldan: any chance to compile the new ext4 module working with kernel 2.6.29?

i try to change AOR ext2.ko to the new ext4.ko, but i cant load ext4 module, not even by hand. it say: unknown symbol.

if the ext4 filesystem journaled the standard ext2 module cant mount it.
[Motorola Milestone Android Development] Subbie171:
Hey nabladak, it didn't work for me. Applied the RC4 update, rebooted into recovery again, recreated /system/sd directory (not sure its needed?) using console and my apps still don't show up. mount doesn't show it as mounted as far as I can tell.
[Motorola Milestone Android Development] vadonka:
hy

check that /sd-ext directory mounted properly? i have problem with that sometimes. if the sd-ext directory not mounted the app2sdext script not working.

i do not use this part in mountsd script:

if [ "$e2fsk_exitcode" -lt 2 ];

e2fsck exitcode sometimes not right, even the filesystem is OK.

i cut this check from the mountsd and now always working.

i think you have the same problem, the sd-ext directory not mounted so app2ext not working.

if /sd-ext does not exist, try this

open a console

su

sh /system/etc/init.d/05mountsd

mount

if you see /sd-ext directory mounted the ext partition working at least
[Motorola Milestone Android Development] zeppelinrox:
Awesome! I linked to it in this thread, the one I used to create my ext2 partition to begin with.

It was outdated with the "upgrade_fs" thing so I thought it should include this great addition.

I did it via adb (I'm lazy this way, so I just did the copy/paste thing)

I did get an error or two along the way though:

First this went as planned:

/system/bin/e2fsck -f /dev/block/mmcblk0p2

/system/bin/tune2fs -j /dev/block/mmcblk0p2

OK.

Then after doing this:

/system/bin/tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2

I got the message to run e2fsck first.

So again, I ran:

/system/bin/e2fsck -f /dev/block/mmcblk0p2

It found an error and I hit no to fix it.

Then I did:

/system/bin/e2fsck -fpDC0 /dev/block/mmcblk0p2

It found an error and it said not to use any parameters and so I just simply put:

/system/bin/e2fsck

This time I chose chose to fix errors.

Then I did the last 2 steps:

/system/bin/tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2

/system/bin/e2fsck -fpDC0 /dev/block/mmcblk0p2

Everything seems fine. :p

With ext2 partition, nothing was showing up in /sd-ext.

But now, after upgrading to ext4, all the apps show up in there - but they aren't being installed.

Maybe they will after a couple of more reboots? :p
[Motorola Milestone Android Development] vadonka:
there is a possible bug in 05mountsd file. the script watch the e2fsck return value, but ext4 and ext2 working not the same, because ext4 is a next generation journaling filesystem. ext4 filesystem not even closed inproperly, do not require an e2fsck check always, but the script use that check and cause a problem. if the return value not right the script stoppped with this: Unable to repair filesystem, disabling apps2sd.

if you workaround this simply cut down the this 'if' statement:

if [ "$e2fsk_exitcode" -lt 2 ];

of course watch the 'then' 'else' 'fi' part. dont let behind any open tag.

this is not needed for ext4 anymore.
[Motorola Milestone Android Development] zeppelinrox:
Ok I will try that next.

I just reflashed CM7 and I'm thinking with ext4 already in place, all the ext partition apps should install.

It's taking forever to boot up anyway so that's good :D

Thanks for all your input here!

IIRC, you put together a rom?

If so, you should put up a thread!

edit: the AOR script to do scandisk on ext2 partition is:

#!/system/bin/sh
#

umount /sddata
umount /dev/block/mmcblk0p2

/sbin/e2fsck -y /dev/block/mmcblk0p2

mount /dev/block/mmcblk0p2 /sddata

What should it be for ext4 partition?

Ya, I'm a linux noob :D
[Motorola Milestone Android Development] kabaldan:
This is the reason, why I haven't encouraged converting ext2 to journaled fs yet, until OR will be updated with proper support for it.

I'll compile the module for recovery kernel as soon as I find the time for it (unless someone will do it sooner :) ).
[Motorola Milestone Android Development] vadonka:
i will try it :)
[Motorola Milestone Android Development] Babis_ECE:
Thank you for newer version, RC4, great job my friend.

Keep Up the excellent work! :)
[Motorola Milestone Android Development] kabaldan:
What makes you think that the e2fsck exit code is not valid?

How do you know the actual filesystem state? What do you use to check it if not e2fsck?

If you think that the included e2fsck binary is somehow faulty, I would like to have more information about the issue, so it can be corrected as soon as possible.
[Motorola Milestone Android Development] vadonka:
e2fsck -y answer force yes to all question, and working with ext4 as well. the only problem AOR have only ext2 module, and this module not supported the journaling filesystem. the new ext4 module cant loaded because incompatible the recovery kernel... i try to recompile the ext4 module for the older kernel if kabaldan not do this first :)

by the way, i use my own 05mountsd script, im not use the app2ext script, i installed S2E from market and use that for app2sd-ext. i can select individually what i want to move to the sd card, etc.. i can move back if i want, so great program :)

i left dalvik-cache in the nand storage because this is the most important part, and im not want to wait so much time for the boot. if dalvik-cache stay in phone the whole phone much faster. i moved just the app and the app-private folder. it is enough for me.

i use iceandfire mod fonts, i like the rounded font type :) it is pretty :P

and some ringtone and event sound, like camera click sound :)

and used the carbonite blue theme, and blue particle ring as bootanim, increased vm cache and cpu speed, etc.

i have my custom rom but i dont want to publish because what is fit for me not sure fit for others :)

unzip cm7, do a copy, and used araxis merge for the ROM mix, zip again, sign and update :)
[Motorola Milestone Android Development] Subbie171:
Thank you vadonka, that was it exactly! I commented out the if and it's else with the error output and bam it's working fine :)
[Motorola Milestone Android Development] n3n00:
So, why is ext4 better than ext2 or ext3? Actually, I didn't even try any app2ext method because I just think its hard to do that :/

Will this 07app2ext(blabla) make it easier to setup a2ext? I will probably try to set it up, but I'm so confused with all these methods, dunno which one to use and how x(...
[Motorola Milestone Android Development] vadonka:
i dont think that, but i see sometimes no return value given, or just put two empty line, and the script run forward only when exit code smaller than 2.

i dont know this is a binary fault or else, but that reason sometimes when i rebooted the ext partition not mounted. it is happened rare but annoying me :)

ext3 and ext4 partition almost never hurt even an unwanted reboot, so i dont need to watch what is the exit code. run the fsck and move forward :) if something is terribly wrong the mount process will failed anyway, but in this case the sdcard probably broken :P
[Motorola Milestone Android Development] vadonka:
ext3 is ext2 with a journal added. You can mount ext3 file-systems as ext2 just fine. Having a journal makes for better/faster recoveries.

ext4 is a new generation journaling filesystem. the most important part is what is write before, ext3 and ext4 almost impossible to broken, not even an unwanted reboot while you copying files or anything. fsck run a much much more faster than the ext2. while ext2 can be broken easy and not even the fsck repaired, always get bad superblock when trying to mount, ext3 and ext4 do not do this :)

i try to broke an ext4 filesystem, not even broke when i shrink the partition size below the filesystem size. the fsck can repair and i lose only that file what is contained the shrinked area. im a linux administrator so i tested all filesystem. before ext4 come out the most stable and faster filesystem for me was the XFS. now i say ext4 is the answer :)

kabaldan: i see that precompiled module:

/cm4mm/device/htc/click/custom/modules/2.6.29.6-Kalim/kernel/fs/ext4/ext4.ko

this is not working with moto 2.6.29 kernel?

edited: recovery kernel is 2.6.29-omap1 and kalim modules not working with it :(
[Motorola Milestone Android Development] rosmarcelino:
I have tried to create an ext2,but i faced all the problems as possible..no adb recognize,no device found...and when i solved those problems i found another one,when in adb shell i typed: parted/dev/block/mmcklb0 but adb returned a message:patch not found...anyone knows why this happening?Spent so many time for nothing.. :(
[Motorola Milestone Android Development] vadonka:
im partitioning my sdcard with minitool partition wizard home edition simply from windows.
[Motorola Milestone Android Development] dateno1:
i can't access cifs

some files and folders :(

i can't see any files that has 2byte file name and i can't read folder's content that has 2byte folder name

i try iocharset=utf8 but it need utf8.ko

i can do that on 2.6.29 by using utf8.ko and at now i can do that using by andSMB

also i think it drain so many battery (after mount cifs my milestone is so hot)
[Motorola Milestone Android Development] fxandrei:
i tryied before to install ubuntul on froyomod and as it turns out it doesnt have ext2 module.

i see that this one says it has and i wonder if i could install ubuntu on it.

so is the ext2 module working (i dont know actualy how to ask this :) ) ?
[Motorola Milestone Android Development] brysonwong:
I'm upgrading from RC3 with app2ext installed. Are these the installation which i need to do?

1. Clear cache and dalvik cache.

2. Update to RC4.

3. Go to console and type "mkdir /system/sd"?

4. Reboot and use the phone?

Thanks!
[Motorola Milestone Android Development] vadonka:
i do not even think about it :)

why do you need this? :)
[Motorola Milestone Android Development] vadonka:
step 3 is unneded

im going home, se you tomorrow guys! :)
[Motorola Milestone Android Development] kabaldan:
see http://xdaforums.com/showthread.php?p=12690905#post12690905
[Motorola Milestone Android Development] fxandrei:
probably because its cool :).

to have ubuntu on ur phone :)

so would it work ?

im asking this because i understood that the ext2 module is needed.