Hi,
We saw something else on 2.6.18+ kernel versions, related to the modpost
utility not including the required header files into the generated .c
file. That is likely the cause of the problem you are seeing.
To workaround this issue, can you try the following:
In file /dsplink/make/Linux/Davinci/link.mk:
Search for CMD_MODPOST and update the code. Make sure you convert spaces
to tabs all the rules below.
$(target_deb):
$(CMDECHO)$(DISPLAY) Generating $(basename $@)...
$(CMDECHO)$(COPYFILES) "$(PROJ_INCLUDE)"
"$(EXPORT_INC_PLATFORM)" > $(TRASH)
$(CMDECHO)$(CMD_LINK) $(LD_SW_OUT)$(DRIVER_DEB) $(foreach dir,
$(ARGS_ARCH_DEB), $(wildcard $(dir)/*.o)) $(USR_LIBS_DEB)
$(CMDECHO)$(DISPLAY) Post processing kernel module $(basename
$(basename $@))...
$(CMD_MODPOST) $(DRIVER_DEB)
$(CMDECHO) echo "#include <linux/autoconf.h>" >$$.tmp
$(CMDECHO) echo "#include <linux/spinlock.h>" >>$$.tmp
$(CMDECHO) cat $(MOD_FILE_DEB) >> $$.tmp
$(CMDECHO) cat $$.tmp > $(MOD_FILE_DEB)
$(CMDECHO) rm -f $$.tmp
$(CMDECHO)$(COMPILER) $(CC_SW_DEB) $(STD_CC_FLAGS)
$(USR_CC_FLAGS) $(STD_CC_DEFNS) \
$(USR_CC_DEFNS) -DDDSP_DEBUG
-DKBUILD_BASENAME=$(basename $(basename $@)) -D"KBUILD_STR(s)=#s" \
-c -o $(MOD_FILE_DEBOBJ) $(MOD_FILE_DEB)
$(CMDECHO)$(LD) $(STD_AR_FLAGS) $(LD_SW_RELOC) $(LD_SW_OUT)
$(MOD_FILE_DEBKNL) $(DRIVER_DEB) $(MOD_FILE_DEBOBJ)
$(CMDECHO)$(COPY) $(MOD_FILE_DEBKNL) $(BUILD_EXPORT_DEB)/.
drvdeb : $(target_deb)
$(target_rel):
$(CMDECHO)$(DISPLAY) Generating $(basename $@)...
$(CMDECHO)$(COPYFILES) "$(PROJ_INCLUDE)"
"$(EXPORT_INC_PLATFORM)" > $(TRASH)
$(CMDECHO)$(CMD_LINK) $(LD_SW_OUT)$(DRIVER_REL) $(foreach dir,
$(ARGS_ARCH_REL), $(wildcard $(dir)/*.o)) $(USR_LIBS_REL)
$(CMDECHO)$(DISPLAY) Post processing kernel module $(basename
$(basename $@))...
$(CMD_MODPOST) $(DRIVER_REL)
$(CMDECHO) echo "#include <linux/autoconf.h>" >$$.tmp
$(CMDECHO) echo "#include <linux/spinlock.h>" >>$$.tmp
$(CMDECHO) cat $(MOD_FILE_REL) >> $$.tmp
$(CMDECHO) cat $$.tmp > $(MOD_FILE_REL)
$(CMDECHO) rm -f $$.tmp
$(CMDECHO)$(COMPILER) $(CC_SW_REL) $(STD_CC_FLAGS)
$(USR_CC_FLAGS) $(STD_CC_DEFNS) \
$(USR_CC_DEFNS) -DKBUILD_BASENAME=$(basename $(basename
$@)) -D"KBUILD_STR(s)=#s" \
-c -o $(MOD_FILE_RELOBJ) $(MOD_FILE_REL)
$(CMDECHO)$(LD) -EL -r -o$(MOD_FILE_RELKNL) $(DRIVER_REL)
$(MOD_FILE_RELOBJ)
$(CMDECHO)$(COPY) $(MOD_FILE_RELKNL) $(BUILD_EXPORT_REL)/.
drvrel : $(target_rel)
Hope this helps ...
Regards,
Mugdha
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of JAEHOON LEE
Sent: Friday, November 09, 2007 10:36 AM
To: [email protected]
Subject: DSPLINK building problems with GIT 2.6.23 kernel
Hi All.
Sorry for repeating questions about dsplink...
I use dvevm_1_20 and dsplink_1_30_82_02 and GIT kernel 2.6.23.
When I compiled dsplink and cmem_1_02, cmem_1_02 compiled OK and apitest
program worked fine.
But in case of dsplink, the errors occurred.
I already applied Kevin's patch files.
But Same errors are NOT deleted...
Could anyone help this problems?
------ here is our compiling log -----------
[SRC ] ======= TARGETS =============== DEBUG
==============
[GEN ] ------- TARGET ---------------- DEBUG
--------------
Generating gen.o...
[OSAL ] ------- TARGET ---------------- DEBUG
--------------
Generating osal.o...
[LDRV ] ------- TARGET ---------------- DEBUG
--------------
Generating ldrv.o...
[PMGR ] ------- TARGET ---------------- DEBUG
--------------
Generating dsplinkk.o...
Post processing kernel module dsplinkk...
In file included from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/bitops.h:9,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/kernel.h:15
,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/cache.h:4,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/time.h:7,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/stat.h:60,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/module.h:10
,
from
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:1:
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm/bitops.h: In
function `____atomic_set_bit':
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm/bitops.h:40:
warning: implicit declaration of function `local_irq_save'
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm/bitops.h:42:
warning: implicit declaration of function `local_irq_restore'
In file included from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/notifier.h:
14,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/memory_hotp
lug.h:7,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/mmzone.h:49
3,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/gfp.h:4,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/slab.h:14,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/percpu.h:5,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm-generic/local
.h:4,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm/local.h:1,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/module.h:18
,
from
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:1:
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/rwsem.h:25:
65: asm/rwsem.h: No such file or directory
In file included from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/memory_hotp
lug.h:7,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/mmzone.h:49
3,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/gfp.h:4,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/slab.h:14,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/percpu.h:5,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm-generic/local
.h:4,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/asm/local.h:1,
from
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/module.h:18
,
from
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:1:
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/notifier.h:
At top level:
/DM6446/workdir/GIT/linux-davinci-2.6-20071106/include/linux/notifier.h:
62: error: field `rwsem' has incomplete type
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:8: error: variable
`__this_module' has initializer but incomplete type
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:9: error: unknown
field `name' specified in initializer
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:9: error:
`dsplinkk' undeclared here (not in a function)
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:9: warning: excess
elements in struct initializer
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:9: warning: (near
initialization for `__this_module')
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:10: error: unknown
field `init' specified in initializer
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:10: warning:
excess elements in struct initializer
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:10: warning: (near
initialization for `__this_module')
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:14: error: unknown
field `arch' specified in initializer
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:14: error:
`MODULE_ARCH_INIT' undeclared here (not in a function)
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:14: warning:
excess elements in struct initializer
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:14: warning: (near
initialization for `__this_module')
/root/dsplink/gpp/BUILD/PMGR/BIN/DEBUG/dsplinkk.mod.c:8: error: storage
size of `__this_module' isn't known
make[2]: *** [dsplinkk.o.deb] Error 1
make[1]: *** [trgdeb] Error 2
make: *** [pmgr.trgdeb] Error 2
[EMAIL PROTECTED]:~/dsplink/gpp/src#
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source