Hello Everyone,
I am using IMX6ULL and its custom image (yocto image) and i want to interface CANON LBP6030w Laser printer in it via usb only. help me out with that.
I already tried these steps:
I added following packages to local.conf file and build image. Loaded the image and checked with the following commands request id created but printer is not printing anything.
Packages:
IMAGE_INSTALL:append = " cups cups-filters ghostscript libpng qpdf openjpeg colord"
IMAGE_INSTALL:append = " usbutils"
Commands:
Connect Printer
$ lpadmin -p <Printer_name> -E -v <USB_URI> -P </path/to/ppd/file>
Print data of text file
$ lp -d <printer_name> <text_file>
$ lp -d <printer_name> -o raw <text_file>
This is the logs:
$ lp -d canon test.txt
request id is canon-xx (1 file(s))
$ cat /var/log/cups/error_log
E [06/Feb/2025:04:36:10 +0000] [Job 28] cfFilterGhostscript: Unable to open raster stream - : Broken pipe
E [06/Feb/2025:04:36:18 +0000] [Job 28] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.
D [06/Feb/2025:04:36:18 +0000] [Job 28] The following messages were recorded from 04:36:09 to 04:36:18
D [06/Feb/2025:04:36:18 +0000] [Job 28] Applying default options...
D [06/Feb/2025:04:36:18 +0000] [Job 28] Adding start banner page "none".
D [06/Feb/2025:04:36:18 +0000] [Job 28] Queued on "canon" by "root".
D [06/Feb/2025:04:36:18 +0000] [Job 28] Auto-typing file...
D [06/Feb/2025:04:36:18 +0000] [Job 28] Request file type is text/plain.
D [06/Feb/2025:04:36:18 +0000] [Job 28] File of type text/plain queued by "root".
D [06/Feb/2025:04:36:18 +0000] [Job 28] Adding end banner page "none".
D [06/Feb/2025:04:36:18 +0000] [Job 28] time-at-processing=1738816569
D [06/Feb/2025:04:36:18 +0000] [Job 28] 3 filters for job:
D [06/Feb/2025:04:36:18 +0000] [Job 28] - (text/plain to application/vnd.universal-input, cost 0)
D [06/Feb/2025:04:36:18 +0000] [Job 28] universal (application/vnd.universal-input to application/vnd.cups-raster, cost 0)
D [06/Feb/2025:04:36:18 +0000] [Job 28] rastertosfp (application/vnd.cups-raster to printer/canon, cost 0)
D [06/Feb/2025:04:36:18 +0000] [Job 28] job-sheets=none,none
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[0]="canon"
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[1]="28"
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[2]="root"
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[3]="test.txt"
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[4]="1"
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[5]="finishings=3 number-up=1 print-color-mode=color job-uuid=urn:uuid:5309bfb5-7159-36e3-58a5-5d5ff47d0d12 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1738816569 time-at-processing=1738816569 document-name-supplied=test.txt"
D [06/Feb/2025:04:36:18 +0000] [Job 28] argv[6]="/var/spool/cups/d00028-001"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[2]="CUPS_DOCROOT=/usr/share/doc/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[3]="CUPS_REQUESTROOT=/var/spool/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[4]="CUPS_SERVERBIN=/usr/libexec/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[5]="CUPS_SERVERROOT=/etc/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[6]="CUPS_STATEDIR=/var/run/cups"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[7]="HOME=/var/spool/cups/tmp"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[8]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[9]="SERVER_ADMIN=root@colibri-imx6ull-emmc-07324251"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[10]="SOFTWARE=CUPS/2.4.10"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[12]="USER=root"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[13]="CUPS_MAX_MESSAGE=2047"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[14]="CUPS_SERVER=/run/cups/cups.sock"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[16]="IPP_PORT=631"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[17]="CHARSET=utf-8"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[18]="LANG=en.UTF-8"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[19]="PPD=/etc/cups/ppd/canon.ppd"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[20]="CONTENT_TYPE=text/plain"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[21]="DEVICE_URI=usb://Canon/LBP6030/6040/6018L?serial=0000A1K1QDN0"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[22]="PRINTER_INFO=canon"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[23]="PRINTER_LOCATION="
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[24]="PRINTER=canon"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[25]="PRINTER_STATE_REASONS=none"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[26]="CUPS_FILETYPE=document"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[27]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [06/Feb/2025:04:36:18 +0000] [Job 28] envp[28]="AUTH_I****"
D [06/Feb/2025:04:36:18 +0000] [Job 28] Started filter /usr/libexec/cups/filter/universal (PID 589)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Started filter /usr/libexec/cups/filter/rastertosfp (PID 590)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Started backend /usr/libexec/cups/backend/usb (PID 592)
D [06/Feb/2025:04:36:18 +0000] [Job 28] execv failed: Exec format error
D [06/Feb/2025:04:36:18 +0000] [Job 28] PID 590 (/usr/libexec/cups/filter/rastertosfp) stopped with status 108 (Exec format error)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Hint: Try setting the LogLevel to "debug" to find out more.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Loading USB quirks from \"/usr/share/cups/usb\".
D [06/Feb/2025:04:36:18 +0000] [Job 28] Loaded 120 quirks.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Printing on printer with URI: usb://Canon/LBP6030/6040/6018L?serial=0000A1K1QDN0
D [06/Feb/2025:04:36:18 +0000] [Job 28] libusb_get_device_list=3
D [06/Feb/2025:04:36:18 +0000] [Job 28] STATE: +connecting-to-device
D [06/Feb/2025:04:36:18 +0000] [Job 28] STATE: -connecting-to-device
D [06/Feb/2025:04:36:18 +0000] [Job 28] iSerialNumber=\"0000A1K1QDN0\"
D [06/Feb/2025:04:36:18 +0000] [Job 28] Printer found with device ID: MFG:Canon;MDL:LBP6030/6040/6018L;CLS:PRINTER;DES:Canon LBP6030/6040/6018L;CID:CA_UFRIILT_OIP;CMD:LIPSLX,CPCA;PESP:V1; Device URI: usb://Canon/LBP6030/6040/6018L?serial=0000A1K1QDN0
D [06/Feb/2025:04:36:18 +0000] [Job 28] Device protocol: 2
D [06/Feb/2025:04:36:18 +0000] [Job 28] Sending data to printer.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Sent 0 bytes...
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterLoadPPD: Color profile qualifier determined from job and PPD data \'.PlainPaper.600\'
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterLoadPPD: No ICC profiles specified in PPD
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterLoadPPD: Searching for profile \"600/PlainPaper\"...
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterLoadPPD: Last filter determined by the PPD: rastertosfp; Final data MIME type: application/vnd.cups-raster => PDF filter will not log pages in page_log.
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterUniversal: \"*cupsFilter(2): ...\" lines in the PPD file:
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterUniversal: application/vnd.cups-raw application/octet-stream 0 -
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterUniversal: application/vnd.cups-raster 0 rastertosfp
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterUniversal: PPD uses \"*cupsFilter: ...\" lines, so we always convert to format given by FINAL_CONTENT_TYPE
D [06/Feb/2025:04:36:18 +0000] [Job 28] ppdFilterUniversal: Converting from text/plain to application/vnd.cups-raster
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterUniversal: Converting from text/plain to application/vnd.cups-raster
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterUniversal: Final output format for job: application/vnd.cups-raster
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterUniversal: Adding texttopdf to chain
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterUniversal: Adding pdftopdf to chain
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterUniversal: Adding ghostscript to chain
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: Running filter: texttopdf
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: Running filter: pdftopdf
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: Running filter: ghostscript
D [06/Feb/2025:04:36:18 +0000] [Job 28] DEBUG: cfFilterChain: texttopdf (PID 597) started.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Color space requested: Default
D [06/Feb/2025:04:36:18 +0000] [Job 28] Final output format: CUPS Raster
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: pdftopdf (PID 598) started.
D [06/Feb/2025:04:36:18 +0000] [Job 28] INFO: cfFilterChain: ghostscript (PID 599) started.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Output format: CUPS Raster
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Copying input to temp file \"/var/spool/cups/tmp/0025767b01b85\"
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterPDFToPDF: Suppressed page logging selected by options.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterPDFToPDF: Processing PDF input with QPDF: Page-ranges, page-set, number-up, booklet, size adjustment, ...
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterPDFToPDF: \"print-scaling\" IPP attribute: auto
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterPDFToPDF: Print scaling mode: Do not scale, center, crop if needed
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterPDFToPDF: After Cropping: 595.000000 842.000000 595.275574 841.889771
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: texttopdf completed with status 0.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: texttopdf (PID 597) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] DEBUG: cfFilterGhostscript: Input format: PDF
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: pdftopdf completed with status 0.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Color space requested: Default
D [06/Feb/2025:04:36:18 +0000] [Job 28] Final output format: CUPS Raster
D [06/Feb/2025:04:36:18 +0000] [Job 28] Print rendering intent = auto
D [06/Feb/2025:04:36:18 +0000] [Job 28] Color Manager: Calibration Mode/Off
D [06/Feb/2025:04:36:18 +0000] [Job 28] Calling FindDeviceById(cups-canon)
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: pdftopdf (PID 598) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Found device /org/freedesktop/ColorManager/devices/cups_canon
D [06/Feb/2025:04:36:18 +0000] [Job 28] Calling org.freedesktop.ColorManager.Device.Get(ProfilingInhibitors)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Calling FindDeviceById(cups-canon)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Found device /org/freedesktop/ColorManager/devices/cups_canon
D [06/Feb/2025:04:36:18 +0000] [Job 28] Calling GetProfileForQualifiers(.PlainPaper.600...)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Found profile /org/freedesktop/ColorManager/profiles/canon_Gray__
D [06/Feb/2025:04:36:18 +0000] [Job 28] Calling org.freedesktop.ColorManager.Profile.Get(Filename)
D [06/Feb/2025:04:36:18 +0000] [Job 28] Failed to get profile filename for cups-canon
D [06/Feb/2025:04:36:18 +0000] [Job 28] Color Manager: ICC Profile:
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Ghostscript using Any-Part-of-Pixel method to fill paths.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Ghostscript command line: gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dUsePDFX3Profile -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=PlainPaper -r600x600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -scupsRenderingIntent=auto -scupsPageSizeName=A4 -dcupsManualCopies -I/usr/share/cups/fonts -c \'<</.HWMargins[14.173228 14.173228 14.173218 14.173218] /Margins[0 0]>>setpagedevice\' -f -_
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Started Ghostscript (PID 600)
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Started logging (PID 601)
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Input data feed completed
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Start rendering...
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Processing page 1...
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: **** Error: Page drawing error occurred.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Could not draw this page at all, page will be missing in the output.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Waiting for read thread to exit...
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Rendering completed
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Ghostscript (PID 600) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterGhostscript: Logging (PID 601) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: ghostscript completed with status 0.
D [06/Feb/2025:04:36:18 +0000] [Job 28] cfFilterChain: ghostscript (PID 599) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] PID 589 (/usr/libexec/cups/filter/universal) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] Read thread still active, aborting the pending read...
D [06/Feb/2025:04:36:18 +0000] [Job 28] PID 592 (/usr/libexec/cups/backend/usb) exited with no errors.
D [06/Feb/2025:04:36:18 +0000] [Job 28] End of messages
D [06/Feb/2025:04:36:18 +0000] [Job 28] printer-state=3(idle)
D [06/Feb/2025:04:36:18 +0000] [Job 28] printer-state-message="cfFilterChain: ghostscript (PID 599) exited with no errors."
D [06/Feb/2025:04:36:18 +0000] [Job 28] printer-state-reasons=none