[G1 Q&A, Help & Troubleshooting] G1sanju:
I was trying to upgrade to CM6 from CM5 and was facing lot of issues so I followed below process and got it worked. I thought of sharing it with everybody as lot of person are having issues.

I know most of the information is available on XDA but not on a single place.

I have made a separate thread because A2sd and SWAP are not supported by CM6 officially.

This is not an official method of installing CM6, this is how I got it worked and you can use it for reference.

1) Preperation: You need to get the below mention files, Please get these files from below mentioned thread:

a) CM6 and Gaaps

b) CustomMTD Patch - You only need FR-recovery and FR-boot latest version.

c) Script for a2sd and swap - get the latest script.

d) Fastboot - Fastboot should be setup and working, If you are on Linux go here

e) SD Card Partition - If you are not sure how to partition the sd card. If you want to use a2sd and swap, please partition your sd-card.
​

Store all files on root of sd-card.

2) Connect the phone to PC, do not mount the phone.

3)	Wipe the phone:

a)	Boot into recovery(reboot while holding home and power). Wipe everything.

b)	Boot in fastboot mode. (reboot while holding back and power)

Enter the command in terminal or command prompt on the PC

fastboot erase system -w​

c)	reboot into recovery.​

4)	Install the custom MTD. (If you already have custom MTD then this step is not required.)

a)	Flash customMTD fr-recovery file.

b)	Reboot into recovery.​

5)	Install CM6 Gapps and boot loader.

a)	Flash CM6

b)	Flash Gapps

c)	Flash Boot Loader fr-boot file

d)	reboot phone​

6)	Once phone is booted and you are on the home screen, go to

CyanogenMod Settings > Application Settings > Install location - Set Install location as Internal, make sure allow application moving is not checked.

CyanogenMod Settings > Performance Settings - make sure that Compcache, JIT, dithering is not checked. If something is checked please uncheck it.

Lock home in memory can be checked, but some guys has reported that it drains a lot of battery.

Reboot the phone.

7)	Go to terminal type below code

su

sh /sdcard/fr-patch140.txt a2sd​

It will ask if you want to install a2sd, type Y and press enter. Once APKManager is installed, type quit to exit.

Reboot the phone.

8)	If you are not using a2sd and want to setup swap, please enter the below command in the terminal otherwise continue to step 9.

su

sh /sdcard/fr-patch140.txt sdext​

reboot the phone.

9) Go to terminal type below code

su

sh /sdcard/fr-patch140.txt swap​

It will ask for swappiness, I use 60 there, but its your own preference. After that it will ask you if you want to use swap-file, press n and enter.

After this enter below to terminal

Free​

If you get swap setup it will show in front of swap in terminal, if the result show zero swap then reboot and do the step 9 again.

Now you have a CM6 with apps2sd and swap. All the newly installed apps will automatically go to ext. ;)

If you don't like 3d gallery and want it to replace it with old gallery..This has been provided by ZilverZurfarn on CM6 thread.

Extract Gallery.apk from a older CM update (like 5.0.8) somewhere (c:\temp in the example below)

Using adb:

adb remount

adb shell rm /system/app/Gallery3D.apk

adb push c:\temp\Gallery.apk /system/app/Gallery.apk
​

Also there are some apps which I don't prefer, as I don't use android native keyboard, Android browser, POP email, amazon MP3 etc. So I have created a script for my use which has been shared and it can be run from the terminal..

download remove-app-v1.0.txt and store it to root of your sd card. than enter below commands in terminal

su

sh /sdcard/remove-app-v1.0.txt​

currently this script will remove below mention apps based on user input.

Amazon MP3, Live Wallpaper picker, CM Wallpapers, POP Email, Android Native Browser, Android Native Onscreen Keyboard, Genie Widget...

Note: - Before removing browser and keyboard please make sure you have a replacement for them.

I do not take any credit for work, its just a reference for installing CM6. Thanks to Cyanogen and team, Firerat, Lbcoder for producing these amazing roms and methods.....:)

Please provide your feedback and suggestion for the guide.

If you like my guide and want to Donate