Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHello,
I have made some progress in BBII installation (though there are still some problems). So I thought I will put my experience here. As I said, I have been trying to install ByteBlaster (a parallel port device for FPGA programming) driver on my CentOS 3.9 machine (it uses kernel 2.4.21-50.EL). Initially when I used ./configure, it could not find modversions.h file. I found that the modversions.h file is in /usr/ src/linux-2.4.21-50.EL.asp/include/linux and included it in the search options in the ./configure file. Following this './configure' yielded following messages: --------------------------------------------------- [root@c109-02a byteblaster]# ./configure Using kernel headers from /usr/src/linux-2.4.21-50.EL.asp/include/ Installing ByteBlasterMV module into /lib/modules/2.4.21-50.EL/ --------------------------------------------------- Next, I executed 'make': --------------------------------------------------- [root@c109-02a byteblaster]# make cc -D__KERNEL__ -DMODULE -D__SMP__ -O3 -Wall -I/usr/src/ linux-2.4.21-50.EL.asp/include/ -DMODVERSIONS -include /usr/src/ linux-2.4.21-50.EL.asp/include//linux/modversions.h -c -o byteblaster.o byteblaster.c --------------------------------------------------- All this seemed to work ok. However when I executed 'make install', I received the error which says there was a kernel version mismatch: --------------------------------------------------- [root@c109-02a byteblaster]# make install install -d /lib/modules/2.4.21-50.EL/kernel/misc/ install -c byteblaster.o /lib/modules/2.4.21-50.EL/kernel/misc/ byteblaster.o install -c jtagd-init /etc/rc.d/init.d/jtagd /sbin/chkconfig --add jtagd /sbin/depmod -aq /etc/rc.d/init.d/jtagd start Starting ByteBlaster driver: Warning: kernel-module version mismatch /lib/modules/2.4.21-50.EL/kernel/misc/byteblaster.o was compiled for kernel version 2.4.21-50.EL.asp while this kernel is version 2.4.21-50.EL /lib/modules/2.4.21-50.EL/kernel/misc/byteblaster.o: unresolved symbol register_chrdev_Racfca4b4 /lib/modules/2.4.21-50.EL/kernel/misc/byteblaster.o: insmod /lib/ modules/2.4.21-50.EL/kernel/misc/byteblaster.o failed /lib/modules/2.4.21-50.EL/kernel/misc/byteblaster.o: insmod byteblaster failed mknod: wrong number of arguments Try `mknod --help' for more information. mknod: wrong number of arguments Try `mknod --help' for more information. mknod: wrong number of arguments Try `mknod --help' for more information. --------------------------------------------------- What could be the problem here? Kumar Vijay Mishra.