Samba Support for the DBox Neutrino

PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Samba Support for the DBox Neutrino

Beitrag von PT-1 »

Hi,

diese Diff's sind aus England von Speedy 2006

er hat mir noch folgendes zu den letzten Aenderungen wegen Samba Support im CVS mitgeteilt
@pt-1....
I have just looked at the changes to the CVS, and there is a very serious problem! Although the server and client user space support tools have been added, kernel support for SMBFS has not been included!

This renders all the tools useless unless the user customizes their kernel at compile time or uses an smbfs.o from the same kernel (previously compiled). Please get somebody to fix this.

The fix is extremely easy, just patch config so that:

# SMB_FS is not set
...becomes...
SMB_FS=y

The kernel will then do the rest automatically and include it within the image.

FILE ---->>>>> Samba Menu Support
Zuletzt geändert von PT-1 am Dienstag 20. November 2007, 15:01, insgesamt 1-mal geändert.
Coronas
Developer
Beiträge: 196
Registriert: Montag 15. Oktober 2001, 23:00

Re: Samba Support for the DBox Neutrino

Beitrag von Coronas »

Hi PT-1 & Speedy2006,

thanks for pointing this out, obviously my note in den Makefile.am wasn't enough:

Code: Alles auswählen

...
# These user space tools require a kernel with smbfs
flash-sambaclient: $(flashprefix)/.part_sambaclient
$(flashprefix)/.part_sambaclient: $(flashprefix)/.flash samba
	$(INSTALL) -d $(flashprefix)/root/bin
	@for i in smbclient smbmount smbmnt ; do \
		$(INSTALL) $(targetprefix)/bin/$$i $(flashprefix)/root/bin; done
	@touch $@
...
As stated in the other thread, the point was to get a sambaserver running, and for this the smbfs.o-module is not needed. The kernel itself can be easily adapted, all you have to do is:
- cd tuxbox-cvs/cdk/linux
- make menuconfig ARCH=ppc
- scroll down and select "File systems"
- scroll down and select "Network File Systems"
- scroll down to "SMB file system support" and activate it as built-in
- save the config, cd.., rm .deps/linuxkernel, make linuxkernel
Or even simpler: do the steps Speedy2006 suggested. Anyway, I simply didn't see a point in stuffing another filesystem into the kernel. At least not for now, as the use for it is not clear. I would suggest to run some tests to see if smbfs is faster then cifs (or whatever). Once we know that, we can still include it in the default kernel config. WDYT?
cu
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

Hi,

I hoped for an easier Fix than that ;-)

I will have a play later on but I am using Newmake so I can't guarantee that I get it working. :cry: :cry:
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

Hi,

the previous Diff's did not inlcude the locale settings
neutrino/system/locals.h and locals_intern.h
This File should now work ...

I am a Linux beginner so I am struggeling with the information given about changing the config file so maybe someone could just write me a few lines on how to progress on this one :gruebel:
rm .deps/linuxkernel
cd linux
make menuconfig
-->> When you are prompted to CONFIG_SMB_FS choose "YES"
cd ..
Zuletzt geändert von PT-1 am Dienstag 20. November 2007, 15:01, insgesamt 1-mal geändert.
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

Code: Alles auswählen

make menuconfig ARCH=ppc
please be exact
JtG-Riker
Image-Team
Beiträge: 1015
Registriert: Freitag 7. Februar 2003, 18:37

Beitrag von JtG-Riker »

@PT-1

Da fehlt noch ein , bei locals.h - Neutrino baut sonst nicht *duck*

Ich gucks mir aber auch gerade mal an.

Riker
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

Houdini hat geschrieben:

Code: Alles auswählen

make menuconfig ARCH=ppc
please be exact
OK, I reported it back ;-)

Thanks to all for your patienece and I have to go back to the drawing board as I buggered by VM Ware Ubuntu ....
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Re: Samba Support for the DBox Neutrino

Beitrag von PT-1 »

Coronas hat geschrieben:Hi PT-1 & Speedy2006,

thanks for pointing this out, obviously my note in den Makefile.am wasn't enough:

Code: Alles auswählen

...
# These user space tools require a kernel with smbfs
flash-sambaclient: $(flashprefix)/.part_sambaclient
$(flashprefix)/.part_sambaclient: $(flashprefix)/.flash samba
	$(INSTALL) -d $(flashprefix)/root/bin
	@for i in smbclient smbmount smbmnt ; do \
		$(INSTALL) $(targetprefix)/bin/$$i $(flashprefix)/root/bin; done
	@touch $@
...
As stated in the other thread, the point was to get a sambaserver running, and for this the smbfs.o-module is not needed. The kernel itself can be easily adapted, all you have to do is:
- cd tuxbox-cvs/cdk/linux
- make menuconfig ARCH=ppc
- scroll down and select "File systems"
- scroll down and select "Network File Systems"
- scroll down to "SMB file system support" and activate it as built-in
- save the config, cd.., rm .deps/linuxkernel, make linuxkernel
Or even simpler: do the steps Speedy2006 suggested. Anyway, I simply didn't see a point in stuffing another filesystem into the kernel. At least not for now, as the use for it is not clear. I would suggest to run some tests to see if smbfs is faster then cifs (or whatever). Once we know that, we can still include it in the default kernel config. WDYT?
cu

Habe ich versucht nachdem ich mein Ubuntu neu aufgesetzt habe ...
ubuntu@ubuntu:~/tuxbox/head/cdk/linux$ make menuconfig ARCH=ppc
rm -f include/asm
( cd include ; ln -sf asm-ppc asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/home/ubuntu/tuxbox/head/cdk/linux-2.4.33.3/scripts/lxdialog'
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status

>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use 'make menuconfig'

make[1]: *** [ncurses] Error 1
make[1]: Leaving directory `/home/ubuntu/tuxbox/head/cdk/linux-2.4.33.3/scripts/lxdialog'
make: *** [menuconfig] Error 2
ubuntu@ubuntu:~/tuxbox/head/cdk/linux$
neuste diff gleich hier angehaengt
Zuletzt geändert von PT-1 am Dienstag 20. November 2007, 14:59, insgesamt 1-mal geändert.
liamcrayden
Neugieriger
Neugieriger
Beiträge: 9
Registriert: Donnerstag 25. August 2005, 08:14

Beitrag von liamcrayden »

@pt-1

apt-get install ncurses-dev
make menuconfig ARCH=ppc :):)
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

OK,

single steps ...

thanx to Liam the config Option now worked but now:

ubuntu@ubuntu:~/tuxbox/head/cdk/linux$ cd ..
ubuntu@ubuntu:~/tuxbox/head/cdk$ rm .deps/linuxkernel
rm: cannot remove `.deps/linuxkernel': No such file or directory

based on this:cd.., rm .deps/linuxkernel, make linuxkernel info from above ..
Coronas
Developer
Beiträge: 196
Registriert: Montag 15. Oktober 2001, 23:00

Beitrag von Coronas »

If the kernel hasn't been built, you don't have to delete the markerfile .deps/linuxkernel. It's sufficient to enter "make linuxkernel" in your cdk directory.
cu
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

JtG-Riker hat geschrieben:@PT-1

Da fehlt noch ein , bei locals.h - Neutrino baut sonst nicht *duck*

Ich gucks mir aber auch gerade mal an.

Riker
Nach langer Zeit heute mal wieder gecheckt und siehe da:

diff -ur tuxbox-cvs-orig/apps/tuxbox/neutrino/src/system/locals.h tuxbox-cvs/apps/tuxbox/neutrino/src/system/locals.h
--- tuxbox-cvs-orig/apps/tuxbox/neutrino/src/system/locals.h 2006-09-11 22:11:35.000000000 +0100
+++ tuxbox-cvs/apps/tuxbox/neutrino/src/system/locals.h 2006-11-06 22:13:41.000000000 +0000
@@ -776,6 +776,7 @@
LOCALE_NFS_TYPE_CIFS,
LOCALE_NFS_TYPE_LUFS,
LOCALE_NFS_TYPE_NFS,
+ LOCALE_NFS_TYPE_SMBFS,
LOCALE_NFS_UMOUNT,
LOCALE_NFS_UMOUNTERROR,
LOCALE_NFS_USERNAME,

Das korrigierte File ist ja in einem der anderen Post's 061106Samba
Renwich
Interessierter
Interessierter
Beiträge: 62
Registriert: Donnerstag 25. Mai 2006, 23:34

Beitrag von Renwich »

Did or does anyone have a solution to create the smbfs.o in newmake, I've tried the suggestions above with no luck
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

I have at least updated my Links ;-)

Ich habe wenigstens meine Links erneuert ;-)
Renwich
Interessierter
Interessierter
Beiträge: 62
Registriert: Donnerstag 25. Mai 2006, 23:34

Beitrag von Renwich »

hmm I managed to compile a smbfs.o

but now I get this error..??


insmod: kernel-module version mismatch
/lib/modules/2.4.35.3-dbox2/kernel/fs/smbfs/smbfs.o was compiled for kernel version
while this kernel is version 2.4.35.3-dbox2