With thanks to bozo29 below an instruction how to setup the nwsp2 as print server using an usb printer connected to the front side usb port.
In future release it will be integrated in the firmware.
Currently it is only supported on th nwsp2, we need to test if it vcan be used on nwsp1 and sp8020 as well but there the system memory might be too small.
Instruction for nwsp2
the install can be made using putty
You must have fvdw-sl-11-0 running with the 2.6.39.4 kernel
In the attachment you find two files:
p910nd (this is the daemon)
usblp.ko (this is the kernel module to enable printer support on usb port)
Put both in the share with name "public" on the nwsp2 (assume you have this share)
This can be done using windows explorer.
Now access the Nwsp2 with putty.
At the command line give following commands:
install kernel module
- Code: Select all
cp /share/1000/public/usblp.ko /lib/modules/2.6.39.4/
chmod 755 /lib/modules/2.6.39.4/usblp.ko
busybox depmod
modprobe usblp
now the module should be loaded check it with command
- Code: Select all
lsmod
the list you get should mention the module usblp and that it is "live", this is the output on my system
- Code: Select all
# lsmod
usblp 9896 0 - Live 0xbf023000
Next, install the daemon
- Code: Select all
cp /share/1000/public/p910nd /usr/sbin/
chmod 755 /usr/sbin/p910nd
create a directory that the daemon needs to run, if you don't make this one it won't start
- Code: Select all
mkdir /var/lock
mkdir/var/lock/subsys
Now connect your usb printer and see if it is detected
You can use commands "dmesg" (without quotes) to see if the printer is detected by the nwsp2.
If so then the daemon should also be able to detect it
You can start it by simply giving the command (see internet for more options you can use to start p910nd)
- Code: Select all
p910nd -f /dev/usb/lp0
to see if it is in memory and running give the command
- Code: Select all
ps -ef
the list that you get should have a line like this
- Code: Select all
root 5292 1 0 22:25 ? 00:00:00 p9100d -f /dev/usb/lp0
Now you can try if the daemon can talk with your printer.
using the guide prepared by Bozo29
ps the directory that you created will be deleted at boot and also the kernel module will not be loaded by default during boot. So you will need to repeat that after a reboot. To avoid it we need to change the boot scripts. That will be included in next release.
Also be aware that this folder is created on the relative small system partition. I don't know what the daemon will put in there and if it will be big files or not. If they are big then the partition might run out of space.
Bozo29 successfully installed it and reported that it is working
success and let us know if it works ;)