[Desire 626 General] BigCountry907:
Loading Custom Kernel For Sprint

Ok Here We Go.

1 ) Download the zip file " kernel-a32ewhl.zip" :o

2 ) Unzip the file

Create a folder somewhere on the computer.

Move kernel-a32ewhl.zip into that folder.

Unzip the kernel-a32ewhl.zip in that folder

You should see all of the following

A ) File "a32ewhl-boot.img" <<<<------ ( This is the kernel / boot image )

B ) Folder "modules" <<<<------ ( This is all the modules not including the required symlinks )

a. There are 2 modules "itson_module1.ko" & "itson_module2.ko" These have not been re compiled. I don't have source code for these.

The version has been set correctly for the new kernel so they should run hopefully.

The modules have something to do with Sprint Activation so check and make sure activation is working right.

b. There are 4 Moc_ modules. Theese are for crypto and affect running paid for apps. They should work since the kernel version is

set right. If you have any paid for apps test them.

c. The rest of the modules have been built with the new kernel and will be no trouble. Be sure to test wi-fi well. We might need an

adjustment.

C ) Folder "wcnss" these are configuration files for the wi-fi. Since we rebuilt the wlan module I recommend using these configuration files.

Some of the configuration can be changed and settings changed. You can look into that if you want. But we are not going there today.

3 ) Copy everything to the external sd card.

PLEASE FOLLOW ALL THESE INSTRUCTIONS EXACTLY !!

Make a folder on the external sdcard called new-kernel. You can do this with the phone connected to the computer or with the sdcard in a card reader connected to the computer.

Copy the modules folder inside of the new-kernel folder

Copy the wcnss folder inside of the new-kernel folder

Copy the a32ewhl-boot.img to the place on your computer where you can use fastboot.

If you are running windows search for fastboot.exe using file explorer.

Copy a32ewhl-boot.img to the same folder as fastboot.exe

Open a command window and cd to the directory where fastboot.exe is in.

Similar to

cd c:\android\sdk\platform-tools\

If you type dir

You should see fastboot.exe and a32ewhl-boot.img in the list of files.

4 ) Install the new modules into the phone

After you have copied all the files to the sd card and put the sd card in the phone and rebooted the phone.

Connect the phone to the computer via USB.

PAY ATTENTION HERE THEESE STEPS ARE CRUCIAL>

Start a shell as root.

adb shell
su

Re-Mount /system as read write. ( ERRORS ARE NOT ACCEPTABLE )

mount -o rw,remount,rw /system

Remove all exsisting Modules

rm -rf /system/lib/modules/
rm -rf /system/etc/firmware/wlan/prima/WCNSS_cfg.dat
rm -rf /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
rm -rf /system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin

Copy new modules

cp -rf /sdcard2/new-kernel/modules/ /system/lib/modules/

Copy new wcnss config

cp /sdcard2/new-kernel/wcnss/WCNSS_cfg.dat /system/etc/firmware/wlan/prima/WCNSS_cfg.dat
cp /sdcard2/new-kernel/wcnss/WCNSS_qcom_cfg.ini /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
cp /sdcard2/new-kernel/wcnss/WCNSS_qcom_wlan_nv.bin /system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin

Re-Create all symlinks

ln -s /system/lib/modules/pronto/pronto_wlan.ko /system/lib/modules/wlan.ko
ln -s /system/lib/modules/moc_crypto.ko.3.10 /system/lib/modules/moc_crypto.ko
ln -s /system/lib/modules/crypto_test_mod.ko.3.10 /system/lib/modules/crypto_test_mod.ko
ln -s /system/lib/modules/moc_crypto_api_tmpl.ko.3.10 /system/lib/modules/moc_crypto_api_tmpl.ko
ln -s /system/lib/modules/moc_platform_mod.ko.3.10 /system/lib/modules/moc_platform_mod.ko

Set the file permissions.

chmod 0644 /system/lib/modules/pronto/pronto_wlan.ko
chmod 0644 /system/lib/modules/ansi_cprng.ko
chmod 0644 /system/lib/modules/core_ctl.ko
chmod 0644 /system/lib/modules/crypto_test_mod.ko
chmod 0644 /system/lib/modules/crypto_test_mod.ko.3.10
chmod 0644 /system/lib/modules/dma_test.ko
chmod 0644 /system/lib/modules/ecryptfs.ko
chmod 0644 /system/lib/modules/evbug.ko
chmod 0644 /system/lib/modules/gpio_axis.ko
chmod 0644 /system/lib/modules/gpio_event.ko
chmod 0644 /system/lib/modules/gpio_input.ko
chmod 0644 /system/lib/modules/gpio_matrix.ko
chmod 0644 /system/lib/modules/gpio_output.ko
chmod 0644 /system/lib/modules/ice40-hcd.ko
chmod 0644 /system/lib/modules/itson_module1.ko
chmod 0644 /system/lib/modules/itson_module2.ko
chmod 0644 /system/lib/modules/mcDrvModule.ko
chmod 0644 /system/lib/modules/mcKernelApi.ko
chmod 0644 /system/lib/modules/moc_crypto.ko
chmod 0644 /system/lib/modules/moc_crypto.ko.3.10
chmod 0644 /system/lib/modules/moc_crypto.ko.sig.3.10
chmod 0644 /system/lib/modules/moc_crypto_api_tmpl.ko
chmod 0644 /system/lib/modules/moc_crypto_api_tmpl.ko.3.10
chmod 0644 /system/lib/modules/moc_platform_mod.ko
chmod 0644 /system/lib/modules/moc_platform_mod.ko.3.10
chmod 0644 /system/lib/modules/msm-buspm-dev.ko
chmod 0644 /system/lib/modules/mtd_nandbiterrs.ko
chmod 0644 /system/lib/modules/mtd_nandecctest.ko
chmod 0644 /system/lib/modules/mtd_oobtest.ko
chmod 0644 /system/lib/modules/mtd_pagetest.ko
chmod 0644 /system/lib/modules/mtd_readtest.ko
chmod 0644 /system/lib/modules/mtd_speedtest.ko
chmod 0644 /system/lib/modules/mtd_stresstest.ko
chmod 0644 /system/lib/modules/mtd_subpagetest.ko
chmod 0644 /system/lib/modules/mtd_torturetest.ko
chmod 0644 /system/lib/modules/radio-iris-transport.ko
chmod 0644 /system/lib/modules/spidev.ko
chmod 0644 /system/lib/modules/texfat.ko
chmod 0644 /system/lib/modules/wlan.ko
chmod 0644 /system/etc/firmware/wlan/prima/WCNSS_cfg.dat
chmod 0644 /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
chmod 0644 /system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin

Now boot the phone to download mode if everything was successful. :good:

From the terminal command window on the computer flash the new boot image.

REMEMBER

Open a command window and cd to the directory where fastboot.exe is in.

Similar to

cd c:\android\sdk\platform-tools\

If you type dir

You should see fastboot.exe and a32ewhl-boot.img in the list of files.

fastboot flash boot a32ewhl-boot.img

If all went well then hit the reboot button.

You should now be running my custom kernel for sprint.

Let us know please.......You are the First.