Skip to contentSkip to conversation

patch RTAI (fusion-0.6.4) with kernel 2.6.9 on Fedora Core 3

DISCUSSION Yihan Li 3 participants 3 messages Nov 30, 2004

lore
Share & tools
lore

Yihan Li

author
#0 lore raw

Help needed!
I am trying to patch RTAI (fusion-0.6.4) with kernel 2.6.9 on Fedora Core 3. The following steps are what I was following:

I download a varnilla version of linux-2.6.9 from www.kernel.org, Unpack the kernel source:

# cd /usr/src
# tar xvjf linux-2.6.9.tar.bz2
# ln -s linux-2.6.9 linux

Unpack or copy RTAI to /usr/src/fusion-0.6.4.tar.bz2

# ln -s fusion-0.6.4  rtai

Patch the kernel:

# cd /usr/src/linux
# patch -p1 < ../rtai/arch/i386/patches/adeos-linux-2.6.9-i386-r8.patch
Copy the existing (Fedora) kernel config file to /usr/src/linux
# cp /boot/config-2.6.xxxx /usr/src/linux/.configConfigure the kernel:
# make menuconfig
# make

After 8 mins, I get error messages as following:
drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_queuecommand':
drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here make[3]: *** [drivers/scsi/qla2xxx/qla_os.o] Error 1
make[2]: *** [drivers/scsi/qla2xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

My guess is my configuration is not right, and don't know what to do, really need a hand ...

I wish to be personally CC'ed the answers/comments in response to my posting.

#1 lore raw
Quoted 34 lines · Yihan Li

Help needed!
I am trying to patch RTAI (fusion-0.6.4) with kernel 2.6.9 on Fedora Core 3. The following steps are what I was following:

I download a varnilla version of linux-2.6.9 from www.kernel.org, Unpack the kernel source:

# cd /usr/src
# tar xvjf linux-2.6.9.tar.bz2
# ln -s linux-2.6.9 linux

Unpack or copy RTAI to /usr/src/fusion-0.6.4.tar.bz2

# ln -s fusion-0.6.4  rtai

Patch the kernel:

# cd /usr/src/linux
# patch -p1 < ../rtai/arch/i386/patches/adeos-linux-2.6.9-i386-r8.patch
Copy the existing (Fedora) kernel config file to /usr/src/linux
# cp /boot/config-2.6.xxxx /usr/src/linux/.configConfigure the kernel:
# make menuconfig
# make

After 8 mins, I get error messages as following:
drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_queuecommand':
drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining failed in call to 'qla2x00_callback': function not considered for inlining drivers/scsi/qla2xxx/qla_os.c:269: sorry, unimplemented: called from here make[3]: *** [drivers/scsi/qla2xxx/qla_os.o] Error 1
make[2]: *** [drivers/scsi/qla2xxx] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

Quoted 5 lines

My guess is my configuration is not right, and don't know what to do, really need a hand ...

I wish to be personally CC'ed the answers/comments in response to my posting.

Some functions (inline) and function prototypes in that driver are not in the order needed. It's been fixed for some time now. Check linux-2.6.10-rc2 or the -mm patches.

Signature · 1 line
~Randy
#2 lore raw
In reply to Yihan Li
Quoted 3 lines · Yihan Li

Help needed!
I am trying to patch RTAI (fusion-0.6.4) with kernel 2.6.9 on Fedora Core 3. The following steps are what I was following:

You don't want base 2.6.9 anyway because it has lots of bad bugs in it and security holes. It also won't compile with a modern gcc.

One fix is to unpack the Fedora Core 3 update kernel which is 2.6.9 + some
bits of -ac + other fixes, and then apply it to that. The changes are fairly
small so it probably will work especially if you drop the 4G/4G patch out.

Otherwise you can get collections of 2.6.9 fix patches from the 2.6.9-ac tree
and two or three others.