Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nobodyAtall
Old
(Last edited by nobodyAtall; 22nd March 2011 at 05:53 PM.)
#1  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 18058
Posts: 1,485
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Default Working Kernel (2.1) Modules for Mini / MiniPro / X8

Here are some kernel modules for common operations that can't be done using the vanilla SE 2.1 kernel. Those modules should work on X10mini/X10minipro/X8

Requirements: working busybox, adb

Firstly, you need to remount RW your /system partition to be able to put the modules in place:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
tun.ko, used for vpnc networks
Installation (kernel part):
Code:
adb push tun.ko /sdcard/
adb shell 
su
busybox mv /sdcard/tun.ko /system/lib/modules/
busybox chmod 644 /system/lib/modules/tun.ko
Installation (gui part):
Get the latest apk of get-a-robot from here
Code:
adb install VPN_Connections_v099.apk
launch the app and add the network according to the config parameters that you have. This app also handles insmoding the tun.ko kernel module when needed.

cifs.ko, used for mounting windows/samba shares
Installation (kernel part):
Code:
adb push cifs.ko /sdcard/
adb shell 
su
busybox mv /sdcard/cifs.ko /system/lib/modules/
busybox chmod 644 /system/lib/modules/cifs.ko
Usage:
Code:
insmod /system/lib/modules/cifs.ko
busybox mount -t cifs //<serverip>/<sharename> <local mount point> -o username=<name>,password=<password>
e.g. for guest authentication to share named 'samba' at server with ip 192.168.0.3:
busybox mkdir /sdcard/samba
busybox mount -t cifs //192.168.0.3/samba /sdcard/samba -o username=guest
nfs.ko, used for mounting NFS shares
Installation (kernel part):
Code:
adb push sunrpc.ko /sdcard/
adb push lockd.ko /sdcard/
adb push nfs.ko /sdcard/
adb shell 
su
busybox mv /sdcard/sunrpc.ko /system/lib/modules/
busybox mv /sdcard/lockd.ko /system/lib/modules/
busybox mv /sdcard/nfs.ko /system/lib/modules/
busybox chmod 644 /system/lib/modules/sunrpc.ko
busybox chmod 644 /system/lib/modules/lockd.ko
busybox chmod 644 /system/lib/modules/nfs.ko
Usage:
Code:
insmod /system/lib/modules/sunrpc.ko
insmod /system/lib/modules/lockd.ko
insmod /system/lib/modules/nfs.ko
busybox mount -t nfs <serverip>:/<share> <local mount point> -o nolock
e.g.
busybox mkdir /sdcard/nfs
busybox mount -t nfs 192.168.0.3:/home/data /sdcard/nfs -o nolock
Utf8 support
This can be used with cifs or nfs when mounted partitions contain characters in utf8 and thus appear as junk
Installation (kernel part):
Code:
adb push nls_utf8.ko /sdcard/
adb shell 
su
busybox mv /sdcard/nls_utf8.ko /system/lib/modules/
busybox chmod 644 /system/lib/modules/nls_utf8.ko
Usage:
Code:
insmod /system/lib/modules/nls_utf8.ko
Filesystems
I have not used these modules since I have not partitioned my sdcard for these types of filesystems. I guess they can be useful in a multi-partition scheme or with app2sd and something else other than ext2
  • ext3.ko (needs jbd.ko to be insmoded first)
  • ext4.ko (needs jbd2.ko to be insmoded first)
  • jfs.ko
  • reiserfs.ko
  • xfs.ko (needs exportfs.ko to be insmoded first)
  • ntfs.ko (read-only support)

App2sd for froyo
These modules are only useful if you have an custom froyo ROM in order to get the app2sd functionality working
  • dm-mod.ko (needs jbd.ko to be insmoded first)
  • dm-crypt.ko (needs jbd2.ko to be insmoded first)
  • twofish_common.ko
  • twofish.ko
Installation (kernel part):
Code:
adb push dm-mod.ko /sdcard/
adb push dm-crypt.ko /sdcard/
adb push twofish_common.ko /sdcard/
adb push twofish.ko /sdcard/
adb shell 
su
busybox mv /sdcard/dm-mod.ko /system/lib/modules/
busybox mv /sdcard/dm-crypt.ko /system/lib/modules/
busybox mv /sdcard/twofish_common.ko /system/lib/modules/
busybox mv /sdcard/twofish.ko /system/lib/modules/
busybox chmod 644 /system/lib/modules/*

Disclaimer:
I can't be held responsible if any of those modules brick your device. Use them at your own risk!

Changelog:
- 22/3/11 2.1.A.0.435 kernel image for x10mini
- 20/3/11 Updated tun.ko and kernel .config using 2.1.1.A.0.6
- 11/2/11 Added modules for froyo's app2sd
- 20/1/11 Added .config file
- 17/12/10 Initial posting
- 22/12/10 Added missing filesystems deps to filesystems.zip
Attached Files
File Type: zip cifs.ko.zip - [Click for QR Code] (949.5 KB, 769 views)
File Type: zip nfs.zip - [Click for QR Code] (2.13 MB, 496 views)
File Type: zip nls_utf8.ko.zip - [Click for QR Code] (9.8 KB, 343 views)
File Type: zip filesystems.zip - [Click for QR Code] (6.14 MB, 826 views)
File Type: zip froyo_app2sd.zip - [Click for QR Code] (422.4 KB, 420 views)
File Type: zip tun.ko.zip - [Click for QR Code] (60.9 KB, 667 views)
File Type: zip config.zip - [Click for QR Code] (10.7 KB, 309 views)
File Type: zip 2.1.A.0.435_x10mini_kernel.zip - [Click for QR Code] (2.09 MB, 1628 views)
The Following 19 Users Say Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
nobodyAtall
Old
#2  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 18058
Posts: 1,485
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Feel free to post any module requests you may have.
The Following 6 Users Say Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
ijama
Old
#3  
ijama's Avatar
Senior Member
Thanks Meter 30
Posts: 416
Join Date: Oct 2010
Location: Johor Bahru
Can u explain me ths much further..what it is..?how the change when we get this in e10i

Sent from my E10i
 
much1
Old
#4  
much1's Avatar
Member
Thanks Meter 12
Posts: 77
Join Date: Dec 2010
Location: Brno
you can find very helpful information on wikipedia:

(unfortuneately i cannot post external urls by now yet)
so, put in wikipedia this:

tun.ko - you can create VPN connection with this module
VPN
OpenVPN

cifs.ko - you can mount your samba/windows share on your device (if u dont know what it means.. you can basically have a folder on your phone, which represents the shared folder from your windows computer ..e.g. movies, music..etc
Server Message Block
Samba
Mount

nfs.ko - that is the same actually, but with this module u mount linux network file system, which also is capable of permissions management etc
NFS
 
DaRk_dOg
Old
#5  
DaRk_dOg's Avatar
Recognized Themer
Thanks Meter 2122
Posts: 877
Join Date: Oct 2010
Great! Nice Addition!

Just a point though:

Quote:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
Shouldn't this be:

Quote:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
SE X10 mini MiniCM10 | HTC Desire HD CyanogenMod10 | Samsung Galaxy Nexus CyanogenMod10

My Themes:
Crystal CM7 || Crystal 2 CM10
 
DrBios
Old
#6  
Member
Thanks Meter 0
Posts: 82
Join Date: Nov 2005
Default any module to overclok?

any module (or modification) to overclock cpu over 600 mhz?
 
nobodyAtall
Old
#7  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 18058
Posts: 1,485
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Quote:
Originally Posted by DaRk_dOg View Post
Great! Nice Addition!

Just a point though:



Shouldn't this be:
That's correct. Fixed.

Even though it works with mtdblock2 also
The Following User Says Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
nobodyAtall
Old
#8  
nobodyAtall's Avatar
Recognized Developer - OP
Thanks Meter 18058
Posts: 1,485
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
Quote:
Originally Posted by DrBios View Post
any module (or modification) to overclock cpu over 600 mhz?
Is there some particular module in the vanilla kernel that can provide this?

I've seen it on other phones but with custom kernel modules / modifications
The Following User Says Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
much1
Old
#9  
much1's Avatar
Member
Thanks Meter 12
Posts: 77
Join Date: Dec 2010
Location: Brno
where can i read about all the possible modules?
 
Lef.teris
Old
#10  
Lef.teris's Avatar
Senior Member
Thanks Meter 115
Posts: 119
Join Date: Apr 2009
What about psfreedom.ko (used to jailbreak the PS3)

It is possible to import?

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...