[G1 Android Development] airadier:
Latest radio 2.22.27.08 and +15mb RAM for HTC Magic

Note: sorry for the URLs, I'm not allowed to post links on my first post. I'll fix it as soon as I'm allowed.

I hope you find this interesting (you can copy instructions to your original post if you find them useful):

Latest radio 2.22.27.08 from official T-Mobile udpate frees 15Mb of RAM, something very interesting on HTC Magic 32B, with only 96MB of RAM, is quite nice. However, if you flash radio 2.22.27.08 on this modified ROM, Cyanogenmod or others, the system won't boot. The problem is latest radio only works with latest official kernel from T-Mobile. And moreover, the official T-Mobile kernel will only work with SPL 1.33.0013 (the original one included in latest update).

I tried the following with your T-Mobile update, but it should work with Cyanogen or others as well.

So, how to make it work:

From recovery, flash Radio 2.22.27.08 (apply .zip from SD card, choose this file. Procedure may vary depending on your recovery image... if you don't understand this, you shouldn't be doing it!):

h t t p : / / w w w . 4shared . com/file/o-PkX9Ew/myTouch-radio-2_22_27_08.html?start=

The phone will reboot two or three times until the update is completes, and then fall into a reboot loop. Don't worry, this is expected. If something goes wrong you can go back to Radio 2.22.23.02 flashing this file:

h t t p : / / w w w . mediafire . com/?qwmzgko2gg2

Now, go back to recovery, and flash the SPL update (update.SPL_Original_1.33.0013-signed.zip) to 1.33.0013. Download from here:

h t t p : / / w w w . multiupload . com/NKJ45TLL8L

The only drawback is this SPL is a "Perfected" one. It won't allow you to flash a new recovery imagen from Fastboot. But you shouldn't worry, do you? You already have a custom recovery, and there are other ways for flashing a new one. So go ahead, apply the update. The system will reboot twice again, and reboot-loop again. The current kernel can't boot with this radio version.

So, now extract the official kernel from the official update (original thread h t t p : / / forum.xda-developers . com/showthread.php?t=807899):

h t t p : / / android.clients.google . com/packages/ota/tmobile_opal/e059adc603a3.signed-opal-ota-60505.e059adc6.zip

from that file, extract boot.img (the kernel) and /system/lib/modules/wlan.ko (the wifi kernel module, will need it later). Now, flash boot.img using fastboot:

* Boot into fastboot (power on while pressing back button + power) with USB connected

* Use the command "fastboot flash boot boot.img"

Now the system should work, but wifi is not working. You need to replace the file in /system/lib/modules/wlan.ko with the extracted file. Connected by USB, use "adb push" to copy wlan.ko to /sdcard, then use adb shell and run the following command to remount /system read-write:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

and the following to replace the wlan.ko file:

cp /sdcard/wlan.ko /system/lib/modules/wlan.ko

make a backup of the file before overwritting, you might never know.

Reboot, and everything should be working fine.

This procedure works well until someone builds a kernel capable of working with radio 2.22.27.08 + SPL 1.33.0013. Also, I'm looking forward for a engineering SPL (1.33.2013) that works with radio 2.22.27.08. There's a modified SPL around there, but it won't work (it's really a 1.33.2005 patched to look like 1.33.2013).