Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mizch
Old
(Last edited by mizch; 3rd March 2011 at 09:28 PM.)
#1  
Senior Member - OP
Thanks Meter 52
Posts: 133
Join Date: Nov 2010
Default Mounting CIFS (Windows) shares on Froyo

Now that we have kernel sources for Froyo we can mount CIFS shares, e.g., shares from a computer running Windows or a Linux server. Unfortunately, it is not as simple as loading a cifs.ko module since the stock kernel lacks some prerequisites to run this module. We need to flash a new kernel which I've built. Flashing sounds more complicated as it is, as you will see.

This kernel should work for all Froyo ROMs. Apart from CIFS, this kernel has built-in support for ext4, so it should be suitable for coming developments, e.g., a more robust lagfix. It also features pre-rooted adb. The initramfs is the one from XXJPF. Modules for tun, fuse, and ext3 are also provided (see below).

Flashing a new kernel zImage will not change your settings, not remove installed apps, nor the like.

What you need:
==========
* Odin - http://www.multiupload.com/LFJRACWNQ2

* the .ops file - http://www.multiupload.com/SOMN2EWF0J. This is the usual one, so if you already have it, you don't need to re-download it.

* the zImage.tar from below.

Flashing:
======

Shut down your phone, then put your Galaxy 3 into download mode by pressing the Home key, Volume down, and Power, all at the same time. It will come up with a download screen. Connect it to your Windows PC. Start Odin. In Odin, select "One Package". Leave the other switches as they are. Select .ops file from above by clicking on "OPS". Select zImage.tar from below by clicking "One Package". Now press "Start".

A progress indicator in Odin and on your phone should show what's going on. After downloading, the phone will restart and run as usual. You should notice no difference.

Using CIFS Shares:
============

I recommend CIFSManager, available in the Android market and in this forum. Refer to the link in the sentence before this one for further reference.

Also available from xda is Mount Manager, which has also is merits as an alternative application. I didn't check it out but it sure looks promising.

Files:
====

You only need to download zImage.tar to mount CIFS shares. The modules.zip file below is provided for further needs (e.g., tun.ko if you want to run a VPN). There's (besides less important ones which were automatically built) ext3.ko, fuse.ko, jbd.ko, and tun.ko in modules.zip.
Attached Files
File Type: tar zImage.tar - [Click for QR Code] (4.11 MB, 278 views)
File Type: zip modules.zip - [Click for QR Code] (1.43 MB, 220 views)
 
psyckotic
Old
#2  
Junior Member
Thanks Meter 1
Posts: 11
Join Date: Dec 2010
Location: Bordeaux
With a hack from galaxy S forum, you can compile the cifs module (slow-work as module) and keep the samsung kernel.

Code:
su
insmod /path to your file/slow-work.ko
insmod /path to your file/cifs.ko
(the hack is about round_jiffies function to remove)

You can try ...
Attached Files
File Type: zip cifs.zip - [Click for QR Code] (113.1 KB, 119 views)
File Type: zip slow-work.zip - [Click for QR Code] (6.5 KB, 100 views)
 
kenblat
Old
#3  
Senior Member
Thanks Meter 33
Posts: 235
Join Date: Nov 2010
Quote:
Originally Posted by psyckotic View Post
With a hack from galaxy S forum, you can compile the cifs module (slow-work as module) and keep the samsung kernel.

Code:
su
insmod /path to your file/slow-work.ko
insmod /path to your file/cifs.ko
(the hack is about round_jiffies function to remove)

You can try ...
we do not need to insmod the slow-work.ko @ 2.1 but for froyo we need both?
 
Post Reply+
Tags
cifs, froyo, kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
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...