I
already added the -mregparm=3 as KOPTS as Steffen Hieber told! Its hard coded,
but i think a little script parsing the Kernelmakefile would do it in
future!
The
version i have at the moment already passes the complete strtst (but only for
kernels with regparm set!)!
Another thing i saw is that also insmod changed! In the past insmod
searched for the module in the specified path, and if it was not there it toke
the one in /lib/modules/.../misc like modprobe!
In the
new version insmod only searches for the path, and if there is no module it
fails! So i had to modify strtst too, to not use insmod, but
modprobe!
The
last problem i have is, that streams_relay3 loads as streams_streams_relay3, so
rmmod can't find a streams_relay3 in /proc/modules!
A
little bit suspicious, but i work on that problem! Is anything known about
it?
Alex
-----Original Message-----Some users have reported that SuSE 9.1 compiles the kernel using the -mregparam=3 option. In order for LiS to operate with such kernels it must be compiled with that option as well. Not only that, but all STREAMS drivers using LiS must also be compiled with that option. Someday I will fix this so that STREAMS drivers can be compiled without this option and LiS will act as an interface to the kernel changing parameter passing style.
From: Dave Grothe [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 27. Juli 2004 16:22
To: Zeh Alexander; LiS Mailing List
Subject: Re: [Linux-streams] Difference in module_init_tools to the old modutils
(Also, I may be mistaken about which SuSE version does this. But it is worth a check. It may be responsible for the fault that you are seeing.)
I'll add the "-" vs "_" item to my list of things to tend to in LiS when I have the time to do so. (Why, oh why, can't they just leave a perfectly good interface alone???)
-- Dave
At 06:30 AM 7/27/2004, Zeh Alexander wrote:
Hi,
at the moment i try to build LiS on SuSe 9.1 (inputs are really welcome).
There are two problems until now:
In new distributions, there is a replacement for the modutils called
module-init-tools.
They won't unload modules with a "-" in the name, it is modified to "_"
before investigating /proc/modules and unload the module!
It looks something like this:
rmmod streams-mtdrv
ERROR: Module streams_mtdrv does not exist in /proc/modules
The kbuild-mechanism automatically modifies modules to match this.
But as LiS don't use this mechanism completly at the moment streams-mtdrv
and co could not be unloaded!
Another little problem which i not investigated till now is, that under
Kernel 2.6.4-52 (SuSe 9.1) and gcc 3.3.3 the syscalls in module loop fail
(EFAULT)!
This can be avoided if LiS are build with -O1 instead of -O2. I think this
gcc-version optimizes a little too good!
With best regards
Mit freundlichen Gr��en
Alexander
_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
