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

[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



Reply to: