Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,873 Views

CIFS support on Edison

Jump to solution

As much as I am in love with this device I find myself spending more time fighting to get the machine to do things I need as apposed to programming my project. I have a need and a desire to connect the Edison to use a samba share. I want to do this to make it easier to move data between the devices. I also wanted to take advantage of being able to use my Linux File server as a store location for my application.

I know the user base for this device is small, and it is up to us to help improve the product. I plan on being a big part of that seeing that I have several long term commercial products I plan on producing using this device. However, it is frustrating as heck to not be able to do a simple search and get info to help you out.

Now that my rant is over, let me explain my issue.

I think a person here has produced a repository that contains a CIFS kernel module. I followed the instructions to be able to use this repository. Next I found what I believe is the correct package for the CIFS module. opkg install kernel-module-cifs

I installed it, rebooted the device, attempted to mount my share.

mount -t cifs VengNas.local/PiShare /mnt/VengNas

I receive this error.

mount: wrong fs type, bad option, bad superblock on VengNas.local/PiShare,

 

missing codepage or helper program, or other error

 

(for several filesystems (e.g. nfs, cifs) you might

 

need a /sbin/mount. helper program)

In some cases useful info is found in syslog - try

 

dmesg | tail or so.

After checking dmesg I see the following

[ 16.101838] wl_bss_connect_done succeeded with c0:3f:0e:8c:78:2a

[ 16.193759] wl_bss_connect_done succeeded with c0:3f:0e:8c:78:2a

[ 16.412254] FS-Cache: Loaded

[ 16.426447] FS-Cache: Netfs 'cifs' registered for caching

[ 16.427085] Key type cifs.spnego registered

[ 16.427147] Key type cifs.idmap registered

[ 16.428287] Unable to determine destination address.

I notice that I have an error, Unable to determine destination address. I verified that I could ping the machine VengNas.local, I could.

I then used the IP address. I received the same error from mount and nothing new in dmesg.

At this point I am stuck and I can find no relevant information on how to get this working. I suspect I need to "bake" a new OS. If this is the case then I am screwed as I do not know how to do this process. Is anyone able to help point me in the right direction?

Tags (1)

Accepted Solutions
Highlighted
New Contributor II
16 Views

Yes build your own kernel and boot.

STEP 1 - wget https://github.com/01org/edison-linux/archive/edison-3.10.98.zip github.com/01org/edison-linux/archive/edison-3.10.98.zip

STEP 2 -unzip edison-3.10.98

STEP 3 -cd "foldername"

STEP 4 -make i386_edison_defconfig

The edison_defconfig is available here https://github.com/01org/edison-linux/tree/edison-3.10.98/arch/x86/configs github.com/01org/edison-linux/tree/edison-3.10.98/arch/x86/configs

STEP 5 -make menuconfig

Explore network file systems menu and others and add CIFS as "y" or as a module "m"

STEP 6- make -j4

STEP 7 - make bzImage

STEP 8 - make modules

STEP 9 - make modules_install

You will need ubuntu 14.04 ...you should easily take it up from here...

The -j4 is for 4 cores, speeds up compilation and finally the modules directory is installed to /lib/modules folder of the host os where you are compiling

STEP 10 - Copy these and make changes in your edison environment using setenv and you are ready to go

View solution in original post

7 Replies
Highlighted
Community Manager
16 Views

Hi Romonaga,

 

 

I was checking at the error you receive when mounting, specially this line "(for several filesystems (e.g. nfs, cifs) you might need a sbin/mount. helper program)". I was checking some Linux threads, this one was one of those http://askubuntu.com/questions/525243/why-do-i-get-wrong-fs-type-bad-option-bad-superblock-error http://askubuntu.com/questions/525243/why-do-i-get-wrong-fs-type-bad-option-bad-superblock-error. In that case, NFS is being used and they suggest that the helper program for NFS is nfs-common. So I believe a similar concept should apply for CIFS, some other thread mention cifs-utils. However, I don't find this package in the AlexT repository. Have you tried with NFS instead of CIFS?

 

 

Kind regards,

 

-Pablo
Highlighted
New Contributor II
17 Views

Yes build your own kernel and boot.

STEP 1 - wget https://github.com/01org/edison-linux/archive/edison-3.10.98.zip github.com/01org/edison-linux/archive/edison-3.10.98.zip

STEP 2 -unzip edison-3.10.98

STEP 3 -cd "foldername"

STEP 4 -make i386_edison_defconfig

The edison_defconfig is available here https://github.com/01org/edison-linux/tree/edison-3.10.98/arch/x86/configs github.com/01org/edison-linux/tree/edison-3.10.98/arch/x86/configs

STEP 5 -make menuconfig

Explore network file systems menu and others and add CIFS as "y" or as a module "m"

STEP 6- make -j4

STEP 7 - make bzImage

STEP 8 - make modules

STEP 9 - make modules_install

You will need ubuntu 14.04 ...you should easily take it up from here...

The -j4 is for 4 cores, speeds up compilation and finally the modules directory is installed to /lib/modules folder of the host os where you are compiling

STEP 10 - Copy these and make changes in your edison environment using setenv and you are ready to go

View solution in original post

Highlighted
New Contributor I
16 Views

I will try both suggestions and report back.

I had thought about switching to NFS, however it appears that NFS support would have to be added as well.

Thanks for the help.

0 Kudos
Highlighted
Community Manager
16 Views

Hi Romonaga,

 

 

Yes, please let us know your results with these suggestions. Check this thread for NFS, /thread/57239 https://communities.intel.com/thread/57239. You might get some good ideas from there.

 

 

Regards,

 

-Pablo
0 Kudos
Highlighted
Community Manager
16 Views

Hi Romonaga,

 

 

Any updates on this case? Were you able to make CIFS or NFS work?

 

 

Regards,

 

-Pablo
0 Kudos
Highlighted
New Contributor I
16 Views

With the directions provided by Mosfet I was able to get this working last night. Sorry I did not respond sooner, however it was the first chance I had to attempt this.

0 Kudos
Highlighted
Community Manager
16 Views

Hi Romonaga,

That is great to know . Please feel free to ask any other question related to the Edison whenever you feel like it. You can open a new thread at any time and we'll be more than glad to help you.

Regards,

 

-Pablo
0 Kudos