FORUMS
Remove All Ads from XDA
Honor 9 Lite

Working Kernel (2.1) Modules for Mini / MiniPro / X8

1,531 posts
Thanks Meter: 19,435
 
By nobodyAtall, Inactive Recognized Developer on 17th December 2010, 11:25 AM
Post Reply Email Thread
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, 975 views)
File Type: zip nfs.zip - [Click for QR Code] (2.13 MB, 623 views)
File Type: zip nls_utf8.ko.zip - [Click for QR Code] (9.8 KB, 445 views)
File Type: zip filesystems.zip - [Click for QR Code] (6.14 MB, 1017 views)
File Type: zip froyo_app2sd.zip - [Click for QR Code] (422.4 KB, 508 views)
File Type: zip tun.ko.zip - [Click for QR Code] (60.9 KB, 827 views)
File Type: zip config.zip - [Click for QR Code] (10.7 KB, 435 views)
File Type: zip 2.1.A.0.435_x10mini_kernel.zip - [Click for QR Code] (2.09 MB, 2124 views)
The Following 19 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
 
 
17th December 2010, 11:27 AM |#2  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,435
 
Donate to Me
More
Feel free to post any module requests you may have.
The Following 6 Users Say Thank You to nobodyAtall For This Useful Post: [ View ] Gift nobodyAtall Ad-Free
17th December 2010, 03:20 PM |#3  
ijama's Avatar
Senior Member
Flag Johor Bahru
Thanks Meter: 30
 
More
Can u explain me ths much further..what it is..?how the change when we get this in e10i

Sent from my E10i
17th December 2010, 03:37 PM |#4  
much1's Avatar
Senior Member
Flag Brno
Thanks Meter: 18
 
More
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
17th December 2010, 04:48 PM |#5  
DaRk_dOg's Avatar
Recognized Themer
Thanks Meter: 2,328
 
More
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

The Following User Says Thank You to DaRk_dOg For This Useful Post: [ View ] Gift DaRk_dOg Ad-Free
18th December 2010, 02:36 AM |#6  
Senior Member
Thanks Meter: 3
 
More
any module to overclok?
any module (or modification) to overclock cpu over 600 mhz?
18th December 2010, 10:02 AM |#7  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,435
 
Donate to Me
More
Quote:
Originally Posted by DaRk_dOg

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: [ View ] Gift nobodyAtall Ad-Free
18th December 2010, 10:21 AM |#8  
nobodyAtall's Avatar
OP Inactive Recognized Developer
Flag Patras
Thanks Meter: 19,435
 
Donate to Me
More
Quote:
Originally Posted by DrBios

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: [ View ] Gift nobodyAtall Ad-Free
18th December 2010, 11:01 AM |#9  
much1's Avatar
Senior Member
Flag Brno
Thanks Meter: 18
 
More
where can i read about all the possible modules?
18th December 2010, 03:37 PM |#10  
Lef.teris's Avatar
Senior Member
Thanks Meter: 118
 
More
What about psfreedom.ko (used to jailbreak the PS3)

It is possible to import?
18th December 2010, 10:50 PM |#11  
Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by Lef.teris

What about psfreedom.ko (used to jailbreak the PS3)

It is possible to import?

yeah psfreedom.ko would be so great on mini
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes