Samsung CLP-310, CLP-315 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
FreeBSD 8.0 and CLP315 [solved]
Posted by: demonick ()
Date: November 10, 2009 06:55AM

Hi everyone

Can't setup the SAMSUNG CLP-315 USB Printer on a AMD64 box running FreeBSD 8.0-RC2 although the installation instructions from INSTALL file were followed as is.

To be more specific :

* The kernel is compiled without the ulpt device support
* Installed on the system are :
gs:
ghostscript8-8.64_7 Ghostscript 8.x PostScript interpreter
cups:
cups-base-1.3.10_4 Common UNIX Printing System: Server
cups-client-1.3.10_4 Common UNIX Printing System: Library cups
cups-image-1.3.10_4 Common UNIX Printing System: Library cupsimage
cups-pstoraster-8.15.4_4 Postscript interpreter for CUPS printing to non-PS printers
cupsddk-1.2.3_3 CUPS Driver Development Kit
gutenprint-cups-5.1.7_4 GutenPrint Printer Driver
foomatic:
foomatic-db-20090530 Foomatic database
foomatic-db-engine-4.0.1,2 Foomatic database engine
foomatic-filters-4.0.1_2 Foomatic wrapper scripts
* The installation method was followed as mentioned in INSTALL file with gmake (gmake-3.81_3 GNU version of 'make' utility)

From the dmesg message :
ugen3.2: <Samsung Electronics Co., Ltd.> at usbus3

Problem
----------
Under CUPS Admin Page, when trying to add a printer, there is NO usb selection uner the "Device" section but only these selections :
-AppSocket/HP JetDirect
-Backend Error Handler
-Internet Printing Protocol (http)
-Internet Printing Protocol (ipp)
-LPD/LPR Host or Printer
of course I didn't expect a usb device (ulptx/unlptx) since the kernel is compiled without the ulpt support.

Nevertheless I have tried all the above selections in order to continue at the next page where is the 'URI Device Selection' where I am enetring
'usb:/dev/ugen3.2'

Next at the 'Make/Manufacturer page' I am selecting 'Samsung' and at the next page (Driver selection page) I am selecting 'Samsung CLP-315 Foomatic/foo2qpdl (recommended) (en)'

After that I get the 'Printer CLP315 has been added successfully' at the CUPS page.

Under CUPS Printer section I see :
CLP315


Description: SAMSUNG CLP-315
Location: Home
Printer Driver: Samsung CLP-315 Foomatic/foo2qpdl (recommended)
Printer State: idle, accepting jobs, published.
Device URI: usb:/dev/ugen3.2

When I am trying to print a test page I see the ' Test page sent; job ID is CLP315-20.' message and under the CUPS Jobs section I see the above info:

ID Name User Size Pages State
CLP315-20 Test Page root 17k Unknown stopped

If I go to the CUPS Printer section I see the above message:

CLP315 "Unable to open device file "/dev/ugen3.2": Permission denied"

SERVER# cat /etc/devfs.rules
[system=10]
add path 'ugen*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups

SERVER# cat /etc/rc.conf | grep devfs
# devfs
devfs_system_ruleset="system"

The users that I want to be able to print are added at the CUPS group.

Any ideas ?

Thank you in advance for your time

ps 1
From the INSTALL file at the FreeBSD section:
- Do one of these lines each time the printer is powered up:
# cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/ugen0.1
# cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/ugen0.1
# cat /usr/share/foo2xqx/firmware/sihpP1005.dl > /dev/ugen0.1
# cat /usr/share/foo2xqx/firmware/sihpP1006.dl > /dev/ugen0.1
# cat /usr/share/foo2xqx/firmware/sihpP1505.dl > /dev/ugen0.1

This is the firmware for some hp models. Do I have to do that for the Samsung CLP315 model ?(I don't believe so)



Edited 1 time(s). Last edit at 02/24/2010 06:48PM by rickrich.

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: rickrich ()
Date: November 10, 2009 07:41AM

What does this say:
$ cd foo2zjs
$ foo2qpdl-wrapper -z2 testpage.ps  > xxx.prn
$ ls -l /dev/ugen*
$ su
# chmod 666 /dev/ugen*
# cat xxx.prn > /dev/ugen3.2

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: demonick ()
Date: November 10, 2009 09:00AM

SERVER# whoami
root

SERVER# foo2qpdl-wrapper -z2 testpage.ps >> test.prn
gs.foo: not found

SERVER# ls -l /dev/ugen*
lrw-rw---- 1 root cups 9 Nov 10 13:25 /dev/ugen0.1 -> usb/0.1.0
lrw-rw---- 1 root cups 9 Nov 10 13:25 /dev/ugen1.1 -> usb/1.1.0
lrw-rw---- 1 root cups 9 Nov 10 13:25 /dev/ugen2.1 -> usb/2.1.0
lrw-rw---- 1 root cups 9 Nov 10 13:25 /dev/ugen3.1 -> usb/3.1.0
lrw-rw---- 1 root cups 9 Nov 10 13:25 /dev/ugen3.2 -> usb/3.2.0

SERVER# chmod 666 /dev/ugen*

SERVER# cat test.prn > /dev/ugen3.2
cat: stdout: Input/output error

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: rickrich ()
Date: November 10, 2009 09:07AM

Try all:

# cat test.prn > /dev/ugen0.1
...
# cat test.prn > /dev/ugen3.2

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: demonick ()
Date: November 10, 2009 09:16AM

SERVER# dmesg | grep ugen
ugen0.1: <nVidia> at usbus0
ugen1.1: <nVidia> at usbus1
ugen2.1: <nVidia> at usbus2
ugen3.1: <nVidia> at usbus3
ugen3.2: <Samsung Electronics Co., Ltd.> at usbus3

SERVER# ls *.prn
test.prn

SERVER# ls /dev/ugen*
/dev/ugen0.1 /dev/ugen1.1 /dev/ugen2.1 /dev/ugen3.1 /dev/ugen3.2

SERVER# whoami
root

SERVER# cat test.prn > /dev/ugen0.1
cat: stdout: Input/output error
SERVER# cat test.prn > /dev/ugen1.1
cat: stdout: Input/output error
SERVER# cat test.prn > /dev/ugen2.1
cat: stdout: Input/output error
SERVER# cat test.prn > /dev/ugen3.1
cat: stdout: Input/output error
SERVER# cat test.prn > /dev/ugen3.2
cat: stdout: Input/output error

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: rickrich ()
Date: November 10, 2009 09:30AM

No idea, then. Use Linux, instead.

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: demonick ()
Date: November 10, 2009 09:42AM

Ha ha. Linux. No way..
I'll try to find a solution (hopefully) and post the solution (eventually).

Thank you for your quick responses.

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: hessijens ()
Date: February 24, 2010 10:54AM

Dear Domonick

Could you fix the issue? I have better results to change the direct device and without firmeware.

chmod 660 /dev/usb/3.2.0
chmod root:cups /dev/usb/3.2.0

But I still get a kernel error from my printer - CLP-310. Does it work with the 315 model? Do you disabled the ulp driver in kernel in FreeBSD 8+?

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: rickrich ()
Date: February 24, 2010 06:18PM

Use /dev/usb/3.2.2. Control interface is on 3.2.0.

Options: ReplyQuote
Re: FreeBSD and CLP315
Posted by: hessijens ()
Date: February 27, 2010 05:14PM

Solved:

Yes the /dev/usb/3.2.2 device works (or the usd://xxxx device with libusb cups support).

But some hints. I have to edit the Makefile because "gmake install DESTDIR=/usr/local" does not install all files in the right place. I have t replace "$(DESTDIR)/usr" with "$(DESTDIR)" in the Makefile.

Second hint: I have to use the Samsung CLP 315 Driver for my CLP-310 with the Browser configuration. The CLP310 Driver (shows later at CLP-300) does not work for my printer.

Options: ReplyQuote
Re: FreeBSD 8.0 and CLP315 [solved]
Posted by: rickrich ()
Date: February 27, 2010 06:32PM

Use:
# gmake install
only!!!

Did you install from MY source???? Third party is NOT SUPPORTED!!!

Options: ReplyQuote
Re: FreeBSD 8.0 and CLP315 [solved]
Posted by: rickrich ()
Date: February 27, 2010 06:35PM

FREEBSD NOTES
-------------
    You need the following packages before you start the "make":
        # pkg_add -r wget
        # pkg_add -r gmake
        # pkg_add -r ghostscript-gnu
        # pkg_add -r cups
        # pkg_add -r foomatic-filters
        # pkg_add -r unzip

    Use "gmake" instead of "make".  E.G. gmake; ./getweb XXX; gmake install

    USB NOTES FOR FREEBSD 8.0 AND GREATER
    -------------------------------------
        $ gmake
        $ ./getweb 1020
            OR other printer, e.g. 2600n
        # gmake install install-hotplug
        # ./freebsd-install

        Use:
            usb:/dev/ulpt0
            usb:/dev/ulpt1
        for the URI.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.