[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: [Nbd] Nbd on the sharp zaurus



After further investigation, I've found that /proc/devices doesn't contain NBD...
So what's wrong?

-----Original Message-----
From: nbd-general-admin@lists.sourceforge.net [mailto:nbd-general-admin@lists.sourceforge.net] On Behalf Of Cedric Bompart
Sent: 13 May 2004 13:17
To: 'nbd-general@lists.sourceforge.net'
Subject: [Nbd] Nbd on the sharp zaurus

Hi,

I'm trying to get NBD working on my Sharp Zaurus SL5600 (Xscale 400Mhz - kernel 2.4.18-rmk7-pxa3-embedix). The ultimate goal will be to set a NBD swap partition.

Here are the configuration steps for the server (my main Linux box):
  - compiled the nbd server for my main Linux box --> $./configure; make
  - created a file on the server --> $ dd if=/dev/zero of=/tmp/remote.swap bs=1M count=64
  - started the server --> $ nbd-server 2000 /tmp/remote.swap

Here are the configuration steps for the client (my Zaurus):
  - enabled the nbd module to the kernel --> CONFIG_BLK_DEV_NBD=m
  - compiled the nbd module
  - uploaded the module in /lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/block/
  - installed the module --> $ sudo modprobe nbd
  - checked the module --> $ lsmod --> nbd 15024 0 (unused)
  - created a NBD --> $ sudo mknod /dev/nbd0 b 43 0
  - cross-compiled the nbd client for ARM on my main Linux box --> $ ./configure --host=arm-linux --build=i686-pc-linux-gnu; make
  - uploaded the nbd client

I'm getting this when I'm starting the client:

$ sudo ./nbd-client <server ip address> 2000 /dev/nbd0
Error: Can not open NBD: No such device or address

$ ls -l /dev/nbd0
brw-r--r--    1 root     root      43,   0 May 13 08:59 /dev/nbd0

$ cat /dev/nbd0
cat: /dev/nbd0: No such device or address


What have I done wrong?

I didn't find the NBD swap patch for my kernel, where can I find it?



Regards,
Ced.

--
Mr Cedric Bompart
Senior Developer


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Nbd-general mailing list
Nbd-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nbd-general



Reply to: