Ticket #839 (new defect)

Opened 1 year ago

Last modified 6 months ago

Error on bulding ndas-modules

Reported by: luis.san.pt@gmail.com Assigned to: hootch
Priority: high Milestone: 1.1
Component: xplat Version: 1.1-XX
Severity: blocker Keywords: ubuntu
Cc: Kernel Version (Result of "uname -r"): 2.6.27-7-generic
Linux Distribution: Ubuntu cpu/chip: i386
Linux Dist Version: 8.10

Description

Hi,

I Build NDAS packages correctly. Install the ndas-modules-src_1.1-24_all.deb. run sudo m-a prepare run sudo m-a auto-install ndas and given this error "Build of the package ndas-modules-src failed! How do youwish to proceed"

Log (Last Lines):

│ -Iinclude -I/usr/src/linux-headers-2.6.27-7-generic/arch/x86/include ↑ │ -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef ▒ │ -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common ▒ │ -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 ▒ │ -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 ▒ │ -mtune=generic -ffreestanding -pipe -Wno-sign-compare ▒ │ -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow ▒ │ -Iinclude/asm-x86/mach-default -fno-stack-protector ▒ │ -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg ▒ │ -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DLINUX ▒ │ -I/usr/src/modules/ndas/inc -D_X86 -DMODULE -D"KBUILD_STR(s)=#s" ▒ │ -D"KBUILD_BASENAME=KBUILD_STR(block26)" ▮ │ -D"KBUILD_MODNAME=KBUILD_STR(ndas_block)" -c -o ▒ │ /usr/src/modules/ndas/block/.tmp_block26.o ▒ │ /usr/src/modules/ndas/block/block26.c │ In file included from /usr/src/modules/ndas/block/block26.c:44: ↑ │ include/linux/ide.h:125:1: warning: "PARTN_BITS" redefined ▒ │ In file included from /usr/src/modules/ndas/block/block26.c:40: ▒ │ /usr/src/modules/ndas/block/block.h:67:1: warning: this is the location ▒ │ of the previous definition ▒ │ /usr/src/modules/ndas/block/block26.c:483: error: expected ‘)’ before ▒ │ ‘*’ token ▒ │ make[4]: *** /usr/src/modules/ndas/block/block26.o Error 1 ▒ │ make[3]: *** [_module_/usr/src/modules/ndas] Error 2 ▒ │ make[3]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic' ▒ │ make[2]: *** /usr/src/modules/ndas/ndas_sal.ko Error 2 ▒ │ make[2]: Leaving directory `/usr/src/modules/ndas' ▒ │ make[1]: *** [binary-modules] Error 2 ▒ │ make[1]: Leaving directory `/usr/src/modules/ndas' ▮ │ make: *** [kdist_build] Error 2

Thanks

Attachments

Linux2.6.27.patch (5.2 kB) - added by Illusion on 11/25/08 09:53:19.
Patch to fix NDAS source for Linux 2.6.27
ndas_1.1-24.tar.gz (230.6 kB) - added by anonymous on 12/26/08 14:21:23.
Linux2.6.28.patch.zip (1.4 kB) - added by Illusion on 01/15/09 23:24:18.
NDAS 1.1-24 patch against Linux kernel 2.6.28. NOTE: Compiles for me, but not tested!

Change History

11/25/08 09:53:19 changed by Illusion

  • attachment Linux2.6.27.patch added.

Patch to fix NDAS source for Linux 2.6.27

11/25/08 09:54:17 changed by Illusion

I have created a patch so the NDAS source code, ndas_1.1-24.tar.gz, will compile on Linux 2.6.27-7-generic (using Ubuntu 8.10). To use this patch, put it in your NDAS source directory (the location where you unpacked this tar.gz file; which should also have the "INSTALL" & "README" files), and run:

patch -p1 <Linux2.6.27.patch

patch is in the patch package.

Then you should be able to "make" and "sudo make install". This works on my network and brings up my previously working NDAS drives using my old registration information.

There is one outstanding warning, which I did not have time to resolve: WARNING: could not find /Projects/ndas-1.1-24/.ndas.o.cmd for /Projects/ndas-1.1-24/ndas.o but the code works for me regardless.

***IMPORTANT NOTE*** A recent change to the NDAS software broke access to my "Net" disk. The kernel module ndas-core needs to know which network interface to use for access to the drive. This can be fixed with an entry in /etc/modprobe.d/options:

options ndas-core ndas_dev='''wlan0'''

BE SURE TO REPLACE THE wlan0 with the network interface your computer will use to access your drive!

Good luck! Doug

11/26/08 13:36:30 changed by luis.san.pt@gmail.com

It's work fine!

Thanks

(follow-up: ↓ 5 ) 11/29/08 07:46:35 changed by anonymous

Please make this patch visible on main page!

11/29/08 13:52:58 changed by Illusion

I just noticed that my comment about the /etc/modprobe.d/options entry is incorrect. I tried to bold the wlan0, which apparently works in the "Preview", but not the final submission (I think a {bold} nested inside a {code} block fails). Ignore all the quotes on that "options" entry. It should be:

options ndas-core ndas_dev=wlan0

and replace the wlan0 with your network interface.

Doug

(in reply to: ↑ 3 ; follow-up: ↓ 55 ) 11/29/08 14:03:08 changed by Illusion

Replying to anonymous:

Please make this patch visible on main page!

Good idea! I put a link to this ticket in the News section of the WikiStart page.

12/01/08 12:53:09 changed by guaguo

I've got a problem:

xxx@ubuntu1:~/ndas-1.1-24$ patch -p1 <Linux2.6.27.patch patch: **** Only garbage was found in the patch input.

Any idea, thanks (I use 8.10 new install)

12/01/08 14:10:38 changed by Illusion

Have a look at the text in your "Linux2.6.27.patch" file, perhaps there was an error downloading it. It should be "readable" text (i.e.: no binary characters).

The MD5 is:
e5c300f5e79660f9492a96e02dbdf548 Linux2.6.27.patch

The first patch block is (1st lines in file):

diff --git a/block/block.h b/block/block.h
index b07e797..cb5a360 100644
--- a/block/block.h
+++ b/block/block.h
@@ -61,13 +61,14 @@
 #define dbgl_blk(l,fmt...) do {} while(0)
 #endif
 
-
 #if LINUX_VERSION_25_ABOVE // 2.5.x or above
 #define DRIVER_MASK        0xf0
+#ifndef PARTN_BITS 	// 2.6.27 defines this already
 #define PARTN_BITS        4
+#endif
 #else
 #define DRIVER_MASK        0xf8
-#define PARTN_BITS        3    
+#define PARTN_BITS        3
 #endif
 #define NR_PARTITION    (1U << PARTN_BITS)    
 #define PARTN_MASK        (NR_PARTITION -1)

Let us know if you find the problem, or need more help. Doug

12/02/08 03:23:13 changed by guaguo

Well you were right the patch was corrupt (was in html format)

Now everything is ok and I've got my netdisk working.

Thanks

12/02/08 09:59:34 changed by Illusion

Good to hear! Thanks for reporting back... --Doug

12/04/08 12:24:20 changed by anonymous

Hello,

I have the same problem, see my ticket-827.

So, when the patch was corrupt (in html format) where can I download the right patch???

The link linux2.6.27.patch always shows a html file after download.

12/04/08 22:04:55 changed by Illusion

Can you describe the process you use to download the patch?

If I right click on the link and "Save as...", then it is fine. If I click on it and save the page that loads, then it is HTML.

12/05/08 07:33:39 changed by guaguo

12/15/08 16:15:35 changed by resanders@conicstar.net

Hello.

Do I install the patch before the command dpkg-buildpackage -rfakeroot? The error I'm getting before running that command is: patch: **** strip count 1 is not a number

Thanks

12/16/08 18:01:37 changed by Illusion

Hi,

The patch I provided modifies the source code. So it must be applied before the source is compiled into usable software. You don't need dpkg-buildpackage to install NDAS on your system. Try my directions posted at the top (25 Nov 2008) and let us know if they work.

If you want help understanding why you received that error message, you'll need to let us know more about what you did.

Good luck

12/19/08 10:25:59 changed by resanders@conicstar.net

Thank you. Yes, the directions worked. I did have some trial-and-error attempts trying to use the old guidelines before discovering where I needed to be to register the disk.

Thank you again.

12/26/08 14:21:23 changed by anonymous

  • attachment ndas_1.1-24.tar.gz added.

12/31/08 04:40:02 changed by sudo

Hi,

thanks for your help so far.

I've downloaded the src code from: http://code.ximeta.com/dev/current/linux md5sum: ccedb4db57f302674ebe93bf148d7188 ndas-1.1-24.tar.gz

and the patch: http://code.ximeta.com/trac-ndas/attachment/ticket/839/Linux2.6.27.patch?format=raw md5sum: e5c300f5e79660f9492a96e02dbdf548 Linux2.6.27.patch

my kernel is 2.6.27-9-generic

the problem: patch -p1 <Linux2.6.27.patch replies: patch: **** strip count l is not a number

has anyone an idea how to fix that problem? thank you very much!

12/31/08 06:10:40 changed by resanders@conicstar.net

I believe the problem lies with the character following -p being the number one rather than the letter "l." I tried both ways and got the same error when I used -pl (letter "l"). When I used -p1 (number one), the command indicated that I had already applied the patch since that was the case. My kernel is the same as yours.

Roger

12/31/08 13:10:14 changed by Tony

Ouhh Yeah!! Thank you very much men.

01/01/09 04:58:45 changed by anonymous

Works fine on 2.6.27-9 unfortunately I've reinstalled latest mandriva cooker and now kernel is 2.6.28-desktop-0.rc8.1mnb and it fails to compile (many errors)

01/01/09 05:11:51 changed by anonymous

Perhaps Illusion will be able to create a patch for the new kernel. I know I'm hoping so. In the meantime, can you not access your drive using a USB connection? I know this is not satisfactory, but it does work if your device comes with that capability.

01/03/09 03:34:00 changed by anonymous

unfortunately not as it is located in the house next to mine (disaster recovery disk). On thing that is sure, is that I'll never ever buy any new ximeta products and proprietary products to avoid so poor support. :-(

01/03/09 19:03:57 changed by Illusion

Since I'm using Ubuntu 8.10, I don't have access to the 2.6.28-desktop-0.rc8.1mnb kernel that you are using for Mandriva, but I'm downloading the 2.6.28 kernel now and I'll have a look at whether I can "hand-patch" that source for NDAS. If I think I can, then I'll post it and you can give it a try and let us know if it works (the Mandriva patches may interfere).

Happy New Year, Doug

01/04/09 10:17:40 changed by anonymous

I'm now using 2.6.28-desktop-2nmb which is a 2.6.28 final with few add-ons and extra drivers. It should behave the same as a vanila 2.6.28.0. I'm not a developper, but I'll be very pleased to test and report.

Best regards.

Olivier.

01/04/09 18:04:46 changed by Illusion

Hi Olivier,

Can you send me the error output from your make attempt? I compiled 2.6.28 and began compiling my patched version of ndas-1.1-24 against it and received the following first error. I want to know if it is consistent with what you are getting, so I can feel like I'm on the right track...

ndas-1.1-24/block/block26.c:54: warning: initialization from incompatible pointer type
ndas-1.1-24/block/block26.c:55: warning: initialization from incompatible pointer type
ndas-1.1-24/block/block26.c:56: warning: initialization from incompatible pointer type
ndas-1.1-24/block/block26.c: In function ‘nbio_alloc’:
ndas-1.1-24/block/block26.c:156: error: ‘struct request’ has no member named ‘nr_hw_segments’
ndas-1.1-24/block/block26.c: In function ‘nblk_request_proc’:
ndas-1.1-24/block/block26.c:438: error: ‘REQ_FAILFAST’ undeclared (first use in this function)
ndas-1.1-24/block/block26.c:438: error: (Each undeclared identifier is reported only once
ndas-1.1-24/block/block26.c:438: error: for each function it appears in.)

I'm not planning to apply the Ubuntu patches to this kernel, so I won't be running it or the resulting NDAS module (I don't have time to research that development path right now), but if I'm on the right track, you should be successful at patching, compiling & running the result.

Regards, Doug

01/05/09 09:38:35 changed by anonymous

Hi,

Here is the result on ndas build (1.1-24 + above patch for kernel 2.6.27)

$ rpmbuild -bb ndas.spec Exécution_de(%prep): /bin/sh -e /var/tmp/rpm-tmp.N0ILet + umask 022 + cd /home/lahaye/rpmbuild/BUILD + ' 1 -eq 1 ?' + ' 1 -eq 1 ?' + ' 1 -eq 1 ?' + cd /home/lahaye/rpmbuild/BUILD + rm -rf ndas-1.1-24 + /usr/bin/gzip -dc /home/lahaye/rpmbuild/SOURCES/ndas-1.1-24.tar.gz + /bin/tar -xf - + STATUS=0 + ' 0 -ne 0 ?' + cd ndas-1.1-24 + exit 0 Exécution_de(%build): /bin/sh -e /var/tmp/rpm-tmp.A3AfX4 + umask 022 + cd /home/lahaye/rpmbuild/BUILD + cd ndas-1.1-24 + ' 1 -eq 1 ?' + ' 1 -eq 1 ?' + export 'NDAS_EXTRA_CFLAGS= -DNDAS_MAX_SLOT=16' + NDAS_EXTRA_CFLAGS=' -DNDAS_MAX_SLOT=16' + make ndas-kernel ndas-admin Invoking make againt the kernel at /lib/modules/2.6.28-desktop-2mnb/build make -C /lib/modules/2.6.28-desktop-2mnb/build \

SUBDIRS=/home/lahaye/rpmbuild/BUILD/ndas-1.1-24 \ KBUILD_VERBOSE=1 \ ndas_root=/home/lahaye/rpmbuild/BUILD/ndas-1.1-24 \ modules

make[1]: entrant dans le répertoire « /usr/src/linux-2.6.28-desktop-2mnb »

test -e include/linux/autoconf.h -a -e include/config/auto.conf ( \

echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false)

mkdir -p /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/.tmp_versions ; rm -f /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/.tmp_versions/* make -f scripts/Makefile.build obj=/home/lahaye/rpmbuild/BUILD/ndas-1.1-24

gcc -Wp,-MD,/home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/.block24.o.d -nostdinc -isystem /usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/include -DKERNEL -Iinclude -I/usr/src/linux-2.6.28-desktop-2mnb/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DLINUX -I/home/lahaye/rpmbuild/BUILD/ndas-1.1-24/inc -D_X86 -DNDAS_MAX_SLOT=16 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(block24)" -D"KBUILD_MODNAME=KBUILD_STR(ndas_block)" -D"DEBUG_HASH=60" -D"DEBUG_HASH2=34" -c -o /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block24.o /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block24.c gcc -Wp,-MD,/home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/.block26.o.d -nostdinc -isystem /usr/lib/gcc/i586-manbo-linux-gnu/4.3.2/include -DKERNEL -Iinclude -I/usr/src/linux-2.6.28-desktop-2mnb/arch/x86/include -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector-fno-omit-frame-pointer -fno-optimize-sibling-calls -g -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DLINUX -I/home/lahaye/rpmbuild/BUILD/ndas-1.1-24/inc -D_X86 -DNDAS_MAX_SLOT=16 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(block26)" -D"KBUILD_MODNAME=KBUILD_STR(ndas_block)" -D"DEBUG_HASH=60" -D"DEBUG_HASH2=34" -c -o /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.o /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c

/home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:54: attention : initialization from incompatible pointer type /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:55: attention : initialization from incompatible pointer type /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:56: attention : initialization from incompatible pointer type /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c: In function ‘nbio_alloc’: /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:156: erreur: ‘struct request’ has no member named ‘nr_hw_segments’ /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c: In function ‘nblk_request_proc’: /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:438: erreur: ‘REQ_FAILFAST’ undeclared (first use in this function) /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:438: erreur: (Each undeclared identifier is reported only once /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.c:438: erreur: for each function it appears in.) make[2]: *** /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/block/block26.o Erreur 1 make[1]: *** [_module_/home/lahaye/rpmbuild/BUILD/ndas-1.1-24] Erreur 2 make[1]: quittant le répertoire « /usr/src/linux-2.6.28-desktop-2mnb » make: *** /home/lahaye/rpmbuild/BUILD/ndas-1.1-24/ndas_sal.ko Erreur 2 erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.A3AfX4 (%build)

Erreur de construction de RPM:

Mauvais status de sortie pour /var/tmp/rpm-tmp.A3AfX4 (%build)

Best regards,

Olivier.

01/05/09 23:10:32 changed by anonymous

Molto bene ,very good i'm italian linux ubuntu user kernel 2.6.27-9 Thx

01/09/09 18:13:29 changed by anonymous

Hi, I downloaded ndas-1.1.24-sources, unpacked and patched them (with no error) with the mentioned Linux patch.. Unfortunately I'm not able to build the ndas package on opensuse 11.1 (kernel 2.6.27.7-9-pae) with the following error(s)

/usr/src/packages/SOURCES/ndas-1.1-24 # make Invoking make againt the kernel at /lib/modules/2.6.27.7-9-pae/build make -C /lib/modules/2.6.27.7-9-pae/build \

SUBDIRS=/usr/src/packages/SOURCES/ndas-1.1-24 \ KBUILD_VERBOSE=1 \ ndas_root=/usr/src/packages/SOURCES/ndas-1.1-24 \ modules

make[1]: Entering directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae' make -C ../../../linux-2.6.27.7-9 O=/usr/src/linux-2.6.27.7-9-obj/i386/pae/. modules make -C /usr/src/linux-2.6.27.7-9-obj/i386/pae \

KBUILD_SRC=/usr/src/linux-2.6.27.7-9 \ KBUILD_EXTMOD="/usr/src/packages/SOURCES/ndas-1.1-24" -f /usr/src/linux-2.6.27.7-9/Makefile \ modules

test -e include/linux/autoconf.h -a -e include/config/auto.conf ( \

echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false)

mkdir -p /usr/src/packages/SOURCES/ndas-1.1-24/.tmp_versions ; rm -f /usr/src/packages/SOURCES/ndas-1.1-24/.tmp_versions/* make -f /usr/src/linux-2.6.27.7-9/scripts/Makefile.build obj=/usr/src/packages/SOURCES/ndas-1.1-24

gcc -Wp,-MD,/usr/src/packages/SOURCES/ndas-1.1-24/block/.block24.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -DKERNEL -Iinclude -Iinclude2 -I/usr/src/linux-2.6.27.7-9/include -I/usr/src/linux-2.6.27.7-9/arch/x86/include -include include/linux/autoconf.h -I/usr/src/packages/SOURCES/ndas-1.1-24 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -I/usr/src/linux-2.6.27.7-9/include/asm-x86/mach-generic -Iinclude/asm-x86/mach-generic -I/usr/src/linux-2.6.27.7-9/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DLINUX -I/usr/src/packages/SOURCES/ndas-1.1-24/inc -D_X86 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(block24)" -D"KBUILD_MODNAME=KBUILD_STR(ndas_block)" -D"DEBUG_HASH=21" -D"DEBUG_HASH2=8" -c -o /usr/src/packages/SOURCES/ndas-1.1-24/block/.tmp_block24.o /usr/src/packages/SOURCES/ndas-1.1-24/block/block24.c gcc -Wp,-MD,/usr/src/packages/SOURCES/ndas-1.1-24/block/.block26.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -DKERNEL -Iinclude -Iinclude2 -I/usr/src/linux-2.6.27.7-9/include -I/usr/src/linux-2.6.27.7-9/arch/x86/include -include include/linux/autoconf.h -I/usr/src/packages/SOURCES/ndas-1.1-24 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -I/usr/src/linux-2.6.27.7-9/include/asm-x86/mach-generic -Iinclude/asm-x86/mach-generic -I/usr/src/linux-2.6.27.7-9/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DLINUX -I/usr/src/packages/SOURCES/ndas-1.1-24/inc -D_X86 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(block26)" -D"KBUILD_MODNAME=KBUILD_STR(ndas_block)" -D"DEBUG_HASH=21" -D"DEBUG_HASH2=8" -c -o /usr/src/packages/SOURCES/ndas-1.1-24/block/.tmp_block26.o /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c

/usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c: In function ‘nbio_alloc’: /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c:156: error: ‘struct request’ has no member named ‘nr_hw_segments’ /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c: In function ‘nblk_request_proc’: /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c:438: error: ‘REQ_FAILFAST’ undeclared (first use in this function) /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c:438: error: (Each undeclared identifier is reported only once /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.c:438: error: for each function it appears in.) make[4]: *** /usr/src/packages/SOURCES/ndas-1.1-24/block/block26.o Error 1 make[3]: *** [_module_/usr/src/packages/SOURCES/ndas-1.1-24] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae' make: *** /usr/src/packages/SOURCES/ndas-1.1-24/ndas_sal.ko Error 2

What can I do to make the ndas package run?

Best regards

Klaus

01/15/09 23:24:18 changed by Illusion

  • attachment Linux2.6.28.patch.zip added.

NDAS 1.1-24 patch against Linux kernel 2.6.28. NOTE: Compiles for me, but not tested!

01/15/09 23:39:33 changed by Illusion

Sorry for the delay, I got distracted by the projects that pay the bills...

I've uploaded a patch (zipped this time, to avoid the HTML problems) compiled against the Linux 2.6.28 kernel. Please note that the patch should be applied after the 2.6.27 patch in this thread. I did not include the changes from that patch, so this is an "incremental" patch. To say it another way, if you are starting with a "fresh" NDAS-1.1-24 tarball, apply the 2.6.27 patch first, then the 2.6.28 patch (if you've applied the .27 patch and are waiting for me, then just apply this .28 patch and compile). See instructions for 2.6.27 "patching" (see above, but unpack the .zip archive first, of course) if you are not familiar with patching.

Also note that I am not running the .28 kernel, so I cannot test it. Please test this and let me know how it works. If it works, I'll post a note in the "News" wiki.

Klaus: It's interesting that your OpenSuse? 2.6.27.7-9pae kernel encounters the same error as the 2.6.28 kernel, so I suspect that the OpenSuse? maintainers have brought some of the 2.6.28 changes into your kernel. Try applying this 2.6.28 patch, and let me know if it works for you.

Doug

01/19/09 02:17:19 changed by anonymous

Tested build on Mandriva cooker (2009.1 pre) withy kernel 2.6.28-desktop-2mnb => success

Created the rpm and installed it => success forgot to reinstall my /etc/ndas.conf stopped service, then restarted with correct /etc/modprob.conf options still forgot /etc/ndas.conf stopped again and restarted then kernel oops BUT (this oops existed already in the past upon stop and start, so I'll reboot to test again. IMHO, I suspect it is ok (ity wokrs like it used to in the past).

I'll confirm soon

01/19/09 02:25:44 changed by anonymous

forgot trace. NET: Registered protocol family 29 ndas_core: module license 'Proprietary, Send bug reports to support@ximeta.com' taints kernel.

ndas: Initializing NDAS driver version 1.1.24 ndas: Setting max request size to 64kbytes ndas: registering network interface eth0 ndas: registering network interface eth1 ndas: registered ndas device at major number 60 NET: Unregistered protocol family 29 NET: Registered protocol family 29

ndas: Initializing NDAS driver version 1.1.24 ndas: Setting max request size to 64kbytes ndas: registering network interface eth1 ndas: registered ndas device at major number 60 NET: Unregistered protocol family 29 NET: Registered protocol family 29

ndas: Initializing NDAS driver version 1.1.24 ndas: Setting max request size to 64kbytes ndas: registering network interface eth1 ndas: registered ndas device at major number 60 BUG: unable to handle kernel NULL pointer dereference at 00000058 IP: [<f9ce8a72>] ndop_open+0x22/0xd0 [ndas_block] *pde = 00000000 Oops: 0000 #1 SMP last sysfs file: /sys/class/ndas/ndas/dev Dumping ftrace buffer:

(ftrace buffer empty)

Modules linked in: ndas_block ndas_core(P) ndas_sal ipt_IFWLOG ipt_psd ip_set_iptree xt_time xt_connlimit xt_realm iptable_raw xt_comment xt_recent xt_policy ipt_ULOG ipt_TTL ipt_ttl ipt_set ipt_REJECT ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE ipt_LOG ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah ipt_addrtype nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp ip_set_portmap ip_set_macipmap ip_set_ipmap ip_set_iphash ip_set xt_tcpmss xt_pkttype xt_physdev xt_owner xt_NFQUEUE xt_NFLOG xt_multiport xt_MARK xt_mark xt_mac xt_limit xt_length xt_iprange xt_helper xt_hashlimit xt_DSCP xt_dscp xt_dccp xt_conntrack xt_CONNMARK xt_connmark xt_CLASSIFY xt_tcpudp xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle nfnetlink iptable_filter ip_tables x_tables af_packet radeon drm ipv6 binfmt_misc loop fuse dm_mirror dm_region_hash dm_log dm_mod cpufreq_ondemand freq_table cpufreq_conservative cpufreq_powersave cpufreq_nforce2 mt352 saa7134_dvb videobuf_dvb dvb_core mt20xx tea5767 tda9887 tda8290 tuner saa7134 ir_common videodev v4l1_compat compat_ioctl32 v4l2_common videobuf_dma_sg videobuf_core e1000 tveeprom ppdev snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq serio_raw snd_seq_device pcspkr ohci1394 snd_pcm_oss ieee1394 snd_pcm snd_timer snd_mixer_oss snd sr_mod shpchp soundcore sg pci_hotplug snd_page_alloc forcedeth btusb bluetooth i2c_nforce2 i2c_core parport_pc parport thermal button nvidia_agp processor agpgart evdev usb_storage sym53c8xx scsi_transport_spi sata_sil pata_amd libata sd_mod scsi_mod crc_t10dif xfs uhci_hcd ohci_hcd ehci_hcd usbhid usbcore [last unloaded: ndas_sal]

Pid: 16950, comm: nd/dpcd1 Tainted: P (2.6.28-desktop-2mnb #1) EIP: 0060:[<f9ce8a72>] EFLAGS: 00010202 CPU: 0 EIP is at ndop_open+0x22/0xd0 [ndas_block] EAX: 00000000 EBX: f58161e0 ECX: f9ce8a50 EDX: 00000001 ESI: 00000001 EDI: f58161e0 EBP: d0b41edc ESP: d0b41ecc

DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068

Process nd/dpcd1 (pid: 16950, ti=d0b40000 task=da5ce300 task.ti=d0b40000) Stack:

c02c5133 f58161e0 e07d7600 f58161e0 d0b41f10 c01d1b1f c024a4a0 d0b41f08 00000000 00000001 f58161ec 03c00000 e07d7630 00000000 e07d76b8 e07d7600 f58161e0 d0b41f18 c01d1cca d0b41f3c c01f3f7c 0000001c f7028800 0000003c

Call Trace:

[<c02c5133>] ? get_device+0x13/0x20 [<c01d1b1f>] ? blkdev_get+0x12f/0x2d0 [<c024a4a0>] ? kobject_put+0x20/0x50 [<c01d1cca>] ? blkdev_get+0xa/0x10 [<c01f3f7c>] ? register_disk+0x11c/0x140 [<c023fd59>] ? add_disk+0xd9/0x130 [<c023f3a0>] ? exact_match+0x0/0x10 [<c023f810>] ? exact_lock+0x0/0x20 [<f9ce8779>] ? slot_enable+0x189/0x280 [ndas_block] [<f9ce888e>] ? ndcmd_enabled_handler+0x1e/0x70 [ndas_block] [<f9c2b93e>] ? 236x+0xe/0x20 [ndas_core] [<f9c34d55>] ? 61x+0x175/0x1d0 [ndas_core] [<f9c34c20>] ? 61x+0x40/0x1d0 [ndas_core] [<c0104d23>] ? kernel_thread_helper+0x7/0x14

Code: ff eb b3 8d b6 00 00 00 00 55 89 e5 83 ec 10 85 d2 89 75 f8 89 d6 89 7d fc 89 c7 b8 fb ff ff ff 89 5d f4 74 1f 8b 87 10 01 00 00 <8b> 40 58 8b 58 04 c1 fb 04 8d 4b 01 83 f9 11 7f 5d f6 42 19 08 EIP: [<f9ce8a72>] ndop_open+0x22/0xd0 [ndas_block] SS:ESP 0068:d0b41ecc ---[ end trace 455b13d2f436582b ]---

01/19/09 03:06:22 changed by anonymous

Bad news: still fails even with updated kernel (3nmb) NET: Registered protocol family 29 ndas_core: module license 'Proprietary, Send bug reports to support@ximeta.com' taints kernel.

ndas: Initializing NDAS driver version 1.1.24 ndas: Setting max request size to 64kbytes ndas: registering network interface eth1 ndas: registered ndas device at major number 60 BUG: unable to handle kernel NULL pointer dereference at 00000058 IP: [<f8b35a72>] ndop_open+0x22/0xd0 [ndas_block] *pde = 00000000 Oops: 0000 #1 SMP last sysfs file: /sys/class/ndas/ndas/dev Dumping ftrace buffer:

(ftrace buffer empty)

Modules linked in: ndas_block ndas_core(P) ndas_sal ipt_IFWLOG ipt_psd ip_set_iptree xt_time xt_connlimit xt_realm radeon drm iptable_raw xt_comment xt_recent xt_policy ipt_ULOG ipt_TTL ipt_ttl ipt_set ipt_REJECT ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE ipt_LOG ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah ipt_addrtype nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp ip_set_portmap ip_set_macipmap ip_set_ipmap ip_set_iphash ip_set xt_tcpmss xt_pkttype xt_physdev xt_owner xt_NFQUEUE xt_NFLOG xt_multiport xt_MARK xt_mark xt_mac xt_limit xt_length xt_iprange xt_helper xt_hashlimit xt_DSCP xt_dscp xt_dccp xt_conntrack xt_CONNMARK xt_connmark xt_CLASSIFY xt_tcpudp xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle nfnetlink iptable_filter ip_tables x_tables af_packet ipv6 binfmt_misc loop fuse dm_mirror dm_region_hash dm_log dm_mod cpufreq_ondemand freq_table cpufreq_conservative cpufreq_powersave cpufreq_nforce2 mt352 saa7134_dvb videobuf_dvb dvb_core mt20xx tea5767 tda9887 tda8290 tuner saa7134 ir_common videodev v4l1_compat compat_ioctl32 v4l2_common i2c_nforce2 videobuf_dma_sg videobuf_core tveeprom e1000 btusb i2c_core forcedeth snd_intel8x0 snd_ac97_codec ac97_bus shpchp pci_hotplug snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_pcm snd_timer snd_mixer_oss snd ppdev pcspkr parport_pc ohci1394 nvidia_agp rtc_cmos soundcore bluetooth sr_mod agpgart snd_page_alloc thermal serio_raw parport ieee1394 evdev button processor sg usb_storage sym53c8xx scsi_transport_spi sata_sil ata_generic pata_acpi ide_pci_generic amd74xx ide_gd_mod ide_core pata_amd libata sd_mod scsi_mod crc_t10dif xfs uhci_hcd ohci_hcd ehci_hcd usbhid usbcore

Pid: 23907, comm: nd/dpcd1 Tainted: P (2.6.28-desktop-3mnb #1) EIP: 0060:[<f8b35a72>] EFLAGS: 00010202 CPU: 0 EIP is at ndop_open+0x22/0xd0 [ndas_block] EAX: 00000000 EBX: f5b731e0 ECX: f8b35a50 EDX: 00000001 ESI: 00000001 EDI: f5b731e0 EBP: d14cbedc ESP: d14cbecc

DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068

Process nd/dpcd1 (pid: 23907, ti=d14ca000 task=db8a56a0 task.ti=d14ca000) Stack:

c02c5213 f5b731e0 e2edb400 f5b731e0 d14cbf10 c01d1bdf c024a5a0 d14cbf08 00000000 00000001 f5b731ec 03c00000 e2edb430 00000000 e2edb4b8 e2edb400 f5b731e0 d14cbf18 c01d1d8a d14cbf3c c01f402c 0000001c f7028800 0000003c

Call Trace:

[<c02c5213>] ? get_device+0x13/0x20 [<c01d1bdf>] ? blkdev_get+0x12f/0x2d0 [<c024a5a0>] ? kobject_put+0x20/0x50 [<c01d1d8a>] ? blkdev_get+0xa/0x10 [<c01f402c>] ? register_disk+0x11c/0x140 [<c023fe59>] ? add_disk+0xd9/0x130 [<c023f4a0>] ? exact_match+0x0/0x10 [<c023f910>] ? exact_lock+0x0/0x20 [<f8b35779>] ? slot_enable+0x189/0x280 [ndas_block] [<f8b3588e>] ? ndcmd_enabled_handler+0x1e/0x70 [ndas_block] [<f8e9c93e>] ? 236x+0xe/0x20 [ndas_core] [<f8ea5d55>] ? 61x+0x175/0x1d0 [ndas_core] [<f8ea5c20>] ? 61x+0x40/0x1d0 [ndas_core] [<c0104d23>] ? kernel_thread_helper+0x7/0x14

Code: ff eb b3 8d b6 00 00 00 00 55 89 e5 83 ec 10 85 d2 89 75 f8 89 d6 89 7d fc 89 c7 b8 fb ff ff ff 89 5d f4 74 1f 8b 87 10 01 00 00 <8b> 40 58 8b 58 04 c1 fb 04 8d 4b 01 83 f9 11 7f 5d f6 42 19 08 EIP: [<f8b35a72>] ndop_open+0x22/0xd0 [ndas_block] SS:ESP 0068:d14cbecc ---[ end trace fb9fcc56d37b1fd3 ]--- [me@localhost SPECS]$ cat /proc/version Linux version 2.6.28-desktop-3mnb (lcapitulino@build1.conectiva) (gcc version 4.3.2 (GCC) ) #1 SMP Wed Jan 14 15:49:52 EST 2009

01/20/09 07:20:30 changed by Mathias

Hi all,

Which source code should I use with the patch, I have two alternatives: 1.) http://code.ximeta.com/dev/current/linux/ 2.) ndas_1.1-24.tar.gz (230.6 kB) - added by anonymous on 12/26/08 14:21:23. <- The patch submitted by anonymous at the top of this page. The source for this patch feels unsecure.

I have tried the first(1.) source and patched it with success(following the instructions given by Doug; thx for your effort). However it seems that I can register my device with the ndasadmin tool but I am unable to get a slot from my NDAS device (plugged in to my wireless netgear router). So if this really works is hard to tell..

I have also made the appropriate change to /etc/modprobe.d/options: options ndas-core ndas_dev=wlan0 by adding my network interface there.

I would really appreciate any help I can get. I feel stuck for the time being.

Sincerely Mathias

01/20/09 10:31:48 changed by Mathias

I forgot to mention that I'm running Ubuntu 8.10 kernel 2.6.27-9-generic on i686. And in my netgear router the ndas device is visible as
# IP Address Device Name MAC Address

1 -- -- 00:0b:d0:42:2c:ab[[BR]]

BR
Mahias

(follow-up: ↓ 35 ) 01/20/09 11:08:23 changed by Illusion

Hi Mathias, Use the Ximeta "current" release of 1.1-24, I don't know about the anonymous tarball attached to this thread, it may be 1.1-24 with the 2.6.27 patch applied, but I have not checked it.

I should be able to help you get your NDAS system running, as you are on the same distro/kernel as my system (although it is at home and I am at work right now).

After ndasadmin is started, what do you get for the following:

lsmod | grep ndas

cat /proc/ndas/devs

I get the three ndas modules for lsmod: ndas_block, ndas_core, ndas_sal and an offline entry for my single NDAS disk from the cat.

<anonymous> thanks for the ftrace, I'm wondering if the error might come from a function that had a compile warning, but haven't had time to check that out. I did notice that there were some function pointer assignment warnings on the .28 compile, but it wasn't obvious how to fix them. I'll check this out soon and get back to you.

Regards, Doug

(in reply to: ↑ 34 ; follow-up: ↓ 36 ) 01/21/09 08:47:27 changed by Mathias

Replying to Illusion:

Hi Doug,

Thx for the quick answer. Here is the output of my lsmod | grep ndas

ndas_block             41844  0 
ndas_core             173728  1 ndas_block
ndas_sal               42332  6 ndas_block,ndas_core

Also here is my output from the cat /proc/ndas/devs

Name      	ID                     Key Serial           Ver Status         Slots
Pandora-1 	170MUCPKCGA8HCU*****   Yes 1321****         N/A Offline        

So it seems to me as I'm getting similar output as you. However for me it is a bit strange that the Ver Status flag is set to N/A Offline. But what do I know.. : )

If you need any further information just let me know.

BR Mathias

(in reply to: ↑ 35 ) 01/21/09 08:50:21 changed by anonymous

Replying to Mathias: Also(just for the record) I forgot to mention that my NDAS device is off course plugged in to my wireless router.

BR Mathias

(follow-up: ↓ 38 ) 01/21/09 08:55:20 changed by anonymous

Have you tried rebooting your machine? I do not know if it's necessary, but it does seem to have solved my offline status I've sometimes gotten after configuring the drive.

(in reply to: ↑ 37 ; follow-up: ↓ 39 ) 01/21/09 09:23:47 changed by Mathias

Replying to anonymous:

Have you tried rebooting your machine? I do not know if it's necessary, but it does seem to have solved my offline status I've sometimes gotten after configuring the drive.

Hi,

Yes i have done that. After a reboot the output of a cat /proc/ndas/devs is

Name      	ID                     Key Serial           Ver Status         Slots
Pandora-1 	170MUCPKCGA8HCU*****   Yes 1321****         N/A N/A            

So the Ver Status flag varies from N/A Offline to N/A N/A. Hmm strange, I wonder if that is because of the delay that occurs when my wan interface is establishing a connection to the router(it takes aprox 5-15 sec after a startup to establish the connection to my wireless router). Maybe the ndas service dosen't wait for my network to be established and there for it is unable to detect my device because there is no network up when it tries to connect?

If thats the case shouldn't a ndasadmin stop / start solve that problem?

BR Mathias

(in reply to: ↑ 38 ) 01/21/09 09:32:41 changed by Mathias

Replying to Mathias:

This is my output after a start and stop of the ndas service

sudo /etc/init.d/ndas stop
Stopping NDAS: synced umounted synced stopped modules removed

sudo /etc/init.d/ndas start
Starting NDAS: modules inserted.  node created. NDAS driver is initialized.
 started

cat /proc/ndas/devs
Name      	ID                     Key Serial           Ver Status         Slots
Pandora-1 	170MUCPKCGA8HCU*****   Yes 1321****         N/A Offline        

By doing this I was able to change the Ver status flag from N/A N/A to N/A Offline. But it didnt help me out : (

BR Mathias

(follow-up: ↓ 42 ) 01/21/09 11:15:48 changed by Illusion

Hi Mathias, your output does look good (except for the "Offline" part). Check your dmesg output, and other logs, also.

And have a look through the Ximeta wiki pages, I recall that there was good instruction on how to get a drive running, but that the sequence is critical. I'll have a look through the wiki again soon, too.

Not too long ago, I was working with suspend/hibernate scripts to find a combination of stopping the service and unloading modules that would allow the NDAS service to function properly after "resuming". I found that 1.1-24 with the .27 patch would not resume nicely, whereas 1.1-24 did with the previous kernel version. I switched my network manager to "wicd" (for work reasons) and am much happier about its wireless "performance"; the NDAS resume problem also went away about the same time, so it may be a networking availability issue like you suggested (wicd connects to a wireless service without requiring a user logged in, so it happens sooner than with nm-applet, the standard Ubuntu client).

To help you out, in case it is a network timing issue, I found that I could reliably "reconnect" to a drive (manually), only if I ran the following sequence:

umount {drives}
sudo ndasadmin stop  # does not unload modules on my system
sudo modprobe -r ndas_block  # other ndas modules unload automagically
# ready to suspend/hibernate

# on resume:
sudo modprobe ndas_block  # other ndas modules are loaded by this, too
sudo ndasadmin start
cat /proc/ndas/devs

Try this sequence manually, while all your services are running (such as wireless). If it is a network availability issue, then the sequence should bring the drive online.

---

Has anyone been able to get my 2.6.28 patch to work? I'm still looking through the compile logs, with reference to "anonymous's" ftrace data, but it would be nice to know if it works for someone.

Doug

01/21/09 13:11:51 changed by ivan.capelli

I have 2.6.27 and today my Ndas doesn't work...

ivan@ivan-laptop-ubuntu:~$ sudo cat /proc/ndas/devsName ID Key Serial Ver Status Slots ndas1 QT2KEY24C0E9A8Y***** Yes 12903995 1 Login Error

Please help me

(in reply to: ↑ 40 ) 01/21/09 13:36:50 changed by Mathias

Replying to Illusion: Hi Doug,

Here is the network part from my dmesg

[   28.538410] Registered led device: b43-phy0::radio
[   29.003959] NET: Registered protocol family 29
[   29.050629] 
[   29.050630] ndas: Initializing NDAS driver version 1.1.24
[   29.052160] ndas: Setting max request size to 64kbytes
[   29.052211] ndas: registering network interface wlan0
[   29.110420] ndas: registered ndas device at major number 60
[   29.729292] wlan0: authenticate with AP 00:1b:2f:00:8d:b0
[   29.730825] wlan0: authenticated
[   29.730833] wlan0: associate with AP 00:1b:2f:00:8d:b0
[   29.732868] wlan0: RX AssocResp from 00:1b:2f:00:8d:b0 (capab=0x431 status=12 aid=0)
[   29.732875] wlan0: AP denied association (code=12)
[   29.931775] wlan0: associate with AP 00:1b:2f:00:8d:b0
[   29.933677] wlan0: RX AssocResp from 00:1b:2f:00:8d:b0 (capab=0x431 status=12 aid=0)
[   29.933689] wlan0: AP denied association (code=12)
[   30.129050] wlan0: associate with AP 00:1b:2f:00:8d:b0
[   30.130988] wlan0: RX AssocResp from 00:1b:2f:00:8d:b0 (capab=0x431 status=12 aid=0)
[   30.130999] wlan0: AP denied association (code=12)
[   30.329033] wlan0: association with AP 00:1b:2f:00:8d:b0 timed out
[   70.392969] ndas: network down. Unregistering wmaster0
[   70.445103] ndas: network down. Unregistering wlan0
[   70.764193] input: b43-phy0 as /devices/virtual/input/input14
[   70.980141] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[   71.119062] Registered led device: b43-phy0::tx
[   71.119122] Registered led device: b43-phy0::rx
[   71.119171] Registered led device: b43-phy0::radio
[   71.129675] ndas: network up. Registering wmaster0
[   71.140642] ndas: network up. Registering wlan0
[   71.196927] ndas: network down. Unregistering wmaster0
[   71.253062] ndas: network down. Unregistering wlan0
[   71.301624] input: b43-phy0 as /devices/virtual/input/input15
[   71.520089] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[   71.658901] Registered led device: b43-phy0::tx
[   71.659226] Registered led device: b43-phy0::rx
[   71.659509] Registered led device: b43-phy0::radio
[   71.669670] ndas: network up. Registering wmaster0
[   71.680551] ndas: network up. Registering wlan0
[   72.721049] wlan0: authenticate with AP 00:1b:2f:00:8d:b0
[   72.722632] wlan0: authenticated
[   72.722637] wlan0: associate with AP 00:1b:2f:00:8d:b0
[   72.728861] wlan0: RX AssocResp from 00:1b:2f:00:8d:b0 (capab=0x431 status=0 aid=1)
[   72.728869] wlan0: associated
[   72.729917] wlan0: authenticate with AP 00:1b:2f:00:8d:b0
[   72.730192] wlan0: authenticate with AP 00:1b:2f:00:8d:b0
[   72.732472] wlan0: authenticated
[   72.732481] wlan0: associate with AP 00:1b:2f:00:8d:b0
[   72.735395] wlan0: RX ReassocResp from 00:1b:2f:00:8d:b0 (capab=0x431 status=0 aid=1)
[   72.735404] wlan0: associated
[   75.041074] CPU0 attaching NULL sched-domain.
[   75.041091] CPU1 attaching NULL sched-domain.
[   75.044216] CPU0 attaching sched-domain:
[   75.044225]  domain 0: span 0-1 level MC
[   75.044231]   groups: 0 1
[   75.044242] CPU1 attaching sched-domain:
[   75.044249]  domain 0: span 0-1 level MC
[   75.044254]   groups: 1 0

As the rookie I am on Linux this log dosent tell me if anything is wrong or not. I followed your advice an installed wicd. Feels much lighter/smaller and quicker then the old one and also seems to load/connect upon boot much faster. Thx!

I didnt get any error messages when performing the steps you pointed out earlier regarding manually reconnect to the ndas device. But it didnt bring me any further either. I still have the same Ver Status flag that says N/A Offline. I didn't understand the part with unmount because I have no device mounted; I just left that one out.

I can recall that the first time I connected to my ndas device I was on Win XP. But this shouldn't be any problem or? That (one)time I had it connected through the usb port.

Mathias

(follow-ups: ↓ 44 ↓ 50 ) 01/22/09 00:38:26 changed by Illusion

Hi Mathias,

Your dmesg list looks like mine. I had a longer message composed, but I think all my playing with the ndas kernel modules eventually caused my laptop to crash. When I rebooted and checked the dmesg log, it was just like yours.

I've been playing with the drive, and here's what I've come up with, regarding the "Status" field of "cat /proc/ndas/devs" (the Ver field is "1", unless noted):

1) When my system finished booting, I had "Login Error"
2) I stopped and restarted ndasadmin, then I got "N/A"
3) I stopped ndasadmin, unloaded the kernel modules, reloaded, then restarted -- the drive was then listed as "Online"
4) I stopped ndasadmin, turned off the disk, then restarted --> N/A (Ver also N/A, instead of "1")
5) Turned the disk on (no change to ndasadmin) --> Online (Ver back to "1")
6) Unplugged the Ethernet cable to the drive --> Offline (after about 20 sec); Ver=1
7) Reconnected the cable --> Online

I'm not sure what the difference is between "N/A" and Offline, maybe NDAS kernel module gets a message that the drive is turning off (N/A), but not when unplugging the cable (Offline).

Have you gone through all the procedures in http://code.ximeta.com/trac-ndas/wiki/Usage? If you have never connected over Linux, then it might be worthwhile removing the drive entry and restarting the configuration on that page.

Wish I could be of more help, but I haven't spent much time troubleshooting these devices and I don't really know the code, I just patched it so it would compile... :-)

Try playing around with a few of the steps I did and see if you can cause changes in your status. I'd also try to connect to the drive via USB and also WinXP NDAS, if you are able, just to rule out other problems.

Ivan: I think you may be very close to getting it working, if any of the above makes sense to you (see 1, above). After making sure everything else is working (all network connections are good, the disk has power, etc.), I'd recommend trying:

sudo ndasadmin stop
sudo modprobe -r ndas_block
sudo modprobe ndas_block
sudo ndasadmin start

See if that changes things for you. I think the bootup sequence doesn't work quite right (maybe the kernel modules need to be loaded after there is a network connection), so those steps may bring your drive online.

Good luck and let us know if that works!

Doug

(in reply to: ↑ 43 ; follow-up: ↓ 45 ) 01/22/09 05:19:57 changed by anonymous

Replying to Illusion:

Thx for you'r help Doug!

Feels like I have been testing every(thinkable) solution as proposed. I wonder how I can uninstall the ndas tools and be certain that I have swiped any trace of them from my OS? This because I would like to reinstall the tools again to make sure that I didn't forget anything in my first attempt and also to be sure that there is no conflicts with previous versions of the software. Any help on this is appreciated : )

BR Mathias

(in reply to: ↑ 44 ) 01/22/09 05:25:40 changed by Mathias

Replying to anonymous:

Follow up.

Found a described how to on how to manually uninstall the software: http://code.ximeta.com/trac-ndas/wiki/Uninstall

BR Mathias

01/22/09 06:27:03 changed by Mathias

What packages is requires to be able to build and patch the source? I removed the old ones that I had installed when following the Debian way of installing. These where present when I tried installed the driver using the approach presented by Doug. I didnt notice any errors or warnings then. Now after uninstalled various packages that where required when installing it the Debian way. After patching the source I seems to get all sorts of various errors and warnings during the make process now that didn't occured before(or I didnt notice them then) so it seems to me that I am missing something vital

Invoking make againt the kernel at /lib/modules/2.6.27-9-generic/build
make -C /lib/modules/2.6.27-9-generic/build \
		SUBDIRS=/home/mast/Desktop/ndas-1.1-24 \
		KBUILD_VERBOSE=1 \
		ndas_root=/home/mast/Desktop/ndas-1.1-24 \
		modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
mkdir -p /home/mast/Desktop/ndas-1.1-24/.tmp_versions ; rm -f /home/mast/Desktop/ndas-1.1-24/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/mast/Desktop/ndas-1.1-24
(cat /dev/null;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_sal.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_core.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_block.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_scsi.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_emu.ko;) > /home/mast/Desktop/ndas-1.1-24/modules.order
  Building modules, stage 2.
make -f /usr/src/linux-headers-2.6.27-9-generic/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.27-9-generic/Module.symvers -I /home/mast/Desktop/ndas-1.1-24/Module.symvers  -o /home/mast/Desktop/ndas-1.1-24/Module.symvers -S -K /usr/src/linux-headers-2.6.27-9-generic/Module.markers -M /home/mast/Desktop/ndas-1.1-24/Module.markers -w  -s
WARNING: could not find /home/mast/Desktop/ndas-1.1-24/.ndas.o.cmd for /home/mast/Desktop/ndas-1.1-24/ndas.o
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic'
Invoking make againt the kernel at /lib/modules/2.6.27-9-generic/build
make -C /lib/modules/2.6.27-9-generic/build \
		SUBDIRS=/home/mast/Desktop/ndas-1.1-24 \
		KBUILD_VERBOSE=1 \
		ndas_root=/home/mast/Desktop/ndas-1.1-24 \
		modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
mkdir -p /home/mast/Desktop/ndas-1.1-24/.tmp_versions ; rm -f /home/mast/Desktop/ndas-1.1-24/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/mast/Desktop/ndas-1.1-24
(cat /dev/null;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_sal.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_core.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_block.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_scsi.ko;   echo kernel//home/mast/Desktop/ndas-1.1-24/ndas_emu.ko;) > /home/mast/Desktop/ndas-1.1-24/modules.order
  Building modules, stage 2.
make -f /usr/src/linux-headers-2.6.27-9-generic/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.27-9-generic/Module.symvers -I /home/mast/Desktop/ndas-1.1-24/Module.symvers  -o /home/mast/Desktop/ndas-1.1-24/Module.symvers -S -K /usr/src/linux-headers-2.6.27-9-generic/Module.markers -M /home/mast/Desktop/ndas-1.1-24/Module.markers -w  -s
WARNING: could not find /home/mast/Desktop/ndas-1.1-24/.ndas.o.cmd for /home/mast/Desktop/ndas-1.1-24/ndas.o
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic'
Invoking make againt the kernel at /lib/modules/2.6.27-9-generic/build
make -C /lib/modules/2.6.27-9-generic/build \
		SUBDIRS=/home/mast/Desktop/ndas-1.1-24 \
		KBUILD_VERBOSE=1 \
		ndas_root=/home/mast/Desktop/ndas-1.1-24 \
		modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)

Can anyone see what I am missing?

BR Mathias

(follow-up: ↓ 48 ) 01/22/09 06:52:28 changed by Illusion

Hi Mathias,

I think that's all acceptable. The 'echo " ERROR:' is not an actual error, but show shell code that would print an error if it occurred. The "WARNING:" about .ndas.o.cmd is something I also received, but did not seem to make a difference.

Doug

(in reply to: ↑ 47 ) 01/23/09 02:19:02 changed by Mathias

Replying to Illusion:

Thanks for your input Doug. I have now tried both ways described here and described in the wiki(even patched the source before building it the .deb way) without any success. It seems that I can successfully install the ndasadmin but that the ndasadmin is unable to locate my device over my wireless connection. The router I am on is

Netgear          	WGR614v6
Hardware Version 	V7
Firmware Version 	V2.0.29_2.0.29

Seems like the only option left for me is to return the ndas device to the store from where I bought it and refund my money..

Thanks everyone how tried to help me on getting my device going!

BR Mathias

01/23/09 09:51:28 changed by Illusion

Hi Mathias,

I can understand your frustration; I wish there were some basic "utilities" to help diagnose problems such as these. I haven't worked with a Netgear AP before, but since the device is recognized by it, I'd doubt it's the problem (I'm using a Linksys WRT54Gv4 with DD-WRT, and previously also with the Linksys OS).

If you have the ability and time, I'm curious to know if you can get NDAS and your drive running with Windows before you return it.

Thanks for your perseverance! Regards, Doug

(in reply to: ↑ 43 ) 01/26/09 02:16:15 changed by anonymous

Replying to Illusion:

Ivan: I think you may be very close to getting it working, if any of the above makes sense to you (see 1, above). After making sure everything else is working (all network connections are good, the disk has power, etc.), I'd recommend trying: {{{ sudo ndasadmin stop sudo modprobe -r ndas_block sudo modprobe ndas_block sudo ndasadmin start }}} See if that changes things for you. I think the bootup sequence doesn't work quite right (maybe the kernel modules need to be loaded after there is a network connection), so those steps may bring your drive online. Good luck and let us know if that works! Doug

Sorry... It doesn't work... always Login Error... I think it's a problem with the netdisk and windows.... the same disk is mount also in windows xp Have you another idea ?

thanks

01/26/09 13:59:51 changed by dirk_leh@freenet.de

Hello Doug, Thanks for the Linux2.6.27.patch, it works perfectly. I used fedora10 with Kernel 2.6.27. The ndas worked one fritzbox router. B&R Dirk

01/29/09 12:15:48 changed by chous@acm-sl.org

Hi,

I'm trying to make ndas work on 2.6.28 in gentoo. I'm using Linux2.6.28.patch, and it solved some issues, but I still had to replace

request_queue_t *q, [..]

for

struct request_queue *q, [..]

in block/block26.c:491 and block/ctrldev.c:130

It compiles until it says it cannot find asm/semaphore.h, used by sal/io.c:36:47, sal/sal.c:37:49 and sal/sync.c. I replaced the three declarations from asm/semaphore.h to linux/semaphore.h, and it compiled and installed correctly.

However, when starting /etc/init.d/ndas it fails and dmesg shows

ndas_sal: Unknown symbol uts_sem

Any ideas?

01/29/09 22:14:08 changed by Illusion

Anonymous (26Jan) Ivan?: Sorry it didn't work. It seems that you compiled successfully, loaded the modules, and started ndasadmin (that is progress!). I resolve "Login Error" on my machine by stopping ndasadmin, unloading the modules, then reloading and restarting (described in my 22Jan post), but I realize there are many problems that report that error mode, so it may not fix the 2.6.28 problems.

It's good to know that the disk works via WinXP. Are you trying the Linux machine while the WinXP machine is connected to the disk? If so, make sure only one is using "ndasadmin enable" of "w" (read/write) -- I don't think that would affect the "Login Error", but it can't hurt to try it with only the Linux machine.

Sorry I can't recommend something more. Maybe someone else with 2.6.28 can make progress that will help us all.

Dirk: glad to hear it works for you. Thanks for letting us know!

chous: Those are changes that I fixed in the 2.6.27 patch. I should make a "full" patch, but for now the 2.6.28 patch is "incremental". Apply it after applying the 2.6.27 patch. That should get you to something that compiles. Unfortunately, the result doesn't yet work for Ivan. Let us know how your attempt goes.

Doug

01/30/09 00:20:35 changed by anonymous

It doesn't work on 2.6.28 amd64 tuxonice:

Jan 30 09:06:44 Laptop Modules linked in: ndas_block ndas_core(P) ndas_sal snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device pcmcia iwl3945 snd_hda_intel snd_pcm joydev mac80211 snd_timer yenta_socket acer_wmi snd_page_alloc rfkill snd_hwdep sdhci_pci iTCO_wdt iTCO_vendor_support cfg80211 i2c_i801 snd sdhci rsrc_nonstatic rng_core soundcore wmi video backlight                                                                                        
Jan 30 09:06:44 Laptop Pid: 6241, comm: nd/dpcd1 Tainted: P           2.6.28-tuxonice-r1 #1                                                                     
Jan 30 09:06:44 Laptop RIP: 0010:[<ffffffffa01c1c50>]  [<ffffffffa01c1c50>] ndop_open+0x30/0xf0 [ndas_block]                                                    
Jan 30 09:06:44 Laptop RSP: 0018:ffff88009be79dc0  EFLAGS: 00010202                                                                                             
Jan 30 09:06:44 Laptop RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000010                                                                        
Jan 30 09:06:44 Laptop RDX: ffff88009bea23e0 RSI: 0000000000000001 RDI: ffff88009c0579c0                                                                        
Jan 30 09:06:44 Laptop RBP: ffff88009c0579c0 R08: ffff88009c057070 R09: 0000000000000000                                                                        
Jan 30 09:06:44 Laptop R10: 0000000000000000 R11: 0000000000000001 R12: ffff88009985c448                                                                        
Jan 30 09:06:44 Laptop R13: ffff88009c0579c0 R14: ffff88009c0579d8 R15: 0000000000000001                                                                        
Jan 30 09:06:44 Laptop FS:  00007fbd542176f0(0000) GS:ffffffff80872040(0000) knlGS:0000000000000000                                                             
Jan 30 09:06:44 Laptop CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b                                                                                        
Jan 30 09:06:44 Laptop CR2: 0000000000000004 CR3: 0000000000201000 CR4: 00000000000006e0                                                                        
Jan 30 09:06:44 Laptop DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000                                                                        
Jan 30 09:06:44 Laptop DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400                                                                        
Jan 30 09:06:44 Laptop Process nd/dpcd1 (pid: 6241, threadinfo ffff88009be78000, task ffff88009f1c93e0)                                                         
Jan 30 09:06:44 Laptop Stack:                                                                                                                                   
Jan 30 09:06:44 Laptop ffff88009c0579c0 ffff88009985c400 ffff88009985c448 ffffffff802cf078                                                                      
Jan 30 09:06:44 Laptop 000000009985c448 ffffffff802cf495 00000000806fe029 ffff88009985c538                                                                      
Jan 30 09:06:44 Laptop ffff88009985c400 ffff88009985c448 ffff88009c0579c0 0000000000000001                                                                      
Jan 30 09:06:44 Laptop Call Trace:                                                                                                                              
Jan 30 09:06:44 Laptop [<ffffffff802cf078>] ? __blkdev_get+0xa8/0x310                                                                                           
Jan 30 09:06:44 Laptop [<ffffffff802cf495>] ? bdget+0x115/0x120                                                                                                 
Jan 30 09:06:44 Laptop [<ffffffff802f5b0d>] ? register_disk+0x17d/0x1a0                                                                                         
Jan 30 09:06:44 Laptop [<ffffffff803939e2>] ? add_disk+0xa2/0x140                                                                                               
Jan 30 09:06:44 Laptop [<ffffffffa01c0fc0>] ? slot_enable+0x1d0/0x2d0 [ndas_block]                                                                              
Jan 30 09:06:44 Laptop [<ffffffffa0184c00>] ? sal_event_wait+0x50/0x130 [ndas_sal]                                                                              
Jan 30 09:06:44 Laptop [<ffffffffa01c10e1>] ? ndcmd_enabled_handler+0x21/0x70 [ndas_block]                                                                      
Jan 30 09:06:44 Laptop [<ffffffffa019ad75>] ? 236x+0x11/0x1d [ndas_core]                                                                                        
Jan 30 09:06:44 Laptop [<ffffffffa01a3170>] ? 61x+0x171/0x217 [ndas_core]                                                                                       
Jan 30 09:06:44 Laptop [<ffffffff8020cf89>] ? child_rip+0xa/0x11                                                                                                
Jan 30 09:06:44 Laptop [<ffffffff802244d0>] ? flat_send_IPI_mask+0x0/0x60                                                                                       
Jan 30 09:06:44 Laptop [<ffffffffa01a3042>] ? 61x+0x43/0x217 [ndas_core]                                                                                        
Jan 30 09:06:44 Laptop [<ffffffffa01a3042>] ? 61x+0x43/0x217 [ndas_core]                                                                                        
Jan 30 09:06:44 Laptop [<ffffffff8020cf7f>] ? child_rip+0x0/0x11                                                                                                
Jan 30 09:06:44 Laptop Code: 85 f6 b8 fb ff ff ff 48 89 1c 24 48 89 6c 24 08 48 89 f3 4c 89 64 24 10 48 89 fd 74 24 48 8b 87 b0 01 00 00 48 8b 80 98 00 00 00 <8b> 40 04 c1 f8 04 8d 78 01 83 ff 11 7f 65 f6 46 31 08 74 15 31                                                                                                  
Jan 30 09:06:44 Laptop RIP  [<ffffffffa01c1c50>] ndop_open+0x30/0xf0 [ndas_block]                                                                               
Jan 30 09:06:44 Laptop RSP <ffff88009be79dc0>                                                                                                                   
Jan 30 09:06:44 Laptop CR2: 0000000000000004                                                                                                                    
Jan 30 09:06:44 Laptop ---[ end trace 9d80803ede789aa3 ]--- 

uname -r:2.6.28-tuxonice-r1

(in reply to: ↑ 5 ; follow-up: ↓ 56 ) 02/07/09 10:49:31 changed by anonymous

Replying to Illusion:

Hello Doug, About what you said in the ¨Important Note¨. How do I write a simple <lan> instead of wireless lan ? just <lan> or <lan0>? I ask it because the installation was problaby good but the registration not valid, although it is the right ID and Key ( other computers in the network use the same ID and Key). What should I do?

(in reply to: ↑ 55 ) 02/07/09 12:28:34 changed by anonymous

Hello, after starting the ndas this was the result:

ndas_block 41844 0

ndas_core 173728 1 ndas_block ndas_sal 42332 6 ndas_block,ndas_core Feb 7 21:17:46 tomscomputer kernel: [ 58.212308] [drm] Setting GART location based on new memory map Feb 7 21:17:46 tomscomputer kernel: [ 58.212329] [drm] Loading R200 Microcode Feb 7 21:17:46 tomscomputer kernel: [ 58.212386] [drm] writeback test succeeded in 1 usecs Feb 7 21:17:46 tomscomputer kernel: [ 58.257306] NET: Registered protocol family 29 Feb 7 21:17:46 tomscomputer kernel: [ 58.279107] ndas_core: module license 'Proprietary, Send bug reports to support@ximeta.com' taints kernel. Feb 7 21:17:46 tomscomputer kernel: [ 58.293928] Feb 7 21:17:46 tomscomputer kernel: [ 58.293930] ndas: Initializing NDAS driver version 1.1.24 Feb 7 21:17:46 tomscomputer kernel: [ 58.300234] ndas: Setting max request size to 64kbytes Feb 7 21:17:46 tomscomputer kernel: [ 58.300307] ndas: registering network interface eth0 Feb 7 21:17:46 tomscomputer kernel: [ 58.300315] ndas: registering network interface eth1_rename Feb 7 21:17:46 tomscomputer kernel: [ 58.300321] ndas: registering network interface pan0 Feb 7 21:17:46 tomscomputer kernel: [ 58.324306] ndas: registered ndas device at major number 60 Feb 7 21:17:48 tomscomputer kernel: [ 59.544905] eth1_rename: link up, 100Mbps, full-duplex, lpa 0x45E1 Feb 7 21:17:48 tomscomputer kernel: [ 59.546474] ndas: network up. Registering eth1_rename Feb 7 21:17:48 tomscomputer kernel: [ 59.851502] NET: Registered protocol family 17 Feb 7 21:17:53 tomscomputer kernel: [ 64.621578] NET: Registered protocol family 10 Feb 7 21:17:53 tomscomputer kernel: [ 64.624665] lo: Disabled Privacy Extensions Feb 7 21:18:02 tomscomputer pulseaudio[5296]: ltdl-bind-now.c: Failed to find original dlopen loader. Feb 7 21:18:02 tomscomputer pulseaudio[5298]: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Bewerking niet toegestaan Feb 7 21:18:02 tomscomputer pulseaudio[5298]: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Bewerking niet toegestaan

whats next?

tom

02/15/09 11:13:23 changed by partner

Just wanted to post an update of a successful installation of ndas 1.1.24 on OpenSUSE 11.1 on a x86_64 platform.

Here is what I did, after downloaded the tar file I untarred it and applied the two patches for kernels ...27 and ...28 Then I edited the file in ../block/block26.c lines 441 and 473 and changed the kernel version ...28 back into ...27

After that ran make and make install etc just to complete the default install instructions and all is working for me now :D

Thank you for the patches!!!

02/15/09 20:52:34 changed by Illusion

I've been out of town for work, then in sunny Mexico for a week. It was difficult to find computer time with so much fun to be had...

7Feb anonymous, regarding <lan> entries: try ifconfig to see what the network name is that you should use; if you are using a wired lan, it will probably be something like eth0 (depending on the Linux distribution), so the line should be:

options ndas-core ndas_dev=eth0

Tom: those lines look similar to my log entries. Note that even though NDAS appears to register all the interfaces, I've found that it still needs the modprobe option entry (described on 25Nov & 29Nov in this thread). Not sure about the pulseaudio failures, but I don't think they are related to NDAS. Can you post the results of:

lsmod | grep ndas
cat /proc/ndas/devs

See my (and others) posts in this thread around 20Jan to 22Jan for more info.

partner: Great news. Good idea changing the kernel "check" numbers in the source. That fits with klaus's reports of 2.6.28 errors for OpenSuse? 11.1, in a kernel identifying itself as a 2.6.27 kernel.

30Jan anonymous: regarding tuxonice. Unfortunately, I can't do much about these errors until I get a system that is running 2.6.28. It appears that the failure occurs in the NDAS slot_enable function (in your case, when it calls add_disk). Maybe someone else can contribute some debugging effort. Good luck.

Doug

02/24/09 12:05:22 changed by chous@acm-sl.org

Hi,

Since the problem I was facing (gentoo + 2.6.28-gentoo) was a problem of 'unknown symbol: uts_sem' when inserting the module, I tried the hard way: commenting the only places where such symbol is used.

So, in sal/sal.c, y commented

NDAS_SAL_API ndas_error_t sal_gethostname(char* name, int size)
{
    int i;
    ndas_error_t err;

    if (size < 0)
        return NDAS_ERROR_INVALID_PARAMETER;
//    down_read(&uts_sem);
    i = 1 + strlen(GET_UTS_NODENAME());
    if (i > size)
        i = size;
    err = NDAS_OK;
    memcpy(name, GET_UTS_NODENAME(), i);
//    up_read(&uts_sem);
    return err;
}
EXPORT_SYMBOL(sal_gethostname);

After that, I could insert the modules. But I still can't get it running. This is output of dmesg:

ndas: Initializing NDAS driver version 1.1.24
ndas: Setting max request size to 64kbytes   
ndas: registering network interface eth_lan  
ndas: registering network interface tun0     
ndas: fail to register network interface tun0 (-12): ignored
ndas: registering network interface tun1                    
ndas: fail to register network interface tun1 (-12): ignored
ndas: registered ndas device at major number 60             
BUG: unable to handle kernel NULL pointer dereference at 00000058
IP: [<f851db62>] ndop_open+0x22/0xd0 [ndas_block]                
*pde = 00000000                                                  
Oops: 0000 [#1] PREEMPT SMP                                      
last sysfs file: /sys/devices/pci0000:00/0000:00:18.3/resource   
Modules linked in: ndas_block ndas_core(P) ndas_sal smbfs ip6table_filter ip6_tables iptable_raw xt_comment xt_policy xt_multiport ipt_ULOG ipt_TTL ipt_ttl ipt_REJECT ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE ipt_LOG ipt_ECN ipt_ecn ipt_CLUSTERIP ipt_ah ipt_addrtype nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_conntrack_tftp nf_conntrack_sip nf_conntrack_proto_sctp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp xt_tcpmss xt_pkttype xt_physdev xt_NFQUEUE xt_NFLOG xt_MARK xt_mark xt_mac xt_limit xt_length xt_helper xt_hashlimit xt_dccp xt_conntrack xt_CONNMARK xt_connmark xt_CLASSIFY xt_tcpudp xt_state iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle nfnetlink iptable_filter ip_tables x_tables snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq ipv6 aes_i586 aes_generic sha256_generic serpent dm_crypt cbc bnep l2cap bluetooth tun usbhid uvcvideo compat_ioctl32 videodev v4l1_compat snd_usb_audio snd_usb_lib snd_rawmidi snd_seq_device snd_hwdep usb_storage libusual pcspkr ehci_hcd 8139cp fglrx(P) 8139too usbcore mii snd_atiixp k8temp snd_ac97_codec ac97_bus ati_agp agpgart snd_pcm snd_timer snd snd_page_alloc tg3 libphy e1000 xfs nfs lockd sunrpc jfs raid10 raid456 async_memcpy async_xor xor async_tx raid1 raid0 dm_bbr dm_snapshot dm_mirror dm_region_hash dm_log dm_mod sbp2 ohci1394 ieee1394 lpfc qla2xxx megaraid_sas megaraid_mbox megaraid_mm megaraid aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_transport_sas mptfc scsi_transport_fc mptspi mptscsih mptbase atp870u dc395x sim710 53c700 qla1280 imm parport dmx3191d sym53c8xx qlogicfas408 gdth aha1740 advansys initio BusLogic aic7xxx aic79xx scsi_transport_spi sg videobuf_core pdc_adma sata_inic162x sata_mv ata_piix ahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise scsi_wait_scan pata_sl82c105 pata_cs5535 pata_cs5530 pata_cs5520 pata_via pata_jmicron pata_marvell pata_sis pata_netcell pata_sc1200 pata_pdc202xx_old pata_triflex pata_opti pata_amd pata_ali pata_it8213 pata_isapnp phonedev pcmcia_core pata_ns87415 pata_ns87410 pata_serverworks pata_cypress pata_oldpiix pata_artop pata_it821x pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x pata_hpt366 pata_cmd64x pata_efar pata_rz1000 pata_sil680 pata_radisys pata_pdc2027x pata_mpiix

Pid: 28192, comm: nd/dpcd1 Tainted: P           (2.6.28-gentoo #1) EY903AA-ABE s7510.es
EIP: 0060:[<f851db62>] EFLAGS: 00010202 CPU: 0
EIP is at ndop_open+0x22/0xd0 [ndas_block]
EAX: 00000000 EBX: f6d54ac0 ECX: f851db40 EDX: 00000001
ESI: 00000001 EDI: f6d54ac0 EBP: f6d54ac0 ESP: d58aaef8
 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process nd/dpcd1 (pid: 28192, ti=d58aa000 task=f5451030 task.ti=d58aa000)
Stack:
 f5ce0230 f6d54ac0 f5ce0200 f5ce0240 c01c5c87 00000000 00000001 f6d54acc
 00000000 f5ce02b8 f5ce0200 f5ce0240 f6d54ac0 c01e7bee d3e42f20 00000000
 c028893f 00000000 00000010 f5ce0200 d3e42f20 00000000 c0288e09 c0288140
Call Trace:
 [<c01c5c87>] __blkdev_get+0x77/0x2a0
 [<c01e7bee>] register_disk+0xfe/0x120
 [<c028893f>] blk_register_region+0x2f/0x40
 [<c0288e09>] add_disk+0x99/0x130
 [<c0288140>] exact_match+0x0/0x10
 [<c0288620>] exact_lock+0x0/0x10
 [<f851cfa3>] slot_enable+0x1a3/0x2b0 [ndas_block]
 [<f851d0cb>] ndcmd_enabled_handler+0x1b/0x60 [ndas_block]
 [<f86ac93e>] 236x+0xe/0x20 [ndas_core]
 [<f86b5d55>] 61x+0x175/0x1d0 [ndas_core]
 [<f86b5c20>] 61x+0x40/0x1d0 [ndas_core]
 [<c011dab3>] kernel_thread_helper+0x7/0x14
Code: c3 90 8d b4 26 00 00 00 00 83 ec 10 85 d2 89 74 24 08 89 d6 89 7c 24 0c 89 c7 b8 fb ff ff ff 89 5c 24 04 74 1f 8b 87 10 01 00 00 <8b> 40 58 8b 58 04 c1 fb 04 8d 4b 01 83 f9 11 7f 5d f6 42 19 08
EIP: [<f851db62>] ndop_open+0x22/0xd0 [ndas_block] SS:ESP 0068:d58aaef8
---[ end trace 9d2b2469f36842e3 ]---
ndas: can't read NDAS control device.
ndas: can't read NDAS control device.
ndas: can't read NDAS control device.

03/04/09 16:00:47 changed by Illusion

Hi chous,

I hope you didn't miss my comment to you at the end of my post on 29 Jan (it seems like you might have done a lot of work). Those errors you are encountering were fixed in my 2.6.27 patch and since these are "incremental" patches, you should start with a clean ndas-1.1-24 source directory, apply the 2.6.27 patch, then apply the 2.6.28 patch.

That should fix the issues that you are encountering, but apparently it does not yet fix NDAS for 2.6.28. It's interesting that you are able to load the modules. I'm looking for a distro that uses 2.6.28 that I might install on an old junk computer. Maybe then I'll have a chance to debug the problems.

Regards, Doug

03/05/09 14:55:06 changed by andreaz@t-online.de

Hello All!

Just realized, this patch exists and tried it on my 2.6.27-r8 gentoo kernel. Only want to confirm that this works fine..

Thankyou alot ! Andreaz

03/08/09 03:33:13 changed by starship.enterprise@o2.co.uk

ok tried this on .28 ubuntu 9.04 compiles with no errors loads, i can see the unit but no partitons are visable ( unit status is online ) there should be one ntfs and one EXT3......

Any Ideas?

03/16/09 07:39:56 changed by bored user

Why ximeta doesn't develope modules for latest kernel? Next week the kernel community will release the 2.6.29 and there isn't a working module for 2.6.28? Why ximeta puts the compatibility with linux?

03/16/09 10:06:24 changed by andreaz@t-online.de

I also would love to see the new feature thats buildin the windows driver (writing/reading/mounting device same time from different hosts). The only cause i bought that device was indeed the existing linux-drivers.

This one i see on the homepage make me kinda sad: (...) With the 3.4x software,multiple computers can have Read and Write access simultaneously, but is only supported on Windows platforms (Windows 2000 or later). (...) Why not on linux? Is this planned or is the development for the linux drivers completly dropped? If so, i can stop invest any force in it...

(in reply to: ↑ description ) 03/17/09 00:31:11 changed by Gil

Replying to luis.san.pt@gmail.com:

Hi, I Build NDAS packages correctly. Install the ndas-modules-src_1.1-24_all.deb. run sudo m-a prepare run sudo m-a auto-install ndas and given this error "Build of the package ndas-modules-src failed! How do youwish to proceed" Log (Last Lines): │ -Iinclude -I/usr/src/linux-headers-2.6.27-7-generic/arch/x86/include ↑ │ -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef ▒ │ -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common ▒ │ -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 ▒ │ -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 ▒ │ -mtune=generic -ffreestanding -pipe -Wno-sign-compare ▒ │ -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow ▒ │ -Iinclude/asm-x86/mach-default -fno-stack-protector ▒ │ -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg ▒ │ -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DLINUX ▒ │ -I/usr/src/modules/ndas/inc -D_X86 -DMODULE -D"KBUILD_STR(s)=#s" ▒ │ -D"KBUILD_BASENAME=KBUILD_STR(block26)" ▮ │ -D"KBUILD_MODNAME=KBUILD_STR(ndas_block)" -c -o ▒ │ /usr/src/modules/ndas/block/.tmp_block26.o ▒ │ /usr/src/modules/ndas/block/block26.c │ In file included from /usr/src/modules/ndas/block/block26.c:44: ↑ │ include/linux/ide.h:125:1: warning: "PARTN_BITS" redefined ▒ │ In file included from /usr/src/modules/ndas/block/block26.c:40: ▒ │ /usr/src/modules/ndas/block/block.h:67:1: warning: this is the location ▒ │ of the previous definition ▒ │ /usr/src/modules/ndas/block/block26.c:483: error: expected ‘)’ before ▒ │ ‘*’ token ▒ │ make[4]: *** /usr/src/modules/ndas/block/block26.o Error 1 ▒ │ make[3]: *** [_module_/usr/src/modules/ndas] Error 2 ▒ │ make[3]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic' ▒ │ make[2]: *** /usr/src/modules/ndas/ndas_sal.ko Error 2 ▒ │ make[2]: Leaving directory `/usr/src/modules/ndas' ▒ │ make[1]: *** [binary-modules] Error 2 ▒ │ make[1]: Leaving directory `/usr/src/modules/ndas' ▮ │ make: *** [kdist_build] Error 2 Thanks

Same problen en Ubuntu 8.10. Bye.

03/23/09 06:02:06 changed by anonymous

Still no luck with Fichier :kernel-2.6.29-0.rc8.3.1mnb-1-1mnb2.i586.rpm .......

03/25/09 06:54:44 changed by anonymous

It's a shame that ximeta does not maintain it linux driver. The ticket system is full of spam and no cleanup.

Mandriva 2009.1 (spring) will come with 2.6.29 kernel and ximeta devices won't work.

That's the power of proprietary devices :-(

03/29/09 05:50:34 changed by Sejh

I manage to compile ndas-1.1-24 on kernel 2.6.27.19-desktop-1mnb(mandriva)

First I applied the two patches and tried to run make but I got errors.

Then I untared the file, patched it and tared it again.

After that I run rpmbuild and it was allright !

I can register and mount my verbatim.

Hope it helps !

03/30/09 02:09:32 changed by olep

Hello, Maybe someone can help me in troubleshooting.... I installed successfully the NDAS driver on an Ubuntu Intrepid Ibex (with patch for kernel 2.6.27), and it works.... until I try to copy or even use files having a size over roughly 300mb. When running such files (copy from the NDAS drive to local harddisk for example), my PC is freezing entirely. It does not do this when using winXP. Any hint on how to solve this? Thx!

04/18/09 00:57:43 changed by seb

Hi

I fully succes installing verbatim mediastation on ubuntu 8.10 a few month ago. But i made a fresh install with 9.04 so i use the patch 2.6.27 and 2.6.28 (thank for it). It's ok until i do sudo /usr/sbin/ndasadmin enable -s 1 -o w where nothing happen (terminal stay like in use but after 1 hour i didn't have any message or take the hand)

sudo cat /proc/ndas/devs give Name ID Key Serial Ver Status Slots NDAS 58F9YV7************ Yes 000006800992649 1 Online 1

does anyone have the same problem ? thanks, seb

04/18/09 04:01:00 changed by anonymous

Yes on 9.04 too

it can see the device but fails to mount....

04/21/09 00:07:34 changed by anonymous

Support sucks. this is a shame. I bought this device because of its linux support and now I'm stuck with it!

I think that a fork would be welcome.......(even it there is a binary only object file that we wouyld have to link to).

My device is unusable since 2.6.29-pre were part of Mandriva Coocker..........

04/24/09 00:07:42 changed by StGermain

I have downloaded ndas-1.1.-24 and applied both patches. On a fresh install of Ubuntu 9.04 I get the following errors when executing make install:

stg@apophis:~/Desktop/ndas-1.1-24$ make install install -d -m 755 /lib/modules/2.6.28-11-generic/kernel/drivers/block/ndas install -m 644 /home/stg/Desktop/ndas-1.1-24/ndas_sal.ko /lib/modules/2.6.28-11-generic/kernel/drivers/block/ndas install: cannot stat `/home/stg/Desktop/ndas-1.1-24/ndas_sal.ko': No such file or directory make: *** [install-kernel-modules] Error 1 stg@apophis:~/Desktop/ndas-1.1-24$

Any help would be welcome...

04/24/09 11:25:48 changed by narodo

Have the same problem with 9.04. Disk seems to be online, but can't enable it. Name ID Key Serial Ver Status Slots NetDisk1 7Q3T8NH************* Yes 16801468 2 Online 1

After sudo ndasadmin enable -s 1 -o w nothing happens.

Anybody found a solution for this yet?

Thanks!

04/25/09 02:40:16 changed by Guaguo

Fresh 9.04, patching ok, but ndasadmin enable freezes for hours and nothings happens.

Help, please

04/25/09 10:30:01 changed by narodo

Just an additional note on this: Just ran the "Computer Janitor" and the NDAS packages show up in there. Not sure what that really means though. Maybe it helps to find out what's going on...

Cheers!

05/12/09 06:36:04 changed by anonymous

Been trying for a few days now but still no luck with 9.04. The driver is crashing..stack trace below.

The weird thing is that it doesn't seem to be the ximeta driver, but rather the genhd.c function add_disk.

[22932.299308] ndas: Initializing NDAS driver version 1.1.24 [22932.299715] ndas: Setting max request size to 64kbytes [22932.299766] ndas: registering network interface eth0 [22932.299774] ndas: registering network interface vboxnet0 [22932.299779] ndas: registering network interface pan0 [22932.312399] ndas: registered ndas device at major number 60 [23049.258727] BUG: unable to handle kernel NULL pointer dereference at 00000058 [23049.258737] IP: [<f0b25a62>] ndop_open+0x22/0xd0 [ndas_block] [23049.258752] *pde = 00000000 [23049.258758] Oops: 0000 #1 SMP [23049.258761] last sysfs file: /sys/devices/virtual/ndas/ndas/dev [23049.258768] Dumping ftrace buffer: [23049.258771] (ftrace buffer empty) [23049.258774] Modules linked in: ndas_block ndas_core(P) ndas_sal binfmt_misc bridge stp bnep vboxnetflt vboxdrv input_polldev video output lp saa7134_alsa tuner_simple tuner_types ppdev tea5767 snd_via82xx gameport tuner snd_usb_audio snd_ac97_codec snd_pcm_oss snd_mixer_oss ac97_bus snd_mpu401_uart snd_seq_dummy snd_pcm snd_seq_oss snd_page_alloc snd_usb_lib snd_seq_midi snd_seq_midi_event saa7134 snd_rawmidi snd_seq snd_timer snd_seq_device snd_hwdep ir_common psmouse via686a v4l2_common uvcvideo snd pcspkr serio_raw i2c_viapro videobuf_dma_sg videobuf_core tveeprom compat_ioctl32 videodev v4l1_compat soundcore joydev nvidia(P) shpchp amd_k7_agp agpgart parport_pc parport usbhid 8139too 8139cp mii floppy fbcon tileblit font bitblit softcursor [23049.258828] [23049.258833] Pid: 18785, comm: nd/dpcd1 Tainted: P (2.6.28-11-generic #42-Ubuntu) [23049.258837] EIP: 0060:[<f0b25a62>] EFLAGS: 00010202 CPU: 0 [23049.258843] EIP is at ndop_open+0x22/0xd0 [ndas_block] [23049.258846] EAX: 00000000 EBX: ef238b40 ECX: f0b25a40 EDX: 00000001 [23049.258849] ESI: 00000001 EDI: ef238b40 EBP: ebd59edc ESP: ebd59ecc [23049.258852] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [23049.258855] Process nd/dpcd1 (pid: 18785, ti=ebd58000 task=c1cde480 task.ti=ebd58000) [23049.258858] Stack: [23049.258860] c034bfc3 ef238b40 eecb1e00 00000000 ebd59f10 c01e377f c02c7290 ebd59f08 [23049.258867] 00000000 00000001 ef238b4c 03c00000 eecb1e30 00000000 eecb1eb8 eecb1e00 [23049.258874] ef238b40 ebd59f18 c01e392a ebd59f3c c0204400 0000001c ef428400 0000003c [23049.258881] Call Trace: [23049.258884] [<c034bfc3>] ? get_device+0x13/0x20 [23049.258894] [<c01e377f>] ? blkdev_get+0x12f/0x2d0 [23049.258905] [<c02c7290>] ? kobject_put+0x20/0x50 [23049.258915] [<c01e392a>] ? blkdev_get+0xa/0x10 [23049.258920] [<c0204400>] ? register_disk+0x130/0x150 [23049.258926] [<c02bdfa9>] ? add_disk+0xd9/0x130 [23049.258934] [<c02bd5c0>] ? exact_match+0x0/0x10 [23049.258939] [<c02bda60>] ? exact_lock+0x0/0x20 [23049.258943] [<f0b25769>] ? slot_enable+0x189/0x280 [ndas_block] [23049.258951] [<f0b2587e>] ? ndcmd_enabled_handler+0x1e/0x70 [ndas_block] [23049.258959] [<f2a0a93e>] ? 236x+0xe/0x20 [ndas_core] [23049.258985] [<f2a13d55>] ? 61x+0x175/0x1d0 [ndas_core] [23049.258998] [<f2a13c20>] ? 61x+0x40/0x1d0 [ndas_core] [23049.259008] [<c0105477>] ? kernel_thread_helper+0x7/0x10 [23049.259016] Code: ff eb b6 8d b6 00 00 00 00 55 89 e5 83 ec 10 85 d2 89 75 f8 89 d6 89 7d fc 89 c7 b8 fb ff ff ff 89 5d f4 74 1f 8b 87 10 01 00 00 <8b> 40 58 8b 58 04 c1 fb 04 8d 4b 01 83 f9 11 7f 5d f6 42 19 08 [23049.259048] EIP: [<f0b25a62>] ndop_open+0x22/0xd0 [ndas_block] SS:ESP 0068:ebd59ecc [23049.259057] ---[ end trace cf9ffbc5fcfeca28 ]---

05/13/09 13:43:32 changed by deankelly@btinternet.com

Also struggling with 9.04 - the build worked flawlessly as did the ndasadmin register, but ndasadmin enable just hangs. I get the following in syslog:

887:May 13 21:33:03 CatDog? kernel: [47609.154132] BUG: unable to handle kernel NULL pointer dereference at 00000058 888:May 13 21:33:03 CatDog? kernel: [47609.154140] IP: [<f7df9a62>] ndop_open+0x22/0xd0 [ndas_block] 889:May 13 21:33:03 CatDog? kernel: [47609.154151] *pde = 00000000 890:May 13 21:33:03 CatDog? kernel: [47609.154155] Oops: 0000 #1 SMP 891:May 13 21:33:03 CatDog? kernel: [47609.154158] last sysfs file: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/class 892:May 13 21:33:03 CatDog? kernel: [47609.154162] Dumping ftrace buffer: 893:May 13 21:33:03 CatDog? kernel: [47609.154165] (ftrace buffer empty) 894:May 13 21:33:03 CatDog? kernel: [47609.154167] Modules linked in: binfmt_misc ppdev bridge stp bnep ndas_block ndas_core(P) ndas_sal video output input_polldev lp parport snd_via82xx gameport snd_mpu401_uart snd_seq_dummy snd_seq_oss snd_seq_midi snd_via82xx_modem snd_rawmidi snd_seq_midi_event snd_ac97_codec snd_seq snd_seq_device ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm via_agp snd_timer snd_page_alloc snd soundcore nvidia(P) pcspkr i2c_viapro shpchp agpgart dvb_usb_dib0700 dib7000p dib7000m dvb_usb dvb_core dib3000mc dibx000_common dib0070 usbhid usb_storage via_rhine mii floppy fbcon tileblit font bitblit softcursor 895:May 13 21:33:03 CatDog? kernel: [47609.154198] 896:May 13 21:33:03 CatDog? kernel: [47609.154202] Pid: 2765, comm: nd/dpcd1 Tainted: P (2.6.28-11-generic #42-Ubuntu) System Name 897:May 13 21:33:03 CatDog? kernel: [47609.154205] EIP: 0060:[<f7df9a62>] EFLAGS: 00010202 CPU: 0 898:May 13 21:33:03 CatDog? kernel: [47609.154210] EIP is at ndop_open+0x22/0xd0 [ndas_block] 899:May 13 21:33:03 CatDog? kernel: [47609.154212] EAX: 00000000 EBX: f6a3a960 ECX: f7df9a40 EDX: 00000001 900:May 13 21:33:03 CatDog? kernel: [47609.154214] ESI: 00000001 EDI: f6a3a960 EBP: f6365edc ESP: f6365ecc 901:May 13 21:33:03 CatDog? kernel: [47609.154216] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 902:May 13 21:33:03 CatDog? kernel: [47609.154219] Process nd/dpcd1 (pid: 2765, ti=f6364000 task=f638a5b0 task.ti=f6364000) 903:May 13 21:33:03 CatDog? kernel: [47609.154221] Stack: 904:May 13 21:33:03 CatDog? kernel: [47609.154222] c034bfc3 f6a3a960 e8b9d000 00000000 f6365f10 c01e377f c02c7290 f6365f08 905:May 13 21:33:03 CatDog? kernel: [47609.154227] 00000000 00000001 f6a3a96c 03c00000 e8b9d030 00000000 e8b9d0b8 e8b9d000 906:May 13 21:33:03 CatDog? kernel: [47609.154232] f6a3a960 f6365f18 c01e392a f6365f3c c0204400 0000001c f6c28800 0000003c 907:May 13 21:33:03 CatDog? kernel: [47609.154238] Call Trace: 908:May 13 21:33:03 CatDog? kernel: [47609.154240] [<c034bfc3>] ? get_device+0x13/0x20 909:May 13 21:33:03 CatDog? kernel: [47609.154247] [<c01e377f>] ? blkdev_get+0x12f/0x2d0 910:May 13 21:33:03 CatDog? kernel: [47609.154254] [<c02c7290>] ? kobject_put+0x20/0x50 911:May 13 21:33:03 CatDog? kernel: [47609.154262] [<c01e392a>] ? blkdev_get+0xa/0x10 912:May 13 21:33:03 CatDog? kernel: [47609.154265] [<c0204400>] ? register_disk+0x130/0x150 913:May 13 21:33:03 CatDog? kernel: [47609.154270] [<c02bdfa9>] ? add_disk+0xd9/0x130 914:May 13 21:33:03 CatDog? kernel: [47609.154275] [<c02bd5c0>] ? exact_match+0x0/0x10 915:May 13 21:33:03 CatDog? kernel: [47609.154278] [<c02bda60>] ? exact_lock+0x0/0x20 916:May 13 21:33:03 CatDog? kernel: [47609.154282] [<f7df9769>] ? slot_enable+0x189/0x280 [ndas_block] 917:May 13 21:33:03 CatDog? kernel: [47609.154288] [<f7df987e>] ? ndcmd_enabled_handler+0x1e/0x70 [ndas_block] 918:May 13 21:33:03 CatDog? kernel: [47609.154294] [<f7da193e>] ? 236x+0xe/0x20 [ndas_core] 919:May 13 21:33:03 CatDog? kernel: [47609.154312] [<f7daad55>] ? 61x+0x175/0x1d0 [ndas_core] 920:May 13 21:33:03 CatDog? kernel: [47609.154321] [<f7daac20>] ? 61x+0x40/0x1d0 [ndas_core] 921:May 13 21:33:03 CatDog? kernel: [47609.154329] [<c0105477>] ? kernel_thread_helper+0x7/0x10 922:May 13 21:33:03 CatDog? kernel: [47609.154335] Code: ff eb b6 8d b6 00 00 00 00 55 89 e5 83 ec 10 85 d2 89 75 f8 89 d6 89 7d fc 89 c7 b8 fb ff ff ff 89 5d f4 74 1f 8b 87 10 01 00 00 <8b> 40 58 8b 58 04 c1 fb 04 8d 4b 01 83 f9 11 7f 5d f6 42 19 08 923:May 13 21:33:03 CatDog? kernel: [47609.154360] EIP: [<f7df9a62>] ndop_open+0x22/0xd0 [ndas_block] SS:ESP 0068:f6365ecc 924:May 13 21:33:03 CatDog? kernel: [47609.154366] ---[ end trace 827ae320366f3dad ]---

and running strace against the ndasadmin enable gives the following

dean@CatDog:~$ cat /tmp/ndasadmin-strace 30589 execve("/usr/sbin/ndasadmin", ["ndasadmin", "enable", "-s", "1", "-o", "w"], ["TERM=xterm", "LS_COLORS=no=00:fi=00:di=01;34:l"..., "PATH=/usr/local/sbin:/usr/local/"..., "LANG=en_GB.UTF-8", "HOME=/home/dean", "DISPLAY=:0.0", "XAUTHORITY=/home/dean/.Xauthorit"..., "COLORTERM=gnome-terminal", "SHELL=/bin/bash", "LOGNAME=root", "USER=root", "USERNAME=root", "SUDO_COMMAND=/usr/bin/strace -vf"..., "SUDO_USER=dean", "SUDO_UID=1000", "SUDO_GID=1000"]) = 0 30589 brk(0) = 0x8915000 30589 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 30589 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8f000 30589 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) 30589 open("/etc/ld.so.cache", O_RDONLY) = 3 30589 fstat64(3, {st_dev=makedev(8, 1), st_ino=295647, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=176, st_size=82153, st_atime=2009/05/09-08:50:30, st_mtime=2009/05/09-08:50:29, st_ctime=2009/05/09-08:50:29}) = 0 30589 mmap2(NULL, 82153, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f7a000 30589 close(3) = 0 30589 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) 30589 open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3 30589 read(3, "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00\xd0\x68\x01\x00\x34\x00\x00\x00\xe4"..., 512) = 512 30589 fstat64(3, {st_dev=makedev(8, 1), st_ino=2375688, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2832, st_size=1442180, st_atime=2009/05/08-22:30:43, st_mtime=2009/04/09-09:20:23, st_ctime=2009/05/08-22:30:38}) = 0 30589 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f79000 30589 mmap2(NULL, 1451632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e16000 30589 mprotect(0xb7f72000, 4096, PROT_NONE) = 0 30589 mmap2(0xb7f73000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb7f73000 30589 mmap2(0xb7f76000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f76000 30589 close(3) = 0 30589 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e15000 30589 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e156c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 30589 open("/dev/urandom", O_RDONLY) = 3 30589 read(3, "\x8c\x14\xbf\x7e"..., 4) = 4 30589 close(3) = 0 30589 mprotect(0xb7f73000, 8192, PROT_READ) = 0 30589 mprotect(0x804d000, 4096, PROT_READ) = 0 30589 mprotect(0xb7fad000, 4096, PROT_READ) = 0 30589 munmap(0xb7f7a000, 82153) = 0 30589 getuid32() = 0 30589 open("/dev/ndas", O_RDONLY|O_NONBLOCK) = 3 30589 ioctl(3, 0x3c62

Any ideas anyone?

05/19/09 15:28:08 changed by casalvito23@telefonica.net

Good Work for all previous messages. Good work by luis.san.pt. Fine ! Incredible !. All works in my recently installed Fedora 10 with kernel 2.6.27.5-117. In Fedora 7, with kernels 2.6.25 works very easy, but now ... 5 minutes ago I almost discard install my Targa Ndas purchased in Lidl to use in Linux, and now it is running. Note: If any comes to Pontevedra (Spain), send me an email to invit a cool beer :) Thanks.

05/20/09 08:28:01 changed by anonymous

Has anyone heard of any progress being made on this issue? It all seems to have gone very quiet...

(follow-up: ↓ 83 ) 05/20/09 09:09:04 changed by Illusion

Hi All, I wrote the patch for the 2.6.27 kernel and "trialled" the 2.6.28 patch (there were major kernel changes in block device tracking, and of course no source docs from Ximeta); at the time, I did not have a running 2.6.28 system on which to test.

I've upgraded my computers to the newer kernel now, but got busy with "paid" work again. I don't use the software now (we have an extra laptop that provides network disk sharing), but may again so I will try to find a fix for these next Linux kernels.

It's a pity that Ximeta doesn't support the platform, or at the very least "open source" documentation for the code that is not part of their "proprietary" module, as that would help those of us who might assist in keeping it up to date. It seems we're too small a community for them to bother helping.

Regards, Doug

05/20/09 10:34:51 changed by Iwalel

Hey Doug, Just to say thanks for all the work you put into this already. It's highly appreciated!

(in reply to: ↑ 81 ) 05/21/09 03:00:50 changed by l1q1d

Thank you Dough!

05/22/09 04:58:42 changed by anonymous

Thanks Doug - I appreciate the work you've already put in

05/23/09 21:42:17 changed by prasanna

Hi

I am using ubuntu 9.04, when i give the command sudo /usr/sbin/ndasadmin enable -s 1 -o w I get the following message

Fail to get ndas information from /proc/ndas/slots/1/devname enable: Unable to get the path of block device

Can any one help

05/25/09 04:01:44 changed by maker007

Hi,

the patch for 2.6.28 didn't work well. The module crashs after enabling ndas device.

I use

2.6.28-11-generic #42 Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux (ubuntu 9.4).

and got this error message

[ 1181.546864] BUG: unable to handle kernel NULL pointer dereference at 00000058
[ 1181.546868] IP: [<e0b2da62>] ndop_open+0x22/0xd0 [ndas_block]
[ 1181.546875] *pde = 00000000 
[ 1181.546878] Oops: 0000 [#1] SMP 
[ 1181.546880] last sysfs file: /sys/module/ndas_core/initstate
[ 1181.546882] Dumping ftrace buffer:
[ 1181.546884]    (ftrace buffer empty)
[ 1181.546886] Modules linked in: ndas_block ndas_core(P) ndas_sal isofs udf crc_itu_t bridge stp bnep video output input_polldev lp ppdev pcspkr i2c_piix4 joydev psmouse serio_raw parport_pc parport 8139too 8139cp mii usbhid floppy fbcon tileblit font bitblit softcursor
[ 1181.546901] 
[ 1181.546904] Pid: 25391, comm: nd/dpcd1 Tainted: P           (2.6.28-11-generic #42-Ubuntu) HVM domU
[ 1181.546906] EIP: 0060:[<e0b2da62>] EFLAGS: 00010202 CPU: 0
[ 1181.546909] EIP is at ndop_open+0x22/0xd0 [ndas_block]
[ 1181.546911] EAX: 00000000 EBX: df1c3c00 ECX: e0b2da40 EDX: 00000001
[ 1181.546912] ESI: 00000001 EDI: df1c3c00 EBP: c8e29edc ESP: c8e29ecc
[ 1181.546914]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 1181.546916] Process nd/dpcd1 (pid: 25391, ti=c8e28000 task=de890000 task.ti=c8e28000)
[ 1181.546917] Stack:
[ 1181.546919]  c034bfc3 df1c3c00 de9d7800 00000000 c8e29f10 c01e377f c02c7290 c8e29f08
[ 1181.546923]  00000000 00000001 df1c3c0c 03c00000 de9d7830 00000000 de9d78b8 de9d7800
[ 1181.546927]  df1c3c00 c8e29f18 c01e392a c8e29f3c c0204400 0000001c df428400 0000003c
[ 1181.546931] Call Trace:
[ 1181.546933]  [<c034bfc3>] ? get_device+0x13/0x20
[ 1181.546937]  [<c01e377f>] ? __blkdev_get+0x12f/0x2d0
[ 1181.546940]  [<c02c7290>] ? kobject_put+0x20/0x50
[ 1181.546944]  [<c01e392a>] ? blkdev_get+0xa/0x10
[ 1181.546946]  [<c0204400>] ? register_disk+0x130/0x150
[ 1181.546949]  [<c02bdfa9>] ? add_disk+0xd9/0x130
[ 1181.546952]  [<c02bd5c0>] ? exact_match+0x0/0x10
[ 1181.546954]  [<c02bda60>] ? exact_lock+0x0/0x20
[ 1181.546957]  [<e0b2d769>] ? slot_enable+0x189/0x280 [ndas_block]
[ 1181.546963]  [<e0b2d87e>] ? ndcmd_enabled_handler+0x1e/0x70 [ndas_block]
[ 1181.546967]  [<e0ab293e>] ? 236x+0xe/0x20 [ndas_core]
[ 1181.546974]  [<e0abbd55>] ? 61x+0x175/0x1d0 [ndas_core]
[ 1181.546981]  [<e0abbc20>] ? 61x+0x40/0x1d0 [ndas_core]
[ 1181.546988]  [<c0105477>] ? kernel_thread_helper+0x7/0x10
[ 1181.546991] Code: ff eb b6 8d b6 00 00 00 00 55 89 e5 83 ec 10 85 d2 89 75 f8 89 d6 89 7d fc 89 c7 b8 fb ff ff ff 89 5d f4 74 1f 8b 87 10 01 00 00 <8b> 40 58 8b 58 04 c1 fb 04 8d 4b 01 83 f9 11 7f 5d f6 42 19 08 
[ 1181.547014] EIP: [<e0b2da62>] ndop_open+0x22/0xd0 [ndas_block] SS:ESP 0068:c8e29ecc
[ 1181.547019] ---[ end trace 09bed22c2edccc08 ]---

05/26/09 14:12:34 changed by RomMon

Doug,

Thanks for all the effort you put into this. It is a real pity that Ximeta lets us all down.....

07/05/09 09:15:15 changed by arnaud.faucher

A new patch was released. Please see ticket #1110.

07/06/09 16:03:39 changed by arnaud.faucher

The patch published in ticket #1110 for kernel 2.6.31 also runs fine on Ubuntu 9.04 (Linux kernel 2.6.28). Apply all patches from this ticket and patch from ticket #1105 prior to apply patch for version 2.6.31.

08/03/09 10:39:16 changed by vishnumrao

I am trying to install the ndas drivers on a Ubuntu machine running 8.10. I get the following error:

abcde@uvxyz:~/ndas/ndas-1.1-24$ sudo patch -p1 <Linux2.6.27.patch patch: **** Only garbage was found in the patch input.

For the entire sequence of events, here is the content from the terminal:

abcde@uvxyz:~/ndas/ndas-1.1-24$ wget http://code.ximeta.com/trac-ndas/attachment/ticket/839/Linux2.6.27.patch --2009-08-03 10:06:28-- http://code.ximeta.com/trac-ndas/attachment/ticket/839/Linux2.6.27.patch Resolving code.ximeta.com... 76.239.160.173 Connecting to code.ximeta.com|76.239.160.173|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 22198 (22K) [text/html] Saving to: `Linux2.6.27.patch'

100%[======================================>] 22,198 68.2K/s in 0.3s

2009-08-03 10:06:28 (68.2 KB/s) - `Linux2.6.27.patch' saved [22198/22198]

abcde@uvxyz:~/ndas/ndas-1.1-24$ dir admin INSTALL ndas_blk_single.c ndas.spec block ipkg ndas_block_main.c ndas.suse build-arch-stamp lib.mk ndas_core_main.c postinst build-indep-stamp libndas.a ndas_emu_main.c postrm configure-stamp libndas.a.sfx ndas_emu_single.c README CREDITS.txt Linux2.6.27.patch ndas.gentoo sal debian Makefile ndas.openwrt scsi debuglevel.mk mknod.sh ndas_sal_main.c version.mk EULA.txt ndas ndas_scsi_main.c inc ndasadmin ndas_scsi_single.c abcde@uvxyz:~/ndas/ndas-1.1-24$ sudo patch -p1 <Linux2.6.27.patch patch: **** Only garbage was found in the patch input. abcde@uvxyz:~/ndas/ndas-1.1-24$ uname -r 2.6.27-14-generic abcde@uvxyz:~/ndas/ndas-1.1-24$

08/03/09 11:03:34 changed by Illusion

Hi vishnumrao, Check out the link on the post dated 12/05/08 7:33am (near the top of this "ticket"). There is a link for downloading the "raw" format for that patch. Unfortunately HTML format is the default for text files such as patches, which is probably what you encountered. Good luck! --Doug

08/03/09 20:20:33 changed by vishnumrao

Thanks Doug! Installation worked! Hopefully I will get the NDAS devices working too!

09/06/09 10:29:17 changed by marcelo

My drive is working perfectly now, after the patchs of Doug and arnaud.faucher

Linux mojito 2.6.28-13-generic # 45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux

Thank you guys


Add/Change #839 (Error on bulding ndas-modules)