jayjwa пишет:
On Wed, 4 Feb 2009, ???????? wrote:
http://linmodems.technion.ac.il/packages/intel/Philippe.Vouters/
I can't remember if these were updated to 2.6.27.x.
When i making your driver happed next trouble:
linux-xxjx:/intel-537EP_secure-2.60.80.0 # export MODEM_TYPE=537
linux-xxjx:/intel-537EP_secure-2.60.80.0 # make 537
Module precompile check Current
running kernel is: 2.6.27.7-9-pae
/lib/modules... autoconf.h exists autoconf.h matches running
kernel version.h matches running
kernel 2.6.27.7-9-pae make[1]: Entering
directory `/intel-537EP_secure-2.60.80.0/coredrv'
make -C /lib/modules/2.6.27.7-9-pae/build
SUBDIRS=/intel-537EP_secure-2.60.80.0/coredrv modules make[2]:
Entering directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae' make -C
../../../linux-2.6.27.7-9 O=/usr/src/linux-2.6.27.7-9-obj/i386/pae/.
modules CC [M] /intel-537EP_secure-2.60.80.0/coredrv/coredrv.o In
file included from /usr/src/linux-2.6.27.7-9/include/linux/smp.h:28,
from /usr/src/linux-2.6.27.7-9/include/linux/sched.h:68, from
/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:35:
include2/asm/smp.h: In function ???logical_smp_processor_id???:
"include2"? Never saw that in Linux. Are you sure it's correct?
include2/asm/smp.h:172: error: implicit declaration of function
???GET_APIC_LOGICAL_ID??? include2/asm/smp.h:172: error:
???APIC_BASE??? undeclared (first use in this function)
include2/asm/smp.h:172: error: (Each undeclared identifier is
reported only once
include2/asm/smp.h:172: error: for each function it appears in.)
include2/asm/smp.h:172: error: ???APIC_LDR??? undeclared (first use
in this function) In file included from
/usr/src/linux-2.6.27.7-9/include/linux/smp.h:28,
from /usr/src/linux-2.6.27.7-9/include/linux/sched.h:68,
from /intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:35:
include2/asm/smp.h: In function ???read_apic_id???:
include2/asm/smp.h:180: error: ???APIC_BASE??? undeclared (first use
in this function)
I have a 536, not 537 so I'm probably not much help, but you could try
to find were the missing defines are listed. I know 536 works with
2.6.27.x because I'm using it now. Try grepping through the Linux
headers for the define:
grep APIC_BASE /usr/src/linux/include/asm/*
If you find something like
/usr/src/linux/include/asm/apicdef.h:#define APIC_BASE
(fix_to_virt(FIX_APIC_BASE))
that's where it's defined, so you could try and put
#include <asm/apicdef.h>
in the file that says it's missing. If you make too many changes that
don't work, just delete the 537 source directory and unpack it again
to get back to the beginning.
Now I have next:
linux-wn7e:~ # cd /intel-537EP_secure-2.60.80.0
linux-wn7e:/intel-537EP_secure-2.60.80.0 # make clean
cd coredrv; make clean
make[1]: Entering directory `/intel-537EP_secure-2.60.80.0/coredrv'
rm -f *.ko *.o .*.o.cmd *.mod.c *~ core .*.ko.cmd Module.* modules.*
rm -rf .tmp_versions
make[1]: Leaving directory `/intel-537EP_secure-2.60.80.0/coredrv'
rm -f *.o *.ko
linux-wn7e:/intel-537EP_secure-2.60.80.0 # export MODEM_TYPE=537
linux-wn7e:/intel-537EP_secure-2.60.80.0 # make 537
Module precompile check
Current running kernel is: 2.6.27.7-9-pae
/lib/modules... autoconf.h exists
autoconf.h matches running kernel
version.h matches running kernel
2.6.27.7-9-pae
make[1]: Entering directory `/intel-537EP_secure-2.60.80.0/coredrv'
make -C /lib/modules/2.6.27.7-9-pae/build
SUBDIRS=/intel-537EP_secure-2.60.80.0/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae'
make -C /usr/src/linux-2.6.27.7-9
O=/usr/src/linux-2.6.27.7-9-obj/i386/pae/. modules
CC [M] /intel-537EP_secure-2.60.80.0/coredrv/coredrv.o
CC [M] /intel-537EP_secure-2.60.80.0/coredrv/clmmain.o
/intel-537EP_secure-2.60.80.0/coredrv/clmmain.c:86: error: expected
вЂ)’ before вЂ(’ token
make[5]: *** [/intel-537EP_secure-2.60.80.0/coredrv/clmmain.o] Error 1
make[4]: *** [_module_/intel-537EP_secure-2.60.80.0/coredrv] Error 2
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae'
make[1]: *** [537core_26] Error 2
make[1]: Leaving directory `/intel-537EP_secure-2.60.80.0/coredrv'
2.6.27.7-9-pae
Failed to build driver