p910nd - for print server

p910nd - for print server

Postby bozo29 » Tue Jan 17, 2012 6:36 pm

Hi,

May i ask you if you can, or if it is possible to put "p910nd - a printer daemon from optware" in a future build of fvdw-sl, so we could use Lacie NS 2 as a print server?
I installed p910nd from PuTTY, but i don't know how can i start it. :roll:

My commands on PuTTY:
root@LACIE: ipkg update
then
root@LACIE: ipkg install p910nd
And worked, i received a message that p910nd was installed.
I checked and it is in /opt/bin.

It is possible for you to put this printer daemon in a future build and activate it at startup?
I do not know if he has any connection with your work, but for example p910nd is integrated TomatoUSB firmware http://tomatousb.org/.
I gave example TomatoUSB because he is also built on Vanilla.

Thank you in advance.
Anyway, with or without print server, you did a great job with this firmware.

Bozo
bozo29
 
Posts: 82
Joined: Mon Dec 12, 2011 6:53 pm
Location: Romania

Re: p910nd - for print server

Postby fvdw » Tue Jan 17, 2012 7:58 pm

I will look at this , I downloaded the latest version of p910nd and compiled it without a problem, its a simple program with no dependencies, no need to use optware which is not always reliable in using. I avoid using it as much as possible as also the binaries could contain some malware.
Need to look how it has to be installed. In any case it will need a kernel module to enable support for printers on the usb port. Thats no problem I prepared the(2.6.39.4) kernel already for it and have the module available. Without this module the daemon can not communicate with the printer. The module must have been build for the kernel running on the box

Do you have some experience with Linux and can do a trial for us to see if this can be made working ? if so I will post some files and instructions to do a test
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: p910nd - for print server

Postby bozo29 » Tue Jan 17, 2012 8:42 pm

Thank you very much for yours effort.
I have a little experience with linux, but if you give me instructions i'll be happy to test anything.
The tests will be run on PuTTY on Lacie NSP2 ? I put this questions because i'm a windows 7(64bits) user, i don't have a linux installed on my laptop.
To install fvdw-sl I used RIPLinux (a Slackware-based CD) http://distrowatch.com/table.php?distribution=rip.
And another problem; I do not know if I have time before the weekend, but I can test all you want in week-end.
bozo29
 
Posts: 82
Joined: Mon Dec 12, 2011 6:53 pm
Location: Romania

Re: p910nd - for print server

Postby fvdw » Tue Jan 17, 2012 9:39 pm

yes the install can be made using putty

You must have 11-0 running with the 2.6.39.4 kernel

p910nd.zip

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 like "lsusb" and "dmesg" (without quotes) to see if the printer is detected by the nwsp.
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


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

Now you can try if the daemon can talk with your printer
Note: I have no experience with it so don't know if it will work now or not, but I think you should be ok now, but maybe a driver is needed if your printer is not supported by usblp.

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. To avoid it we need to change the boot script. But that is of later concern.
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. But there is a solution for that as well

success and let us know if it works ;)
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: p910nd - for print server

Postby bozo29 » Tue Jan 17, 2012 10:44 pm

I read what you wrote and does not seem complicated.
As soon as I have time I will test (maybe sooner than the weekend).
However, immediately after the test I have to announce the result.

Now I go to sleep, but are eager to do the test.

Talk soon
bozo29
 
Posts: 82
Joined: Mon Dec 12, 2011 6:53 pm
Location: Romania

Re: p910nd - for print server

Postby bozo29 » Wed Jan 18, 2012 8:28 pm

O.K. I did everything you said and here's the result:

In PuTTY everything seems to be fine. There was no error message and p910nd is on.
However if I try to print something nothing happens, no print.
In Windows I made printer configuration in the same way that I did for TomatoUSB: http://tomatousb.org/tut:configure-printer-in-windows
I have an Asus RT-N16 router that has 2 USB ports and the printer is connected to one of them.
Printer connected to the router it works.

Here's what I did in PuTTY:
login as: root
root@192.168.1.30's password:
root@LACIE:/ # cp /share/1000/public/usblp.ko /lib/modules/2.6.39.4/
root@LACIE:/ # chmod 755 /lib/modules/2.6.39.4/usblp.ko
root@LACIE:/ # busybox depmod
root@LACIE:/ # modprobe usblp
root@LACIE:/ # lsmod
usblp 9896 0 - Live 0xbf023000
usb_storage 34744 0 - Live 0xbf010000
ehci_hcd 34482 0 - Live 0xbf000000
root@LACIE:/ # cp /share/1000/public/p910nd /usr/sbin/
root@LACIE:/ # chmod 755 /usr/sbin/p910nd
root@LACIE:/ # mkdir /var/lock
root@LACIE:/ # mkdir /var/lock/subsys
root@LACIE:/ # lsusb
root@LACIE:/ # dmesg
Linux version 2.6.39.4 (root@fvdwsl-nwsp2.local) (gcc version 4.2.3) #41 PREEMPT Fri Nov 11 22:38:13 GMT+1 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: LaCie Network Space v2
Ignoring unrecognised tag 0x41000403
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c05f59d8, node_mem_map c0610000
Normal zone: 512 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 65024 pages, LIFO batch:15
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=ASTON_KW
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 253652k/253652k available, 8492k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xd0800000 - 0xfe800000 ( 736 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002d000 ( 148 kB)
.text : 0xc002d000 - 0xc05cd000 (5760 kB)
.data : 0xc05ce000 - 0xc05f60a0 ( 161 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:114
sched_clock: 32 bits at 166MHz, resolution 5ns, wraps every 25769ms
Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=166666667.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
initial MPP regs: 01112222 00003311 00551100 00000000 00000000 00000000 00000000
final MPP regs: 01112222 00003311 00551100 00000000 00000000 00000000 00000000
orion-ehci registered
bio: create slab <bio-0> at 0
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 32
NetWinder Floating Point Emulator V0.97 (double precision)
gpio-usb gpio-usb: USB GPIO's initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.30 [Flags: R/W].
fuse init (API version 7.16)
JFS: nTxBlock = 1981, nTxLock = 15853
SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 495
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:d0:4b:91:26:f9
ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver ipheth
aoe: AoE v47 initialised.
input: gpio-keys as /devices/platform/gpio-keys/input/input0
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
at24 0-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
Registered led device: ns_v2:red:fail
Registered led device: ns_v2:blue:sata
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 5
VFP support v0.3: not present
Gating clock of unused units
before: 0x00c7c1dd
after: 0x00c7c1c9
rtc-mv rtc-mv: setting system clock to 2012-01-18 21:40:44 UTC (1326922844)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata1.00: ATA-8: WDC WD5000AADS-00S9B0, 01.00A01, max UDMA/133
ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA WDC WD5000AADS-0 01.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 >
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl F300)
EXT3-fs (sda7): recovery required on readonly filesystem
EXT3-fs (sda7): write access will be enabled during recovery
EXT3-fs: barriers not enabled
EXT3-fs (sda7): recovery complete
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda7): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) readonly on device 8:7.
Freeing init memory: 148K
EXT3-fs (sda7): using internal journal
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda5): using internal journal
EXT3-fs (sda5): recovery complete
EXT3-fs (sda5): mounted filesystem with ordered data mode
Adding 524284k swap on /dev/sda3. Priority:-1 extents:1 across:524284k
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Marvell Orion EHCI
usb usb1: Manufacturer: Linux 2.6.39.4 ehci_hcd
usb usb1: SerialNumber: orion-ehci.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device number 2 using orion-ehci
usb 1-1: New USB device found, idVendor=03f0, idProduct=5617
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HP LaserJet M1120 MFP
usb 1-1: Manufacturer: Hewlett-Packard
usb 1-1: SerialNumber: MF30J63
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda8): using internal journal
EXT3-fs (sda8): recovery complete
EXT3-fs (sda8): mounted filesystem with ordered data mode
ADDRCONF(NETDEV_UP): eth0: link is not ready
mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udevd (684): /proc/684/oom_adj is deprecated, please use /proc/684/oom_score_adj instead.
eth0: no IPv6 routers present
warning: `proftpd' uses 32-bit capabilities (legacy support in use)
usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x5617
usbcore: registered new interface driver usblp
root@LACIE:/ # p910nd
root@LACIE:/ # ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 21:40 ? 00:00:00 init
root 2 0 0 21:40 ? 00:00:00 [kthreadd]
root 3 2 0 21:40 ? 00:00:00 [ksoftirqd/0]
root 4 2 0 21:40 ? 00:00:00 [kworker/0:0]
root 5 2 0 21:40 ? 00:00:00 [kworker/u:0]
root 6 2 0 21:40 ? 00:00:00 [khelper]
root 7 2 0 21:40 ? 00:00:00 [kworker/u:1]
root 166 2 0 21:40 ? 00:00:00 [sync_supers]
root 168 2 0 21:40 ? 00:00:00 [bdi-default]
root 169 2 0 21:40 ? 00:00:00 [kblockd]
root 174 2 0 21:40 ? 00:00:00 [ata_sff]
root 185 2 0 21:40 ? 00:00:00 [khubd]
root 211 2 0 21:40 ? 00:00:00 [rpciod]
root 212 2 0 21:40 ? 00:00:00 [kworker/0:1]
root 219 2 0 21:40 ? 00:00:00 [kswapd0]
root 268 2 0 21:40 ? 00:00:00 [fsnotify_mark]
root 279 2 0 21:40 ? 00:00:00 [nfsiod]
root 295 2 0 21:40 ? 00:00:00 [jfsIO]
root 296 2 0 21:40 ? 00:00:00 [jfsCommit]
root 297 2 0 21:40 ? 00:00:00 [jfsSync]
root 304 2 0 21:40 ? 00:00:00 [xfs_mru_cache]
root 305 2 0 21:40 ? 00:00:00 [xfslogd]
root 306 2 0 21:40 ? 00:00:00 [xfsdatad]
root 307 2 0 21:40 ? 00:00:00 [xfsconvertd]
root 308 2 0 21:40 ? 00:00:00 [crypto]
root 385 2 0 21:40 ? 00:00:00 [scsi_eh_0]
root 388 2 0 21:40 ? 00:00:00 [scsi_eh_1]
root 391 2 0 21:40 ? 00:00:00 [kworker/u:2]
root 392 2 0 21:40 ? 00:00:00 [kworker/u:3]
root 398 2 0 21:40 ? 00:00:00 [smflush]
root 446 2 0 21:40 ? 00:00:00 [mv_crypto]
root 466 2 0 21:40 ? 00:00:00 [kworker/u:4]
root 478 2 0 21:40 ? 00:00:00 [kjournald]
root 498 2 0 21:40 ? 00:00:00 [kjournald]
root 624 2 0 21:40 ? 00:00:00 [flush-8:0]
root 633 1 0 21:40 ? 00:00:00 /usr/sbin/noflushd -n 15 /dev/sda
root 644 2 0 21:40 ? 00:00:00 [kjournald]
root 675 1 0 21:41 ? 00:00:00 /sbin/udhcpc -b -i eth0 -s /etc/api/api_dhcpc.php dhcpdCbScrip
root 684 1 0 21:41 ? 00:00:00 /sbin/udevd
root 689 1 0 21:41 ? 00:00:01 /usr/bin/httpd -f httpd.conf -d /etc
_ntp 704 1 0 21:41 ? 00:00:00 /usr/bin/ntpd -s -f /rw_fs/etc/ntp.conf
root 705 1 0 21:41 ? 00:00:00 /usr/bin/ntpd -s -f /rw_fs/etc/ntp.conf
nobody 710 689 0 21:41 ? 00:00:01 /usr/bin/httpd -f httpd.conf -d /etc
root 730 1 0 21:41 ? 00:00:00 /usr/sbin/syncawayd -n 3
root 741 1 0 21:41 ? 00:00:01 mrvlqosd
nobody 787 1 0 21:41 ? 00:00:00 proftpd: (accepting connections)
root 801 1 0 21:41 ? 00:00:00 dropbear -p 22 -r /rw_fs/etc/dropbear/dropbear_rsa_host_key
root 812 1 0 21:41 ? 00:00:00 /usr/sbin/hostd 7200
root 814 2 0 21:41 ? 00:00:00 [kworker/0:2]
root 841 1 0 21:41 ? 00:00:00 /usr/sbin/buttons-nwsp2
root 865 1 0 21:41 ? 00:00:00 /usr/sbin/nmbd -D -l /var/log/samba
root 867 1 0 21:41 ? 00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root 870 867 0 21:41 ? 00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root 871 1 7 21:41 ? 00:00:18 /usr/bin/transmission-daemon -g /share/1000/tr-daemon
root 883 1 0 21:41 ? 00:00:00 /bin/sh
nobody 888 689 0 21:42 ? 00:00:00 /usr/bin/httpd -f httpd.conf -d /etc
root 943 801 0 21:43 ? 00:00:00 dropbear -p 22 -r /rw_fs/etc/dropbear/dropbear_rsa_host_key
root 944 943 0 21:43 ttyp0 00:00:00 -sh

root 1005 1 0 21:45 ? 00:00:00 p9100d

root 1009 944 0 21:45 ttyp0 00:00:00 ps -ef
root@LACIE:/ #


I thought it may help if you see and as shown in PuTTy TomatoUSB after giving the command "ps":
login as: root
root@192.168.1.1's password:


Tomato v1.28.0000 MIPSR2-083V K26 USB VPN
root@WRB:/tmp/home/root# ps
PID USER VSZ STAT COMMAND
1 root 1364 S /sbin/init noinitrd
2 root 0 SW< [kthreadd]
3 root 0 SW< [ksoftirqd/0]
4 root 0 SW< [events/0]
5 root 0 SW< [khelper]
19 root 0 SW< [kblockd/0]
45 root 0 SW [pdflush]
46 root 0 SW [pdflush]
47 root 0 SW< [kswapd0]
48 root 0 SW< [aio/0]
90 root 0 SW< [mtdblockd]
282 root 752 S hotplug2 --persistent --no-coldplug
321 root 1348 S buttons
322 root 1316 S console
323 root 1724 S /bin/sh
338 root 0 SW< [khubd]

379 root 736 S p9100d -b -f /dev/usb/lp0 0

498 root 1144 S dropbear -p 22 -a
1444 root 1716 S syslogd -L -s 50
1446 root 1716 S klogd
1556 root 1012 S eapd
1559 root 1192 S nas
1568 root 1736 S crond -l 9
1570 root 1028 S rstats
1575 root 1016 S cstats
1608 nobody 1068 S dnsmasq -c 1500 --log-async
1929 root 2572 S httpd
1930 root 1732 S udhcpc -i vlan2 -b -s dhcpc-event -H WRB -m
2044 root 1216 S dropbear -p 22 -a
2045 root 1728 S -sh
2049 root 1720 R ps
root@WRB:/tmp/home/root#


If you have any idea tell me what to do.
bozo29
 
Posts: 82
Joined: Mon Dec 12, 2011 6:53 pm
Location: Romania

Re: p910nd - for print server

Postby fvdw » Wed Jan 18, 2012 10:06 pm

well the NAS has detected your printer

Code: Select all
usb 1-1: new high speed USB device number 2 using orion-ehci
usb 1-1: New USB device found, idVendor=03f0, idProduct=5617
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HP LaserJet M1120 MFP
usb 1-1: Manufacturer: Hewlett-Packard
usb 1-1: SerialNumber: MF30J63


and also assigned a device driver

Code: Select all
usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x5617
usbcore: registered new interface driver usblp


as it is an usb printer I guess you need to start p910nd with the -f option and specifying which device to use
(dev used by the daeomon will be when not specified /dev/lp0 which is normally a device connected to a paralel printer port which we don't have)
So try something like this
Code: Select all
p910nd -f /dev/usblp0


look in the /dev directory to see what name is used for usblp0, it could also be /dev/usb/lp0
(in the "Tomato" output you can see that they also used the -f option
see also for instance here http://members.shaw.ca/nicholas.fong/pr ... 910nd.html

or do a google search on p910nd how to that might give you some more clues, sorry that i can't help you better but I don't have a usb printer myself
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: p910nd - for print server

Postby bozo29 » Thu Jan 19, 2012 8:05 pm

It works! I did what you said and it works.
The syntax is "p910nd -f /dev/usb/lp0"
To avoid any problem I stopped first "p9100d", then I restarted "p910nd"

I printed a few pages for test it, then I rebooted the NAS and I repeated the installation procedure from the beginning.
That's just to make sure that I get the same result.
The result was that it works. :D

I did a mini tutorial in pictures, how to set the printer in windows 7 to work.
There are 13 pictures in PNG format and I can give you to put them on the forum if you want. Just tell me how to send them to you.
If you make the decision to integrate "p910nd" in a future release of fvdw-sl.

I do not want to be insistent, but you think you can integrate "p910nd" in a future release of fvdw-sl and to make it start automatically when start the NAS?

Whatever decision you make I thank you anyway for the effort and work done for this firmware.

Bozo
bozo29
 
Posts: 82
Joined: Mon Dec 12, 2011 6:53 pm
Location: Romania

Re: p910nd - for print server

Postby fvdw » Thu Jan 19, 2012 9:13 pm

thats good news bozo :D

yes we can include this in the next release and let it start automatically if the user wishes that. A option will be added to one of the menu to enable it at boot. This because for user that don't use it is only waste of memory.

I have on request, can you check if the feature to switch from front to back port usb still works when the usblp module is loaded. If not then more work necessary to integrate it.

The files and guide you can post right here, put them in a zip archive and attach tmen to your post. We will transfer them then to the download section with the frmware and how to guides.

thanks for helping to add another nice feature to the firmware :ugeek:
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: p910nd - for print server

Postby bozo29 » Thu Jan 19, 2012 10:13 pm

And news from you are also good.
Yes, i can do that, perhaps tomorow (if i have time :? ).
But i have some question for you, because i don't used this function of NSP2 until now (because i don't need). My NSP2 is mounted in a holder on the wall. 8-)

To be able to use NSP2 in "device mode" I need to create a disk image file first. Correct?
When i create this disk image, it is possible to loose some information that i have on disk?

It is not a problem, but i wish to know that.

When I connect the laptop to the back port usb of NSP2, is necessary to disconnect the NSP2 from the network, or two connections can operating simultaneously?

And last question: After I test it and delete the image created on HDD, everything on HDD returns to its original shape?

I will attach to the next post the files in a zip archive.

Back with news soon
bozo29
 
Posts: 82
Joined: Mon Dec 12, 2011 6:53 pm
Location: Romania

Next

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 4 guests