Little bits and pieces for Motorola Milestone and Android

CyanogenMod 7 for Milestone A853

Main credits:
Obviously, it's the CyanogenMod team and all CM contributors in the first place.
Besides that and my own humble work, CM for Milestone would not be where it is now without the essential works of Skrilax_CZ (2nd-init, OpenRecovery, usb kernel module and more), f_pasha (gkisystem semaphore patch), Tiago Sousa (author of the original overclock kernel module) and contributions from others that I forgot to list here ;) .

Please note that Milestone is not officially supported by CyanogenMod.

Issue tracker: http://code.google.com/p/cyanogenmod4milestone/
FAQ(wiki): http://www.droid-developers.org/wiki/CyanogenMod_4_Milestone_FAQ
Build from source: http://android.doshaska.net/cm7build
github repos: https://github.com/nadlabak & https://github.com/a853
my recent commits to official CM: http://review.cyanogenmod.com/#dashboard,129

Full guide from stock Motorola Android to CyanogenMod 7 for Milestone
- by pontomedon (many thanks)
- it includes instructions on how to partition sdcard directly in OpenRecovery (to resize existing fat and create ext3)

CyanogenMod 6.1.2 for Milestone A853

Status: release of an unofficial CyanogenMod 6 port for Milestone

Announcement: CM6 for Milestone development continues thanks to Michael
watch this XDA thread: http://forum.xda-developers.com/showthread.php?t=1155454

Please, report bugs and issues here: http://code.google.com/p/cyanogenmod4milestone

Important: Please, use the new OpenRecovery 1.46 for CM6 installation - the system partition was not being erased properly from the update package install script in older versions. (yes, it's finally fixed, Yantz ;) )
The Androidiani OR has been updated to be based on 1.46 (in version 3.3), so it's recommended too.

Update:
18.03.2011 0.08-11.03.18
- proprietary files update
- various wlan connectivity issues fixed (some N routers, wpa2, 801.x enterprise etc.), as in current CM7

28.01.2011 0.07-11.01.28
- proprietary files update (boot.img=>kernel, modules etc from SHOLS_U2_05.26.0)
- the infamous SMS bugs fixed (the OS version should actually read 2.2.2, sorry, I left 2.2.1 there)
- Greek support added to LatinIME 2.3 (including dictionary)
- ext4 module included (can be used to mount ext2 only - writing to journalled ext3/4 is not working correctly yet)
- new separate BPSW update.zip package (same as in SHOLS_U2_05.26.0/SHLA_U2_05.0C.0)

15.01.2011 0.06-11.01.15
- proprietary files update (boot.img, modules, libaudiopolicy), no sleep after usb/power unplug seems to be finally fixed
- added ro.config.no-action-on-plug property. When set to 1, the screen will not automatically turn on when plugged to usb/power (useful especially for users of solar power adapters). Disabled by default, can be changed in /system/build.prop.
- TI OMX libs compiled from sources again (thanks, Edgard)

28.12.2010 0.05-10.12.27
- battery top charge level fixed, updated WLAN driver, ...

22.12.2010 0.04-10.12.22
- 2.3 keyboard (with all the dictionaries as usual, plus 2.3 framework/ex included), but no prediction for hw keyboard yet
- media_profiles.xml adjustments (safer high camcorder profile h264 bitrate) + small camera fixes (sounds etc.)
- small agps fix (issue 295)
- multitouch.distinct defined (fix Google Maps 5.0 rotation gesture etc.)
- bluetooth discoverabilty timeout configurable (thanks H.Czedik)
- modversion change to easily distinguish current build
- etc.

12.12.2010 0.04-10.12.12
- AAC and AMR Wideband audio encoders are finally working!
- additional video quality camcorder profile added - "middle" (customize it in /etc/media_profiles.xml)
- Camera app - fixed encoder change from UI not being used until camera reinitialization, camcorder shortcut added
- adjusted smartass governor defaults

8.12.2010 0.04-10.12.08b
- ignore light sensor when flashlight is on (better solution based on updated flashlight code), SMS time stamp fix, input method chooser dialog fix, smartass governor included etc.
- cpufreq_stats module included (b), Torch app in sync with all widget's flashlight buttons - fixes possible FC (b)
Note: there is a leftover backup file /etc/init.d/10overclock~, please delete it, thanks and sorry for the inconvenience.

3.11.2010: the github repos finally updated, custom building ready: http://android.doshaska.net/cm6build

Version history

7.2.0 RC0 (2.3.7) 17.02.2012
- wide screen video recording now captures in 848x480 resolution (was 720x400)
- two way call recording is now possible (recording has to start after the lines have been connected, not sooner)
- UMTS baseband (2100/900 vs. 2100/1900/850) can be selected in Device settings, the selection will persist even after future system updates (please do not use the baseband switching via Open Recovery anymore)
- fixed in-call and SIM PIN unlock screen layouts for landscape orientation, e.g. for phone in CarDock or DeskDock

CM9 for Milestone - build from source

To prepare and build:
mkdir cm4mm
cd cm4mm
repo init -u git://github.com/nadlabak/android.git -b ics
repo sync
vendor/cm/get-prebuilts
. build/envsetup.sh && brunch umts_sholes

Note (17.05.2012):
You can also use repo init -u git://github.com/nadlabak/android.git -b ics-nothemes
to build CM9 without the theme engine as I suspect it to cause performance issues.

More detailed instruction can be found e.g here: http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Sholes (but take account of the differences in the instructions published here.)

CyanogenMod 9 for Milestone A853

Alpha preview, not intended for daily use!

Source: https://github.com/nadlabak
xda thread: http://forum.xda-developers.com/showthread.php?t=1445209

Missing hw features (don't expect a fix any time soon):
- accelerated video decoding using TI DSP

Because of limited space in system, gapps are installed to /data/vendor. But if ext partition is present on sdcard, they are moved to /sd-ext.
Therefore ext partition is highly recommended for CM9, otherwise the space for apps in /data will be too limited.

CM7 for Milestone - build from source

To prepare and build:
mkdir cm4mm
cd cm4mm
repo init -u git://github.com/nadlabak/android.git -b gingerbread
repo sync
vendor/cyanogen/get-rommanager
. build/envsetup.sh && brunch umts_sholes

More detailed instruction can be found e.g here: http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Sholes (but take account of the differences in the instructions published here.)

The update-cm-7...-Milestone-signed.zip will be built in out/target/product/umts_sholes, ready to be installed via OpenRecovery/updates.

Milestone 2.6.32 test kernel overclock module

Attached is the source (GPL) of the overclock module adapted to the Milestone 2.6.32 test kernel. (The already compiled module is included in the zip too.)

Maybe someone will have an idea what all the data added by Motorola to the mpu_opps struct mean...

When used, there's no need to specify the omap2_clk_init_cpufreq_table_addr or mpu_opps_addr/freq_table_addr addresses. The values correct for this particular kernel are used by default. The kernel is compiled without CPUfreq stats, btw...

My note about the changes in the new kernel on the overclock project page: http://code.google.com/p/milestone-overclock/issues/detail?id=54
Module compilation: http://forum.xda-developers.com/showthread.php?t=811132

Modules needed for native FroYo app2sd (Milestone 2.1 kernel)

insmod /system/lib/modules/dm-mod.ko
insmod /system/lib/modules/dm-crypt.ko
insmod /system/lib/modules/twofish_common.ko
insmod /system/lib/modules/twofish.ko

Fix for non-working Internet on Milestone (2.36.0/2.38.0)

UPDATE: Simple script for OpenRecovery added

Fix for seemingly intermittent Internet connectivity issues after upgrade to 2.36.0/2.38.0 system.

Add the following lines to /system/default.prop
net.dns1=8.8.8.8
net.dns2=8.8.4.4
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4

The values of these properties actually do not matter. The simple fact that the properties are initially defined at all seems to solve the issue. Anyway, I've chosen the google DNS services.

Background info:

nfs modules for Milestone

NFS modules for Milestone as requested.
Compiled from Motorola sources.
You need to insmod sunrpc.ko first, then lockd.ko, then nfs.ko.
Use busybox mount.

Example:
insmod /system/lib/modules/sunrpc.ko
insmod /system/lib/modules/lockd.ko
insmod /system/lib/modules/nfs.ko
busybox mount -t nfs -o nolock 192.168.1.17:/mnt/Spajz /sdcard/nfs

Syndicate content