Has anyone build a 3rd party driver for the DM81xx?
We are trying to build the driver for a USB timing device that we would like to use with the DM8168. We can build it on our Ubuntu development system but when we try to cross-compile it for our DM8168, we get the following errors (mbgclock in the kernel object).
========================================================================
Making all in mbgclock
make -C mbgclock all DESTDIR= prefix=/usr/local bindir=/usr/local/bin sbindir=/usr/local/sbin includedir=/usr/local/include libdir=/usr/local/lib sysconfdir=/etc
make[1]: Entering directory `/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock'
ln -sf /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common/pcpsdrvr.c pcpsdrvr.c
ln -sf /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common/identdec.c identdec.c
ln -sf /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux/rsrc_lx.c rsrc_lx.c
Calling kernel build system
make -C /lib/modules/2.6.32-47-generic-pae/build SUBDIRS=/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock BASEDIR=/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. V=1 EXTRA_CFLAGS="-I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock -Wall -I. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux" modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-47-generic-pae'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.tmp_versions ; rm -f /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock
gcc -Wp,-MD,/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.mbgclock_main.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -Iinclude -I/usr/src/linux-headers-2.6.32-47-generic-pae/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock -Wall -I. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mbgclock_main)" -D"KBUILD_MODNAME=KBUILD_STR(mbgclock)" -c -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.tmp_mbgclock_main.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock_main.c
set -e ; perl /usr/src/linux-headers-2.6.32-47-generic-pae/scripts/recordmcount.pl "i386" "32" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock_main.o";
gcc -Wp,-MD,/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.pcpsdrvr.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -Iinclude -I/usr/src/linux-headers-2.6.32-47-generic-pae/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock -Wall -I. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pcpsdrvr)" -D"KBUILD_MODNAME=KBUILD_STR(mbgclock)" -c -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.tmp_pcpsdrvr.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/pcpsdrvr.c
set -e ; perl /usr/src/linux-headers-2.6.32-47-generic-pae/scripts/recordmcount.pl "i386" "32" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/pcpsdrvr.o";
gcc -Wp,-MD,/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.identdec.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -Iinclude -I/usr/src/linux-headers-2.6.32-47-generic-pae/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock -Wall -I. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(identdec)" -D"KBUILD_MODNAME=KBUILD_STR(mbgclock)" -c -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.tmp_identdec.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/identdec.c
set -e ; perl /usr/src/linux-headers-2.6.32-47-generic-pae/scripts/recordmcount.pl "i386" "32" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/identdec.o";
gcc -Wp,-MD,/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.rsrc_lx.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -Iinclude -I/usr/src/linux-headers-2.6.32-47-generic-pae/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock -Wall -I. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(rsrc_lx)" -D"KBUILD_MODNAME=KBUILD_STR(mbgclock)" -c -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.tmp_rsrc_lx.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/rsrc_lx.c
set -e ; perl /usr/src/linux-headers-2.6.32-47-generic-pae/scripts/recordmcount.pl "i386" "32" "objdump" "objcopy" "gcc" "ld" "nm" "" "" "1" "/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/rsrc_lx.o";
ld -m elf_i386 -r -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock_main.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/pcpsdrvr.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/identdec.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/rsrc_lx.o
(cat /dev/null; echo kernel//home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.ko;) > /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/modules.order
make -f /usr/src/linux-headers-2.6.32-47-generic-pae/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.32-47-generic-pae/Module.symvers -I /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/Module.symvers -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/Module.symvers -S -w -s
gcc -Wp,-MD,/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.mbgclock.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -Iinclude -I/usr/src/linux-headers-2.6.32-47-generic-pae/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock -Wall -I. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/.. -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/common -I/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/../mbglib/linux -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(mbgclock.mod)" -D"KBUILD_MODNAME=KBUILD_STR(mbgclock)" -DMODULE -c -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.mod.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.mod.c
ld -r -m elf_i386 -T /usr/src/linux-headers-2.6.32-47-generic-pae/scripts/module-common.lds --build-id -o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.ko /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.o /home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock/mbgclock.mod.o
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-47-generic-pae'
make[1]: Leaving directory `/home/z3/mbg/mbgtools-lx-dev-2013-03-15/mbgclock'
========================================================================
We searching our development system are we seem to have the files that it is complaining about (include/linux/autoconf.h and include/config/auto.conf).
Does anyone have a solution for this problem?
Thanks, Steve