[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] mounting smbfs
Hi Jim,
I got this going, with minor tweaking. Here's how:
apply the attached patch at p0 from petalinux-dist
$ cd ${PETALINUX}/software/petalinux-dist
$ patch -p0 < samba.patch
$ make menuconfig
Under kernel -> file systems -> network file systems
<*> SMB file system support (to mount Windows shares etc.)
[ ] Use a default NLS
[ ] Enable Unix Extensions
Under user/vendor settings -> filesystem applications
--- SAMBA
[*] samba
[ ] smbd
[ ] nmbd
[*] smbmount
[*] smbumount
[ ] uses shared library
rebuild everything, and boot it up
Here's the commandline I used to mount our local fileserver:
# smbmount //raid.itee.uq.edu.au/jwilliams /mnt -o
username=jwilliams,workgroup=itee
# ls /mnt
...
I think busybox's mount command is not compatible with smbmount, but
didn't spend a whole lot of time figuring that out. smbmount seems to
work fine.
I'll make sure these little tweaks are in the next PetaLinux release.
Cheers,
John
Jim Van Vorst wrote:
Folks,
I'm trying to mount a windows share on my eval board. I added smbfs to
my kernel build and got:
# cat /proc/filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev pipefs
ext2
cramfs
nodev ramfs
msdos
vfat
nodev nfs
nodev smbfs
# mount -t smbfs //my_ip/my_share /mnt
smbfs: mount_data version 16466812 is not supported
mount: Mounting //my_ip/my_share on /mnt failed: Invalid argument
If I run mount again I get another random version number. Seems like
mount and smbfs are
incompatible?
I also tried smbmount but I had to play games with smb_mount.h and it
looks like the version of smbmount.c
is incompatible with the kernel's smbfs also.
Has anyone had any success mounting smbfs? This is with the latest
petalinux download.
Thanks,
Jim
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
Index: user/samba/source/config.sub
===================================================================
--- user/samba/source/config.sub (revision 1551)
+++ user/samba/source/config.sub (working copy)
@@ -238,6 +238,7 @@
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| m32r | m32rle | m68000 | m68k | m88k | mcore \
+ | mb | microblaze \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -311,6 +312,7 @@
| m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | mcore-* \
+ | mb-* | microblaze-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
Index: user/samba/source/client/smbmnt.c
===================================================================
--- user/samba/source/client/smbmnt.c (revision 2718)
+++ user/samba/source/client/smbmnt.c (working copy)
@@ -285,12 +285,14 @@
return -1;
}
+#ifndef EMBED
if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1)
{
fprintf(stderr, "Can't get "MOUNTED"~ lock file");
return 1;
}
close(fd);
+#endif
if ((mtab = setmntent(MOUNTED, "a+")) == NULL)
{
@@ -310,11 +312,13 @@
}
endmntent(mtab);
+#ifndef EMBED
if (unlink(MOUNTED"~") == -1)
{
fprintf(stderr, "Can't remove "MOUNTED"~");
return 1;
}
+#endif
return 0;
}