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.

Question about CIR driver on DM8148

Hi Sir :

I work on DM8148 platform and use DVRRDK_03.00.00.00 to develop our system.

I need to add LIRC module to our system and refer the link below.

-su-4.1# ./configure with_x=no --with-kerneldir=/home/shuwen/RDK3/RDK3.0/linux-04.04.00.01 --with-driver=userspace --host=arm-arago-linux-gnueabi --build=x86-linux --target=arm && make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- && make install ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- >/tmp/log
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-arago-linux-gnueabi-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-arago-linux-gnueabi-gcc... no
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for mknod... /bin/mknod
checking for mkfifo... /usr/bin/mkfifo
checking for depmod... /sbin/depmod
checking for libusb-config... no
checking whether ln -s works... yes
checking build system type... x86-unknown-linux-gnu
checking host system type... arm-arago-linux-gnueabi
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 fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for arm-arago-linux-gnueabi-dumpbin... no
checking for arm-arago-linux-gnueabi-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
checking the name lister (link -dump -symbols) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for arm-arago-linux-gnueabi-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for arm-arago-linux-gnueabi-ar... no
checking for ar... ar
checking for arm-arago-linux-gnueabi-strip... strip
checking for arm-arago-linux-gnueabi-ranlib... no
checking for ranlib... ranlib
checking command to parse link -dump -symbols output from gcc object... failed
checking how to run the C preprocessor... 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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/dist-packages
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for gethostname... yes
checking for gettimeofday... yes
checking for mkfifo... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strtoul... yes
checking for snprintf... yes
checking for strsep... yes
checking for vsyslog... yes
checking for forkpty... no
checking for forkpty in -lutil... yes
checking vga.h usability... no
checking vga.h presence... no
checking for vga.h... no
checking for X... disabled
checking for getopt_long... yes
checking for mktemp... yes
checking for Linux kernel sources... /home/shuwen/RDK3/RDK3.0/linux-04.04.00.01/
checking for which drivers can be installed on this system... 
checking for caraca_init in -lcaraca_client... no
checking ftdi.h usability... no
checking ftdi.h presence... no
checking for ftdi.h... no
checking iguanaIR.h usability... no
checking iguanaIR.h presence... no
checking for iguanaIR.h... no
checking for ir_strerror in -lirman... no
checking for ir_strerror in -lirman_sw... no
checking portaudio.h usability... no
checking portaudio.h presence... no
checking for portaudio.h... no
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking scsi/sg.h usability... yes
checking scsi/sg.h presence... yes
checking for scsi/sg.h... yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking linux/types.h usability... yes
checking linux/types.h presence... yes
checking for linux/types.h... yes
checking for linux/hiddev.h... yes
checking for HIDDEV_FLAG_UREF support... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/i2c-dev.h usability... yes
checking linux/i2c-dev.h presence... yes
checking for linux/i2c-dev.h... yes
checking for daemon... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating drivers/Makefile
config.status: creating drivers/lirc_atiusb/Makefile
config.status: creating drivers/lirc_bt829/Makefile
config.status: creating drivers/lirc_dev/Makefile
config.status: creating drivers/lirc_gpio/Makefile
config.status: creating drivers/lirc_i2c/Makefile
config.status: creating drivers/lirc_igorplugusb/Makefile
config.status: creating drivers/lirc_ttusbir/Makefile
config.status: creating drivers/lirc_imon/Makefile
config.status: creating drivers/lirc_parallel/Makefile
config.status: creating drivers/lirc_sasem/Makefile
config.status: creating drivers/lirc_serial/Makefile
config.status: creating drivers/lirc_sir/Makefile
config.status: creating drivers/lirc_wpc8769l/Makefile
config.status: creating daemons/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Your hardware does not require a special LIRC kernel module.

Now enter 'make' and 'make install' to compile and install the package.

make  all-recursive
make[1]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0'
Making all in drivers
make[2]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/drivers'
make[3]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/drivers'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/drivers'
make[2]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/drivers'
Making all in daemons
make[2]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/daemons'
make  all-am
make[3]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/daemons'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/daemons'
make[2]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/daemons'
Making all in tools
make[2]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/tools'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/tools'
Making all in doc
make[2]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/doc'
Making all in man
make[3]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/doc/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/doc/man'
make[3]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/doc'
make[2]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0/doc'
make[2]: Entering directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0'
make[2]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0'
make[1]: Leaving directory `/home/shuwen/RDK3/RDK3.0/lirc-0.9.0'

http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_CIR_Driver_User_Guide

I have downloaded lirc-0.9.0 and I want to build my own lirc package.

The attached file shows the compile process.

After compiling completely, I execute the command "mode2 -d /dev/lirc0", however, the message below shows.

"/usr/sbin/mode2: line 1: syntax error: word unexpected (expecting ")")"

I have no idea if there is something wrong during compiling, but I do got executable file.

I wonder if I should change "arm-arago-linux-gnueabi" to "arm-none-linux-gnueabi".

Could you give me some suggestion?

Best regards,

Marcus