完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
我正在使用 IMX6ULL 及其自定义映像(yocto 映像),我想仅通过 USB 将 CANON LBP6030w 激光打印机连接到其中。帮我解决这个问题。
我已经尝试了这些步骤: 我将以下包添加到 local.conf 文件和构建映像中。加载图像并使用以下命令检查请求 ID 已创建,但打印机未打印任何内容。 包: IMAGE_INSTALL:append = " cups cups-filters ghostscript libpng qpdf openjpeg colord"IMAGE_INSTALL:append = " usbutils" 命令: 连接打印机 $ lpadmin -p -E -v -P /to/ppd/file> 打印文本文件的数据 $ lp -d $ lp -d -o raw 这是日志: $ 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 '<[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 |
|
相关推荐
1个回答
|
|
|
根据您的需求和已尝试的步骤,以下是详细的解决方案: 1. 确认硬件连接和USB识别首先确保打印机已正确连接并被系统识别:
2. 安装必要的软件包在
3. 获取Canon LBP6030w的PPD驱动文件Canon官方可能未提供Linux驱动,但可通过以下方式解决:
4. 配置CUPS打印服务(1) 通过命令行添加打印机:
(2) 通过Web界面配置:访问 5. 检查权限和用户组确保当前用户属于 6. 调试和日志分析(1) 检查CUPS错误日志:
(2) 测试打印命令:7. 安装专用驱动(可选)如果CUPS通用驱动无效,尝试从Canon官网下载Linux驱动:
8. 最终验证确保所有步骤完成后:
如果问题仍未解决,请提供以下信息以便进一步诊断:
|
|
|
|
|
只有小组成员才能发言,加入小组>>
2137个成员聚集在这个小组
加入小组我的项目我做主,使用GN+Ninja来完成构建系统(VSCode开发RT106X)
37393 浏览 0 评论
NXP IMX8应用处理器快速入门必备:技巧、使用、设计指南
6791 浏览 1 评论
7813 浏览 1 评论
7661 浏览 0 评论
NXP i.MX6UL开发板(linux系统烧录+规格+硬件+模块移植)使用手册
5084 浏览 0 评论
1575浏览 2评论
关于NINA-W132 Wi-Fi模块SPI通信遇到的疑问求解
1219浏览 2评论
如何在MPC PowerPC MCU上首次刷写后禁用BDM?
759浏览 1评论
将HFREFR和LFREFR寄存器值设置为错误的值来将故障注入CMU,但CMU_ISR值始终为零,为什么?
749浏览 1评论
将SPSDK for FRDM-MCX-W71 SDK与VS一起安装时出现hidapi构建错误怎么解决?
692浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-8 09:49 , Processed in 0.570975 second(s), Total 44, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2761