Kernel Modules (+ explanation) ☰ NTFS BUG FIXED!! ☰ {Locked Bootloader also} - Sony Ericsson Xperia Neo, Pro

Kernel Modules (+ explanation) ☰ NTFS BUG FIXED!! ☰ {Locked Bootloader also}
Warning: This topic requires some technical/computer skills!
I have compiled some modules against the beta ICS kernel sources for incorporation into my Super Stock Kernel for Neo and Neo V. These modules will be integrated into the kernel when I have some time.
I am posting it here as it can be used on locked boot-loader also!
Modules with brief description:
usb-storage.ko:
Already included in USB OTG Helper! Used to connect storage device to phone in host mode.
ntfs.ko :
NTFS filesystem support. Useful for mounting NTFS formatted pen drives.
NTFS drive files now accessible in ES File Explorer -> USB OTG Helper v2
jbd2.ko & ext4.ko :
Ext 4 support. Ext4 sd-ext partition or loop devices can be mounted.
jbd2.ko has to be insmod-ed first!
isofs.ko :
CD filesystem for mounting CD / DVD images as loop devices or USB CD drives
shardul_intellidemand.ko / shardul_ondemandx.ko / shardul_smartass2.ko :
CPU scaling governors. More information here.
hid-apple.ko :
Support for keyboards of Apple iBooks, PowerBooks, MacBooks, MacBook Pros and Apple Aluminum
hid-microsoft.ko :
Support for Microsoft devices that are not fully compliant with HID standard.
tun.ko :
Tun/Tap driver for VPN (some VPN apps in the market require it)
Download
How to load modules?
Easy way: http://forum.xda-developers.com/showthread.php?t=1228605
OR
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
For smartass2.ko, see the code below.
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 - Download. Please remeber to correct the path if different.
For loading smartassV2 use the following code
Code:
#!/system/bin/sh
# load smartassV2
shardul_address=0x$(cat /proc/kallsyms | grep ' kallsyms_lookup_name' | sed 's_ T.*__')
insmod /res/modules/shardul_smartass2.ko lookup_address=$shardul_address
unset shardul_address

Man that's an elegant solution, well executed.
Please if you do not understand, do not try unless you have gone and learned a little about kernels and insmod
Lol I can't wait to see some of the help questions.....
Sent from my MT11i using XDA

i wont ask for help then...

I recently setup ubuntu on my machine, looking forward to this guide as a future reference as i have started my research on compiling kernels from source.
Thanks
Sent from my Xperia neo V

[report]USB rejected
I've tried to insert usb-storage.ko manually and failed when detecting my flashdisk.
Currently, I'm using mini pro with stock kernel rooted using terminal emulation (from rooted GB). I've attached log. Please, help me!
Thanks in advance.

Your phone is not upto it(see the error about power drain ), how big is the flash drive?
Sent from my Xperia Neo V using XDA

It's just 8gb adata. It worked using other flashdisk before upgrading to ICS.
Sent from my SK17i using xda premium

Has it ever worked with this disk?
Have you tried another one?
Sent from my Xperia Neo V using XDA

You should be happy with that log.. Usb otg is working.. You will need a powered usb hub for that flash disk!

mpiekp said:
Has it ever worked with this disk?
Have you tried another one?
Sent from my Xperia Neo V using XDA
Click to expand...
Click to collapse
another UFD test 4GB (failed)

BandenX said:
another UFD test 4GB (failed)
Click to expand...
Click to collapse
please see the output of
Code:
ls /dev/block
is there any sda or sdb entry?

Is the mini pro and Neo kernel compatible?
Just noticed he's trying this on mini pro.
Sent from my Xperia Neo V using XDA

shardul_seth said:
please see the output of
Code:
ls /dev/block
is there any sda or sdb entry?
Click to expand...
Click to collapse
Update: I've tried a number of flashdrive with size 4gb or 2gb (there are about 4-6 pieces) and 1 flashdrive with 8gb (of course, not mine). It worked when using 4gb or 2gb, I can mount manually on /dev/block/sda or /dev/block/sda1. I'm also confirmed that ntfs module worked. It give me a list dir from ls command in terminal (using better terminal emulator), but failed when using es file manager). This test also failed for 8gb with same reason "rejected due to insufficient bus power". Is there any way to solve this problem (i.e kernel tweak etc?). This would be funny when I'm using another extra power adapter just for connecting 8gb flash drive.
Sent from my SK17i using xda premium

BandenX said:
Update: I've tried a number of flashdrive with size 4gb or 2gb (there are about 4-6 pieces) and 1 flashdrive with 8gb (of course, not mine). It worked when using 4gb or 2gb, I can mount manually on /dev/block/sda or /dev/block/sda1. I'm also confirmed that ntfs module worked. It give me a list dir from ls command in terminal (using better terminal emulator), but failed when using es file manager). This test also failed for 8gb with same reason "rejected due to insufficient bus power". Is there any way to solve this problem (i.e kernel tweak etc?). This would be funny when I'm using another extra power adapter just for connecting 8gb flash drive.
Click to expand...
Click to collapse
1. Bus power cannot be increased safely (AFAIK)
2. sadly ES file explorer does not work for NTFS. I am planning to write to them. Script Manager file browser works!
Edit: I have written to them. Hopefully it is considered for their updates

shardul_seth said:
1. Bus power cannot be increased safely (AFAIK)
2. sadly ES file explorer does not work for NTFS. I am planning to write to them. Script Manager file browser works!
Edit: I have written to them. Hopefully it is considered for their updates
Click to expand...
Click to collapse
I hope there is a solution for UFD 8gb sandisk as it worked in GB (before using ICS). I have a question: what file system to implement in ntfs module? Is it native file system or built on top of fuse? (like linux did)
-----------------------------
Phone: Xperia Mini Pro SK17i
ROM: original stock rom ICS 4.0.4 firmware 4.1.0.B.431
Mods: all custom MDPI and quick switch panel by lasan, walkman ICS
Status: rooted using terminal emulation trick, CWM

Native Linux NTFS driver

Big bugfix!!
See updated OTG Helper app
v2 (2012-06-19):
+ NTFS module integrated
+ Bugfixes
+ Now NTFS drive can be explored with ANY file explorer (Fixed bug)
Now ES file explorer can "see" the files in the NTFS drives also!!
Many more bugfixes!

Are this module ok for stock kernel .587 (ICS)? I tried for link2sd and it starts (modules are loaded) but when I tried to link app the system reboots!!
Sorry for my english!

Tested your modules in fxp140 JB but unsuccessfully did not work usb ... could help us with the solution? Great work always used its modules .

usefull enought would be even awesome if we had I/O shedulers but anyway even these are good.
I no longer have reason to unlock bootloader.

Related

Compiling X10 kernel sources

As I was told Sony released Xperias X100 kernel sources I decided to play a little with them. This tutorial is for advanced users by the way as you need some linux knowledge (wrote it from memory as I did it one day ago).
As I'm new to cross compiling it took me a while to configure the platform correctly (I did it on Ubuntu 10.04).
- Get the sources here : http://developer.sonyericsson.com/wportal/devworld/downloads/download/dw-300009-x10donut10032501?cc=gb&lc=en
- Tutorial to set up the environment correctly : : http://source.android.com/source/download.html
- the make config file is available in the phone under '/proc/config.gz'
and 'adb pull /proc/config.gz'
* So after you set up everything as described in the android.com page in ubuntu :
- mkdir x10
- copy the kernel sources and config.gz to the x10 folder
- gunzip X10_Donut_100325_01.tar.gz
- tar -xvf X10_Donut_100325_01.tar
- go to the kernel directory in the X10_Donut_100325_01 folder
- gunzip config.gz
- rename it to .config and move it to the kernel folder (mv config X10_Donut_100325_01/esheep_linux/LINUX/android/kernel/.config)
- make ARCH=arm CROSS_COMPILE=path-to-git-repo/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi- menuconfig to choose what to compile as module
- make ARCH=arm CROSS_COMPILE=path-to-git-repo/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi- modules
'path-to-git-rep' is the folder where your placed your git repository files
a long time after this modules are compiled from source !
* I know usb host mode was already made for nexus one :
http://sven.killig.de/android/N1/2.2/usb_host/
So I looked in the Xperia kernel config and noticed usb-host was compiled with the current kernel.
I compiled the sources and added kernel modules as an attached file.
Unluckily I don't have a Powered USB 2.0 hub providing its power to the upstream port and a female usb connector to mini-usb so I cannot test if my kernel module is correctly compiled.
So if someone has this hardware please :
- copy those attached files to sdcard then
- adb shell
- su to get root
- 'busybox insmod /sdcard/usb-storage.ko'
- 'busybox lsmod' to check if module is loaded
- plug the usb hub to your X10
- plug an usb stick
- ' busybox dmesg | busybox tail' to get more infos and check if the stick is detected, if yes tell me
I also compiled the usb-serial modules so if someone has an Arduino board you may plug it to your X10 now
Of course I have no guarantee this will work (this is my first cross compiling!) so feedback is welcome !
Also my tutorial is not very great, but I hope it may help few people here.
niiiiiceee what about smb module so we can mount stuff from network video streaming over wifi here we come
thor2002ro said:
niiiiiceee what about smb module so we can mount stuff from network video streaming over wifi here we come
Click to expand...
Click to collapse
if someone tells me my compiled modules work, I will compile what's possible (as some modules depend on how kernel was compiled).
it's working !!!!!!!!!!!!!!!!!
I just compiled the samba cifs kernel module, installed and mounted it !
Now I'm seeing all my files shared on the computer
The attached file is the kernel module managing samba :
So you need to follow these steps :
- adb shell
- su
- busybox insmod /sdcard/modules/cifs.ko
- mkdir /data/local/share
- mount -t cifs -o username="myuser",password="mypass" //192.168.0.1/files /data/local/share
It will be nice if you make it work the other way around.
To share the phone sdcard
THANK YOUUUU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Guess i have to start making mounting scripts
tuxStyle said:
It will be nice if you make it work the other way around.
To share the phone sdcard
Click to expand...
Click to collapse
that is not module related....
making modules for this kernel is actually a big deal we can add more functionality to the kernel
thor2002ro said:
that is not module related....
making modules for this kernel is actually a big deal we can add more functionality to the kernel
Click to expand...
Click to collapse
I know don't worry.
The idea was to use cross-compiling to compile samba for android
By the way: tot asa scumpi sunt aia de la Orange?
Nice work!
Is USB Host also on the cards, as well as overclocking?
instigator008 said:
Nice work!
Is USB Host also on the cards, as well as overclocking?
Click to expand...
Click to collapse
usb host is on first post but as i don't have a female usb to mini usb cable i cannot test it myself...
about overclocking i have no idea what's linked to it in kernel.
tuxStyle said:
I know don't worry.
The idea was to use cross-compiling to compile samba for android
By the way: tot asa scumpi sunt aia de la Orange?
Click to expand...
Click to collapse
samba is pretty heavy duty stuff... i think running it will drain battery like crazy...
maybe a http app that will share the phone or a ftp will be more light... on the cpu load...
RE By the way: nu .... am dat 150 euro pe tel
alx5962 said:
usb host is on first post but as i don't have a female usb to mini usb cable i cannot test it myself...
about overclocking i have no idea what's linked to it in kernel.
Click to expand...
Click to collapse
http://code.google.com/p/milestone-overclock/wiki/Disassembly
It probably won't work without some work though.
More relevant stuff:
http://forum.xda-developers.com/showthread.php?t=620081
X10_Donut_100325_01/esheep_linux/LINUX/android/kernel/arch/arm/mach-msm/acpuclock-8x50.c
Anyone up for the task?
Ive been looking through the x10 sources trying to get channel 13 wireless working. X10 uses ar6000 atheros driver which is supposed to get allowed wireless channels from the system locale. I think SE borked it and locked it to just 11 channels. Having a tough time finding out how though.
Anyone else have any ideas? I dont like it that SE just decided we dont need ch 13 and 14 even if you are in a country that allows them. Does anyone have a japanese x10 that they can verify broken ch13 and 14 with?
Oh and if it does work on the japanese x10, can you send your ar6000.ko wmiconfig and wpa_supplicant binaries over so i can try them?
Cheers
Frank
Sent from my X10i using XDA App
@op:
Can you try this ?
http://android.modaco.com/index.php?s=&showtopic=305509&view=findpost&p=1235768
We will know once and for all if the multitouch on X10 is hardware or software limitation.
tuxStyle said:
@op:
Can you try this ?
http://android.modaco.com/index.php?s=&showtopic=305509&view=findpost&p=1235768
We will know once and for all if the multitouch on X10 is hardware or software limitation.
Click to expand...
Click to collapse
We can't completely do this, as we can't flash unsigned stuff or boot into a custom kernel yet, therefore, we can't finish all of the steps.
Guys, could someone please compile tun.ko (CONFIG_TUN=m)? For vpnc and openvpn.
I could get myself to do it next week, but since some of you already have the setup...
Thanks a lot!
here comes :
- tun module
- ntfs module
I successfully installed as modules both of them on my xperia
alx5962 said:
here comes :
- tun module
- ntfs module
I successfully installed as modules both of them on my xperia
Click to expand...
Click to collapse
Thank you!!!
tun.ko loads fine, but get-a-robot-vpnc doesnt want to connect right off the bat. I'm sure I'll figure out why a little later.
Thanks again.
'dmesg' command is very useful to check problems
hey, nice work.
what about the netfilter modules to run wifi tether?
that would be great.
what kernel is needed for this modules?
i have the 023 firmeware, is this one ok?
greetz

USB OTG in KA6 Rom

Before installing KA ROM from krabappel2548, in my NEO I had the stock Gingerbread ROM from SE (.42). With that ROM was possible, using an app in the market (USBOTG Storage Manager for Arc), use the USB-OTG in order to mount USB sticks. Unfortunately with the good krabappel2548’s ROM I was not able to use this useful feature (I had bought for 17 € the USB OTG the Nokia N8) so I decided to use an old guide DooMLoRD "[MODULES] [ARC] [NEO ] [FW: 4.0.A.2.368] {USB-OTG Storage, Keyboard & Mouse}" to use this even in this great ROM.
For all those who have a USB OTG cable and a Rooted Xperia is a very simple operation:
- Download the module usb-storage.ko from the thread of DooMLoRD
- Copy the module /system/lib/modules (with root explorer)
- Download and install ModuleLoader release.apk from “[APP] [2.2 +] Module Loader 1.1” thread
- Open ModuleLoader, open System Modules, select usb-storage.ko, select “Save selection”
- Google and download from the net “Q5 USB memory manager” and install it.
Now you can connect a USB flash memory, opening Q5 memory manager and mount the disk selecting the correct block device (/sdX) and tap on “Mount File System”.
Sometimes, I don’t know why, Q5 USB memory manager does not create, its own, the /usb_drive folder and you must create it manually.
ps. I'd like krabappel2548 would include everything in your next ROM...
I don't think those modules are compatible with the ROM
Wait for a while krabappel2548 will find a fix
Did this method correctly worked ? Hope it comes in future ka releases..
Sent from my MT15i using Tapatalk
I have personnaly tested my method, usb-storage.ko is compatible with KA7 also (I had copied numerous files from a USB stik to my phone), but this method is a little complicated and I would prefer USB OTG is included in the rom.
As an alternative method (not using ModuleLoader) I tried to create a script in /etc/init.d, something like:
busybox insmod usb-storege.ko
cd /
mkdir usb-drive
chmod 777 usb-drive
but does not seems to work ...

Full NTFS Read Write support for Xperia 2011 devices! [IMP UPDATE]

Noob Friendly section
---------------------------------------------------------------------------------------------
Warning: I will take no responsibility for data loss or corruption that may occur on NTFS drives, though ntfs-3g has been known to be safe.
Steps to get NTFS full read-write working:
1. Install attached .zip via recovery (or push the file )
2. Reboot
3. To mount OTG drives, use the script attached with "Script Manager" app (run as root)
(Even NTFS microsd cards can be mounted with minor changes)
4. To unmount, just press "Unmount" in USB OTG helper
This will be built in USB OTG helper app soon!
Technical section
---------------------------------------------------------------------------------------------
As the ntfs driver in linux 2.6 kernel does not have write support, the only feasible way was GPL licenced ntfs-3g
Steps:
1. Fuse support (fuse.ko) was compiled from SONY Xperia ICS sources (4.1.B.0.431) as module
2. The ntfs-3g module was compiled with codesourcery toolchain (arm-none-linux-gnueabi)
Code:
./configure --enable-really-static -host=arm-none-linux-gnueabi
make
ntfs-3g: Main site | More details | Release History
NTFS Utils
NTFS Utils reference:
NTFS UTILITIES
==============
The ntfsprogs includes utilities for doing all required tasks to NTFS
partitions. In general, just run a utility without any command line
options to display the version number and usage syntax.
ntfsfix - Attempt to fix an NTFS partition and force Windows to check NTFS.
mkntfs - Format a partition with the NTFS filesystem.
ntfslabel - Display/change the label of an NTFS partition.
ntfsundelete - Recover deleted files from an NTFS volume.
ntfsresize - Resize NTFS volumes.
ntfsclone - Efficiently create/restore an image of an NTFS partition.
ntfscluster - Locate the owner of any given sector or cluster on an NTFS partition.
ntfsinfo - Show some information about an NTFS partition or one of the files or directories within it.
ntfsls - List information about files in a directory residing on an NTFS partition.
ntfscat - Concatenate files and print their contents on the standard output.
ntfscp - Overwrite files on an NTFS partition.
Click to expand...
Click to collapse
Thanks
Thanks, Shardul
i wish you can do something for my PlayBook too
i need to use ntfs sd card in my WT19i, What all i need to do? i am using kamarush kernel v3.0
Support for 2012 line possible?
Thanks for your efforts, Shardul, great job! Is there any chance this will be made available for the 2012 Xperia line? I'd love to have it for my Xperia GO, but I'm afraid I'm not able to compile it myself.
Lebenita said:
Thanks for your efforts, Shardul, great job! Is there any chance this will be made available for the 2012 Xperia line? I'd love to have it for my Xperia GO, but I'm afraid I'm not able to compile it myself.
Click to expand...
Click to collapse
Should work by itself, you may need to compile the fuse driver..
shardul_seth said:
you may need to compile the fuse driver..
Click to expand...
Click to collapse
That's exactly the problem. With the driver compiled for the 2011 line it doesn't work, and I haven't yet (not even remotely) figured out how to compile it. I'll try to read up on it. Do you have any suggestions on where to start?
this thread seems old, but i have to ask a question.. probably the OP is till supporting this.
hurm, all this while i have use "stickmount" from the playstore it mounts all drives i attached to it automatically, no mount point creation or whatsoever. if use this ntfs tweak and install it will it work with stickmount?
urra901109 said:
this thread seems old, but i have to ask a question.. probably the OP is till supporting this.
hurm, all this while i have use "stickmount" from the playstore it mounts all drives i attached to it automatically, no mount point creation or whatsoever. if use this ntfs tweak and install it will it work with stickmount?
Click to expand...
Click to collapse
I may be wrong but I think it won't unless stick mount is programmed to use ntfs 3g which ,I dont think it is programmed for, as android devices don't support ntfs natively.
Don't forget to thank me if I helped
Sent for my MT15i using XDA app.
sorry for asking this, what does it really do?
berceniqgil said:
sorry for asking this, what does it really do?
Click to expand...
Click to collapse
It enables write support for ntfs formatted drives on your android device.Originally it supported only read through ntfs 2g.
Don't forget to thank me if I helped
Sent for my MT15i using XDA app.

Kernel Modules for Xperia 2011 GB v4.0.2.A.0.58: fuse.ko, usb-storage, cifs, tun, ..

Information and Modules description
I was in the need to add some missing kernel modules to my Xperia Mini Pro sk17i with v4.0.2.A.0.58, but I could only find modules compiled form ICS sources, so I decided to build them myself.
All modules have been compiled from official sony Xperia v4.0.2.A.0.58 kernel sources, using Android NDK r5, and they should be fine with any GB based Xperia 2011 device (with that kernel version at least).
This is the list of modules, with some interesting programs using them:
fuse.ko: Cryptonite (used to create encrypted EncFS or Truecrypt volumes, adds support to mount drives so that are visibile to the whole Android system. Note: Cryptonite is not currently able to load the module automatically, you need to load it from Terminal Emulator..se more below)
usb-storage.ko, nls_utf8.ko, ntfs.ko (compiled with write support, currently untested): USB OTG Helper (used to mount external USB drives with USB On The Go cables).
cifs.ko, slow-work.ko, md4.ko: CifsManager (used to mount network shares)
ext4.ko, jbd2.ko: if you wish to use the EXT4 filesystem
tun.ko: needed by VPN clients, like OpenVPN or DroidVPN
Installation Instructions
Attached to this post you will find a ZIP that can be used along with CWM Recovery to install the modules in system.
Download the module, put it inside you SD card, reboot your phone in CWM (which you can install with the Xperia CWM Auto-Installer) and select install zip from sdcard, and browsed to the ZIP. Reboot your phone when install finishes.
Loading Modules
No module is automatically loaded at system startup: this saves your memory and battery (some of those modules are known to drain your battery if always loaded).
To manually load a module you have to open the Android Terminal Emulator and tap:
Code:
su
insmod /system/lib/modules/MODULENAME.ko
where MODULENAME is the name of the module you want to load.
Other useful commands:
Code:
lsmod
to see currently running commands
Code:
rmmod MODULENAME.ko
to unload a module.
If you wish to manually load a module at phone startup you should use init.rd or any other method (?) to run custom scripts at startup.
Load Order
Some modules need to be loaded in a specific order:
slow-work.ko must be loaded before cisf.ko
jbd2.ko must be loaded before ext4.ko
Other Firmware Versions
I've released the same package for other firmware versions, click on the firmware version to go to the specific thread:
ICS v4.1.B.0.587 Kernel Modules package by zxp
Changes
v2 - 2012.07.19
===========
- customized, built and added slow-work.ko, which is needed to load cifs.ko
- added jbd2.ko, which is needed to load ext4.ko
v1 - 2012.07.12
===========
- First release
Thanks for this..
Fuse, and the rest as required, are automatically loaded as required by USB OTG Helper if found in /system/lib/modules.
shardul_seth said:
Thanks for this..
Fuse, and the rest as required, are automatically loaded as required by USB OTG Helper if found in /system/lib/modules.
Click to expand...
Click to collapse
Yes, the same applies to CifsManager, even if it requires some fiddling in options, while your USB OTG Helper does it automagically...by the way, it would be really nice of you if you could add the same auto-load code to Cryptonite, which is open source somewhat related to your work! :good:
zxp said:
Yes, the same applies to CifsManager, even if it requires some fiddling in options, while your USB OTG Helper does it automagically...by the way, it would be really nice of you if you could add the same auto-load code to Cryptonite, which is open source somewhat related to your work! :good:
Click to expand...
Click to collapse
I have my own encryption script, and I am happy with it.. So no fiddling with cryptonite for me
Updated both install and uninstall packages to fix cifs.ko and ext4.ko that couldn't be loaded because of missing dependencies (slow-work.ko and jbd2.ko).
You can find the updated zips in the first post.
where i can find the ext4.ko module for Xperia 2011 ICS?, i can't find it nowhere, can you help me with it?
sorry for my bad english
lightdesiny said:
where i can find the ext4.ko module for Xperia 2011 ICS?, i can't find it nowhere, can you help me with it?
sorry for my bad english
Click to expand...
Click to collapse
I don't know where to find it, I don't have upgraded to ICS yet, sorry.
If you are sure that no one have released it I may build a package similar to this one once I upgrade to ICS, in the coming weeks. Keep an eye on this forum :cyclops:
hi when I type the cod say me that not found that I istall it with recovery please help me
my phone xperia ray
my rome is 2.3.4 - 4.0.2.A.0.58 GB
hadics1 said:
hi when I type the cod say me that not found that I istall it with recovery please help me
my phone xperia ray
my rome is 2.3.4 - 4.0.2.A.0.58 GB
Click to expand...
Click to collapse
Don't complain if none will answer you.
hadics1 said:
hi when I type the cod say me that not found that I istall it with recovery please help me
my phone xperia ray
my rome is 2.3.4 - 4.0.2.A.0.58 GB
Click to expand...
Click to collapse
Can you please explain your problem better?
I can't understand your post.
zxp said:
lightdesiny said:
where i can find the ext4.ko module for Xperia 2011 ICS?, i can't find it nowhere, can you help me with it?
sorry for my bad english
Click to expand...
Click to collapse
I don't know where to find it, I don't have upgraded to ICS yet, sorry.
If you are sure that no one have released it I may build a package similar to this one once I upgrade to ICS, in the coming weeks. Keep an eye on this forum :cyclops:
Click to expand...
Click to collapse
I've just released the same package as this for Xperia ICS v4.1.B.0.587, you can now use ext4 on the latest ICS firmware
This is great
Sent from my WT19i
mount nfs share works with busybox - but won't with cifsmanager
Hello folks,
as this is my first post here, i'd like to thank all of the contributors for the excellent Guides and Howtos on this platform. Based on the instructions in this forums i was able to root my Xperia Mini Pro sk17i and greatly expand my devices applicability. Thanks to all of you!
Sorry, that the post got that long - hope that someone is still so kind to read and answer to it. I just wanted to be as precise as possible in the desription of my problem.
And here it comes. As the title of my post already implies, my ultimate goal is to mount nfs shares of my NAS and Router in my private network as user-friendly and simple as possible.
So far, I tried the following to achieve this goal:
Install busybox to generally expand linux capabilities of the device
install the Android Terminal emulator also from Google play
as previuosly mentioned, the device is rooted and Super user capabilities are set
created a mount-point for the nfs share
installed cifsmanager for mounting/unmounting with one click later
I tried to manually mount the share in the terminal. Without busybox i had no luck, but actually that was not sursprising at all. With busybox however, it worked instantly - what indeed surprised me, because this thread here implied somehow the kernel, as is, wasn't even capable to do it without additional modules. I could easily browse the share with ES file manager etc. and make use of my shares. So far, so great. :good:
But opening a terminal, get super user rights and mount manually by typing the whole sequence of
Code:
busybox mount -o nolock,vers=3 -t nfs 192.xxx.xxx.x.x:/my/nfs/share /mnt/MyLocalFolder
is not what you'd call simple or user-friendly at all.
So i aimed to improve the mount procedure with cifsmanager, but I always fail. And do no not understand what i am doing wrong. Initially i tried it without further kernel modules, encouraged by the success i had with busybox. But i always got a "Invalid argument" reply.
During the troubleshooting I stumbled upon this post, and thx to zxp's files, i managed to add the kernel modules to my /system/lib/modules folder (and yes, I have the exact same original/stock GB kernel version they are intended for).
But still no luck - even after i added slow-work.ko to the list of modules loaded by cifsmanager in the properties (placed before cifs.ko as it was suggested by another thread found somewhere in the forum). The info tab states the modules are loaded, but i still receive the same crooked "Invalid argument" message. What the heck am I doing wrong?
Seems to me there is some sort of general syntax issue - here is what info I give the app:
Share: 192.xxx.xxx.x.x:/my/nfs/share
Mount Point: /mnt/MyLocalFolder (tested with and without the mount point prefix in properties)
User: guest (default - without it, it wont work,app description states it will be ignored for nfs shares anyway)
Pwd: left empty
Options:nolock, vers=3 (tested with and without these - but where generally considered essential in some threads + my shares are nfs_v3)
Does somebody have an idea what is going wrong and might point me in some useful direction?
Thanks and Cheers to you all,
Nix
Use script manager and create a script!
Nixblicker said:
Hello folks,
as this is my first post here, i'd like to thank all of the contributors for the excellent Guides and Howtos on this platform. Based on the instructions in this forums i was able to root my Xperia Mini Pro sk17i and greatly expand my devices applicability. Thanks to all of you!
Sorry, that the post got that long - hope that someone is still so kind to read and answer to it. I just wanted to be as precise as possible in the desription of my problem.
And here it comes. As the title of my post already implies, my ultimate goal is to mount nfs shares of my NAS and Router in my private network as user-friendly and simple as possible.
So far, I tried the following to achieve this goal:
Install busybox to generally expand linux capabilities of the device
install the Android Terminal emulator also from Google play
as previuosly mentioned, the device is rooted and Super user capabilities are set
created a mount-point for the nfs share
installed cifsmanager for mounting/unmounting with one click later
I tried to manually mount the share in the terminal. Without busybox i had no luck, but actually that was not sursprising at all. With busybox however, it worked instantly - what indeed surprised me, because this thread here implied somehow the kernel, as is, wasn't even capable to do it without additional modules. I could easily browse the share with ES file manager etc. and make use of my shares. So far, so great. :good:
But opening a terminal, get super user rights and mount manually by typing the whole sequence of
Code:
busybox mount -o nolock,vers=3 -t nfs 192.xxx.xxx.x.x:/my/nfs/share /mnt/MyLocalFolder
is not what you'd call simple or user-friendly at all.
So i aimed to improve the mount procedure with cifsmanager, but I always fail. And do no not understand what i am doing wrong. Initially i tried it without further kernel modules, encouraged by the success i had with busybox. But i always got a "Invalid argument" reply.
During the troubleshooting I stumbled upon this post, and thx to zxp's files, i managed to add the kernel modules to my /system/lib/modules folder (and yes, I have the exact same original/stock GB kernel version they are intended for).
But still no luck - even after i added slow-work.ko to the list of modules loaded by cifsmanager in the properties (placed before cifs.ko as it was suggested by another thread found somewhere in the forum). The info tab states the modules are loaded, but i still receive the same crooked "Invalid argument" message. What the heck am I doing wrong?
Seems to me there is some sort of general syntax issue - here is what info I give the app:
Share: 192.xxx.xxx.x.x:/my/nfs/share
Mount Point: /mnt/MyLocalFolder (tested with and without the mount point prefix in properties)
User: guest (default - without it, it wont work,app description states it will be ignored for nfs shares anyway)
Pwd: left empty
Options:nolock, vers=3 (tested with and without these - but where generally considered essential in some threads + my shares are nfs_v3)
Does somebody have an idea what is going wrong and might point me in some useful direction?
Thanks and Cheers to you all,
Nix
Click to expand...
Click to collapse
that works, but...
Well, yeah - that was an option. I already did, and it works with the busybx mount as stated.
But i would have to write another to mount another share, unmount them, and one to prevent ES file manager to somehow occupy the mount to make it busy before unmounting etc.
I hoped that cifsmanager would smooth and ease the mounting/unmounting.
Thank you for your suggestion, anyway!
Cheers, Nix
shardul_seth said:
Use script manager and create a script!
Click to expand...
Click to collapse

[HOW TO] Mount wireless HDD or network share as folder (just like local MicroSD)

Hi!
This was made possible by the great & powerful crpalmer, who has added the working CIFS support to his wonderful kernel.
So - now we can totally duplicate (and expand!) the functionality of the missing MicroSD slot on Droid DNA. Using this tutorial, you will be able to mount any network share as normal "local" folder, for example "External_SD", and use its content with ANY software, including stock music & video players, book readers, image viewers e.t.c.
Combine this with pocket WiFi-SD reader like this one or this one, or even the wireless HDD from Seagate, and the result will become, effectively, a smartphone with up to 1TB of internal (!) storage, accessible just like an ordinary MicroSD. Not to mention all the possibilities of shared drives at home...
So! You will need:
1) crpalmer kernel http://forum.xda-developers.com/showthread.php?t=2137293Version 2.0.38 or newer (it's Sense kernel)
2) Mount Manager from market (or just the Terminal)
3) Root & busybox, of course.
In two words, the terminal command for mounting shared resource looks like this:
Code:
busybox mount -t cifs //[COLOR=Lime]path[/COLOR]/[COLOR=Lime]folder[/COLOR]/ /storage/sdcard0/cifs/[COLOR=Lime]folder [/COLOR]-o ip=192.168.[COLOR=Lime]x[/COLOR].[COLOR=Lime]xx[/COLOR],unc=\\\\192.168.[COLOR=Lime]x[/COLOR].[COLOR=Lime]xx[/COLOR]\\[COLOR=Lime]folder[/COLOR],iocharset=utf8,noserverino,username=[COLOR=Lime]username[/COLOR],password=[COLOR=Lime]password[/COLOR]
You should give special attention to slashes - it took me A LOT of time to find the correct syntax. Also, note that "unc=" command accepts only IP, not the network path.
So, let's do some practical example; let's say, you have a Windows PC with the name "MyPC", where there's a shared folder named "GameOfThrones", and local IP of this PC is 192.168.1.3. You want to mount this folder as "Series" under "Video" on your Droid DNA's internal storage. (Don't forget, that Windows shares do not work unless your user account is password-protected).
Using terminal:
Code:
busybox mount -t cifs //[COLOR=Lime]MyPC[/COLOR]/[COLOR=Lime]GameOfThrones[/COLOR]/ /storage/sdcard0/[COLOR=Lime]Video[COLOR=Black]/[/COLOR]Series [/COLOR]-o ip=192.168.[COLOR=Lime]1[/COLOR].[COLOR=Lime]3[/COLOR],unc=\\\\192.168.[COLOR=Lime]1[/COLOR].[COLOR=Lime]3[/COLOR]\\[COLOR=Lime]GameOfThrones[/COLOR],iocharset=utf8,noserverino,username=[COLOR=Lime]username[/COLOR],password=[COLOR=Lime]password[/COLOR]
Using MountManager:
1) Create new mount
2) Topmost box: //MyPC/GameOfThrones/ (with ending slash!)
3) Second box: /storage/sdcard0/Video/Series (without ending slash!)
4) Mount type: cifs
5) User: username
6) file_mode: 0777
7) dir_mode: 0777
8) Password: password
(For every next option, press green + to add new option box if there isn't one already)
9) iocharset: utf8
10) unc: \\\\192.168.1.3\\GameOfThrones (use "\" slashes, NOT "/")
11) (enter just value, don't enter anything in "Name" box) : noserverino
Press OK and save configuration. Now you can enter Mount Manager options and check "Auto mount" to have your folder automatically available as soon as smartphone is started, or connects to WiFi e.t.c.
That's it
Best regards - Draco.
Been at this for over an hour... Keeps giving me message "No such device"... Any ideas? When entering local IP I use my PC's IP for both, correct? Or do I use the IP of my phone for one of them? I want to get this working and try it out over VPN. Thanks man.
Hi.
"No such device" means that CIFS module doesn't work. Do you have crpalmer's kernel version 2.0.38 or newer? What ROM have you installed? This method works only with crpalmer's kernel, which is made for Sense.
Drakosha said:
Hi.
"No such device" means that CIFS module doesn't work. Do you have crpalmer's kernel version 2.0.38 or newer? What ROM have you installed? This method works only with crpalmer's kernel, which is made for Sense.
Click to expand...
Click to collapse
Yes, I flashed 2.0.38. I'm running Newts 2.03, his 4/27 release. I flashed kernel via CWM, s-off obviously. Kernel shows correct when I test it through terminal. But last night I was trying your mount method using terminal emulator, and after sever no-go's, I ran the commands another several times via command prompt & adb shell. I am on a 10.20.x.x network if that makes any difference. I tried the commands with both WiFi on and off on my phone. I straight copied and pasted into cmd prompt, with edits only to ip address, computer name, and share. I didn't even touch storage/sdcard0/video/series (manually created the video/series before hand).
Oh, and obviously I changed username & password.
Sent from my HTC6435LVW using XDA Premium App
Hi.
Try installing Mount Manager from market and see if CIFS modules are loaded. ("green box" button to the right of toolbar). Do you have your phone & PC in the same network? Do you have firewall installed on your PC? Can you see your shared folder from another PC, for example notebook connected to the same WiFi as your phone?
If ALL of this works, try Mount Manager method from my post.
Here is what I ran: busybox mount -t cifs //Diamond/VirtualSD/ /storage/sdcard0/Video/Series -o ip=10.20.x.x,unc=\\\\10.20.x.x\\VirtualSD,iocharset=utf8,noserverino,username=xxxxxxxx,password=xxxxxxxx
I understand, but ANY terminal command makes sense only if CIFS modules are present & functional. Mount Manager can check that, and load modules if they aren't loaded at boot time.
Drakosha said:
I understand, but ANY terminal command makes sense only if CIFS modules are present & functional. Mount Manager can check that, and load modules if they aren't loaded at boot time.
Click to expand...
Click to collapse
Well there is my problem, no modules. What am I supposed to add?
There should be at least three modules present if you flashed crpalmer's kernel correctly - ntfs.ko, cifs.ko & bcmdhd.ko . You can try lo "force load" them using Mount Manager's settings. All three are (should be...) located in /system/lib/modules
If they are missing, than your ROM is probably not compatible with this kernel. Try NOS 2.0.3 - wonderful problem-free & ultrafast Sense 5 rom.
Drakosha said:
There should be at least three modules present if you flashed crpalmer's kernel correctly - ntfs.ko, cifs.ko & bcmdhd.ko . You can try lo "force load" them using Mount Manager's settings. All three are (should be...) located in /system/lib/modules
If they are missing, than your ROM is probably not compatible with this kernel. Try NOS 2.0.3 - wonderful problem-free & ultrafast Sense 5 rom.
Click to expand...
Click to collapse
That's the ROM I am running, I don't see those modules when I hit the "green box button, but I can try to load them via mount manager. I looked quickly and I see kifs.co, didn't check for the others. Are you saying if the Kernel flashed successfully those modules would load (show) in mount manager automatically?
Yes, they should. Use MountManager settings to load these three modules, check "Load modules at startup" & try mounting again, it should work. I use the same rom with the same kernel, and everything works.
Ok I'm on the road right now, I'll be back in front of a PC in about an hour and a half, I'll download kernel again and flash, see if modules load automatically, if not, force them to mount, and go from there. I'll let you know. Thanks for the help!
Sent from my HTC6435LVW using XDA Premium App
Here is what I just tried
Redownloaded Kernel
Booted to recovery, wiped cache & Devlik Cache
Flashed kernel zip
rebooted
checked mount manager - no modules loaded
"force loaded" the 3 modules
tried to mount and got error message: mount: mounting //Diamond/VirtualSD on /storage/sdcard0/Video/Series failed: Invalid Argument
I can access the shared drive from other computers on my network... Phone is on same network... UGGGHHHHH Should wifi be on the whole time or what? I've just left it on.
EDIT: GOT IT WORKING! Don't know what I did differently, but it works. This is great man thanx again. Now to try it over VPN...
Have you successfully gotten the HTC music app to recognize a mounted folder/music? If so where did you mount to? I can only get Google play music to see the files..
Sent from my HTC6435LVW using XDA Premium App
mcampos7 said:
Have you successfully gotten the HTC music app to recognize a mounted folder/music? If so where did you mount to? I can only get Google play music to see the files..
Sent from my HTC6435LVW using XDA Premium App
Click to expand...
Click to collapse
i had the same issue while on viperdna 1.3.5, i fixed the issue by moving all music files to /sdcard/Media and they should appear instantly in the music app now :]

Categories

Resources