[MODULES] Cifs.ko and md4.ko for desire X - HTC Desire X

CIFS.ko
MD4.ko
With the compiled modules we will get the well-known great network features:
cifs.ko & md4.ko when loaded allow cifs (aka samba, windows) network shares to be mounted and viewable as local media.
Then we could mount-points to our samba-shared NAS ... Perfect for our DX and all music lovers with music on a smb-share.
Click to expand...
Click to collapse
These are compiled with my prototype kernel.
@Steffen_2009 here you go bro

prototype-U said:
CIFS.ko
MD4.ko
These are compiled with my prototype kernel.
@Steffen_2009 here you go bro
Click to expand...
Click to collapse
Cool! So, what command do we use to mount the shares? mount -t cifs?
Sent from my Nexus 7 using Tapatalk 4

Stereo8 said:
Cool! So, what command do we use to mount the shares? mount -t cifs?
Click to expand...
Click to collapse
I processed the insmod (from my low-level point of knowledgle) with the app mountManager and cifsManager.
From the apps I get the feedback "share sucessfully mounted"
But ...
opening mount-point results in an empty folder.
I can not navigate or see my samba-shared path or folder.
When opening the mount-point in ESfileexplorer from mountManager the folder is empty,
returning to mountManager I see a grey mountPoint.
Has mountManager lost the mount point ?
Does someone have an idea how to process it sucessfully ?
Something about permissions ?
What is a possible mount-point path, is
/storage/sdcard0/cifs/music
Click to expand...
Click to collapse
ok ?
Sorry for posting similar things two times ...
Once I thought the modules are only for the mySENSEDX+RC3.0,
but perhaps they are possible for all similar ROMs.
Anyway ... the compiling from prototype-U is the best thing for my Desire X I have seen for many weeks,
(thanks again), so lets get the samba-shares work sucessfully.

Any ReiserFS support for kernel models ?
I can't find any source code so far ...
Really want that so
Sent from my HTC Desire X using xda premium

Mounting with the compiled cifs.ko not possible yet
@prototype-U,
today I spent about 4 hours with the new modules for our D :cyclops:X.
I was testing the new modules with cmds in the DX terminal, app CIFSManager and MountManger.
The insmod was sucessfully and works without problems.
But the mount-command to the share
SU
Click to expand...
Click to collapse
mount -t cifs //192.168.x.x. /storage/sdcard0/cifs/media
Click to expand...
Click to collapse
results with "mount: invalid argument"
Perhpas I am making a mistake here.
So also the mountManager isn't processing sucessfully :crying:.
The mount smb:// on my desire x with the app mountmanager results in "Failed to connect to server"
ESfileManager has no problem finding the samba-share (with no pw) ...
Do the compiled modules work on your X ?
How do you mount a samba-share with the new compiled modules then ?
Really want to know how this has to be done...

Steffen_2009 said:
@prototype-U,
today I spent about 4 hours with the new modules for our D :cyclops:X.
I was testing the new modules with cmds in the DX terminal, app CIFSManager and MountManger.
The insmod was sucessfully and works without problems.
But the mount-command to the share
results with "mount: invalid argument"
Perhpas I am making a mistake here.
So also the mountManager isn't processing sucessfully :crying:.
The mount smb:// on my desire x with the app mountmanager results in "Failed to connect to server"
ESfileManager has no problem finding the samba-share (with no pw) ...
Do the compiled modules work on your X ?
How do you mount a samba-share with the new compiled modules then ?
Really want to know how this has to be done...
Click to expand...
Click to collapse
Can you try also fulmix.Kernel? I added CIFS support, please test.
xpirt

Steffen_2009 said:
@prototype-U,
today I spent about 4 hours with the new modules for our D :cyclops:X.
I was testing the new modules with cmds in the DX terminal, app CIFSManager and MountManger.
The insmod was sucessfully and works without problems.
But the mount-command to the share
results with "mount: invalid argument"
Perhpas I am making a mistake here.
So also the mountManager isn't processing sucessfully :crying:.
The mount smb:// on my desire x with the app mountmanager results in "Failed to connect to server"
ESfileManager has no problem finding the samba-share (with no pw) ...
Do the compiled modules work on your X ?
How do you mount a samba-share with the new compiled modules then ?
Really want to know how this has to be done...
Click to expand...
Click to collapse
I will release a kernel which can actually run cifs.ko. I think its not working because the kernel you are using doesn't expect cifs running on it. But my logic seems wrong so m nt so sure abt it
Can you tell me the procedure of testing it?

prototype-U said:
I will release a kernel which can actually run cifs.ko. I think its not working because the kernel you are using doesn't expect cifs running on it. But my logic seems wrong so m nt so sure abt it
Can you tell me the procedure of testing it?
Click to expand...
Click to collapse
Yes, prototype-U, it seems to inter-act with the kernel.
Procedure of testing.
There are three scenarios of testing.
1. test with app MountManager
2. test with app CIFSManager
3. cmd-test with commands in terminal
Details to 1.
In the app (from play store market) it is possible to define serveral details.
Details can be:
which modules
when process loading (start of app/boot/not at all)
path to cifs.ko and md4.ko on the DX
After definition of the details, checking of loaded modules is possible.
If no cifs.ko is loaded, processing further mounting steps have little chances
Then processing the mount to an external stick/HDD running a samba-share
Last step is checking the mount point with different file managers like ESfileExplorer and totalCommander.
If okay the path should be also usable in any app.
Details to 2.
Similar to 1. ,
but is not having detailed check-possibilies like loaded module-checking.
Is to verify the result of 1.
Details to 3.
"classic" cmds in a terminal
SU
Click to expand...
Click to collapse
then to load from cmd line
insmod /path/to/cifs.ko
insmod /path/to/md4.ko
Click to expand...
Click to collapse
Last
mount -t cifs //IPaddress/path/to/share/on/server /path/where/you/want/to/access/it/on/the/phone
or
mount -t cifs -o username=USERNAME,password=PASSWD //IPaddress/path/to/share/on/server /path/where/you/want/to/access/it/on/your/phone
Click to expand...
Click to collapse
A kernel with working integrated Samba-access for our Desire X's would be a gorgeous dream !
Hi xpirt,
thanks for your information about fulmix kernel.
I am not 100% sure if I processed everything correctly.
So I did it three times with two different combinations
Can you try also fulmix.Kernel?
Click to expand...
Click to collapse
Yes, ... I came from [ROM] mySENSEdx+ RC3.0 (JB | Sense 4+).
Today I installed also the breathless-theme and a battery-mod.
Then I flased the fulmix#2 kernel-image on that.
added CIFS support, please test.
Click to expand...
Click to collapse
Yes ... I love to be the first to try it
Result.
There was no loaded cifs.ko and md4.ko in mountManager.
So it seems to be not working yet.
Not possible (for me) to mount with cifsManager, not possible to mount with mountManager
Then I tried to load the files from prototype-U with MountManager.
Only loading the md4 was possible, not the cifs.ko any more.
Then flashed the recovery of mySENSE without breathless-theme and without battery-mod.
Then I tried again to load the files from prototype-U with MountManager.
Loading was possible again.
But mounting a share didn't process sucessfully yet.
So it is really gorgeous news to read of a kernel with integtrated cifs.ko

Try using those modules on my latest kernel.

Where can i find your latest Kernel?
Sent from my HTC Desire X using xda app-developers app

Steffen_2009 said:
Where can i find your latest Kernel?
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
in my thread
original dev section

Thanks
... Is
http://forum.xda-developers.com/showthread.php?p=44641531 with built 55 the right Kernel?
I am not really sure... Sorry
Sent from my HTC Desire X using xda app-developers app

Steffen_2009 said:
Thanks
... Is
http://forum.xda-developers.com/showthread.php?p=44641531 with built 55 the right Kernel?
I am not really sure... Sorry
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Yep, that's correct

I flashed built #55 kernal on [ROM] [17.07.13] mySENSEdx+ RC3.0 and tested with modules from
http://forum.xda-developers.com/showthread.php?p=45132569#post45132569
Result:
Now I am able to load cifs.ko and md4ko sucessfully again.
Mounting a samba-share is still not possible (for me) using cifsMansger or Mountmanager
error:
Mount:Invalid argument
What can we do , is someone able to process a sucessfull samba-mount ?

Steffen_2009 said:
I flashed built #55 kernal on [ROM] [17.07.13] mySENSEdx+ RC3.0 and tested with modules from
http://forum.xda-developers.com/showthread.php?p=45132569#post45132569
Result:
Now I am able to load cifs.ko and md4ko sucessfully again.
Mounting a samba-share is still not possible (for me) using cifsMansger or Mountmanager
error:
Mount:Invalid argument
What can we do , is someone able to process a sucessfull samba-mount ?
Click to expand...
Click to collapse
You've used it on any other phone? Does it work there?

Sorry, i just have my HTC dx to test it.
If we are compiling a kernel isn't it important to spezify for which mobile?
Sent from my HTC Desire X using xda app-developers app

Steffen_2009 said:
Sorry, i just have my HTC dx to test it.
If we are compiling a kernel isn't it important to spezify for which mobile?
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
no m saying.. have u used this feature on some other phone? Maybe the way you are doing is wrong? Just wanted to check if you know what u are doing..

You are sure your samba share is working correctly? When I have time, I'll try it myself.

Maybe the way you are doing is wrong? Just wanted to check if you know what u are doing..
Click to expand...
Click to collapse
dansou901 said:
You are sure your samba share is working correctly?
Click to expand...
Click to collapse
This samba-share is accessed from my ubuntu-pc and from my windowsXP-PC without any problems.
With ESfile explorer it is also possible to access any files on the smb with DX phone.
Of course the way I do it could be wrong. I am not 100% sure ....
want to learn, if I make a mistake somewhere.
When I have time, I'll try it myself
Click to expand...
Click to collapse
That would be nice and really a great help :good:
... at the moment I feel something like "being alone out there"

Hi prototype-U,
I am still hoping you as a really talented guy is
able to create a working samba-share access for our dx.
These are compiled with my prototype kernel.
@Steffen_2009 here you go bro
Click to expand...
Click to collapse
Is it possible to find the missing point ?
Has someone managed to access ROM/kernel native a smb device ?

Related

[Q] cifs for cyanogenmod

Is there any reason why something as useful as CIFS is not so famous on android?
Is there any alternative?
I would like to listen music or watch movies shared on my LAN from my HTC Desire by streaming the files.
I'm searching for cifs for cyanogenmod on my HTC Desire, but it seems there are very few versions and not anything for the latest cyanogenmod.
I'm not sure I understand what you mean?
On Cyanogenmod, the cifs module is located at
/system/lib/modules/cifs.ko
and can be loaded with
CifsManager
or
Code:
insmod /system/lib/modules/cifs.ko
mount -t cifs -o username=[user],password=[password] //path/to/share /mnt/pt
crachel said:
I'm not sure I understand what you mean?
On Cyanogenmod, the cifs module is located at
/system/lib/modules/cifs.ko
...
Click to expand...
Click to collapse
Code:
# ls /system/lib/modules
bcm4329.ko
I have the latest cm (cyanogenmod 7.1).
I also did a find as super user and didn't find any 'cifs.ko'
I have an HTC Desire.
Did you install a custom kernel?
If not, I didn't realize that cifs support varied across CM devices. Try installing a custom kernel that offers cifs support.
crachel said:
Did you install a custom kernel?
Click to expand...
Click to collapse
no
crachel said:
If not, I didn't realize that cifs support varied across CM devices. Try installing a custom kernel that offers cifs support.
Click to expand...
Click to collapse
I would need some homework...
ok, in fact CIFS is compiled into the kernel, so the module will not appear in the system tree. I managed to get cifs manager working. It all works fine.
heavytull said:
ok, in fact CIFS is compiled into the kernel, so the module will not appear in the system tree. I managed to get cifs manager working. It all works fine.
Click to expand...
Click to collapse
Could you provide details on what you did?
any dev can build for galaxy young ??

[CDMA][GSM] Help compile tun.ko without config.gz from the phone?

Hello,
I'm interested in compiling the tun.ko driver necessary for OpenVPN. However, I got stuck when trying to pull the config.gz file from /proc/ since Motorola didn't include it as an option.
I'm not great with all this and was just following a guide. Has anyone created a working .config file that I could use instead?
Thanks
Isn't any config included?
have you tried make oldconfig?
pajn said:
Isn't any config included?
have you tried make oldconfig?
Click to expand...
Click to collapse
I thought you needed the config.gz file (and the resultant .config) pulled from the phone to use make oldconfig?
Yes. But there should be one included or else we have to complain to Motorola.
The config is included in the binary so it have to be provided together with the source to follow GPL
The default configuration in the kernel source should be okay.
I'll compile that later for you
kholk said:
The default configuration in the kernel source should be okay.
I'll compile that later for you
Click to expand...
Click to collapse
Awesome thank you.
Emh, as the default kernel configuration says, the TUN/TAP interface driver is already included into the kernel. You don't need a module.
kholk said:
Emh, as the default kernel configuration says, the TUN/TAP interface driver is already included into the kernel. You don't need a module.
Click to expand...
Click to collapse
So you're saying even though I don't see tun.ko listed in the filesystem that I should be able to initiate TUN when configuring OpenVPN?
Thanks
try it,it working for my razr.
Kernal 2.6.35.7
View attachment tun_gb.ko.zip
Yes you're able to create a TUN/TAP device without tun.ko.
kholk said:
Yes you're able to create a TUN/TAP device without tun.ko.
Click to expand...
Click to collapse
My apologies. On my last phone I had to have a tun.ko module. My understanding after searching these past few days is most phones require it to be built. Is the RAZR different by having it built into the stock kernel?
By the way, finally got OpenVPN working today.
Thanks
Yup, it seems Moto wanted to include support for VPNs on stock!
What does this do? Sorry not familiar with this
Sent from my DROID RAZR using xda premium
blkghost22 said:
What does this do? Sorry not familiar with this
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
It lets you setup a VPN connection from your phone to another server. Basically, your phone encrypts all your data before going to Verizon, etc. then it arrives at (in my situation) my home router which decrypts it then sends the request out to the internet, and back to my phone encrypted and so on.
It's useful for:
1) I can access my home network from anywhere as if I were at home connected to my router over Wifi
2) If I'm out at a hotel or something and I want to use the Wifi to access a bank account or something without worrying about someone else on the network stealing my password.
Just to name a few.
Has anyone gotten cisco annyconnect working on the razr?

[SOLVED] Logcat not working

Hi there,
As I am developing my first apps for Android, I've run into an issue that bothers me. When trying to logcat (via terminal or Eclipse), this is the output I get:
Unable to open log device '/dev/log/main': No such file or directory
Click to expand...
Click to collapse
I've googled, but found solution only for Huawei devices (getting into service menu and activating logging) but it doesn't work with my P500. Everything (deploying , debugging) works just fine. BTW I am using NightlyFourE V4.1 ROM (that's Cyanogenmod 2.3.7) and linux workstation. Any help appreciated!
Sent from my LG-P500 using Tapatalk
Look for a tweak the same as that on the /system/etc/init.d folder
rm -r dev/log/main
or something similar to that and delete it..
Sent from my LG-P500 using Tapatalk
Coffei said:
Hi there,
As I am developing my first apps for Android, I've run into an issue that bothers me. When trying to logcat (via terminal or Eclipse), this is the output I get:
I've googled, but found solution only for Huawei devices (getting into service menu and activating logging) but it doesn't work with my P500. Everything (deploying , debugging) works just fine. BTW I am using NightlyFourE V4.1 ROM (that's Cyanogenmod 2.3.7) and linux workstation. Any help appreciated!
Click to expand...
Click to collapse
next you should use stock roms for testing and developing applications not modded ones
dnle71 said:
Look for a tweak the same as that on the /system/etc/init.d folder
rm -r dev/log/main
or something similar to that and delete it..
Click to expand...
Click to collapse
Thanks a bunch man! Worked like a charm..
trettet said:
next you should use stock roms for testing and developing applications not modded ones
Click to expand...
Click to collapse
I guess I should, but as long as it's my daily-driver I think I will prefer custom ROMs (i'm definitely not full-time developer, just a fan)..

Full NTFS Read Write support for Xperia 2011 devices!

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 (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!
Download
1. ntfs-3g-cwm-install_v2
2. Mount NTFS script (remove .txt)
More details
Important update! Please upgrade!!
Does it support all kernels/ROMs? :good:
I am using the package posted by DooMLoRD on Arc forum, does this one have any difference ?
Will ntfs-3g need recompile for kernels with custom version string ? (iirc it does not)
t105 said:
Does it support all kernels/ROMs? :good:
Click to expand...
Click to collapse
All based on Sony ICS Beta or ICS kernels
adridu59 said:
I am using the package posted by DooMLoRD on Arc forum, does this one have any difference ?
Will ntfs-3g need recompile for kernels with custom version string ? (iirc it does not)
Click to expand...
Click to collapse
1. Where is that package? Any link? I do not know of that package
2. No need (it is compiled for linux-gnueabi ) Fuse may be specific for the kernel
shardul_seth said:
1. Where is that package? Any link? I do not know of that package
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=22031795&postcount=2297
shardul_seth said:
2. No need (it is compiled for linux-gnueabi )
Click to expand...
Click to collapse
Well thats the TC prefix.. so ntfs-3g is standalone, nice.
shardul_seth said:
Fuse may be specific for the kernel
Click to expand...
Click to collapse
It actually is... seems like I'll have to do a modules package with it.
adridu59 said:
http://forum.xda-developers.com/showpost.php?p=22031795&postcount=2297
Well thats the TC prefix.. so ntfs-3g is standalone, nice.
It actually is... seems like I'll have to do a modules package with it.
Click to expand...
Click to collapse
Maybe ntfs-3g is not mentioned in that thread.. That is why my search did not return anything
Anyway, this is the latest stable ntfs-3g (Jan 2012), but maybe DoomLorDs is also same.. ( if i had found earlier, it would have saved me some work )

[KERNEL MODULE] Make /system writeable

This is a kernel module that defeats HTC's system write protection
Devs are free to use this in their ROMs, just credit me and link here
Download:
Kernel version 3.0.21-g6c11713: http://goo.gl/u39km
Kernel version 3.0.21-gfdb1a80: http://goo.gl/5hRmU
Click to expand...
Click to collapse
How to use:
copy the module to your device (eg: /system/lib/modules), insert the module, then remount system
insmod /system/lib/modules/wp_mod2.ko
mount -o remount,rw /system
This must be done at boot, if you make changes to /system, then load the module, you risk corrupting the filesystem.
How to implement in ROMs
There are two good ways to implement this in ROMs:
1. make an init.d script containing the commands above
or
2. add the commands to init.rc in the ramdisk
NOTE TO POTENTIAL KERNEL DEVS:
The module would not be necessary if you make a custom kernel. Simply make sure it is compiled without CONFIG_MMC_MUST_PREVENT_WP_VIOLATION
Please hit the Thanks button if you download this
If you really like it, please consider buying me a beer
Source code: http://goo.gl/VmSwe
This is a great news...
I think most people is using kernel version 3.0.21-g6c11713
as this comes with the EU & Asia ROM.
It will only work for the exact kernel version, and even then it may take many attempts before I get it right.
Here's one for kernel version 3.0.21-g6c11713
download: http://goo.gl/Vtcex
Please let me know exactly what happens after running the commands in the OP
Warning: don't go trying this unless you know what you're doing, it probably won't work yet and it might crash your device
flar2 said:
It will only work for the exact kernel version, and even then it may take many attempts before I get it right.
Here's one for kernel version 3.0.21-g6c11713
download: http://goo.gl/Vtcex
Please let me know exactly what happens after running the commands in the OP
Warning: don't go trying this unless you know what you're doing, it probably won't work yet
Click to expand...
Click to collapse
I just change the version no to the earlier wp_mod2.ko and tested, it works
I can delete a file and after reboot the deleted file is not returning
Testing your new wp_mod2.ko and will let you know in a while
EDIT:
Yeah...Whoa... tested the new wp_mod2.ko and ...yippieeee... IT WORKS
Attached are the screenshot before and after I removed 3 items
Thanks a lot
So I guess the best is to edit the ramdisk to run this module ?
Or an init.d script will be enough ?
Sorry for a noobish question.
And request for permission to include this in my ROM... thanks
ckpv5 said:
I just change the version no to the earlier wp_mod2.ko and tested, it works
I can delete a file and after reboot the deleted file is not returning
Testing your new wp_mod2.ko and will let you know in a while
EDIT:
Yeah...Whoa... tested the new wp_mod2.ko and ...yippieeee... IT WORKS
Attached are the screenshot before and after I removed 3 items
Thanks a lot
Click to expand...
Click to collapse
Great! Thanks for testing.
I'll update the OP.
While I'm at this are there any other kernel versions in use?
ckpv5 said:
So I guess the best is to edit the ramdisk to run this module ?
Or an init.d script will be enough ?
Sorry for a noobish question.
And request for permission to include this in my ROM... thanks
Click to expand...
Click to collapse
Either way will work fine
Anyway, you're no noob, I used your ROMs back when I had a One V, top notch stuff!
flar2 said:
Either way will work fine
Click to expand...
Click to collapse
Yep.. confirm either way works fine.
Thanks again for this great mod
flar2 said:
This is a kernel module that defeats HTC's system write protection
Devs are free to use this in their ROMs, just credit me and link here
How to use:
copy the module to your device (eg: /system/lib/modules), insert the module, then remount system
insmod /system/lib/modules/wp_mod2.ko
mount -o remount,rw /system
This must be done at boot, if you make changes to /system, then load the module, you risk corrupting the filesystem.
How to implement in ROMs
There are two good ways to implement this in ROMs:
1. make an init.d script containing the commands above
or
2. add the commands to init.rc in the ramdisk
NOTE TO POTENTIAL KERNEL DEVS:
The module would not be necessary if you make a custom kernel. Simply make sure it is compiled without CONFIG_MMC_MUST_PREVENT_WP_VIOLATION
Source code: http://goo.gl/VmSwe
Click to expand...
Click to collapse
Thank you so much for making this.
Yes, yes, yes!!
Finally i can remove sh*t and integrate updates into system with link2sd on my desire x
thanks man!
@ckpv5
thanks for the addon you made for your mysense-rom
Thanks man, looks great.
I'll add this in Half~Sense V 0.8
Sent from my awesome fridge
Added to Index, a very usefull tool.
It works, added it as an init.d script.
Adding in V.0.8
Hi,
can anyone made a flashable ZIP for users who has already installed some ROMs on HTC Desire X please ?
thanks, Petr
monopoly said:
Hi,
can anyone made a flashable ZIP for users who has already installed some ROMs on HTC Desire X please ?
thanks, Petr
Click to expand...
Click to collapse
cpkv5 made some zip for mySense: Link. It's working for me.
Hi flar2
Any chance a mod for 3.0.21-g01fle38 ?
I tried and it works fine for me and most users but today one user mentioned my edited wp_mod2.ko not working.
so maybe you can help with a proper one ?
thanks in advance.
ckpv5 said:
Hi flar2
Any chance a mod for 3.0.21-g01fle38 ?
I tried and it works fine for me and most users but today one user mentioned my edited wp_mod2.ko not working.
so maybe you can help with a proper one ?
thanks in advance.
Click to expand...
Click to collapse
I'm going to try to install your version and see if I can change the CID permanently (or delete the apps permanently too). I have flashed the OC kernel from atis112 so I guess I don't need to flash yours too, right?
Thanks flar2 for your work!
gbueno6 said:
I'm going to try to install your version and see if I can change the CID permanently (or delete the apps permanently too). I have flashed the OC kernel from atis112 so I guess I don't need to flash yours too, right?
Thanks flar2 for your work!
Click to expand...
Click to collapse
You CAN''T change CID without S-OFF.
Stereo8 said:
You CAN''T change CID without S-OFF.
Click to expand...
Click to collapse
I know, but I saw some topics regarding change CID with S-ON in One S so I just wanted to try (with no luck).
Well, I really want to S-OFF so I can flash kernels from recovery...
Sent from my HTC branded muffin...

Categories

Resources