RTAI 24.1.11/Kernel 2.4.18 - unresolved symbol 'prefetch' error

Johnson, Derahn T (US SSA) Derahn.Johnson at baesystems.com
Mon Oct 11 14:46:50 CEST 2004


Here is the series of steps I perform to install a vanilla linux kernel (2.4.18) over a RedHat 7.3 kernel (2.4.18-3), and patch RTAI (24.1.11).
After the install is complete, I try to insmod the driver that I've written, and I get the error "unresolved symbol: prefetch".  I completed this exact series of steps on 3 separate, identical PCs, with no problems.  But on this fourth install attempt, I'm getting the error.  Any help would be greatly appreciated.

*******************************************************************************************************************
Perform a 'Workstation' RedHat 7.3 OS Build.

(After build, Log on as root)
(Insert CD containing plain, vanilla kernel 2.4.18, because
 RTAI cannot be built against a RedHat kernel)

[root at localhost]# mount /mnt/cdrom
[root at localhost]# cd /usr/src
[root at localhost]# cp /mnt/cdrom/linux-2.4.18.tar.gz .
[root at localhost]# tar -xvzf linux-2.4.18.tar.gz
[root at localhost]# mv linux linux-2.4.18
[root at localhost]# ln -s linux-2.4.18 linux
[root at localhost]# cd linux
[root at localhost]# cp /boot/config-2.4.18-3 .config
[root at localhost]# make menuconfig

	Disable 'Set version info on all modules'
	Change processor family to Pentium(x)
	Disable APM BIOS support
	Disable APIC
	Disable all Symmetric Multi-Processing (SMP) support

[root at localhost]# make dep
[root at localhost]# make bzImage
[root at localhost]# make modules
[root at localhost]# make modules_install
[root at localhost]# make install
[root at localhost]# emacs /etc/lilo.conf

	Add following lines:

	image=/boot/vmlinuz-2.4.18
		label=linux-new
		initrd=/boot/initrd-2.4.18.img
		read-only
		root=/dev/hda2

[root at localhost]# lilo -v
[root at localhost]# reboot

-----------------------------------------------------------------------

(Upon startup, select 'linux-new' from lilo)
(Log on as root)
(Insert CD containing RTAI zip file)

[root at localhost]# mount /mnt/cdrom
[root at localhost]# cd /usr/src
[root at localhost]# cp /mnt/cdrom/rtai-24.1.11.tar.gz .
[root at localhost]# tar -xvzf rtai-24.1.11.tar.gz
[root at localhost]# patch -p0 <rtai-24.1.11/patches/patch-2.4.18-rthal5g
[root at localhost]# cd linux
[root at localhost]# make xconfig

	Enable 'Real-Time Hardware Abstraction Level'

[root at localhost]# make dep
[root at localhost]# make bzImage
[root at localhost]# make modules
[root at localhost]# make modules_install
[root at localhost]# make install
[root at localhost]# emacs /etc/lilo.conf

	Add following lines:

	image=/boot/vmlinuz-2.4.18-rthal5
		label=linux-rthal5
		initrd=/boot/initrd-2.4.18-rthal5.img
		read-only
		root=/dev/hda2

[root at localhost]# lilo -v
[root at localhost]# reboot

-----------------------------------------------------------------------

(Upon startup, select 'linux-rthal5' from lilo)
(Log on as root)
(Insert RedHat 7.3 disc 2, to install kgcc or gcc-2.95-3
 for correct RTAI compilation)

[root at localhost]# mount /mnt/cdrom
[root at localhost]# cd /mnt/cdrom/Redhat/RPMS
[root at localhost]# rpm -ivh compat-glibc-6.2-2.1.3.2.i386.rpm
[root at localhost]# rpm -ivh compat-egcs-6.2-1.1.2.16.i386.rpm
[root at localhost]# rpm -ivh compat-egcs-c++-6.2-1.1.2.16.i386.rpm
[root at localhost]# rpm -ivh compat-egcs-g77-6.2-1.1.2.16.i386.rpm
[root at localhost]# rpm -ivh compat-egcs-objc-6.2-1.1.2.16.i386.rpm
[root at localhost]# cd /usr/src/linux
[root at localhost]# emacs Makefile

	Change 'HOSTCC' argument from 'gcc' to 'kgcc'
	Change 'CC' from (CROSS_COMPILE)gcc to (CROSS_COMPILE)kgcc

[root at localhost]# cd /usr/src/rtai-24.1.11/usposix
[root at localhost]# emacs Makefile

	Add '/usr/src/linux/include' after -I, on EXTRA_USER_CFLAGS line

[root at localhost]# cd /usr/src/rtai-24.1.11
[root at localhost]# make menuconfig

	Accept default directory (/lib/modules/2.4.18-rthal5/build)
	Disable 'Strange APIC'
	Enable POSIX API

[root at localhost]# make
[root at localhost]# make install
[root at localhost]# make dev	
[root at localhost]# ./setsched up

DeRahn Johnson
BAE SYSTEMS
One Hazeltine Way
Greenlawn, NY 11740-1606
Phone: (631) 261-7000 x3452
Fax: (631) 262-8279
derahn.johnson at baesystems.com   





More information about the Rtai mailing list