• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » Interface Printer with AM1808
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Interface Printer with AM1808

Interface Printer with AM1808

This question is not answered
harnek singh
Posted by harnek singh
on May 10 2012 23:46 PM
Prodigy235 points

Hello dear,

I have enable USB Printer Support in Kernel configuration.Also get  /dev/usb/lp0 node and  print  through terminal cmd echo -en "\sSTRING" >/dev/usb/lp0

on HP Deskjet D5568.

But my requirement is to print through cups.

I have cross- compiled cups like this

export CC=/opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc

  export CXX=/opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++
   export LD=/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld
 
    export LDFLAGS="-static"

  ./configure --prefix=/nfs/targetNFS --host=/opt/arm-2009q1/bin/arm-none-linux-gnueabi- --disable-dbus --enable-static-link --disable-shared

make

make install

it cross compiled successfully.but when i print  lpr /text.txt give error

root@am180x-evm:/# lpr /opt/lalit.txt
lpr: Error - scheduler not responding!

also it shows driver =none in devices file

root@am180x-evm:/proc/bus/usb# cat devices

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=03f0 ProdID=8211 Rev= 1.00
S:  Manufacturer=HP
S:  Product=Deskjet D5500 series
S:  SerialNumber=CN9BDDD12P05FH
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)
E:  Ad=08(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=89(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=d4 Prot=00 Driver=(none)
E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

suggest me for the same.

Harnek Singh

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Ajay
    Posted by Ajay
    on May 14 2012 02:27 AM
    Genius9470 points

    Harnek,

    Which driver have you enabled in kernel config or have compiled and inserted the driver for HP printer. Google show me that there is a linux specific driver which u need to compile and insert into the kernel. Please refer the below page,

    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3811581&prodTypeId=18972&prodSeriesId=3811580&swLang=8&taskId=135&swEnvOID=2020

    http://hplipopensource.com/hplip-web/index.html?

    Ajay

    If my reply answers your question then please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ajay
    Posted by Ajay
    on May 14 2012 02:30 AM
    Genius9470 points

    Harnek,

    Do you have any update ?

    Ajay

    If my reply answers your question then please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • harnek singh
    Posted by harnek singh
    on May 17 2012 02:41 AM
    Prodigy235 points

    Hi dear,

    I am getting the following error while cross-compiling HPlip-3.12.4 package

    configure: error: "cannot find libjpeg support".

    I am following these configure option .

    root@harnek-desktop:/nfs/targetNFS/hplip-3.12.4# ./configure --host=x86 --target=/opt/arm-2009q1/bin/arm-none-linux-gnueabi- --prefix=/nfs/targetNFS/usr --enable-qt4 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build
    configure: WARNING: If you wanted to set the --build type, don't use --host.
        If a cross compiler is detected then cross compile mode will be used.
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for x86-strip... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-strip
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... yes
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++... gcc3
    checking for x86-gcc... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc
    checking whether we are using the GNU C compiler... yes
    checking whether /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc accepts -g... yes
    checking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... none needed
    checking dependency style of /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking build system type... i686-pc-linux-gnu
    checking host system type... x86-unknown-none
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ld used by /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld
    checking if the linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) is GNU ld... yes
    checking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld option to reload object files... -r
    checking for BSD-compatible nm... nm
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... unknown
    checking how to run the C preprocessor... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking how to run the C++ preprocessor... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ -E
    checking for x86-g77... no
    checking for x86-xlf... no
    checking for x86-f77... no
    checking for x86-frt... no
    checking for x86-pgf77... no
    checking for x86-cf77... no
    checking for x86-fort77... no
    checking for x86-fl32... no
    checking for x86-af77... no
    checking for x86-xlf90... no
    checking for x86-f90... no
    checking for x86-pgf90... no
    checking for x86-pghpf... no
    checking for x86-epcf90... no
    checking for x86-gfortran... no
    checking for x86-g95... no
    checking for x86-xlf95... no
    checking for x86-f95... no
    checking for x86-fort... no
    checking for x86-ifort... no
    checking for x86-ifc... no
    checking for x86-efc... no
    checking for x86-pgf95... no
    checking for x86-lf95... no
    checking for x86-ftn... no
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether  accepts -g... no
    checking the maximum length of command line arguments... 1572864
    checking command to parse nm output from /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc object... ok
    checking for objdir... .libs
    checking for x86-ar... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ar
    checking for x86-ranlib... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ranlib
    checking for x86-strip... (cached) /opt/arm-2009q1/bin/arm-none-linux-gnueabi-strip
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
    checking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc option to produce PIC... -fPIC
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc PIC flag -fPIC works... yes
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc static flag -static works... yes
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc supports -c -o file.o... yes
    checking whether the /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... no
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... no
    checking whether to build shared libraries... no
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++... /opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld
    checking if the linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) is GNU ld... yes
    checking whether the /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) supports shared libraries... no
    checking for /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ option to produce PIC... -fPIC
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ PIC flag -fPIC works... yes
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ static flag -static works... yes
    checking if /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ supports -c -o file.o... yes
    checking whether the /opt/arm-2009q1/bin/arm-none-linux-gnueabi-g++ linker (/opt/arm-2009q1/bin/arm-none-linux-gnueabi-ld) supports shared libraries... no
    checking dynamic linker characteristics... no
    (cached) (cached) checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for pthread_create in -lpthread... yes
    checking for pow in -lm... yes
    checking for jpeg_set_defaults in -ljpeg... no
    configure: error: "cannot find libjpeg support"

    Harnek

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anuj Aggarwal
    Posted by Anuj Aggarwal
    on May 21 2012 04:08 AM
    Expert3940 points

    Dear Harnek,

    Can you try installing lib jpeg first and then hplip? If you have already tried so, did it solve your problem? Please update.

    Thanks.

    Best Regards,

    Anuj Aggarwal

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • harnek singh
    Posted by harnek singh
    on May 21 2012 06:05 AM
    Prodigy235 points

    Dear

    Anuj

    I have already installed libjpeg ,  but getting same error.

    Thanks

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • harnek singh
    Posted by harnek singh
    on May 24 2012 05:50 AM
    Prodigy235 points

    Hi

    Anuj

    Looking forward from your side.

    Please do the needful.

    Regards

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tom Morrison
    Posted by Tom Morrison
    on Jul 12 2012 14:54 PM
    Intellectual270 points

    Is there some other solution to printing on TI SDK? I have a DM355 EVM , and I want to send to a network printer (a very basic print).

    I am having some problems with cross-compiling - 1.5.3 - It apparently wants to compile some programs (genstrings and mantohtml) and exec these on my linux host?

    Obviously there is an issue here - I just don't know what~!

    thanks in advance

    tom

    DM355 cross-compile 2.6.32 kernel cups printer
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use