Uh, i need some help. And the post is to long, i know. I can't compile driver for my modem. Modem is Intel 536 ep, driver is intel-536ep-4.69. From readme.txt:
1. login as ROOT
2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"
3. cd into the directory it created.
4. Type: make clean
5. Type: make 536
6. Type: make install
Compile issues
a. this driver will now compile with the this path:
/lib/modules/<kernel version>/build/include
the 2.4.4+ kernels says to copy the /boot/vmlinuz.version.h
over to the kernel build path. I have the makefile do this
if this file exists. You must install the kernel source
code anyways. It should be on your distribution's CD.
Here is what I get:
root@korisnik-desktop:~# cd /home/korisnik/modem/intel-536EP-2.56.76.0
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# dir
config_check coredrv hamregistry Intel536_boot Intel536_inst license.txt makefile readme.txt
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# make clean
cd coredrv; make clean
make[1]: Entering directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
rm -f *.o *.ko
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# make 536
Module precompile check
Current running kernel is: 2.6.15-23-386
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.15-23-386
make[1]: Entering directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
make -C /lib/modules/2.6.15-23-386/build SUBDIRS=/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.15-23-386'
CC [M] /home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.o
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:70: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_NOVERS’
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:70: warning: parameter names (without types) in function declaration
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:70: warning: data definition has no type or storage class
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘power_callback’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:295: error: ‘PM_SAVE_STATE’ undeclared (first use in this function)
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘close’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:418: warning: implicit declaration of function ‘pm_unregister’
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘hamproc_write’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:662: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: At top level:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘kScheduleDPC’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:863: warning: implicit declaration of function ‘pm_access’
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘dspdrv_CommRamISR’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:879: warning: function declaration isn’t a prototype
make[3]: *** [/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.o] Error 1
make[2]: *** [_module_/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.15-23-386'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
2.6.15-23-386
Failed to build driver
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# make install
rm -f /etc/hamregistry.bin
bash Intel536_inst
running kernel 2.6.15-23-386
installing hamregistry, used for persistant storage
installing Intel536 driver
install: cannot stat `Intel536.ko': No such file or directory
make: *** [install] Error 1
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0#
Can anyone help, I'm lost. First of all, file /boot/vmlinuz.version.h (in my case that would be vmlinuz.2.6.15-23-386.h) doesn't exist. In /boot there is only vmlinuz-2.6.15-23-386 file. And what is /boot/vmlinuz.autoconf.h? Any ideas cause I'm completly and totaly lost.
1. login as ROOT
2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"
3. cd into the directory it created.
4. Type: make clean
5. Type: make 536
6. Type: make install
Compile issues
a. this driver will now compile with the this path:
/lib/modules/<kernel version>/build/include
the 2.4.4+ kernels says to copy the /boot/vmlinuz.version.h
over to the kernel build path. I have the makefile do this
if this file exists. You must install the kernel source
code anyways. It should be on your distribution's CD.
Here is what I get:
root@korisnik-desktop:~# cd /home/korisnik/modem/intel-536EP-2.56.76.0
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# dir
config_check coredrv hamregistry Intel536_boot Intel536_inst license.txt makefile readme.txt
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# make clean
cd coredrv; make clean
make[1]: Entering directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
rm -f *.o *.ko
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# make 536
Module precompile check
Current running kernel is: 2.6.15-23-386
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.15-23-386
make[1]: Entering directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
make -C /lib/modules/2.6.15-23-386/build SUBDIRS=/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.15-23-386'
CC [M] /home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.o
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:70: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_NOVERS’
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:70: warning: parameter names (without types) in function declaration
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:70: warning: data definition has no type or storage class
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘power_callback’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:295: error: ‘PM_SAVE_STATE’ undeclared (first use in this function)
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘close’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:418: warning: implicit declaration of function ‘pm_unregister’
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘hamproc_write’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:662: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: At top level:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘kScheduleDPC’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:863: warning: implicit declaration of function ‘pm_access’
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function ‘dspdrv_CommRamISR’:
/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.c:879: warning: function declaration isn’t a prototype
make[3]: *** [/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv/coredrv.o] Error 1
make[2]: *** [_module_/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.15-23-386'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory `/home/korisnik/modem/intel-536EP-2.56.76.0/coredrv'
2.6.15-23-386
Failed to build driver
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0# make install
rm -f /etc/hamregistry.bin
bash Intel536_inst
running kernel 2.6.15-23-386
installing hamregistry, used for persistant storage
installing Intel536 driver
install: cannot stat `Intel536.ko': No such file or directory
make: *** [install] Error 1
root@korisnik-desktop:/home/korisnik/modem/intel-536EP-2.56.76.0#
Can anyone help, I'm lost. First of all, file /boot/vmlinuz.version.h (in my case that would be vmlinuz.2.6.15-23-386.h) doesn't exist. In /boot there is only vmlinuz-2.6.15-23-386 file. And what is /boot/vmlinuz.autoconf.h? Any ideas cause I'm completly and totaly lost.
Comment