This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Interface Printer with AM1808

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

  • 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

  • Harnek,

    Do you have any update ?

    Ajay

  • 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

  • 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.

  • Dear

    Anuj

    I have already installed libjpeg ,  but getting same error.

    Thanks

  • Hi

    Anuj

    Looking forward from your side.

    Please do the needful.

    Regards

  • 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