[HD2 Android Q&A, Help & Troubleshooting and Genera] widmer:
Updating Kernel and fixing Wi-Fi

This is from another thread: http://xdaforums.com/showpost.php?p=7632459&postcount=8531

Thanks to memin1857 for the original post.

I was having issues with my Wi-Fi not connecting most of the time. When it did, it was very spotty. So I updated to the latest Kernel and updated my .ko file. Doing this appeared to fix my Wi-Fi issues, plus the full ram Kernel has sped up Froyo quite a bit.

My setup:

TMous HD2 (Leo)

Cookie Energy Rom (24.Jul.2010 WWE)

2.10.50.26 Radio

darkstone HD2Froyo build (Not the darkFroyo build)

zImage from 2010-8-11

From memin1857:

STEP BY STEP UPGRADING TO NEWEST FULL RAM KERNEL

1) Download http://oe.netripper.com/files/htcleo...-htcleo-latest

2) Rename zImage-htcleo-latest to just zimage and copy it your Android folder (overwrite the original)

3) Edit your startup.txt to this: (delete original content)

set mtype 2524

set ramaddr 0x11800000

set ramsize 0x1e400000

set initrd_offset 0x00a00000

set initrd initrd.gz

set kernel zImage

set cmdline "rel_path=Android"

boot

4) If your WIFI is not working (error) Download http://oe.netripper.com/files/htcleo...leo-latest.tgz

5) Open the modules-htcleo-latest.tgz file with winrar or any similar program and find bcm4329.ko file inside. (It is located at lib\modules\2.32.xxxx\kernel\drivers\net\wireless\ bcmxxx) copy it to your sdcard root.

6) Start a Terminal Emulator within Android. (Install a terminal emulator from market if not already installed) Copy bcm4329.ko to sdcard root beforehand. Enter these commands:

su

mount -o rw,remount /system

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

you should get no response and wifi should work immediately.

OR instead of those steps just wait for a new build to come up. New builds will include these ready to use.

-You won't lose settings

-You don't need to format your sd card

-If you don't use above startup.txt you will get stuck at jumping to kernel

-You don't need other modules unless explicitely written somewhere.

-I'm assuming you're using one of the newest builds such as shubcraft, froyostone, mattc Change startup.txt content if your android folder or initrd file is named different.

Other methods for replacing the wireless driver: (bcm4329.ko)

http://xdaforums.com/show...13#post7622713

I could make this easier with a single zip file BUT this is the official way and it is future proof. (Please don't post files to file sharing websites it only causes confusion and quickly gets obsolete) If everybody are using the same kernel from central reprository http://oe.netripper.com/files/htcleo_autobuild/ it will be easier.

Please DON'T ASK if something doesn't work. Try again from the beginning or Use SEARCH THIS THREAD just above page numbers (not the big search box on top of page) I am SURE your problem is already answered.

This kernel uses all memory but if you get around 422756KB reported it is normal. (1MB is 1024KB, not 1000KB and it makes a usable 412MB, not 422MB) This behaviour is the same in winmo and also htc desire or nexus one. ALL HD2s including european ones labeled 448MB HAVE REAL ACTUAL 576MB physical memory. Htc just crippled the stock winmo and pre 2.xx radio to make us version look better. You will get full memory in Android with this kernel and you can get full memory in winmo if you flash a 2.10.50.xx or 2.12.50.xx radio + custom rom such as miris 6.5 v17.0

You may wait for

1600+ quadrant shubcraft is upcoming:

http://xdaforums.com/showthread.php?t=740963

http://www.twitter.com/shu8i