/*Update Nov 09 2011: Added cryptoloop.ko */Update
/*Update Nov 02 2011: Added option.ko for some usb 3G modems and asix.ko for usb ethernet adapters that uses Asix AX88772 chipset */Update
*/Update Oct 12 2011: NTFS support comes standard with the 3.2's kernel, so I removed ntfs.ko module. */Update
Since I could not find all the modules I needed, and did not want to bug devs any more, I decided to bite the bullet and compile myself.
These are for the plain 3.2 kernel, which is 2.6.36.3+
I compiled the following modules, which are all in the same 7zip file:
Network:
tun.ko #for openvpn
option.ko #for some 3G modems
asix.ko #for usb ethernet adapters that uses Asix AX88x72 chipset
Filesystem:
cifs.ko #windows shares
nfs.ko #unix/linux shares
isofs.ko #cd iso images
udf.ko #cd udf images
USB to serial converter:
ftdio_sio.ko #ftdi usb2serial converters. Prolific chipset is already in the kernel so I did not compile that.
I have tested these under the stock 3.2 with root rom, the one in http://forum.xda-developers.com/showthread.php?t=1290318 and they load fine without errors on dmesg.
Enjoy.
Let me know if you need any other modules and I will try to compile them.
I have a request I have looked around and have not been able to find this module anywhere. It is the joydev module that supports many gamepads, joysticks and even some racing wheels. The source is available and even some modules for other devices but nothing for any tegra devices. I have a transformer myself but being the same hardware the module should work on either device. I have included the list of devices that are supported by the driver and the source for the driver. Any help would be greatly appreciated.
Supported devices:
http://atrey.karlin.mff.cuni.cz/~vojtech/input/hardware.html
Source:
https://github.com/netarchy/android_kernel_TF101/blob/master/drivers/input/joydev.c
This is kind of beyond my skillset as I do not know how to patch the kernel tree so that this driver shows on the menuconfig. Sorry.
Could you please build usb_wwan.ko and option.ko for 2.6.36.3+ ?
VicDeo said:
Could you please build usb_wwan.ko and option.ko for 2.6.36.3+ ?
Click to expand...
Click to collapse
usb_wwan seems to be statically compiled into the kernel already (USB driver for GSM and CDMA modems), so there isn't any module but it is always there in the kernel.
I am going to update the original post for the option.ko shortly.
Getting some errors on some of these. Anyone else having issues?
Tried these from both /system/lib/modules and sdcard.
option.ko:
Code:
insmod: init_module '/sdcard/modules/option.ko' failed (Invalid argument)
nfs.ko:
Code:
insmod: init_module '/sdcard/modules/nfs.ko' failed (No such file or directory)
Triple checked that the nfs.ko file was there and named correctly.
Following modules have installed fine.
asix, ftdi_sio, and cifs
I've just checked those two on my a500. It seems like option.ko is statically linked into the kernel, because on dmesg it says "option: module is already loaded". If I am guessing it correct (e.g. driver is statically linked in the kernel) than it means you don't need the .ko at all.
For the nfs, it throws bunch of "unknown symbol" errors on dmesg, I am guessing it cannot read symbols from the kernel. If that's the case, it would need a new kernel with a modified makefile, which is beyond my abilities unfortunately.
How to make the system load the module automatically when boot up? Thanks
mcmugchu said:
How to make the system load the module automatically when boot up? Thanks
Click to expand...
Click to collapse
That I don't know, I manually load them whenever I need.
mcmugchu said:
How to make the system load the module automatically when boot up? Thanks
Click to expand...
Click to collapse
You need system/etc/init.d folder with modules file.
I posted a patch for testing here is link maybe it works , flash with cwm.
Based on this thread. so all credits go to OP.
http://www38.zippyshare.com/v/75708872/file.html
Hi does anybody know if these support netbios name, i can't download and try right now. I've only found modules that works with the ip but not the name. Not practical when moving a lot.
Thanks
Hi,
I am using the same kernel 2.6.36.3+ and I'd like to have please:
eeprom_93cx6.ko, mac80211.ko, rtl8187.ko
Thank you in advance and if you can provide a tutorial that would be awesome!
Thanks!!
Good jobs.
but the modules don't work on Sumsung P7500 tablet,(Kernel 2.6.36.4)
htt p:// droidbasement.com /db-blog/?p=2395
10.1 3G, Touchwiz UX (HC 3.1 (stock); GT-P7500):
boot-cm_2636.4_p4_ux-oc-xtra-vfpv3-d16_fp-112011.zip
insmod isofs.ko, I got a error message" Exec format error"
Can you compile them for this kernal version? Thanks!
I need isofs.ko,udf.ko to support DVD image files.
Related
I wonder if there is anyone that tried to use any type of VPN over recent android builds for HD2?
Actually the problem resides in a missing kernel module "tun.ko".
I have tried to get the file from the internet to the same kernel and load it using "modprobe tun" or "insmod tun.ko" command but it is always giving me the same error: "modprobe: 'tun.ko' : invalid module format.
If anyone has a working module, that will be great.
hhhawasly said:
I wonder if there is anyone that tried to use any type of VPN over recent android builds for HD2?
Actually the problem resides in a missing kernel module "tun.ko".
I have tried to get the file from the internet to the same kernel and load it using "modprobe tun" or "insmod tun.ko" command but it is always giving me the same error: "modprobe: 'tun.ko' : invalid module format.
If anyone has a working module, that will be great.
Click to expand...
Click to collapse
I will update the kernel to include tunneling
EDIT:
http://git.linuxtogo.org/?p=groups/...it;h=17b1cb194c76267cae097241aea7a9f47ced7283
done.
tun.ko is present in all module autobuilds from today on.
check http://forum.xda-developers.com/showthread.php?t=719646#2 for the official GIT autobuilds
please let me know if it works for you
thanks
dcordes said:
I will update the kernel to include tunneling
EDIT:
http://git.linuxtogo.org/?p=groups/...it;h=17b1cb194c76267cae097241aea7a9f47ced7283
done.
tun.ko is present in all module autobuilds from today on.
check http://forum.xda-developers.com/showthread.php?t=719646#2 for the official GIT autobuilds
please let me know if it works for you
thanks
Click to expand...
Click to collapse
Thank you very much, with this module it should then be possible to have openvpn functionality.
Update: Ok, I am now using latest kernel with tun support.
With this kernel I am able to load the module tun.ko with insmod.
There are no errors and lsmod shows me the module as active.
Where to put an entry to load this module by default on boot?
I have tried the latest kernel build, on SHUBCRAFT CM6 froyo build, the module is loaded successfully and the device /dev/tun is also created successfully.
Thanks a lot.
Anyway I couldn't try the VPN functionality since the Wireless/3G didn't work after kernel upgrade! although I have successfully loaded the wireless modules.
--------
BTW, it didn't work with mattc Leo android build.
After some time of trying my openvpn is running very well with the new kernel and tun module. Thanks once again.
Downy said:
After some time of trying my openvpn is running very well with the new kernel and tun module. Thanks once again.
Click to expand...
Click to collapse
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
hhhawasly said:
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
Click to expand...
Click to collapse
try 1.3. VPN is enabled - not tested.
hhhawasly said:
What Andriod build are you using?
Can you please tell us how did you manage to run the WIFI on the new kernel?
Click to expand...
Click to collapse
I am running mattec release version 1.5 with the most current kernel (zImage) and the most current modules bcm4329.ko and tun.ko extracted from http://oe.netripper.com/files/htcleo_autobuild/modules-htcleo-latest.tgz.
For wifi it is very important to always use the correct bcm4329.ko according to your currently used zImage file.
So when I update a new kernel I also always download the newest modules and extract bcm4329.ko.
To get wifi working, I have extracted the bcm4329.ko out of the modules-htcleo-latest.tgz file and then used adb (I am using ADB Magic GUI to make things easier) to push the file to /system/lib/modules. Changed permissions at the end.
So
step 1:
I boot to wimo and replace zImage in my android folder.
step 2: boot back to android and connect via adb
step 3: extract bcm4329.ko out of modules-htcleo-latest.tgz
step 4: using adb I push this bcm4329.ko file to /system/lib/modules (command: adb push bcm4329.ko /system/lib/modules)
step 5: last but not least I change permissions, but dunno know if its really neccessary. (command: adb shell chmod 777 /system/lib/modules/bcm4329.ko)
Thats it. And thats what I am always doing when I am using a new zImage.
If you have further questions, just ask!
Currently I am running the latest kernel from today, 08/13/10 without any wifi or openvpn problems.
Unfortunatly the kernel module "tun" was not included with the 1.3!
Anyway I have managed now to run the new kernel and the tun module with 1.3.
And OpenVPN and wireless are now working fine.
hhhawasly said:
Unfortunatly the kernel module "tun" was not included with the 1.3!
Anyway I have managed now to run the new kernel and the tun module with 1.3.
And OpenVPN and wireless are now working fine.
Click to expand...
Click to collapse
vpn module is in first post
shu8i said:
vpn module is in first post
Click to expand...
Click to collapse
Oooops
I need a glasses for my eyes
I have tried the ROM and the module and everything was running smoothly.
Thank you all very much
Sorry To Bump This Post Up
But I AM NOt Able To Connect To Vpn PPTp On Any ANdroid Cyanogen Mod
What Should I DO Is There Update Or Solution Or ANything Around ?
A noob question support. Is there a CIFS support in the 2.6.32.21-gbe90714 kernel or a suitalbe cifs.ko file that one could use with the Cifsmanager app?
I am a bit lost here. I downloaded the DHD kernel source released, but had no luck locating the cifs.ko file. And I have no idea how to compile one myself. Can someone pinpoint me in the right direction?
update:
found some instructions here http://forum.xda-developers.com/showthread.php?t=783117 so I will see if I can get it working
update 2:
i have been able to build cifs.o (no cifs.ko was produced ) from the kernel provided by HTC, but it fails with insmod. The problem might be (besides that I have only a vague idea what am I doing) that the downloaded kernel is 2.6.32-g5ed1769 and my phone is running kernel 2.6.32-gbe90714.
Also compiling the kernel ends with this error
make[3]: *** No rule to make target `drivers/input/touchscreen/ntrig.o', needed by `drivers/input/touchscreen/built-in.o'. Stop.
Thats where I got stuck.
I have attached the file cifs.o produced.
Updare 3: Solved - see attachment in post http://forum.xda-developers.com/showthread.php?p=8865419#post8865419
Support/Troubleshooting forum sub section is needed, this Desire HD general is becoming a Desire HD trashcan..
M_T_M said:
Moved to general. Not a DEV thread.
Cheers,
Click to expand...
Click to collapse
I placed in DEV since it deals with kernel compilation. Maybe it should be moved to theme and apps as I am trying to get Cifsmanager app working on DHD.
Small update: I have managed to get a cifs.ko from kernel 2.6.32.17 from G2 partially working. I have HEX edited the file and changed to my kernel version.
I can insmod the file and mount drive without a problem. I can than access the mounted drives a browse the folders, but when I try to open the file I get an error.
I do not seem to be able to find a 2.6.32.21 kernel compiled cifs.ko which I believe might work with HEX updating "-gbe90714".
*push*
looking for the right cifs.ko as well :\ would be really nice to be able to mount cifs shares without custom rom...
anyone got CIFS working on stock ROM?
CIFS working on 2.6.32.21-gf3f553d
here is a working cifs.ko for DHD kernel 2.6.32.21-gf3f553d
Code:
su
insmod slow-work.ko
insmod cifs.ko
insmod nls_utf8.ko
It's a hex edited and --strip-debug cifs to educe file size of the version from MikeMelbourne. http://forum.xda-developers.com/showpost.php?p=9780217&postcount=7
Works fine on my DHD (samba access and video playback with V Player).
nxtwrld said:
here is a working cifs.ko for DHD kernel 2.6.32.21-gf3f553d
Code:
su
insmod slow-work.ko
insmod cifs.ko
insmod nls_utf8.ko
It's a hex edited and --strip-debug cifs to educe file size of the version from MikeMelbourne. http://forum.xda-developers.com/showpost.php?p=9780217&postcount=7
Works fine on my DHD (samba access and video playback with V Player).
Click to expand...
Click to collapse
Thanks for this, it works fine when I insmodded all the .ko's you zipped (that I placed in system/lib/modules/). On reboot though I cannot use cifs manager unless I insmod again. Do I need to insmod everytime i reboot?
Sent from my Desire HD
nxtwrld said:
It's a hex edited and --strip-debug cifs to educe file size of the version from MikeMelbourne. http://forum.xda-developers.com/showpost.php?p=9780217&postcount=7
Click to expand...
Click to collapse
I understand the hex edit - would you mind telling me how you did the --strip-debug - I'd like to do the same.
They were compiled on a headless PII 400 MHz running Ubuntu Edgy Eft server.
-Mike-
You just need to have the android ndk, which I supposed you have since you have bee able to compile the kernel. So just run
Code:
/path/to/android-ndk-r4b/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-strip --strip-debug /path/to/cifs.ko
you have to modify the path to cifs.ko a and android-ndk-r4b
I have bee trying to compile the kernel my self on kubuntu, but always finished with an error, so I just ended up hexediting other files.
Thanks for your files. I have been waiting for a working samba mount to stream my videos from NAS!!
keemyb said:
Thanks for this, it works fine when I insmodded all the .ko's you zipped (that I placed in system/lib/modules/). On reboot though I cannot use cifs manager unless I insmod again. Do I need to insmod everytime i reboot?
Sent from my Desire HD
Click to expand...
Click to collapse
I am afraid it has to be insmoded every time on boot. You can automate it with Gscript or Tasker apps.
Thanks @Nxtwrld for the strip-debug advice. The HTC kernel never compiled with my phone's config.gz - after each failed compile I would have to edit .config and disable the item responsible for the build failure. I ended up compiling the module by itself.
Sent from my Desire HD using XDA App
Final compile - optimised versions against NDK R5.
Against the new Android NDK R5 I have just compiled:
* tun.ko - 18 KB
* slow-work.ko - 16 KB
* cifs.ko - 269 KB
* nls_utf8.ko - 4 KB
I have also debug stripped them - resulting in a total module size of 304 KB instead of 3.2 MB.
This time I compiled them on Ubuntu 10.10 instead of the ancient Ubuntu 6.10 I had been compiling on.
Again, these are for 2.6.32.21-g66cfb7a - feel free to hex edit them. I have tested both tun & cifs and they work.
Thanks again nxtwrld for the strip-debug advice.
Can you do the same for kernel 2.6.32.21-g3d0aaf ?
here you go.
thank you! Works very good!
nxtwrld said:
here you go.
Click to expand...
Click to collapse
Sent from my Desire HD using XDA App
I've tried for hours so far to understand more about the android and how to install the files inside 2.6.32.21-gf3f553d.zip.
I have the Desire HD with stock Orange rom and that kernel, i literaly have no idea how to install thease moduals onto the phone.
My desire hd is rooted and is S-on I've tried things like Kernel Update Utility and also just trying to simply copy and paste the files into system/lib/modules didnt work since astro didnt let me paste.
If it wasnt nearly 1am and i wasn't trying for the past 3 hours i would have done more reading. I know its something simple im missing, just can't figure out what the process is to installing thease modules is. First Android phone, first day with it as you can probebly tell.
Any help will be apreciated.
Thanks
arielc said:
I've tried for hours so far to understand more about the android and how to install the files inside 2.6.32.21-gf3f553d.zip.
I have the Desire HD with stock Orange rom and that kernel, i literaly have no idea how to install thease moduals onto the phone.
My desire hd is rooted and is S-on I've tried things like Kernel Update Utility and also just trying to simply copy and paste the files into system/lib/modules didnt work since astro didnt let me paste.
Click to expand...
Click to collapse
There's a free app in the market called "mount /system (rw / ro)" that can make your /system read-write (rw) or read-only (ro). After setting rw - you should be able to copy the *.ko files into /system/lib/modules.
Another alternative is to copy the *.ko files onto your sdcard (/mnt/sdcard).
You can then use an app (i.e. "Terminal Emulator") to enter these commands:
Code:
su
insmod /mnt/sdcard/slow-work.ko
insmod /mnt/sdcard/cifs.ko
insmod /mnt/sdcard/nls_utf8.ko
Alternatively, you can open CifsManager, open the Settings and specify a custom path to your kernel modules (i.e. in /mnt/sdcard). The recent version allows you to specify multiple modules, separated by colons. e.g:
Code:
/mnt/sdcard/slow-work.ko:/mnt/sdcard/cifs.ko:/mnt/sdcard/nls_utf8.ko
Hope this helps.
You should also check you kernel version and verify, that you are really running pin this kernel. I have no idea what the kernel for Orange branding is....
Amazing thanks, i did it with the terminal emulator method. First time i tried it, it wouldnt work. A restart later and i've rentered the comands and my computer drive is mounted. Works like a dream, thanks loads for th hex edited files and the walkthrough with diffrent options was so very helpful.
I just changed my kernel with nAa's v6 kernel from stock. I believe that tun.ko or tun/tap (correct me if im wrong) is already in kernel so i have to delete modules in /system/lib/modules to avoid conflict. Now my problem is how can I locate the path of tun.ko if it is already in the kernel. When I am using stock kernel the path in my openvpn setting of tun.ko is is system/lib/modules/tun.ko, but now I have nAa's kernel what path should i put in the openvpn setting coz if i only put tun.ko in the setting it doesnt work. Anyone can help me? Thank you.
Try modprobe I guess. haha mwah
modprobe is only for modules operation. you have no module per se to work with so modprobe is not the right command to work with.
have you tried just letting your openvpn run? I think it will automatically use whatever is provided in the kernel hence no need to specify anything for module at all.
ICS's VPN doesn't work on my U8800. Is it a bug that hasn't been fixed on Aurora ICS? Anybody has the same problem? Is there a solution for it?
VPN in U8800 Aurora does not work
dmzsdx said:
ICS's VPN doesn't work on my U8800. Is it a bug that hasn't been fixed on Aurora ICS? Anybody has the same problem? Is there a solution for it?
Click to expand...
Click to collapse
I have the same problem. Test Aurora 1.12a, 2.02 and 2.04. I allways do all wipes (cache, data, dalvik). PPTP VPN does not work for mee.
Same here, That renders Onavo Extend unusable. From what i gathered so far, it seems to be a kernel issue and not a rom issue. As users from all kinds of phones report the same behaviour on their ICS roms and so far the only way around is a proper kernel.
ArbiterGR said:
Same here, That renders Onavo Extend unusable. From what i gathered so far, it seems to be a kernel issue and not a rom issue. As users from all kinds of phones report the same behaviour on their ICS roms and so far the only way around is a proper kernel.
Click to expand...
Click to collapse
What about Openvpn?
try kernel 3.08.
flesh it,and try again.for 10....
Try with the new kernel for ics, you can find it on my signature.
Regards
Sent from my U8800 using xda premium
Solution of PPTP VPN problem on custom ICS ROMs
I use Aurora 2.11a now. I have two major problems:
- PPTP VPN not works
- SIP VoIP (only Linphone Video works, but quality not good, other program eg CSipSimple does not work - make/receive calls but voice is not transfered)
I found why PPTP VPN does not work.
I use logcat and found that mtpd can't create PPPoX socket. I found many people has this problem with ICS custom ROMs.
This problem is caused by missing protocol support in kernel.
I compiled and loaded kernel modules (load in terminal by insmod). PPTP VPN connects now withou problems.
Needed kernel modules:
insmod slhc.ko
insmod ppp_generic.ko
insmod pppox.ko
insmod pppopns.ko
I made test without encryption. I suppose that for encrypted PPTP connection more modules will be needed. Eg ppp_mppe.ko for MPPE encryption or ppp_deflate.ko for deflate compression. I will make some tests later.
I suggest add needed modules (with auto modprobe support) to the rom. But I can't put results of my tests to developer posts. I have not made 10 helpful posts.
Please send my solution to DZO.
More tests PPTP VPN in Aurora 2.11a (ICS ROM)
I made more tests:
1. And confirm that for connection to Linux poptop PPTP server (via WiFI) without compression and ancryption this kernel modules are needed: slhc.ko, ppp_generic.ko, pppox.ko, pppopns.ko
2. I also succesfully connect to Microsoft ISA server with MPPE encryption activated. As I suppose in previous post, in this case ppp_mppe.ko module is needed too.
I use mobile phone for work. Not working connection to company ISA VPN PPTP server was major problem for me in Aurora. Now I can connect. Wow. (I have only one big problem with Aurora now - SIP VoIP.)
I did not test PPTP with deflate and bsd compressions (I suppose ppp_deflate.ko and bsd_comp.ko will be needed). I also not tested l2tp and ipsec configurations. (I don't have prepared VPN servers for this.)
There is two ways now. Staticaly compile all code to the kernel or compile kernel modules.
I prefer to add kernel modules to rom. And this modules will be loaded to RAM automaticaly when user needs it (user use VPN, eg as wlan driver module is loaded only when WiFI is used).
DZO, please can you add this to Aurora ROM.
Tests deflate and BSD compression in PPTP VPN in Aurora 2.11a (ICS ROM)
I changed configuration of my Linux poptop PPTP server and test deflate and BSD compresion. Both is working with Aurora ROM. This additional modules are needed ppp_deflate.ko and bsd_comp.ko for this.
I still not tested l2tp and ipsec configurations. (I don't have prepared VPN servers for this.)
Autoloading kernel modules
>There is two ways now. Staticaly compile all code to the kernel or compile kernel modules.
>I prefer to add kernel modules to rom. And this modules will be loaded to RAM automaticaly when user needs it (user use VPN, eg as wlan driver module is loaded only when WiFI is used).
Kernel can load modules automaticaly. Kernel calls "modprobe" for this. But in Aurora and probably in other roms is not corectly configured path to "modprobe" in kernel.
In Aurora kernel is default path "/sbin/modprobe". But "/system/xbin/modprobe" is right.
If you set correct path to "modprobe" in kernel than modules ppp_mppe.ko, ppp_deflate.ko, bsd_comp.ko will be automaticaly loaded to ram when needed. (You have to copy this modules to /system/lib/modules ofcourse). No need to compile thist code staticaly to kernel.
Set correct path to modprobe may be done in startup scripts by:
echo /system/xbin/modprobe > /proc/sys/kernel/modprobe
JaRo1 said:
>There is two ways now. Staticaly compile all code to the kernel or compile kernel modules.
>I prefer to add kernel modules to rom. And this modules will be loaded to RAM automaticaly when user needs it (user use VPN, eg as wlan driver module is loaded only when WiFI is used).
Kernel can load modules automaticaly. Kernel calls "modprobe" for this. But in Aurora and probably in other roms is not corectly configured path to "modprobe" in kernel.
In Aurora kernel is default path "/sbin/modprobe". But "/system/xbin/modprobe" is right.
If you set correct path to "modprobe" in kernel than modules ppp_mppe.ko, ppp_deflate.ko, bsd_comp.ko will be automaticaly loaded to ram when needed. (You have to copy this modules to /system/lib/modules ofcourse). No need to compile thist code staticaly to kernel.
Set correct path to modprobe may be done in startup scripts by:
echo /system/xbin/modprobe > /proc/sys/kernel/modprobe
Click to expand...
Click to collapse
You should let DZO know about this
Strange, all those modules are built into the kernel already:
Code:
[email protected]:/proc # gzip -d < config.gz | grep PPP
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_MPPE=y
CONFIG_PPPOE=y
CONFIG_PPPOLAC=y
CONFIG_PPPOPNS=y
[email protected]:/proc # gzip -d < config.gz | grep BSD
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_PPP_BSDCOMP=y
# CONFIG_BSD_DISKLABEL is not set
[email protected]:/proc # gzip -d < config.gz | grep SLHC
CONFIG_SLHC=y
[email protected]:/proc #
I wonder why they aren't being used. I'll look into it.
dzo said:
Strange, all those modules are built into the kernel already:
Code:
[email protected]:/proc # gzip -d < config.gz | grep PPP
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_MPPE=y
CONFIG_PPPOE=y
CONFIG_PPPOLAC=y
CONFIG_PPPOPNS=y
[email protected]:/proc # gzip -d < config.gz | grep BSD
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_PPP_BSDCOMP=y
# CONFIG_BSD_DISKLABEL is not set
[email protected]:/proc # gzip -d < config.gz | grep SLHC
CONFIG_SLHC=y
[email protected]:/proc #
I wonder why they aren't being used. I'll look into it.
Click to expand...
Click to collapse
yay! my hero !
dzo said:
Strange, all those modules are built into the kernel already:
Code:
[email protected]:/proc # gzip -d < config.gz | grep PPP
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_MPPE=y
CONFIG_PPPOE=y
CONFIG_PPPOLAC=y
CONFIG_PPPOPNS=y
[email protected]:/proc # gzip -d < config.gz | grep BSD
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_PPP_BSDCOMP=y
# CONFIG_BSD_DISKLABEL is not set
[email protected]:/proc # gzip -d < config.gz | grep SLHC
CONFIG_SLHC=y
[email protected]:/proc #
I wonder why they aren't being used. I'll look into it.
Click to expand...
Click to collapse
Hello DZO.
Yes I see. After my post "http://forum.xda-developers.com/showpost.php?p=25872580&postcount=7" you staticaly build needed modules to kernel. Thank you.
I never wrote that staticaly linked modules are not used. I didn't test your kernel with staticaly linked modules. But this is one solution. This is simple solution. All code compile staticaly and create one superbig kernel with all drivers compiled in.
I prefer another solution. Create smaller kernel and many modules with working autoloading. If user use pptp then modules will be automaticaly loaded to ram. If user don't use pptp than modules are not loaded to ram. The same we can do with tun/tap driver - create module tun.ko. (Is staticaly linked now.)
I am working on second solution. I am using your older binary kernel (without staticaly linked modules for PPTP VPN). And I compiled needed modules from your kernel sources (from git). And made tests.
Now I have working kernel modules autoloading. If user use PPTP then kernel automaticaly loads all needed modules.
I made this:
1. I added to directory "/system/lib/modules" needed modules:
bsd_comp.ko, ppp_deflate.ko, ppp_generic.ko, ppp_mppe.ko, pppopns.ko, pppox.ko, slhc.ko
2. I Set correct path to modprobe in kernel:
echo /system/xbin/modprobe > /proc/sys/kernel/modprobe
3. I generate files with information about modules and copy to directory "/system/lib/modules":
modules.alias, modules.dep, modules.dep.bb, modules.symbols
I don't know which solution is better for Aurora ROM.
- Compile one big kernel with all code is simple and does not depend on modprobe (autoloading modules support) functionality. May be more reliable solution.
- Compile code as modules probably has advantage for users who don't use this code (eg do not use VPN). Probably in this case kernel use less RAM. But I don't compare this two solutions (kernel whith staticaly linken code and without). So I don't have concrete numbers.
For DZO:
I attached archive with files (modules and info). May be helpful for you. May be not. Its on you what solution you choose. Please add to starting script this in anycase: echo /system/xbin/modprobe > /proc/sys/kernel/modprobe
Once again I thank you for your work.
hi,
Can you explain the procedure how to load with insmod file ppp_mppe.ko in to my device. I copied in the folder /system/lib/modules/ file ppp_mppe.ko that you sent. I get the message "Exec format error" when trying to load command: insmod /system/lib/modules/ppp_mppe.ko in terminal. My device is a Samsung GT-P5100 with ICS 4.0.4
Dzo,
Have you made any progress with this one? Just wondering if there is a solution for us?
Thanks for the time and effort!!
so did you get PPTP vpn working?
with ample googling this thread seems to be closest to having a working PPTP vpn.
(other than a german thread from 2010: http://www.android-hilfe.de/motorola-milestone/20823-endlich-pptp-vpn-root.html
i'm on cm7.2 - in dire need of working PPTP - it seems that this is an android-wide problem, though i did have it working on my previous phone, also on cm7.2.
so where are we with this? and if loading add'l modules gets it working, could you please hold my hand a bit through the process - i'm a noob and it seems a bit complicated this stuff here.
JaRo1 said:
2. I Set correct path to modprobe in kernel:
echo /system/xbin/modprobe > /proc/sys/kernel/modprobe
Click to expand...
Click to collapse
Sorry ı've same promblem and ı need help. I cant understand second step.please exlplain it me?
I wait your help.
Warning: This topic requires some technical/computer skills!
I have compiled some modules for the CF-root kernel by ketut.kumajaya (b84 to be precise). These can be compiled to work on other kernels also if anybody is interested
Modules with brief description:
cpufreq_intellidemand.ko / cpufreq_ondemandx.ko :
CPU scaling governors. More information here.
isofs.ko :
CD filesystem for mounting CD / DVD images as loop devices or USB CD drives
ntfs.ko :
NTFS filesystem support. Useful for mounting NTFS formatted drives
Download
How to load modules?
1. Extract and copy modules to any location on /data or /system (root explorer, es explorer, adb etc)
2. Insert module into kernel (terminal emulator / script manager / adb shell )
Code:
insmod /path/to/module.ko
3. Check if module is loaded correctly
Code:
lsmod
It should show LIVE! against the module name
4. Enjoy!
Example script to load all modules. Can be pushed to /system/etc/init.d or run with script manager to load modules at boot
Code:
#!/system/bin/sh
# load modules
insmod /system/lib/modules/cpufreq_intellidemand.ko
insmod /system/lib/modules/cpufreq_ondemandx.ko
insmod /system/lib/modules/isofs.ko
Please remeber to correct the path if different.
Part below is DEV only
I compiled this in the hope of getting USB OTG working. I am herewith attaching the required modules.
All the modules are loading properly and showing LIVE! on lsmod..
dmesg also ok.
But still, on connecting USB drive, dmesg does not show anything at all.. Also no voltage to the drive..
Anybody more advanced can try to figure out if any additional modules are needed. Also, I may try loading the scsi module in the ramdisk and see if there is any difference..
Thanks for your time.
shardul_seth said:
I compiled this in the hope of getting USB OTG working. I am herewith attaching the required modules.
All the modules are loading properly and showing LIVE! on lsmod..
dmesg also ok.
But still, on connecting USB drive, dmesg does not show anything at all.. Also no voltage to the drive..
Anybody more advanced can try to figure out if any additional modules are needed. Also, I may try loading the scsi module in the ramdisk and see if there is any difference..
Thanks for your time.
Click to expand...
Click to collapse
You will need an external powersource like a USB hub to power the device. The won't be able to power the bus, it is prety unlikly that they have connected the vbus supply for the bus to the PMIC to power the bus. Also you would need to tell the PMIC to power the bus, this won't happen automatical.
Also it would be nice if you don't violate the GPL and publish the source you used to compile
coolya said:
You will need an external powersource like a USB hub to power the device. The won't be able to power the bus, it is prety unlikly that they have connected the vbus supply for the bus to the PMIC to power the bus. Also you would need to tell the PMIC to power the bus, this won't happen automatical.
Also it would be nice if you don't violate the GPL and publish the source you used to compile
Click to expand...
Click to collapse
Thanks for your prompt reply. Exactly my thoughts..
As for the source, it was forked from skynet28's kernel source on github. I had to adjust the vermagic value to match ketut's kernel, so that it would load without error!
I could easily compile for my primary device (Neo V), post here, so I thought i could try for my wife's ACE too!!
So,if add the kernel modules to Cf-root by decompiling the ramdisk and then compile it back,it would work?
*Not a kernel expert*
Prawesome said:
So,if add the kernel modules to Cf-root by decompiling the ramdisk and then compile it back,it would work?
*Not a kernel expert*
Click to expand...
Click to collapse
First of all its not compile-decompile ramdisk...to answer the query yes you can place modules in ramdisk and tell init.rc to load them at boot
Sent from Galaxy Ace which just landed on "MOON"
Prawesome said:
So,if add the kernel modules to Cf-root by decompiling the ramdisk and then compile it back,it would work?
*Not a kernel expert*
Click to expand...
Click to collapse
Yes, everything except USB OTG
But easier will be to have a script in init.d folder to load whatever modules you want..
The ISO images can be mounted as loop devices with the following commands once the module is Live!
Code:
#!/system/bin/sh
# mount cd iso script by shardul_seth
if [ ! -d /mnt/sdcard/isofs1 ]; then mkdir /mnt/sdcard/isofs1; fi
busybox mount -o loop -t isofs /path/to/cd.iso /mnt/sdcard/isofs1
Oh...Alright guys @shardul_seth,what if i want to implement this in a rom?
You are free to, just give credit