Ticket #1110 (new enhancement)

Opened 8 months ago

Last modified 2 months ago

Patch for Linux 2.6.31 (working with Ubuntu 9.10)

Reported by: arnaud.faucher Assigned to: hootch
Priority: normal Milestone: 1.1
Component: xplat Version:
Severity: normal Keywords:
Cc: Kernel Version (Result of "uname -r"): 2.6.31-1-generic
Linux Distribution: Ubuntu cpu/chip: i386
Linux Dist Version: 9.10

Description

Here is a patch that is fully working for me on Ubuntu 9.10 (kernel 2.6.31). Many corrections were done too for kernel versions 2.6.28 and 2.6.30. The patch is not tested against these versions, please send feedback if you can.

Debugging is enabled this patch (use dmesg or /var/log/messages).

Attachments

ndas-core.conf (33 bytes) - added by arnaud.faucher on 07/05/09 10:20:02.
/etc/modprobe.d/ndas-core.conf file
Linux2.6.31.patch (36.3 kB) - added by arnaud.faucher on 07/06/09 07:48:22.
Patch for Linux 2.6.31 (patch -p1 < Linux2.6.31.patch)
Linux2.6.31-1.patch (1.9 kB) - added by arnaud.faucher on 08/13/09 11:27:22.

Change History

07/05/09 09:17:26 changed by arnaud.faucher

Before applying this patch, apply patches from ticket #839 and #1105.

07/05/09 10:20:02 changed by arnaud.faucher

  • attachment ndas-core.conf added.

/etc/modprobe.d/ndas-core.conf file

07/05/09 10:51:40 changed by arnaud.faucher

On recent Ubuntu (Jaunty, Karmic), the /etc/modprobe.d/options file mentioned in ticket #839 no longer exists. Please adapt and use the "ndas-core.conf" file instead (also to be placed in /etc/modprobe.d/).

(in reply to: ↑ description ) 07/05/09 22:26:01 changed by ngaldridge

Replying to arnaud.faucher:

I got this to work - you brought me kicking and screaming up to Karmic and the 2.6.31 kernel. Didn't work with Jaunty and 2.6.28, neither with Karmic and 2.6.30... was failing due to a lack of bus_id in 'struct device' on line 883 of ndas_scsi.c.

N.

07/05/09 23:12:30 changed by ngaldridge

Do you think it's important that I'm getting a:

Assertion failed "nbio->nr_sectors == blk_rq_cur_sectors(req)",/usr/src/modules/ndas/block/block26.c,nbio_alloc,line=179

in /var/log/messages when I do a fsck?

07/06/09 07:48:22 changed by arnaud.faucher

  • attachment Linux2.6.31.patch added.

Patch for Linux 2.6.31 (patch -p1 < Linux2.6.31.patch)

(follow-up: ↓ 8 ) 07/06/09 08:00:51 changed by arnaud.faucher

Hi ngaldrige,

I've made changes to the patch in order to fix the failed assertion (wrong function being used). The module "should" now also build on 2.6.30, but it's not tested.

I would also like to help for 2.6.28, but I don't have an Ubuntu 9.04 machine. Do you remember if the patched module compiles on it ?

07/06/09 08:09:50 changed by ngaldridge

I don't think it built on 2.6.28 - compiler error ~ bus_id does not exist in 'struct device' on line 883 of ndas_scsi.c.

I'll give the revised patch a try tonight.

N.

07/06/09 08:49:22 changed by Sorcerer

tested on 2.6.30 (x86_64), compiles and works perfectly thanks :)

(in reply to: ↑ 5 ) 07/06/09 08:54:45 changed by ngaldridge

Replying to arnaud.faucher:

I've made changes to the patch in order to fix the failed assertion (wrong function being used). The module "should" now also build on 2.6.30, but it's not tested.

Ok - rebuilt with new patch. No assertions in /var/log/messages and fsck completed successfully also.

Looking good!

07/06/09 15:59:17 changed by arnaud.faucher

After testing, this patch also works for me on Ubuntu 9.04 Jaunty (kernel version 2.6.28-13).

(follow-ups: ↓ 12 ↓ 22 ) 07/07/09 08:20:57 changed by psykotik

Well, it still doesn't work yet for me on Ubuntu 9.04 Jaunty (kernel version 2.6.28-13-generic). Three patchs have been applied.

sudo ls /dev/ndas*
/dev/ndas  /dev/ndas-04431533-0  /dev/ndas-04431533-0p1
cat /proc/ndas/devs
Name      	ID                     Key Serial           Ver Status         Slots
Yuggoth-WIFI	MGGU8HTL9Y6CBNC*****   Yes 000036304431533  1   Online         1 
Yuggoth   	CMLF2SN3KG1P3NX*****   Yes 000060720012974  N/A Offline        
cat /etc/fstab | grep /dev/ndas-04431533-0p1
/dev/ndas-04431533-0p1 /media/Yuggoth ntfs-3g defaults 0 0
sudo mount /media/Yuggoth/
Failed to read last sector (781417601): Argument invalide
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/ndas-04431533-0p1': Argument invalide
The device '/dev/ndas-04431533-0p1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Please note it used to work on Ubuntu 8.10 Intrepid. The external hard disk has not been formated since then.

Also, "cat /proc/ndas/devices/MyDisk/slots" doesn't find anything (dunno if it is an expected behaviour)

07/07/09 08:25:58 changed by psykotik

Also from syslog :

Jul  7 17:02:16 psykotik-desktop kernel: [   45.184039] BL|1|ndcmd_dev_changed|/usr/src/modules/ndas/block/ctrldev.c:576|ing serial=000036304431533 name=Yuggoth-WIFI online=1|nd/dpcd1,4772:6:54.92,3452:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.184049] BL|1|ndcmd_dev_changed|/usr/src/modules/ndas/block/ctrldev.c:597|name=Yuggoth-WIFI nr_unit=1 status=1, slot=1, 0|nd/dpcd1,4772:6:54.92,3452:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.184054] BL|1|ndcmd_dev_changed|/usr/src/modules/ndas/block/ctrldev.c:607|slot[0]=1|nd/dpcd1,4772:6:54.92,3452:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.184059] BL|1|slot_create|/usr/src/modules/ndas/block/ctrldev.c:137|ing s=1|nd/dpcd1,4772:6:54.92,3416:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.209856] BL|1|ndcmd_enabled_handler|/usr/src/modules/ndas/block/ctrldev.c:540|slot=1 err=0|nd/dpcd1,4772:6:54.98,3924:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.209863] BL|1|slot_enable|/usr/src/modules/ndas/block/ctrldev.c:183|mode=1|nd/dpcd1,4772:6:54.98,3864:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.209877] BL|1|slot_enable|/usr/src/modules/ndas/block/ctrldev.c:225|mode=1|nd/dpcd1,4772:6:54.98,3864:8
Jul  7 17:02:16 psykotik-desktop kernel: [   45.209923]  ndas-04431533-0: p1
Jul  7 17:02:16 psykotik-desktop kernel: [   45.216179] ndas-04431533-0: p1 size 781417602 limited to end of disk
Jul  7 17:02:16 psykotik-desktop kernel: [   45.218843] ndas: /dev/ndas-04431533-0 enabled

(in reply to: ↑ 10 ) 07/07/09 08:42:20 changed by arnaud.faucher

Are you on 32-bit or 64-bit Ubuntu ?

(follow-up: ↓ 14 ) 07/07/09 12:55:40 changed by psykotik

32 bits.

(in reply to: ↑ 13 ; follow-up: ↓ 15 ) 07/07/09 12:59:53 changed by ngaldridge

Replying to psykotik:

32 bits.

Just out of interest Did you make sure you deleted all the module building crud from /usr/src/modules ? From all my multiple attempts, I had a lot of old junk hanging around in there. Also did you dpkg -r all the ndas related modules?

(in reply to: ↑ 14 ; follow-up: ↓ 16 ) 07/07/09 13:13:09 changed by psykotik

Did you make sure you deleted all the module building crud from /usr/src/modules ? From all my multiple attempts, I had a lot of old junk hanging around in there. Also did you dpkg -r all the ndas related modules?

yes. I did run

sudo dpkg -r ndasadmin
sudo dpkg -r ndas-modules-`uname -r`
sudo dpkg -r ndas-modules-src

before reinstalling.

(in reply to: ↑ 15 ; follow-up: ↓ 19 ) 07/07/09 13:47:22 changed by arnaud.faucher

Did you also remove all the /usr/src/ndas* files before reinstalling the packages ?

07/07/09 13:52:09 changed by ngaldridge

This is a good tip - there was all manner of junk kicking around in there. The source build and some stale old cached .deb files also.

07/07/09 14:35:21 changed by arnaud.faucher

In fact I have created 3 scripts to build the packages, install and remove everything. Maybe they can be useful.

* Building:

#!/bin/sh
rm -f ndas_1.1-24.dsc
rm -f ndas_1.1-24_i386.changes
rm -f ndas_1.1-24.tar.gz
rm -f ndas_1.1.orig.tar.gz
rm -f ndas-modules-src_1.1-24_all.deb
rm -f ndasadmin_1.1-24_i386.deb
rm -f ndas_1.1-24.diff.gz
cd ndas-1.1-24
make
dpkg-buildpackage -rfakeroot
cd ..

* Installing:

#!/bin/sh
sudo rm /usr/src/ndas*
sudo dpkg -i ndas-modules-src_1.1-24_all.deb
sudo m-a prepare
sudo m-a auto-install ndas
sudo dpkg -i ndasadmin_1.1-24_i386.deb

* Uninstalling:

#!/bin/sh
#sudo umount /mnt/netdisk1
sudo dpkg -r ndasadmin
sudo dpkg -r ndas-modules-`uname -r`
sudo dpkg -r ndas-modules-src
sudo rm /usr/src/ndas*

* And for a simple kernel update:

sudo m-a auto-install ndas

always works well (see How to build a NDAS package for Debian).

Ideas:

  • For many recent distributions, it would be interesting to add a DKMS configuration file, so that the module would build automatically on kernel update.
  • The ndasadmin utility could be ported to Python: one library for backend processing, and front-ends (GUI and CLI). This way, only the libndas.a proprietary library would be architecture-dependent.

(in reply to: ↑ 16 ) 07/08/09 01:45:42 changed by psykotik

Replying to arnaud.faucher:

Did you also remove all the /usr/src/ndas* files before reinstalling the packages ?

I tried, but no change.

(follow-up: ↓ 21 ) 07/08/09 08:02:35 changed by arnaud.faucher

Replying to psykotik:

Can you try to mount your NDAS drive using USB to see if you have the same error ?

(in reply to: ↑ 20 ; follow-up: ↓ 23 ) 07/08/09 22:36:30 changed by psykotik

Replying to arnaud.faucher:

Can you try to mount your NDAS drive using USB to see if you have the same error ?

It perfectly works through USB: I can copy and delete files.

(in reply to: ↑ 10 ) 07/09/09 05:20:52 changed by arnaud.faucher

Replying to psykotik:

While re-reading your comments:

Well, it still doesn't work yet for me on Ubuntu 9.04 Jaunty (kernel version 2.6.28-13-generic). Three patches have been applied.

Don't know if it's a mistake, but there are 4 patches to apply:

- 2 patches from ticket #839

- 1 patch from ticket #1105 (apply with patch -p0 < openSUSE.patch)

- 1 patch from this ticket

(in reply to: ↑ 21 ; follow-up: ↓ 24 ) 07/09/09 05:37:27 changed by arnaud.faucher

Replying to psykotik:

Can you try with the pre-built packages from ticket #1112 ?

(in reply to: ↑ 23 ; follow-up: ↓ 25 ) 07/09/09 13:30:56 changed by psykotik

Replying to arnaud.faucher:

Replying to psykotik: Can you try with the pre-built packages from ticket #1112 ?

I installed it... but still same issue.

(I didn't install the opensuse patch, since it is meant to be used by opensuse users... isn't it?)

(in reply to: ↑ 24 ; follow-up: ↓ 26 ) 07/09/09 14:36:39 changed by arnaud.faucher

Replying to psykotik:

Just for me to know... Do you have multiple NDAS devices ? What are their capacity ? Are they configured using RAID (several hard disks behind one controller) ?

Your serial numbers are 15 digits long, mine is 8 digits long:

arnaud@green:~$ cat /proc/ndas/devs
Name      	ID                     Key Serial           Ver Status         Slots
netdisk1  	CSCEY0L1JQ8YMSA*****   Yes 00528598         1   Online         1 

Have you checked correspondance on your hard drive ?

Have you also checked with only one controller registered ?

(in reply to: ↑ 25 ; follow-up: ↓ 27 ) 07/09/09 21:30:16 changed by psykotik

Replying to arnaud.faucher:

Just for me to know... Do you have multiple NDAS devices ? What are their capacity ? Are they configured using RAID (several hard disks behind one controller) ?

One NDAS hard disk only. It's capacity is 320 Gb, and I don't use RAID.

Your serial numbers are 15 digits long, mine is 8 digits long:

Yeps, the s/n is ok. I didn't change it since ubuntu 8.10.

Have you checked correspondance on your hard drive ? Have you also checked with only one controller registered ?

Do you mean... unregister second harddisk (which is the same NDAS, but using wire instead of wifi)?

(in reply to: ↑ 26 ) 07/10/09 05:46:50 changed by arnaud.faucher

Replying to psykotik:

Do you mean... unregister second harddisk (which is the same NDAS, but using wire instead of wifi)?

Yes. Perhaps the driver patches confuse when there are more than 1 registration (???). By the way, can you also try using wire ?

(I didn't install the opensuse patch, since it is meant to be used by opensuse users... isn't it?)

Regarding the openSUSE patch, you are right: it does not affect kernel 2.6.28 (and so Ubuntu >= 9.04)

(follow-up: ↓ 31 ) 07/10/09 05:51:00 changed by arnaud.faucher

Just to know, are there other users having the problem described by psykotyc ?

Are there users having success with this patch ?

Please indicate your distribution and linux kernel version (uname -a).

07/13/09 08:50:50 changed by l1q1d

It works on a gentoo linux 64bit systema (uname -a: Linux Laptop 2.6.31-rc2 #2 SMP Sat Jul 11 11:03:22 CEST 2009 x86_64 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GenuineIntel? GNU/Linux)

But if ndas_dev is disable on boot (eg rfkill on wlan0) i must restart ndas after enabling wifi!

08/12/09 10:51:52 changed by arnaud.faucher

I had a rather nasty bug starting at kernel version 2.6.31-rc5. After a bisection, I found that git kernel commit e084b2d95e48b31aa45f9c49ffc6cdae8bdb21d4 was the cause. The kernel patch may not be faulty (see the thread at http://lkml.org/lkml/2009/8/11/250), but it triggered a bug in the ndas_block module, when the requests are merged for efficiency. The symptoms of this bug are that files are filled with garbage when opened.

By looking at the code, the bug possibly affects all 2.6 kernel versions with CONFIG_HIGHMEM enabled (which is the default), but may simply be not easily triggered on these versions.

In attachment 'Linux2.6.31-1.patch' (above), I disable request merging when CONFIG_HIGHMEM is enabled. It may be less efficient (not noticeably for me), but at least it works.

08/13/09 11:27:22 changed by arnaud.faucher

  • attachment Linux2.6.31-1.patch added.

(in reply to: ↑ 28 ) 08/25/09 14:29:50 changed by aniaclug

I have the same issue. I've downloaded the .deb src package for modules and ndasadmin package (1.1.24). I've also downloaded all patches mut I've found they are already applied to sources (all but Linux.2.6.31-1, but it does not affect my kernel version). Disk is registered with wlan0, I've enabled it with #ndasadmin enable -s 1 -o w ls /dev/ndas* shows: /dev/ndas, /dev/ndas-XXXXXXXXX-0 and /dev/ndas-XXXXXXXX-0p1 and fdisk -l on /dev/ndas-XXXXXXXXX-0 shows a single partition (the one with p1) type HPFS/NTFS But when I try to mount the drive I have the issue. Mounting the device with USB works fine for both read and write.

Distro: Ubintu 9.0.4
kernel version: 2.6.28-15-generic
ndas-modules-src 1.1-24

(follow-up: ↓ 33 ) 08/25/09 17:06:43 changed by arnaud.faucher

Hi aniaclug and psykotic, can you try to recompile the packages with all patches, including patch named Linux2.6.31-1.patch ?

I have reasons to think that it can affect positively the behavior of the driver on kernel version 2.6.28 too.

(in reply to: ↑ 32 ; follow-up: ↓ 34 ) 08/25/09 17:51:16 changed by aniaclug

I've used sources extracted from .deb (in /usr/src/modules/ndas).
I've applied the patch (with sudo patch -p1 < Linux2.6.31-1.patch)
I've rebuilt and installed modules (sudo make clean all, sudo make install). I've rebooted. I've mounted de volume and....... (suspance)......

It WORKS!!!!!

(in reply to: ↑ 33 ) 08/25/09 18:14:20 changed by aniaclug

No.. it doesn't.

In fact it works but not with *that* partition.
I discovered this because i left an usb NTFS disk connected to the HDD box and it exported only that disk and it mounted correctly.
The disk is formatted to 40Gb NTFS.

Tomorrow I will try reformatting the NTFS drive into my hdd box (is as factory pre-formatted ntfs disk). Now I do not have a windows machine to check the drive

09/04/09 04:44:42 changed by arnaud.faucher

Hi aniaclug,

Any news after reformatting ?

09/06/09 10:22:54 changed by marcelo

Just to report that my drive is working perfectly now.

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

I applied the patches in ticket #839, openSUSE.patch #1105 (I don't know if it is necessary, but works with it), and Linux2.6.31.patch and Linux2.6.31-1.patch in this ticket. I can read, write and format without problems.

Thanks arnaud.faucher and Doug (#839) for your effort!

11/07/09 00:32:08 changed by imonsellato

update-rc.d: warning: /etc/init.d/ndas missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts> Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted

failed to load core module

Anyone can help me?

11/07/09 04:30:43 changed by imonsellato

igor@igor-desktop:~/Scrivania$ sudo dpkg -i ndasadmin_1.1-24_amd64.deb (Lettura del database... 232365 file e directory attualmente installati.) Preparativi per sostituire ndasadmin v.1.1-24 (utilizzando ndasadmin_1.1-24_amd64.deb)... Stopping NDAS: synced umounted synced stopped modules removed Estrazione del sostituto di ndasadmin... Configurazione di ndasadmin (1.1-24)... update-rc.d: warning: /etc/init.d/ndas missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts> Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted

failed to load core module Report this problem with the following messages at http://code.ximeta.com/cgi-bin/trac.cgi/newticket

============================================================================== Linux version 2.6.31-14-generic (buildd@crested) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 -rw-r--r-- 1 root root 70775 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_block.ko -rw-rw-rw- 1 root root 284965 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko -rw-r--r-- 1 root root 79770 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_sal.ko -rw-r--r-- 1 root root 73654 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_scsi.ko gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Nov 7 13:25:12 igor-desktop kernel: [ 1416.263432] ndas: Setting max request size to 64kbytes Nov 7 13:25:12 igor-desktop kernel: [ 1416.263447] ndas: fail to register network interfaces. Nov 7 13:25:12 igor-desktop kernel: [ 1416.460011] NET: Unregistered protocol family 29 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793449] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:467|ing|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793456] NET: Registered protocol family 29 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793460] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d09b000(lo) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793466] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d09b000(lo) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793471] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793475] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d014000(eth0) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793481] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d014000(eth0) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793486] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793490] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007a550000(eth1) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793495] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007a550000(eth1) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793499] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793505] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:548|ed|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.803134] Nov 7 13:27:29 igor-desktop kernel: [ 1553.803135] ndas: Initializing NDAS driver version 1.1.24 Nov 7 13:27:29 igor-desktop kernel: [ 1553.803370] ndas: Setting max request size to 64kbytes Nov 7 13:27:29 igor-desktop kernel: [ 1553.803384] ndas: fail to register network interfaces. Nov 7 13:27:29 igor-desktop kernel: [ 1554.020015] NET: Unregistered protocol family 29 ============================================================================== invoke-rc.d: initscript ndas, action "start" failed. dpkg: errore nell'elaborare ndasadmin (--install):

il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 1

Elaborazione dei trigger per sreadahead... Si sono verificati degli errori nell'elaborazione:

ndasadmin

This is the complete message Help me please!!!

01/02/10 13:46:33 changed by niels

hi, for some reason i cannot install ndasadmin, it seems i have the same problem as imonsellato

ubuntu 9.10, uname -srnm >> Linux niels 2.6.31-16-generic i686

(read somewhere that there was a difference between i386 vs i686, but forgot what)

i get the following output after

sudo dpkg -i ndasadmin_1.1-24_i386.deb
(Reading database ... 222104 files and directories currently installed.)
Preparing to replace ndasadmin 1.1-24 (using ndasadmin_1.1-24_i386.deb) ...
Stopping NDAS: synced umounted synced stopped modules removed
Unpacking replacement ndasadmin ...
Setting up ndasadmin (1.1-24) ...
update-rc.d: warning: /etc/init.d/ndas missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted
 failed to load core module
 Report this problem with the following messages at http://code.ximeta.com/cgi-bin/trac.cgi/newticket
==============================================================================
Linux version 2.6.31-16-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009
-rw-r--r-- 1 root root  47581 Jan  2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_block.ko
-rw-r--r-- 1 root root 201845 Jan  2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_core.ko
-rw-r--r-- 1 root root  55608 Jan  2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_sal.ko
-rw-r--r-- 1 root root  49321 Jan  2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_scsi.ko
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Jan  2 22:20:07 niels kernel: [ 6534.989668] 
Jan  2 22:20:07 niels kernel: [ 6534.989669] ndas: Initializing NDAS driver version 1.1.24
Jan  2 22:20:07 niels kernel: [ 6534.989911] ndas: Setting max request size to 64kbytes
Jan  2 22:20:07 niels kernel: [ 6534.989972] ndas: fail to register network interfaces.
Jan  2 22:20:07 niels kernel: [ 6535.124524] NET: Unregistered protocol family 29
Jan  2 22:21:21 niels kernel: [ 6609.294141] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:467|ing|modprobe,1:45:9.73,3828:1
Jan  2 22:21:21 niels kernel: [ 6609.294160] NET: Registered protocol family 29
Jan  2 22:21:21 niels kernel: [ 6609.294170] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f70f2c00(lo) event=5|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294185] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f70f2c00(lo) event=1|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294198] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294209] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f65df000(eth0) event=5|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294222] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f65df000(eth0) event=1|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294234] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294245] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f6050000(pan0) event=5|modprobe,1:45:9.73,3752:1
Jan  2 22:21:21 niels kernel: [ 6609.294259] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:548|ed|modprobe,1:45:9.73,3828:1
Jan  2 22:21:21 niels kernel: [ 6609.324966] 
Jan  2 22:21:21 niels kernel: [ 6609.324968] ndas: Initializing NDAS driver version 1.1.24
Jan  2 22:21:21 niels kernel: [ 6609.326669] ndas: Setting max request size to 64kbytes
Jan  2 22:21:21 niels kernel: [ 6609.326781] ndas: fail to register network interfaces.
Jan  2 22:21:22 niels kernel: [ 6609.468602] NET: Unregistered protocol family 29
==============================================================================
invoke-rc.d: initscript ndas, action "start" failed.
dpkg: error processing ndasadmin (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 ndasadmin

any news for me? thanks, niels

01/02/10 13:49:48 changed by niels

maybe it's because i have a x86_64 cpu?


Add/Change #1110 (Patch for Linux 2.6.31 (working with Ubuntu 9.10))