[Q] cifs.ko never loaded on reboot, any fix? - Xoom Q&A, Help & Troubleshooting

I'm running tiamat kernel 1.4.2 but it seem I have to load the cifs.ko manually thru terminal each time.
Is there anyway to fix this?

yes. You can insmod in ramdisk. Also, you can use Tasker to load on boot. Also, my next release will Init.d support so you can run scripts on boot.

bigrushdog said:
yes. You can insmod in ramdisk. Also, you can use Tasker to load on boot. Also, my next release will Init.d support so you can run scripts on boot.
Click to expand...
Click to collapse
I see thanks!

Related

[HOWTO] Permanently disable perflock on HTC stock kernel

SetCPU 2.0.2 now has perflock disabler support for HTC-kernel 2.6.32.15 which is needed to underclock the CPU because HTC don't want us to mess with the CPU clockspeed on stock kernel. This feature is fine and I use it with JuiceDefender to lock my device to 245 MHz on standby to get slightly more juice. The only drawback is that SetCPU doesn't allow to disable perflock automatically on boot. I found it annoying to disable perflock everytime I reboot, therefore I checked out how SetCPU disables perflock. SetCPU comes with a kernel module that disables the perflock when loaded (it seems to hook into the perflock_notifier_call of the perflock module and resets the settings). I managed to load this module on startup of the device so I can use it with JuiceDefender even without SetCPU installed or enabling it after every reboot. It works great...
SetCPU is a brilliant app like its author coolbho3000 (thank you!).
For this reason I don't post the kernel modules or an update.zip, but share this knowledge in a very loose howto.
So basically this is what to do:
1. Extract the kernel module perflock_disable3215.ko from SetCPU.
Use apktool or just unzip to extract it from the apk.
2. Hexedit the module to change the vermagic string.
The vermagic string have to match the kernel you use. Otherwise, it won't load.
Check the other modules for the correct vermagic.
3. In recovery mode push the module to /system/lib/modules
Maybe you should change the permissions to match the other modules.
4. Load the kernel module with insmod.
For the module to work you have to provide the perflock_notifier_call_addr parameter.
You can get it from /proc/kallsyms. It's a mermory address something like "c443223". Load the kernel module like this:
insmod /system/lib/modules/perflock_disable3215.ko perflock_notifier_call_addr=0xc443223
5. Check if kernel module is loaded.
If insmod doesn't report any errors, check with lsmod if the module is loaded.
If insmod reports errors, you most likely messed up the module while changing the vermagic.
6. Check if perflock is disabled in SetCPU.
If the module is working you should be able to underclock the CPU in SetCPU.
7. Hack a init script to load the module on boot.
The script should rgep the perflock_notifier_call_addr and load module with the correct parameter.
That's it!
If it works for you, buy SetCPU on market!
have fun...
Fantastic,
but a little bit more complicated.
I think you definitely should attach update.zip. But still useful information.
Edit:
Sorry, LeeDroid's mod already has this module. Hypothetically you don't have to change anything regarding that module.
Here is update zip for STOCK ROOTED FROYO ROM. This update will flash modified boot.img (it is necessary, because stock rom at default doesn't execute scripts from /init.d folder during boot..)
Hi,
Anyone who did the update zip for Eclair could upload, please? Would really apreciate.
robto said:
Hi,
Anyone who did the update zip for Eclair could upload, please? Would really apreciate.
Click to expand...
Click to collapse
Has anyone used the update.zip that can confirm it works
There are custom kernel for the Desire Eclair ROMs that aren't perflocked. On what ROMs / devices are you guys?
Ignore....
Hey all,
That procedure seems way too complicated for me
So far, I was using pinky's rom which comes with permanent perflock disabled. I just switched to LeeDroid's rom which doesn't seem to have this feature.
Would there be an easy way to have this done? (like flashing a zip?)
Cheers
http://dl.dropbox.com/u/31174/android/perflock-disabler-2.6.32.15-gf9c0527-signed.zip
ranwej said:
Here is update zip for STOCK ROOTED FROYO ROM. This update will flash modified boot.img (it is necessary, because stock rom at default doesn't execute scripts from /init.d folder during boot..)
Click to expand...
Click to collapse
What's exactly in that boot.img? Could you please post some kind of release notes? I don't like (nor should anyone flash) unknown binaries. Thanks
FloHimself said:
http://dl.dropbox.com/u/31174/android/perflock-disabler-2.6.32.15-gf9c0527-signed.zip
Click to expand...
Click to collapse
Will this work on a stock Froyo (ie HTC) rooted ROM?
EDIT: Did a nandroid and flashed it. Doesn't seem to work... Maybe the stock ROM isn't running the init script as mentioned previously?
FloHimself said:
There are custom kernel for the Desire Eclair ROMs that aren't perflocked. On what ROMs / devices are you guys?
Click to expand...
Click to collapse
HTC Legend with rooted Eclair 2.05.405.2, kernel version 2.6.29-5f084974.
Psych0Chimp said:
Will this work on a stock Froyo (ie HTC) rooted ROM?
EDIT: Did a nandroid and flashed it. Doesn't seem to work... Maybe the stock ROM isn't running the init script as mentioned previously?
Click to expand...
Click to collapse
yes I am just looking for the same to use with the stock HTC kernel ...its on my stock rooted 2.2 Froyo
Psych0Chimp said:
Will this work on a stock Froyo (ie HTC) rooted ROM?
EDIT: Did a nandroid and flashed it. Doesn't seem to work... Maybe the stock ROM isn't running the init script as mentioned previously?
Click to expand...
Click to collapse
playya said:
yes I am just looking for the same to use with the stock HTC kernel ...its on my stock rooted 2.2 Froyo
Click to expand...
Click to collapse
Have you tried the update zip from post 4?
robto said:
HTC Legend with rooted Eclair 2.05.405.2, kernel version 2.6.29-5f084974.
Click to expand...
Click to collapse
This is the .29 kernel and needs the other module from SetCPU...
perflock_disable is now under GPL and source is available upon request...
All kernel modules are automatically under the GPL if they are distributed. It's a legal requirement.
New perflock_disable update.zip for 2.6.32.15-gf9c0527
New signed update.zip to disable perflock for the stock 2.6.32.15-gf9c0527 kernel image:
Mirror: trisk.acm.jhu.edu/perflock_disable-2.6.32.15-gf9c0527-20100831.zip
I updated the init script to handle errors:
Code:
#!/system/bin/sh
#
# Load perflock_disable for htc-kernel
addr=`awk '$3 == "perflock_notifier_call" { print "0x"$1; }' /proc/kallsyms`
if [ -n "$addr" ]; then
insmod /system/lib/modules/perflock_disable3215.ko "perflock_notifier_call_addr=$addr"
if [ $? -eq 0 ]; then
echo "+++ perflock disabled"
exit 0
fi
fi
echo "+++ perflock could not be disabled"
I'll try to obtain the source for perlock_disable, since the author has offered (and is required to) to provide it on request.
teppic74 said:
All kernel modules are automatically under the GPL if they are distributed. It's a legal requirement.
Click to expand...
Click to collapse
Really? Since when? Why then ATI and nVIDIA offer their parts of modules under proprietary licence?

[Info/brainstorming] Compiling modules for the 2.6.32 beta kernel OBSOLETE

This thread is now obsolete.
Kernel sources for build 5.26.0 have been released:
https://opensource.motorola.com/sf/go/projects.milestone/frs.milestone_source_froyo
I've pushed some new pre-compiled modules to github, though beware, I haven't had time to test all of them on device yet:
https://github.com/nadlabak/android...mmit/b300803348705d3fc5ce76d8c88d57186748a370
As the kernel sources are not yet available from the Motorola's open source project, here is an outline how I compiled the overclock and cpufreq governor modules. (Btw., the overclock module needed a substantial adaptation, see the source here: http://android.doshaska.net/2.6.32oc )
I'm using the sources from this AOSP repo:
Code:
git clone git://android.git.kernel.org/kernel/omap.git
git checkout --track -b android-omap-2.6.32 origin/android-omap-2.6.32
Use the sholes config:
Code:
make sholes_defconfig
flags that need to be disabled:
CONFIG_LOCALVERSION_AUTO
CONFIG_MODVERSIONS
CONFIG_DEBUG_MUTEXES
CONFIG_SCHEDSTATS
CONFIG_SCHED_DEBUG
[updated on 17.01.2011, thanks go to Skrilax_CZ]
At least the ext2 will work without panics when compiled using this config.
For tun, cifs and nfs there is still some additional config mismatch that prevents the modules to work without null pointer dereference oops.
Also, even when no custom kernel module is used, you can get the kernel panic very easily, try to enable wifi and do:
Code:
cat /proc/kallsyms
If you're interested in a more detailed android kernel compilation guide, you can e.g. roughly follow this Droid kernel guide: http://www.droidforums.net/forum/rescue-squad-guides/31452-how-compile-your-own-kernel.html
Thanks for starting this thread kabaldan! It is a great starting point in tackling the issue of adding tun support to the new kernel (tun.ko module). I am not as good as many others in this, but trying won't hurt. Meanwhile if someone else is working on tun support - share experience here!
If kernel seems to be ok, sometimes mounting with new version of busybox won't work.
I used to get kernel panic when use newer version of busybox (not Android kernel but my own embedded linux)
Hey Nadlabak can you add DLNA function of CM6?
same problem using droidx kernel sources. insmod ok, mount reboots the phone
yantz
I tried droid2 kernel module - doesn't work either
I noticed OpenVPN included in CM6 also relies on this kernel module. Hence doesn't work. I guess we won't (ever) see kernel sources for that leaked kernel we are now using. I assume Motorola will release the sources sooner or later, but not before official Froyo layout. The waiting is killing me! kabaldan, can't you try to do some magic as you did with the overclock module? The beer is from me!!!
Can you test this attached tun.ko?
Insmod is OK, but I currently don't have time for any further tests...
EDIT: don't bother, kernel panic as usual
Module loads fine, but when attempt to use it, phone reboots, just like with the module compiled from DroidX sources..
leobg said:
Module loads fine, but when attempt to use it, phone reboots, just like with the module compiled from DroidX sources..
Click to expand...
Click to collapse
So, I got it loaded - insmod works just great, just like it did on the 2.1 kernel.
I'm trying to use the CM6 built-in OVPN settings, but I can't find any documentation on the setup. How did you get it set up?
I have
/sdcard/openvpn/
cert.crt
ca.crt
config.conf
config.ovpn
pem.key
I realize that config.conf and config.ovpn are the same file- but I use this VPN on windows and on Mac, and I wasn't sure the requirements on Linux.
If I can't find some documentation I'll try downloading the OpenVPN settings app from the market and playing with that.
Also, I don't know if it's true or not, but I heard the Milestone2 source compiled driver could work.
Are you trying the module kabaldan provided? It doesn't seem to work, at least for me. Loads fine, but phone crashes when setting up tun interface. I couldn't get OpenVPN in CM6 0.3 to work so far. I am testing the tun.ko with the cisco vpn package (which worked great on the old kernel with CM6 0.2) vpnc. When I initiate the connection, phone reboots if the attached here tun.ko is used. I also tried with tun.ko compiled from DroidX sources - same thing - phone reboots. I am not sure where did kabaldan take/compile this module from.
Sent from my Milestone using Tapatalk
I was using the same one, I was thinking maybe he could use the info from more than one phone. I'll try get-a-robot or OpenVPN Installer, but I won't hold my breathe. I was just hoping to use the built-in functionality of the ROM.
*edit* Just saw he removed it because it doesn't work yet, oh well.
the kernel doesnt seem to like any other fs not built into it. i've tried several, ext2, ext3, ext4, cifs, jffs, reiserfs etc. all modules would load without a problem but system will reboot during mount. heck i even tried creating logical volume on the partition. volume created fine, but when time to mount, it reboot
i ended up using a 2nd vfat partition for apps2vfat, on top of native froyo move to sd. moved my debian arm there and manually, yes manually, replace many symlinks in libs to copied files
hopefully next froyo release for other regions would provide a different kernel
yantz
hey kabaldan wondering if you've had another chance to look at an updated tun.ko
Finally some breakthrough. The great Skrilax_CZ has made some hard debugging and one very good guess:
CONFIG_DEBUG_MUTEXES must be disabled in the kernel config.
At least the ext2 module compiled this way is working without panics now.
Congrats to Skrilax!
EDIT: Tun nor nfs not tested yet..., cifs unfortunately still not working.
kabaldan said:
Finally some breakthrough. The great Skrilax_CZ has made some hard debugging and one very good guess:
CONFIG_DEBUG_MUTEXES must be disabled in the kernel config.
At least the ext2 module compiled this way is working without panics now.
Congrats to Skrilax!
EDIT: Tun nor nfs not tested yet..., cifs unfortunately still not working.
Click to expand...
Click to collapse
This means that now the app2ext work?
Where are the modules for we test?!
Thanks for the news!
Modules for testing:
ext2 - http://code.google.com/p/cyanogenmod4milestone/issues/detail?id=197#c19
tun - http://code.google.com/p/cyanogenmod4milestone/issues/detail?id=222#c4
Hi sort of a newbie here... So does this mean that data2ext will work?
Sent from my Milestone using XDA App
Hi Nadlabak...maybe you already know.
For the cifs module, how about slow-work is made available as a module.
as is done at this link
http://forum.xda-developers.com/showpost.php?p=9271775&postcount=4
after further testing:
ext2 mounting now works, reading from ext2 partition too, but writing still causes panic
tun causes panic too
Let's hope for a soon kernel source release, as it looks like we won't get much further without it.
edowar: thanks for the link
@kabaldan
Could it be possible to create a swap module for milestone ?
It seems that running kernels does not have this feature yet and i'm not sure motorola to implement it for next 2.2 release so .... well just wondering !

[KERNEL] OC/UV Kernel (test)

Hi,
avetny asked me to take a look at the g2x kernel to add OC/UV, so i did build a kernel with oc/uv added. You can read more about the kernel on the o2x thread. With this kernel you should be able to use Pimp My Cpu to manage cpuspeed/voltages on the fly.
I do not own a g2x device so i could not test this kernel, try at your own risk.
g2x-kernel-2.6.32.9-fakeShmoo-cpasjuste.5.zip : db7a11365e8520424f1ed579b666623f
EDIT :
Since i do not have the device, if someone wants to continue the work (fix wifi/bt) you'll find the sources and changes here : https://github.com/Cpasjuste/android_kernel_lg_p999/commits/fakeShmoo
Note that you NEED to add "init.d" support to the kernel initramfs :
Add at the end of the init.rc script :
Code:
# Execute files in /etc/init.d before booting
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
And maybe the "99complete" script to "/system/etc/init.d" :
Code:
#!/system/bin/sh
sync;
setprop mcr.filesystem.ready 1;
Thanks a lot for this. Look forward to giving it a go
Kernel boots fine, however,it breaks wifi. Will continue testing and see how everything else it
jlevy73 said:
Kernel boots fine, however,it breaks wifi. Will continue testing and see how everything else it
Click to expand...
Click to collapse
Arg that's strange, i don't see why wifi would be broken :/
Cpasjuste said:
Arg that's strange, i don't see why wifi would be broken :/
Click to expand...
Click to collapse
It is...when I flashed I say the wifi modules loading.
But wow, this kernel is fast. Smartbench just shot through the roof.
jlevy73 said:
It is...when I flashed I say the wifi modules loading.
But wow, this kernel is fast. Smartbench just shot through the roof.
Click to expand...
Click to collapse
Note that it's not OC by default. Could you try Pimp My Cpu on it to see if it work ? Thanks
For the wifi module, i'll wait for "avetny" if he knows anything.
Cpasjuste said:
Note that it's not OC by default. Could you try Pimp My Cpu on it to see if it work ? Thanks
For the wifi module, i'll wait for "avetny" if he knows anything.
Click to expand...
Click to collapse
That's what I mean by wow it's fast. I installed pimp my cpu and have it running @ 1200/300 while I do some benchmarking. Pimp my cpu is working very well.
jlevy73 said:
That's what I mean by wow it's fast. I installed pimp my cpu and have it running @ 1200/300 while I do some benchmarking. Pimp my cpu is working very well.
Click to expand...
Click to collapse
Ha that's very cool. Many thanks for the "bravery"
Just need to fix wifi now :x
I won't be able to do so myself without a device to test so some help will be required. The recovery install script just copy the "drivers/net/wireless/bcm4329/wireless.ko" module to "/system/lib/modules/wireless.ko" on the device. Maybe on the g2x the modules are located somewhere else.
Cpasjuste said:
Ha that's very cool. Many thanks for the "bravery"
Just need to fix wifi now :x
I won't be able to do so myself without a device to test so some help will be required. The recovery install script just copy the "drivers/net/wireless/bcm4329/wireless.ko" module to "/system/lib/modules/wireless.ko" on the device. Maybe on the g2x the modules are located somewhere else.
Click to expand...
Click to collapse
Let me check to see where the drivers are located.
jlevy73 said:
Let me check to see where the drivers are located.
Click to expand...
Click to collapse
Update: Yep it's located in /system/lib/modules
Upon quick look it appears as though the permissions for the .ko file might be incorrect. Let me try something to see if it helps.
jlevy73 said:
Update: Yep it's located in /system/lib/modules
Upon quick look it appears as though the permissions for the .ko file might be incorrect. Let me try something to see if it helps.
Click to expand...
Click to collapse
Your right, this could maybe be the problem.
jlevy73 said:
Kernel boots fine, however,it breaks wifi. Will continue testing and see how everything else it
Click to expand...
Click to collapse
Getting the same wifi problem.
But besides that everything seems to be working fine.
Tried playing around with the permissions but that didn't seem to help. Also BT appears to be break with this kernel.
Also confirmed wifi is broken with this kernel.
flak0 said:
Also confirmed wifi is broken with this kernel.
Click to expand...
Click to collapse
Can you try turning on BT and seeing if that's broken for you as well? Thanks
Is dmesg spitting out anything of interest?
Confirmed. I wonder if we push the original wireless.ko if.it will work?
Since i do not have the device, if someone wants to continue the work you'll find the sources and changes here : https://github.com/Cpasjuste/android_kernel_lg_p999/commits/fakeShmoo
Note that you NEED to add "init.d" support to the kernel initramfs :
Add at the end of the init.rc script :
Code:
# Execute files in /etc/init.d before booting
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
And maybe the "99complete" script to "/system/etc/init.d" :
Code:
#!/system/bin/sh
sync;
setprop mcr.filesystem.ready 1;
Checking dmsg now
I can also confirm that the kernel works well with OC/UV but WiFi does not work. Bluetooth isn't working for me either.

[Q] How to load tun.ko at System startup

I've got the Cisco Anyconnect Alpha version and it requires the tun.ko to be loaded. How would I go about loading the tun.ko module at startup? I'm running the Tiamat 1.4.1 kernel which has the tun.ko available in /system/lib/modules.
I believe either mount manager or cifsmanager allows you to load optional modules.
I thought tun.ko was loaded at startup!
It is no currently loaded at startup. I will check the apps mentioned.
Sent from my SPH-D700 using XDA App
Nevermind.... doesn't work.
I am also trying to run the AnyConnect beta.. I have the Viewsonic gTablet which also has the Tegra2 CPU. Is the tun.ko specific to your kernel?
I didn't see an answer to how to load at startup. I would also like to load at startup, so how is that done?
Note: I know I have a G2, I searched around and found this to be the best thread.
buldamoosh said:
I've got the Cisco Anyconnect Alpha version and it requires the tun.ko to be loaded. How would I go about loading the tun.ko module at startup? I'm running the Tiamat 1.4.1 kernel which has the tun.ko available in /system/lib/modules.
Click to expand...
Click to collapse

[Q] CifsManager on Desire S

Hi,
Help me compile cifs.ko and nls_utf8.ko for CifsManager.
Desire S original ROM: 1.47.401.4, kernel 2.6.35.10-g2ee27f5
Thx
p.s. S-OFF, root on, error "no such device".
please help!
For compiling kernel modules you need a working toolchain for your cpu architecture.
Try to find kernel for your device, where this module already present.
problem is solved.
1. download "2.6.35.10-gdd56551" files nls_utf8.ko, cifs.ko from
http://forum.xda-developers.com/showthread.php?t=1039004
2. edited HEX-string gdd56551 to g2ee27f5.
3. enjoy!
Sorry for my ignorance, but what exactly does cif do?
i saw this feature present in leedroid
dimkew said:
problem is solved.
1. download "2.6.35.10-gdd56551" files nls_utf8.ko, cifs.ko from
http://forum.xda-developers.com/showthread.php?t=1039004
2. edited HEX-string gdd56551 to g2ee27f5.
3. enjoy!
Click to expand...
Click to collapse
Hey dimkew - I just tried this per your suggestion, however I wasn't as successful as you. After files hex'ed, then put in /system/lib/modules, then set CifsManager to insmod them, it still didn't work.
olyloh6696 said:
Sorry for my ignorance, but what exactly does cif do?
i saw this feature present in leedroid
Click to expand...
Click to collapse
Common Internet File System. Using the app CifsManager you can set file system mounts to mount a folder on your Android device to mount an SMB/CIFS Windows type network file share. You can also just use Linux commands to the mounting; but CifsManager is quick and easy to use only requiring a couple screen taps to get connected once your mounts/network shares are setup.
If you are on Android 4 and Sense ROM use my kernel it has cifs support
Sent from my HTC Desire S

Categories

Resources