[Q] Most modules not loading after installing custom kernel - XPERIA X10 Q&A, Help & Troubleshooting

Hello everybody,
i'm on wolfbreak's cm6.1.3[v006]. Until yesterday i had baseband .54 from stock firmware and stock kernel. Everything was fine and all modules have been starting which are listed in /system/etc/hw_config.sh.
Now I have installed baseband .52, baseband patch, custom kernel, wifi&bt fix and wifi patch. Since then, when i type lsmod in terminal emulator it only writes ar6000 236152 0 - Live 0xbf000000.
The other modules that are listed in hw_config.sh are twofish.ko, twofish_common.ko, dm_crypt.ko, dm_mod.ko and x10uv.ko. All these modules are in system/lib/modules but they just don't work. I don't know what the other modules are doing, but especially x10uv.ko was very helpfull because of battery drain. Starting any of these modules by typing insmod /system/lib/modules/[modulename.ko] in terminal does not work, too. For example, when i type insmod /system/lib/modules/x10uv.ko it writes:
insmod: init_module 'system/lib/modules/x10uv.ko' failed (Operation not permitted)
After nothing worked, i've done a clean install of cm6.1.3. With PC Companion i flashed stock firmware, wyped cache and so on, installed baseband .52, installed cm6.1.3 with hotfix, baseband patch, custom kernel, wifi&bt fix and wifi patch in the right order. i also installed x10uv v003 manually but still all these modules don't work. Also my battery drains much faster than before.
Does anybody know how to solve this problem? I hope i wrote my problem understandable for the most of you.

.ko modules are kernel related modules.
so if you wanna use it ,you must compile them from source code.

thank you for your answer!
But if it was so easy to compile these modules, i would have already been doing that. do you know how this works? if so, it would be nice, if you give me some hints.
My battery is going down about 5-10% every hour without using. I think i'm gonna go back to baseband .54 and stock cernel again, because i don't want to charge my phone every few hours.
Also i have noticed, that it doesn't go into deep sleep, since i've installed custom kernel. so i have installed bootloader_bypass_files_v3 and chargemon_FXRec_default_CUSTOM because i read it would help. but until now, this didn't work for me...

Related

[Q] "wifi error" after updating latest kernel over Ginger RC1

Got my tablet 2 weeks ago.
I went from stock ROM->Vegan 5.1.1 (2 weeks ago)->Vegan Ginger edition 7.0.0 (yesterday)
so far so good.
However, when i tried to update to the latest kernel (see below)
"ViewSonic Gtab/Malata Zpad (Gingerbread):
boot-cm_2632.39_gb-oc-uv-xtra-vfp_fp-042411.zip
Download: boot-cm_2632.39_gb-oc-uv-xtra-vfp_fp-042411.zip"
I get "wifi error" upon startup. Wifi is not recognized, nor can i add my wifi manually.
Tried going back and forth between base ROM/kernel from this forum "VEGAn-TAB GingerEdition STABLE RC1" and the latest kernel (with the usual clear data/cache/davlik cache post-install). Base kernel has wifi no probs, but any later kernel and i get wifi errors
Tried to cycle airport mode, but nothing happens - just goes into disabling wifi networks and stays grayed out
Also tried to clear cache "before" flashing kernel, as suggested by member TEK112 in the same thread. Any help will be appreciated. thanks!
xda-novice said:
Got my tablet 2 weeks ago.
I went from stock ROM->Vegan 5.1.1 (2 weeks ago)->Vegan Ginger edition 7.0.0 (yesterday)
so far so good.
However, when i tried to update to the latest kernel (see below)
"ViewSonic Gtab/Malata Zpad (Gingerbread):
boot-cm_2632.39_gb-oc-uv-xtra-vfp_fp-042411.zip
Download: boot-cm_2632.39_gb-oc-uv-xtra-vfp_fp-042411.zip"
I get "wifi error" upon startup. Wifi is not recognized, nor can i add my wifi manually.
Tried going back and forth between base ROM/kernel from this forum "VEGAn-TAB GingerEdition STABLE RC1" and the latest kernel (with the usual clear data/cache/davlik cache post-install). Base kernel has wifi no probs, but any later kernel and i get wifi errors
Tried to cycle airport mode, but nothing happens - just goes into disabling wifi networks and stays grayed out
Also tried to clear cache "before" flashing kernel, as suggested by member TEK112 in the same thread. Any help will be appreciated. thanks!
Click to expand...
Click to collapse
Usually wifi not working means you flashed the wrong kernel, but it sure looks like you got the right (gb) one. You sure you're on gingerbread?
schettj said:
Usually wifi not working means you flashed the wrong kernel, but it sure looks like you got the right (gb) one. You sure you're on gingerbread?
Click to expand...
Click to collapse
hmm...wonder what's wrong then ?
I'm positive about Ginger edition though - Followed instructions from this forum - "http://forum.xda-developers.com/showthread.php?t=1031250"
Downloaded and installed "VEGAn-GE-7.0.0-RC1-Harmony-signed.zip" from http://vegantab.gojimi.com/downloads/
Home screen confirms Vegan-Tab GingerEdition - do not have the tablet with me at the moment, but can post "About Tablet" info later.
Sounds more like you forgot to take the lib-2632.39_gb.tar.gz from pershoot's webpage or failed to take the correct version of the lib. That lib tarball contains the bcm4329.ko (wifi driver kernel module). You have to untar the lib and adb push the bcm4329.ko driver to /system/lib/modules/, reboot after pushing the module over.
Try that and see if you have any better luck bringing up wifi with a newer pershoot kernel.
terrypchan said:
Sounds more like you forgot to take the lib-2632.39_gb.tar.gz from pershoot's webpage or failed to take the correct version of the lib. That lib tarball contains the bcm4329.ko (wifi driver kernel module). You have to untar the lib and adb push the bcm4329.ko driver to /system/lib/modules/, reboot after pushing the module over.
Try that and see if you have any better luck bringing up wifi with a newer pershoot kernel.
Click to expand...
Click to collapse
Thanks terrypchan...never played around with adb before, and couldn't get it to work last night, but will definitely give it a shot and post my results.
However, in previous version, when I had Vegan 5.1.1, and upgraded the kernel, i didn't have to go through the adb push of bcm4329.ko install. Even with the upgrade kernel for gingerbread7.0 (the noted issue here), there is base bcm4329.ko driver is already sitting under /system/lib/hw/wlan folder, so the adb push of this module under lib/modules will override the base ?
terrypchan said:
Sounds more like you forgot to take the lib-2632.39_gb.tar.gz from pershoot's webpage or failed to take the correct version of the lib. That lib tarball contains the bcm4329.ko (wifi driver kernel module). You have to untar the lib and adb push the bcm4329.ko driver to /system/lib/modules/, reboot after pushing the module over.
Try that and see if you have any better luck bringing up wifi with a newer pershoot kernel.
Click to expand...
Click to collapse
I've never needed to do that.
I'm wondering if he's stuck in airplane mode now that I've re-read his first post.
This is from the old version, but suggests that getting a widget that can toggle flight mode may fix it:
http://forum.xda-developers.com/showthread.php?t=951822&page=59
FYI - no need to use flight mode on a tablet, just turn off all the radios.
terrypchan said:
Sounds more like you forgot to take the lib-2632.39_gb.tar.gz from pershoot's webpage or failed to take the correct version of the lib. That lib tarball contains the bcm4329.ko (wifi driver kernel module). You have to untar the lib and adb push the bcm4329.ko driver to /system/lib/modules/, reboot after pushing the module over.
Try that and see if you have any better luck bringing up wifi with a newer pershoot kernel.
Click to expand...
Click to collapse
Can you tell me how to do that??
I am having exct same issue on Samsung Wave..

[Q] CM7 ZMOD 003 Wifi-Error [SOLVED]

I've searched the forum for a sollution to no avail and since I can't post this in the actual ZMOD 003 thead (low post count) I was wondering if anyone else is having the same problem?
When I start up the Wifi on my X10 I am just met with "Error".
I've reflashed and fully re-installed the .71 baseband, ROM and 003 update and this had happened each time (after first phone reboot I think).
I'm otherwise really pleased with the ROM (full camera, 6+ days battery, etc), is there a sollution?
SOLVED: Downgrade busybox to 1.17.1 (re-install by the andriod installer back to the older version) and reboot.
Assuming you have a custom kernel ... After flashing the cm7 zmod rom, try flashing the wifi modules to match your kernel, then reboot phone and wifi should work.
Had this problem on a few of the roms I've tried, got into the habit of installing the wifi modules immediately after installing any rom I try, before rebooting into the new rom for the first time.
Sparhawk
u can also try it with static ip.
Z3US911 said:
u can also try it with static ip.
Click to expand...
Click to collapse
It's not that it won't connect but the Wifi won't turn on no matter what I try. I've tried this anyway but with no sucess.
Sparhawk76 said:
Assuming you have a custom kernel ... After flashing the cm7 zmod rom, try flashing the wifi modules to match your kernel, then reboot phone and wifi should work.
Had this problem on a few of the roms I've tried, got into the habit of installing the wifi modules immediately after installing any rom I try, before rebooting into the new rom for the first time.
Sparhawk
Click to expand...
Click to collapse
Ok thats sounds like some good advice. Noob question but where could I get the wifi modules for zdzihu's custom kernel? Or do you mean flash the default wifi modules? Also do I just install them through xrecovery, I'm a little lost?
Seems like I'm not the only one having this problem:
http://forum.xda-developers.com/showthread.php?t=1135475&highlight=zKernel+wifi+module&page=81
help anyone, im lost without my wifi.
edit:
Busybox seems to be the issue, I downgraded from 1.19.2 (i think) back to 1.17.1 and the wifi went straight back to working on reboot.
Problem seems to be solved, for now. I now have the perfect ROM.

Big problem with my x10

Need to know is anybody else experiencing this kind of problem.
I unlocked bootloader, installed proper kernel and wifi modules.
First had Lion's rom and got network error every time while searching for networks, so I thought that was rom problem. After I installed Alexander's miui, I had the same problem. It's not modules and kernel problem, cause I tried OC and non-OC versions and it's the same.
And booting time is forever, I mean like 2-3 minutes.
Any help is appreciated..
*bump
Anyone?
Which baseband?
Baseband .71
Have you tried flashing the kernel then NOT flashing the Wifi modules? I used it for a few days without flashing the Wifi mods and used Wifi regularly... then I flashed the Wifi mods and had the same errors you're getting.
Deviantelf said:
Have you tried flashing the kernel then NOT flashing the Wifi modules? I used it for a few days without flashing the Wifi mods and used Wifi regularly... then I flashed the Wifi mods and had the same errors you're getting.
Click to expand...
Click to collapse
WiFi is fine, network error is problem.
But I'll try, maybe it will work.

Wifi files in kernel ?

Hey everyone was hoping someone can tell me what files inside the kernel make wifi function specifically in an ICS Kernel ?
Thanks.
crisvillani said:
Hey everyone was hoping someone can tell me what files inside the kernel make wifi function specifically in an ICS Kernel ?
Thanks.
Click to expand...
Click to collapse
For EVO 3D devices, the WiFi module is located at /system/lib/modules/bcm4329.ko and should always be the same location across all Android versions on the EVO 3D.
The kernel and modules are compiled separately from the Android OS. As such, the kernel and modules must always matched and should therefore always be installed together.
If that wasnt enough detail, please ask more specificially what aspect you're interested in. Hope that helps!
hey man thanks for the help, so basically what im trying to do is I flashed a Sense ICS kernel overtop AOSP ICS rom, it booted up fine and actually fixed a couple issues but the problem is wifi doesnt start, in logcat it says "failed to start driver" ,
I tried swapping the bcm4329.ko from the AOSP Kernel into the rom but it didn't work There must be something more, hope thats a bit clearer
Thanks
This is what it says in logcat :
Code:
E/WifiStateMachine< 252>: Failed to load driver!
E/WifiStateMachine< 252>: DriverFailedState
Dmesg
When trying to turn wifi on dmesg spits this out :
Code:
<3>[ 455.505561] bcm4329: version magic '2.6.35.14-cayniarb_miui.us_stock_ics-010612+ SMP preempt mod_unload ARMv7 ' should be 2.6.35.14-MDJ-SENSE-ICS-V1-g910203-dirty SMP mod_unload ARMv7 '
Im no expert, but if it was as simple as copy and pasting a wifi module from another kernel into a new ICS kernel I think everyone would have perfectly working wifi in the ICS kernels by now
joeykrim said:
For EVO 3D devices, the WiFi module is located at /system/lib/modules/bcm4329.ko and should always be the same location across all Android versions on the EVO 3D.
The kernel and modules are compiled separately from the Android OS. As such, the kernel and modules must always matched and should therefore always be installed together.
If that wasnt enough detail, please ask more specificially what aspect you're interested in. Hope that helps!
Click to expand...
Click to collapse
Was Wondering the same, Thanxx...
you issue is you are trying to load an miui kernel to an ASOP ROM. the drivers are not the same, and your system is looking for a particular driver and finding one that is not compatible, hence your dmsg error details...
its a little difficult to explain... but basically you are not using the right kernel
crisvillani said:
hey man thanks for the help, so basically what im trying to do is I flashed a Sense ICS kernel overtop AOSP ICS rom, it booted up fine and actually fixed a couple issues but the problem is wifi doesnt start, in logcat it says "failed to start driver" ,
I tried swapping the bcm4329.ko from the AOSP Kernel into the rom but it didn't work There must be something more, hope thats a bit clearer
Thanks
This is what it says in logcat :
Code:
E/WifiStateMachine< 252>: Failed to load driver!
E/WifiStateMachine< 252>: DriverFailedState
Click to expand...
Click to collapse
To start off, I'll give you an A+ for researching the issue on your device .. but a poor grade for researching the issue on this forum.
I've answered this question quite a few times on this EVO 3D Q&A board. I think I've got the details down pretty well. I'm going to quote from a previous post. Feel free to ask if you have any questions or something isn't clear!
http://forum.xda-developers.com/showpost.php?p=18793336&postcount=2
The WiFi error is caused by a mismatch between the WiFi module and the currently loaded kernel. The WiFi module is stored in /system/lib/modules/bcm4329.ko . The kernel is stored in the boot partition.
When booted into the custom recovery through the traditional methods, reboot recovery, bootloader -> recovery, etc., HTC unlock method does not unlock *kernel* write access but does unlock *system* write access.
The result is the kernel module for WiFi is loaded but the kernel itself is not loaded. This creates a mismatch between a WiFi module loaded from the ROM and the matching kernel not being loaded as HTC does not allow it to be loaded from the traditional recovery boot method.
The main issue around kernel write access is due to the HTC unlock method only allowing kernel write access in two modes:
1) Booted in normal Android mode. My application, Flash Image GUI, will flash any kernel .zip file with the HTC unlock method because it runs in normal android mode. HTC unlocks write access to the boot partition, where the kernel is stored, in normal Android mode. Flash Image GUI also properly loads the respective WiFi modules essentially eliminating this WiFi mismatch error.
2) Fastboot booted into the custom recovery using the following command: fastboot boot c:\android\cwm-recovery.img. HTC unlock method allows kernel write access while using fastboot boot of a custom recovery.
Hope that helps!
Edit: If you're curious and want to do some reading on previous WiFi error issues with the EVO 3D on this Q&A board where I replied, here are some similar posts:
http://forum.xda-developers.com/showthread.php?p=17681402
http://forum.xda-developers.com/showthread.php?p=16990247
http://forum.xda-developers.com/showthread.php?p=18624865
http://forum.xda-developers.com/showthread.php?t=1265467
http://forum.xda-developers.com/showthread.php?p=18807723
Click to expand...
Click to collapse
crisvillani said:
When trying to turn wifi on dmesg spits this out :
Code:
<3>[ 455.505561] bcm4329: version magic '2.6.35.14-cayniarb_miui.us_stock_ics-010612+ SMP preempt mod_unload ARMv7 ' should be 2.6.35.14-MDJ-SENSE-ICS-V1-g910203-dirty SMP mod_unload ARMv7 '
Click to expand...
Click to collapse
To further the point, this error in dmesg shows the exact mismatch between the WiFi module which can't load because it doesn't match the compile version of the kernel. Appears the kernel is using 2.6.35-14-MDJ-Sense-ICS-V1 kernel but the wifi module is from cayniarb_miui.us_stock_ics .. or the message is flip flopped, but the concept is the same.
WiFi module version does not match kernel version. They must match as they are compiled together at the same time.
Hope that helps!
^what joe said. lol
Sent from EVO 3D using XDA premium

a imperfect method of use 3xx baseband in 2.3.3 without button flashing

flash this boot into your mini5
then you can use baseband 3xx in android 2.3.3 without button flashing
but it will bring another problem :wifi couldn't turn on
I have tried it in DSC 0.6、1.1 ,it works well except wifi
it couldn't work in miui or cm7
New baseband without wifi....What is the benefit?...
Sent from my Dell Streak using Tapatalk 2
manics, would you pull and share config from this kernel?
adb pull /proc/config.gz
this boot was not builded by me
it is from a modified version of streakmi
i found it in BBS.ZHANGKU.COM
i am trying to ask the poster
but i guess maybe it is using kernel of streakmod recovery
_n0p_ said:
manics, would you pull and share config from this kernel?
adb pull /proc/config.gz
Click to expand...
Click to collapse
N0p. Want me to flash and pull?
I dont use wifi.
I try to do it tomorrow (will be near pc, so can unpack everything without flashing).
--
WiFi simply needs corresponding driver and I might blindly guess that dhd.ko from 407 should do.
the poster says ,this boot is from the earliest 2.3.3 roms of dj_steve, but he could not remember from which one.
Checked kernel config vs 407 kernel - nothing changed except resume speedup. I wonder what code in kernel could control blinking.

Categories

Resources