{"id":719,"date":"2010-12-02T00:26:32","date_gmt":"2010-12-02T04:26:32","guid":{"rendered":"https:\/\/lowtek.ca\/roo\/?p=719"},"modified":"2010-12-02T00:26:32","modified_gmt":"2010-12-02T04:26:32","slug":"ramhackhtcg1","status":"publish","type":"post","link":"https:\/\/lowtek.ca\/roo\/2010\/ramhackhtcg1\/","title":{"rendered":"More RAM for your G1"},"content":{"rendered":"<p>I&#8217;m a big fan of the <a href=\"http:\/\/www.cyanogenmod.com\/\">cyanogenmod<\/a> alternate firmware. It has allowed me to enjoy the latest versions of Android (<a href=\"http:\/\/googleblog.blogspot.com\/2010\/05\/android-froyo-with-some-sprinkles.html\">Froyo<\/a>!) on the original <a href=\"http:\/\/en.wikipedia.org\/wiki\/HTC_Dream\">HTC G1<\/a>. One of the most notable limitations of this device vs. almost all of the others is the amount of RAM available. The G1 has 192MB of RAM, of which only 95MB is available for programs under CM 6.0. Recently there has been a hack <a href=\"http:\/\/forum.cyanogenmod.com\/topic\/9683-new-radio-dream-15mb-extra-ram-for-htc-dream\/page__st__300__p__93605__hl__ezram__fromsearch__1#entry93605\">&#8220;EzRAM&#8221;<\/a> which enables an additional 15MB of RAM for a total of 110MB. This additional RAM really makes a difference in performance.<\/p>\n<p>Read on for the details of the upgrade process..<\/p>\n<p><!--more-->One key thing about upgrades is backing up what you have so you don&#8217;t lose anything. I try to remember to do the following:<\/p>\n<ul>\n<li>Backup <a href=\"http:\/\/wiki.cyanogenmod.com\/index.php?title=Customizing_CyanogenMod#ADW_Launcher\">ADW Launcher<\/a> layout and preferences<\/li>\n<li>Export <a href=\"http:\/\/www.androidzoom.com\/android_applications\/tools\/ak-notepad_exj.html\">AK Notepad<\/a> to the sdcard<\/li>\n<li>Run <a href=\"http:\/\/www.androidzoom.com\/android_applications\/tools\/sms-backup-_jmhx.html\">SMS Backup+<\/a><\/li>\n<li>Note chapter and book I&#8217;m reading in <a href=\"http:\/\/www.androidzoom.com\/android_applications\/reference\/aldiko-book-reader_cwo.html\">Aldiko<\/a><\/li>\n<li>Perform <a href=\"http:\/\/wiki.cyanogenmod.com\/index.php?title=Howto:_Using_the_Recovery#NANDroid_backups\">Nandroid<\/a> backup<\/li>\n<li>Back-up sdcard contents to my PC<\/li>\n<\/ul>\n<p>My phone was running HBOOT-1.33.2005 (<a href=\"http:\/\/wiki.cyanogenmod.com\/index.php?title=Dream:DangerSPL\">DangerSPL<\/a>) and RADIO-2.22.19.26I. The 1.33.2005 SPL is fully fastboot enabled, you&#8217;ll need one of these to succeed. I strongly suggest reading the <a href=\"http:\/\/forum.cyanogenmod.com\/forum\/37-htc-dream-htc-magic-experimental-mod\/\">CyanogenMod Forum<\/a> &#8211; specifically the <a href=\"http:\/\/forum.cyanogenmod.com\/topic\/9819-cm61-rc1-2708port-for-new-radiospl\/\">post which outlines this procedure<\/a> in detail. This post will outline upgrading the radio and SPL, and installing CM 6.1-RC1 with the extra memory enabled.<\/p>\n<p>You&#8217;ll want to download some files from <a href=\"http:\/\/forum.xda-developers.com\/showpost.php?p=9055790&amp;postcount=1\">XDA<\/a> and <a href=\"http:\/\/forum.cyanogenmod.com\/topic\/9819-cm61-rc1-2708port-for-new-radiospl\/\">CyanogenMod<\/a>.<\/p>\n<p><code>dream_2708kit.zip<br \/>\nrecovery-RA-dream-v1.7.0-cyan.img<br \/>\ngapps-mdpi-tiny-20101020-signed.zip<br \/>\nupdate-cm-6.1.0-RC1-DS-2708port_S.zip<\/code><\/p>\n<p>Extract the\u00a0<code>hboot-1.33.0013d.img<\/code> and\u00a0<code>radio-2.22.27.08.img<\/code> from the\u00a0<code>dream_2708kit.zip<\/code>. There is an option to use a slightly later radio, but I opted for the one listed here.<\/p>\n<p>Place the gapps-mdpi-tiny-20101020-signed.zip\u00a0and update-cm-6.1.0-RC1-DS-2708port_S.zip on the root of your sdcard.<\/p>\n<p>You&#8217;ll need to use <a href=\"http:\/\/wiki.cyanogenmod.com\/index.php?title=Fastboot\">fastboot<\/a> in the next step, this may require downloading a copy and ensuring your PC will connect to the phone in fastboot mode. I found in my configuration that I needed to run fastboot as root to have the right permissions on the USB port.<\/p>\n<p>Now it is time to reboot your phone into fastboot mode. To do this hold down the camera button while rebooting. Now we do a series of steps in fastboot mode &#8211; follow these carefully.<\/p>\n<p><code>fastboot flash recovery recovery-RA-dream-v1.7.0-cyan.img<br \/>\nfastboot flash radio radio-2.22.27.08.img<br \/>\nfastboot flash hboot hboot-1.33.0013d.img<br \/>\nfastboot reboot-bootloader<br \/>\n<\/code><br \/>\nThe last command will cause your phone to reboot, and return to the bootloader screen. Here you can verify that you are now running the new SPL (1.33.0013d) and radio (1.33.0013d).<\/p>\n<p>A couple more fastboot commands to clear things out, again use caution.<\/p>\n<p><code>fastboot erase system -w<br \/>\nfastboot erase boot<\/code><\/p>\n<p>You should be able to boot into recovery now. Reboot and hold down the home key to do so.<\/p>\n<p>Choose the wipe sub-menu, and wipe data \/ factory reset.<\/p>\n<p>Now flash from the sdcard update-cm-6.1.0-RC1-DS-2708port_S.zip, followed by gapps-mdpi-tiny-20101020-signed.zip.<\/p>\n<p>Reboot, we&#8217;re now going to run the new ROM. For most this is the end of the upgrade process.<\/p>\n<p>I have a few additional steps I do in my upgrade process, these are optional.<\/p>\n<p>I connect to the phone once it has boot, and manually enable swap using adb shell. My sdcard has a swap partition as the 3rd partition.<\/p>\n<p><code>swapon \/dev\/block\/mmcblk0p3;<br \/>\nsysctl -w vm.swappiness=30;<\/code><\/p>\n<p>I do this because the initial boot will need a lot of memory when Froyo is restoring the downloaded applications. Swap will be disabled after the next reboot which is just fine by me.<\/p>\n<p><a href=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2010\/12\/android_auto_download.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-720\" title=\"android_auto_download\" src=\"https:\/\/lowtek.ca\/roo\/wp-content\/uploads\/2010\/12\/android_auto_download.png\" alt=\"\" width=\"320\" height=\"480\" \/><\/a><br \/>\nI also need to start up the settings application manually to allow me to configure wifi before going through the initial setup screens.  This is done by again via adb shell:<\/p>\n<p><code>am start -a android.intent.action.MAIN -n com.android.settings\/.Settings<\/code><\/p>\n<p>You need to be somewhat patient. The very first boot will be quite slow as Android populates the various caches etc. It will also be syncing your applications via the market, and as you visit and configure the various applications you&#8217;ll be syncing more data.<\/p>\n<p>A last note of caution. Read, and re-read things if you&#8217;re not sure. The forum also has some recovery suggestions if you break things. With care, all of these steps are reversible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of the cyanogenmod alternate firmware. It has allowed me to enjoy the latest versions of Android (Froyo!) on the original HTC G1. One of the most notable limitations of this device vs. almost all of the others is the amount of RAM available. The G1 has 192MB of RAM, of which &hellip; <a href=\"https:\/\/lowtek.ca\/roo\/2010\/ramhackhtcg1\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;More RAM for your G1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-719","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":3,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/719\/revisions"}],"predecessor-version":[{"id":723,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/719\/revisions\/723"}],"wp:attachment":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/categories?post=719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/tags?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}