yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] kabaldan:
Update of CM7 with 2ndboot to custom kernel

http://d-h.st/ZDo

What's new:

- charge_only_mode now works

- BP panic is now handled correctly

- 2ndboot files are now stored in /system/etc/2ndboot

- kernel and modules updated

- upstream updates merged

- DSS tearing elimination turned off to increase fps rate

Ongoing issues:

- sluggishness after 2ndboot till the first suspend
[Motorola Milestone Android Development] papadawgg:
Best man :)
[Motorola Milestone Android Development] savezia:
Awesome

Thank you Kabaldan, I just flashed it and I'm messing around a little bit to see how it copes, so far so good. seems overall smooth, I will be reporting later!
[Motorola Milestone Android Development] k1l:
first boot took very long (thought about resetting the battery already) but was fine.

feels good so far
[Motorola Milestone Android Development] naeem123:
I'm trying this ROM out right now ad it's going okay I don't mind the waiting after every boot, but I have a irritating problem I need to know how to fix, The status bar just disappears and it doesn't come back, I have attached a screenshot, please help!
[Motorola Milestone Android Development] LuigiC6:
Is there an updated gapps around? I'm still using the one from 1106 :S
[Motorola Milestone Android Development] janosik47:
Is there any real need for a newer version? You can upgrade market manually if you like (look for links to the most recend one on the androidpolice pages).
[Motorola Milestone Android Development] kabaldan:
The SystemUI process that holds Status Bar is shared between SystemUI, Usb, LatinIME and DSP Manager (to spare a few megabytes of RAM).

One of these apps is probably crashing, taking the Status Bar away.

You should be able to see the information about the crash in logcat.

The fix can probably be as simple as deleting the offending app data in Applications settings.
[Motorola Milestone Android Development] LuigiC6:
The gapps for milestone are specially made to account for the low ram. I meant for apps like messaging and whatnot, if Kabaldan has made any changes.
[Motorola Milestone Android Development] MotoMileCm7:
original and official kabaldan cm7 from started post or cm7 with 2ndboot?
[Motorola Milestone Android Development] papadawgg:
If you are agree with it, to turn your screen of for 1-2 minutes without usb connected after every boot, then cm7 with 2ndboot. Because its much faster and by enabling Swap or Compcache, you can also do multitasking, which was nearly impossible before.
[Motorola Milestone Android Development] genziutek:
One answer - CM with 2ndboot :thumbup:
[Motorola Milestone Android Development] LuigiC6:
I've gotten 2 random reboots so far with Kabaldan's latest build. Does someone wanna refresh me on how to pull the logs?
[Motorola Milestone Android Development] ngonchan:
Enable logger in Device Setting. Logger files stored at /data/logger/
[Motorola Milestone Android Development] Strokesws:
I installed today the latest build with zRam in 26% and a 16MB Swap and it seems to be smoother than the first 2ndboot build.
[Motorola Milestone Android Development] walker666:
Adb pull /cache/logger
[Motorola Milestone Android Development] Maniaccc:
Custom kernel is another milestone for our milestone ;) Thanks for it.

I have just install the latest version. As described below, at the beginning phone is laggy. After first deep sleep it is very smooth. But screen on off animation is still laggy.

Test condition:

Update over CM7.2.2

Wipe cache

Only Zram %18

Without swap

Overclocked to 900 Mhz
[Motorola Milestone Android Development] papadawgg:
I have the same problem with off screen animation, so I turned it off.
[Motorola Milestone Android Development] Strokesws:
I'm using this build since yesterday and it's working very well, no lags and reboots, a very nice work. :)
[Motorola Milestone Android Development] cavihit:
i ran this rom for a few days and it seemed a bit slower than 7.2.0 (which to date has been the fastest/most stable for me, @800 & smartass), even with compcache off. looks like it's just me though. also swype kept restarting. will give it another shot when the pre-suspend lag issue is fixed. thanks again!!!
[Motorola Milestone Android Development] krondar:
Hey guys I've got a strange bug with latest release (cm-7-20121014-UNOFFICIAL-umts_sholes.zip).

When I'm on WiFi and use Google play to download apps when i download a second app, my download stops near the beginning (4KB - 8KB) and no application can use the internet after this. It's stuck. When I will turn WiFi off, on 3G it will resume without any problems. Turning WiFi on... and it will happen again.

I listened to music on WiFi via TuneIn Radio. It was fine, no problems. Then I have launched Play, and on first download, music was gone... with connection error. Logging to accounts via WiFi was a problem too...

I've upgraded to cm7 from stock 2.1 Eclair, did factory reset, dalvik and cache wipe. It's a clean and fresh install. On 2.1 it was fine...
[Motorola Milestone Android Development] Eiertschik:
As far as I know you need to update to stock 2.2 first before applying any custom rom that's based on 2.2 and later.
[Motorola Milestone Android Development] scoutme:
You must apply some updates about radio. Look at kabaldan site for them

EDIT: www.mrmuh.com/2012/01/update-a-motorola-milestone-from-motorola-firmware-to-cyanogenmod-7/

read install cm7 paragraph or search forma BPSW
[Motorola Milestone Android Development] krondar:
Ok, thanks i missed it while reading. I just flashed Froyo via RSD, and then vulnerable + update.zip + all wipes + cyan. Now I will test the WiFi :]

EDIT: WiFi runs great! :) Thanks guys! :)
[Motorola Milestone Android Development] scoutme:
you're welcome ;)
[Motorola Milestone Android Development] _crAss_:
I tried different sizes of swap and the result was that my (class 10) card cannot cope with it. The 0.018 MB/s at 4k write is probably the reason for it.

So for CM7 at least the optimum combination is either 18% or 26% compcache, which proves enough for daily use for 3-4 days before I reboot.

I think I will need a new card in order to go to CM10.
[Motorola Milestone Android Development] papadawgg:
Good news. The slugishness problem after boot seems to be solved by Skrilax_CZ, now (IRC log). The next build should have 2ndboot without any compromises, so that the developers finally can move on with jellybean developement.
[Motorola Milestone Android Development] CptAJ:
Oh boy, I'm so glad I decided to check back here today :laugh:

I'll be trying this out next week. Good job guys!
[Motorola Milestone Android Development] burdik:
SUDDENLY

7.2.3 is out

https://github.com/nadlabak/android/downloads

Some people from 4pda (incl. me) were experiencing weird problems on older versions of 7.2 w/ 3G and mobile data (one led to panic and force reboots, another was an inability to use mobile data if phone lost it's mobile carrier's coverage until turning airplane mode on/off), I'll see if I can get more information on this.
[Motorola Milestone Android Development] MotoMileCm7:
The 7.2.3 vrs it like the last kabaladan upload to dev host?
[Motorola Milestone Android Development] Eiertschik:
Goodbye, pre-sleep-sluggishness! :victory:
[Motorola Milestone Android Development] TheSgrash:
hi you all

i would like to flash the last version of this rom... is cm-7.2.3-umts_sholes.zip the last one??

what must i do to have custom kernel? is it included in the rom?

ps: i have the last version of minimod as recovery
[Motorola Milestone Android Development] Erovia:
Yes, the rom contains the kernel.

Just do a cache and dalvik-cache wipe in the OR and flash it.

(In case you upgrade from anything else than cm7, you must wipe anything)
[Motorola Milestone Android Development] TheSgrash:
thanks for the answer

another question:

i read about zram, compcache and swap... how can i use them to improve the user-experience? i have a swap partition on the sd-card (fat32-ext3-swap)
[Motorola Milestone Android Development] Erovia:
Zram=compcache.

It can be enabled (i guess it is enabled by default) in the Performance settings.

The swap feature can be used be the app called Swapper2 (it's free, can be downloaded from Play and easy to use).
[Motorola Milestone Android Development] TheSgrash:
great...

thank you very very much
[Motorola Milestone Android Development] burdik:
I'm happy to note, that the bugs I've described in my last post seem to be gone since I've flashed 7.2.3.

That's cool

Ohh, I wish the choppy animations to be corrected soon
[Motorola Milestone Android Development] papadawgg:
The new 2ndboot cm7 runs great and I'm glad that we are able to finally use custom kernels, now. But I randomly recognized that the 5 point multitouch does not work anymore. On the app "Multitouch Test" it only shows 4 points. I know, that is one of the most unrelevant issues because in daily use, no one uses 5 fingers for Milestone but it just had to be said :)
[Motorola Milestone Android Development] MotoMileCm7:
what the best setting to Swapper2 ?
[Motorola Milestone Android Development] clmta:
Hi, I tested unofficial 7.2.2 custom with second boot, and swapper2 only let my to create the swap using default 32MB size, other size gave me FAIL.

Have someone tested with bigger swap size, like 128MB or 256MB using the standard sdcard?

Also some tool to test the write speed? my sdcard is the one I received with the MM, but I believe that is a without-class microSD. I.e. using the 32MB swap size when I start maps it is hang a lot, I believe that is trying to swap some process but moving it at a very slow speed.

I am trying swap file and no zram because using any value of zram the phone is very slowly, perhaps I have various services (handcent, whatsup, etc).

Regards,

Claudio.
[Motorola Milestone Android Development] _crAss_:
One of the tools to test the write speed is CrystalDiskMark. The 4k writes index is what you are looking for and seems it should be at least 1 MB/s in order for the swap to be usable and not face delays of many seconds of unresponsiveness.
[Motorola Milestone Android Development] coto39:
Hey Guys! Is there anyone having problems 2D and 3d performance. With the latest build (and the only one I tried because I'm using a friend's phone) i'm getting a really poor graphic performance.

After noticed the heavy lags I used Antutu and i got: 2D: 293 and 3D: 304. Plus on spiral test i got 11fps (wtf?) and on soldiers one i got 12fps!
[Motorola Milestone Android Development] -FuFu-:
i create a script that activate swap on boot, so no need to use swapper2 anymore ;)

just download the attached zip, unzip, copy 98swapon to /system/etc/init.d and set chmod 750

the script check if a swap partition exist (mmcblk0p3) if so it set it to use as swap, if not it checks if there is a swap file (swapfile) on /sdcard or /sd-ext and use it for swap... if there no swapfile it will create one (on /sd-ext if exist, if not on /sdcard)...

you can change the size by edit the script, i set it to 32mb as default

the script also creates a log file on /cache to check if all works

the script also set swappiness to 15 and some other settings, if you dont want it, just delete it out of the script ;) for me it works fine

if you have any problems with this script, please let me know ;)

and sorry for my bad english ^^
[Motorola Milestone Android Development] Erovia:
FuFu, you are awesome! :thumbup:

If its working under CM10, the i think you should post it in the CM10 thread.

If not, then please make a compatible version. :D
[Motorola Milestone Android Development] RedBandit:
Thanks for the script FuFu.

The additional things you set in the scipt, is there anything special which is optimized.

I created a stupid swapon script myself, to avoid using the swapper app. I additionally use RamManager to optimize the system.

Your addional settings will they be overwritten by RamManager? Do you know that?

Thanks
[Motorola Milestone Android Development] vkmaxx:
It's a simple* script and works also under 4.1.2. I have checked it myself :good:

FuFu, you are awesome! :thumbup:

*When I say simple I mean I can understand it line by line, but I would not wrote it by myself :eek:
[Motorola Milestone Android Development] -FuFu-:
the script may will work on all rom/devices with swap (i think)

its just a simple script with a simple log (the log may can delete out of the script it was just for first testings)

@RedBandit

the script optimized some settings but i dont can explain all of them ^^ and i think to get the optimal settings you must try out some settings...

soe settings will be explain here:

German: http://www.android-hilfe.de/android-allgemein/282611-sysctl-conf-kernel-tweaks.html

English: http://androidforums.com/esteem-all-things-root/532317-tweak-wip-sysctl-conf-tweaking.html

for the rest i think google will help ;)

the settings for me works fine, but for some other users from a-h.de not... so i think its just a testing thing
[Motorola Milestone Android Development] MotoMileCm7:
ד

what the best size to use?
[Motorola Milestone Android Development] heavony.ivory:
How to re-size my ext4 partition without messing with the data ?

I want to create new swap partition on my sd-card, but cause it's full, i need to re-size my ext4 partition to clear some room.

I try using "mini tool partition wizard" but it won't let me re-size ext4 partition.

anyone can advise me how to it, without messing up with the current data on my ext4 partition ?
[Motorola Milestone Android Development] -FuFu-:
make a nandroid of the ext partition (sddata in nandroid menu), delete ext4 partition, recreate and create swap partition... and after that restore sddata nandroid...

other way is to use a gparted live cd (may with the live cd it will be possible to resize ext4 partitions)

@MotoMileCm7

i think best size to use is between 32mb and 54mb (for me it may be the best size, i never get over 50mb swap use)
[Motorola Milestone Android Development] l1f30wn3r:
This script work's on CM 7.2.2 version without 2nd boot??
[Motorola Milestone Android Development] Strokesws:
This last build is running smoother than the others :) I had no problems at all

One question: What's the difference between swap file and swap partition?
[Motorola Milestone Android Development] mrvek:
The location of swapping. Swap partiotion in a dedicated partition you need to create on your sdcard like FAT32 or ext partition but the filesystem is Linux swap. Swap file is treated as a linux swap but is placed in a file on sdcard.
[Motorola Milestone Android Development] Strokesws:
but is the performance the same?
[Motorola Milestone Android Development] mrvek:
There should be no difference,. The only issue could be low performing sdcard - the faster the card, the better. Also, note that using swap on sdcard can "kill" it relatively soon because of large utilization of it. It won't die on you in a few days but don't be suprised if it doesn't last as long as you'd might expect. In my personal opinion the benefit is greater than the loss of sdcard (that is if you need large amounts of swap space. Otherwise you can use zRam which swaps and compresses to RAM. You can configure up to ~60MB (28%) in CM settings).
[Motorola Milestone Android Development] Strokesws:
One more thing: I tried to update Facebook app but when it starts to install the Milestone reboots
[Motorola Milestone Android Development] mrvek:
I don't know. You can try to uninstall it and try to install it but I'm not sure if it'll help.

It is probably best to collent logs from /cache/logger after reboot caused by app install and upload them for kabaldan to inspect if he has the time. A reboot is odd on such occasion.
[Motorola Milestone Android Development] -FuFu-:
no... for swap you must use CM7 with 2ndboot
[Motorola Milestone Android Development] Strokesws:
I tried to reinstall the app, nothing changed.

And I couldn't find the log =/
[Motorola Milestone Android Development] ngonchan:
I believe that logger not enabled on CM7 by default. Go to Setting and enable logger, then reinstall app and collect logger files if errors occur.
[Motorola Milestone Android Development] xenomorph150:
Hello there,

I got some problems:

I did upgrade to the latest CM Version 7.2.3 today and wanted to also use ext3 and swap features.

So I did create an partiton 2 with ext3 for the ext Feature and an partition 3 as swap.

Before that, I did use the App2SDCard Feature in CyanogenMod without the additional partition.

After booting now, I got some serious problems: All the not on SDCard moved Apps are gone.

So the apps which I left on internal memory (i.e. Alarmdroid, SMS Droid, Play Store...) are gone now.

Additionally, the option to "Extend Internal Memory" in the CM Settings is grayed out, so I think the partition is not recognized.

Could someone point me in the right direction?

Thanks!
[Motorola Milestone Android Development] burdik:
They should have been moved to sd-ext

(Also, why Ext3? I think the best option is between Ext2/4)

Can you connect it to your PC and check your Ext3 partition for files?

Also, "Extend Internal Memory" option is useless at the time, as we use A2EXT and Data2EXT
[Motorola Milestone Android Development] xenomorph150:
And a2ext or data2ext are made "automatically", so I don't have to download anything, just creating an ext2 or ext4 volume and it works out of the box?

I am now reinstalling Android from Scratch as I haven't done that for some time. As I checked the sdcard / ext3 partition I found out that there was data written to that parition, so maybe it did work. I think I just screwed up with the old app stuff.
[Motorola Milestone Android Development] Garreth88:
Sooo... are we able now to make swap partition on internal memory or SD card only? Asking, because SD card seems a bit too slow for swap.
[Motorola Milestone Android Development] xenomorph150:
Ok I am really finished now: I have been trying to setup my phone for hours now, but I can't login to Google.

All the time it tells me that my username / password is WRONG, while I can login with that from the phone itself via browser!

I tried erasing data, reflashing, flashing google apps, booting - serval times. Background Data and everything is on.

Any ideas?

---------- Post added at 06:44 PM ---------- Previous post was at 06:39 PM ----------

After writing this i finally found it out: I have to DISBALE 2 Stage Authentication!

Thats really horrible!

>.<.
[Motorola Milestone Android Development] burdik:
Instead of disabling it you should have generated a "password for application" and used it on your phone while logging in ;)
[Motorola Milestone Android Development] Strokesws:
No log created, I can't understand what's happening... I will try to reinstall the ROM.
[Motorola Milestone Android Development] xenomorph150:
thats correct.

i tried it the first time and it didn't work with the password for application.

but after re-enabeling the 2nd auth, my phone sync stopped working again.

and this time, it did work :D!
[Motorola Milestone Android Development] duandroid:
I have to say its unreal

This is what I call a start. Between all the devs they have taken this long done hardware and put some really sweet software into it. Honestly without them this hardware is as good a junk. It truly puts a perspective on things. Imagine what would be if the devs at cyaongen, and other dev teams could have acess to all source code.

Now that I have the boot 2 version of this rom going I have yet to hit a game I can not play,

Im so impressed.

Good job all!.
[Motorola Milestone Android Development] BoyBawang2:
How to Disable 2 Stage Authentication? And how to do the "Pasword for Application" thing?

thanks
[Motorola Milestone Android Development] xenomorph150:
you'll find it on https://www.google.com/settings/security?hl=de

but you have to enable 2 Stage Auth to make Passwords for Applications.

If you don't want to use / don't use 2 Stage Auth, you don't need to do anything.
[Motorola Milestone Android Development] clmta:
Hi,

I noticed an issue with usb after a day of usage. Using 7.2.3, I connected at night the USB cable to notebook, and does not allows me to select USB connection, nothing appears.

But connecting the wall charger, led is on and charge the battery.

After testing in the other notebook usb ports, I reboot phone, and began to work.

I do not know if this is something al kernel level or it is managed by some normal process.

A second question, I use a 64MB swapfile in sd-ext with 98swapon script. If I enable compcache, free command show me a 128MB swap, disabling it it shows me the normal 64MB swap. ZRAM uses both in memory and swapfile compression?

Regards,

Claudio.
[Motorola Milestone Android Development] scoutme:
That USB problem is usually given by a killed USB demon. Are you using a task killer?
[Motorola Milestone Android Development] clmta:
usb access to sdcard

Hi, thanks for your answer.

No, I am no using task killer.

I found some errors that can not unmount sdcard, I am attaching the alogcat file.

I reboot at morning when I posted the issue, and after a low usage day, the problem repeats.

Regards,

Claudio.
[Motorola Milestone Android Development] -FuFu-:
in the last 98swapon script (V4) was a little bug, that creates 2 log files...

i fixed it, now it creates 1 log file from last boot and backups the last logfile, so that there 2 logs...

V4 also works fine only the log create was wrong, but if you what a right log, i attached here a update ;)

just unzip, copy to /system/etc/init.d and set chmod 750

i also create a zip that can be flash via OpenRecovery Apply Update option (98swaponV5or.zip)

hope all work right now ^^ if there any issues please let me know
[Motorola Milestone Android Development] Strokesws:
I solved my problem with Facebook App, I wiped data and flashed the ROM again, everything is working now :)
[Motorola Milestone Android Development] alicheusz:
If you are using swap then sdcard can't be unmounted. That's why swapper ap is better than FuFu script, it unmount and mount back sdcard when needed (when you using usb mass storage) to doing so it sits in memory constantly, taking resources
[Motorola Milestone Android Development] afadel:
If you have a dedicated partition for swap unmounting the FAT partition (to access via USB in Windows) is not a problem. If you're using a swap file in the FAT partition then you're right, you're better off using swapper than FuFu's script.
[Motorola Milestone Android Development] zeppelinrox:
The script will only use /sdcard as a last resort.

First it looks for a swap partition, if not, it uses the ext partition (/sd-ext ).

If you don't have an ext partition and not using app2ext already, then you're device is severely handicapped anyway so you may as well use an app for swap to make it a perfect trifecta fail lol
[Motorola Milestone Android Development] akantoch:
there is a CM 7.2.4. on github but i'm unable to dawnload it:(

---------- Post added at 08:30 PM ---------- Previous post was at 08:28 PM ----------

there is CM 7.2.4 on github, dawnloading at the moment:)
[Motorola Milestone Android Development] andoruB:
Can someone post the 7.2.3 and 7.2.4 changelogs? All I get from Nabladak is that older versions are obsolete, for what reasons I have no idea...
[Motorola Milestone Android Development] -FuFu-:
there is no changelog, just look at github
[Motorola Milestone Android Development] Maniaccc:
I have flashed 7.2.4. Laggy On off animation has gone. It is as fast as 7.2.2 maybe more. Thanks again.

Milestone cihazımdan Tapatalk 2 ile gönderildi
[Motorola Milestone Android Development] LuigiC6:
Older versions are obsolete because they are older versions. Nadlabak only uploads a new version when there are major changes, all of which can be found on github. Since you're too lazy to check it, the most notable changes in my opinion are:

Fixed choppy animations problem

Reduced Camera reserved Ram from 16mb to 10mb (more free ram)

Interactive governor tweaks

Also just wanna say excellent work Nadlabak and Skrilax. The rom really flies now and seems to be much faster than 7.2.3 :P