* Fun with modules - 2.0.12
@ 1996-08-11 23:41 Michal Jaegermann
0 siblings, 0 replies; 2+ messages in thread
From: Michal Jaegermann @ 1996-08-11 23:41 UTC (permalink / raw)
Ok, so I compiled 2.0.12 kernel on Alpha (Cabriolet, EV4). It even
boots and runs and now I try to load some modules. CONFIG_MODVERSIONS
is not set.
With insmod from an updated RedHat distribution
(modules-1.2.8-8.axp.rpm) I am getting this:
$ insmod /lib/modules/2.0.12/net/bsd_comp.o
insmod:error: The module's `kernel_version' (2.0.12) differs from the current
kernel version (pha). Verify the module is up-to-date for
kernel version pha, then try again after recompiling the module
with the current kernel's header files.
So I tried to recompile the latest modules-2.0.0, found on
ftp.azstarnet.com. "As-is" this does not compile due to problems both
within a code itself and header files (.a_trsize, .a_drsize and
.a_syms structure fields have to be replaced by macros, also in
<linux/a.out.h>; the code needs some fixes and I turned elf support
functions roughly into no-ops). After modifications it compiled, but
now I see
$ ./insmod /lib/modules/2.0.12/net/bsd_comp.o
kernel_version needed, but can't be found
for a change. Does somebody has a solution for this problem?
The catch is that some stuff I need is available in a module form
only.
Thanks,
Michal
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Fun with modules - 2.0.12
@ 1996-08-12 0:48 Michal Jaegermann
0 siblings, 0 replies; 2+ messages in thread
From: Michal Jaegermann @ 1996-08-12 0:48 UTC (permalink / raw)
Following my own posting (which one should not do :-):
it looks like that setting CONFIG_MODVERSIONS to y helps with modules
problem. At least insmod from modules-1.2.8-8.axp.rpm seems to work OK.
Trying insmod from modules-2.0.0 runs into the same gotcha (i.e.
"kernel_version needed, but can't be found"). Calling the same executable
as lsmod or rmmod does not exhibit any problems. Oh, well...
Trying to get all this stuff to compile I stumbled into two problems
in 2.0.12 sources. On Alpha NCR_IOMAPPED is defined even if
SCSI_NCR_IOMAPPED is not and a.out.h uses non-existent (on Alpha)
structure fields instead of macros which were obviously provided
to prevent this from happenning.
Here are patches:
--- linux-2.0.12/drivers/scsi/ncr53c8xx.c~ Tue Jul 23 01:26:41 1996
+++ linux-2.0.12/drivers/scsi/ncr53c8xx.c Sun Aug 11 15:19:50 1996
@@ -8142,7 +8142,7 @@
copy_info(&info, " IO port address 0x%lx, ", (u_long)
np->port);
copy_info(&info, "IRQ number %d\n", (int) np->irq);
-#ifndef SCSI_NCR_IOMAPPED
+#ifndef NCR_IOMAPPED
if (np->use_mmio)
copy_info(&info, " Using memory mapped IO at virtual
address 0x%lx\n",
(u_long) np->reg_remapped);
--- linux-2.0.12/include/linux/a.out.h~ Mon May 6 03:44:32 1996
+++ linux-2.0.12/include/linux/a.out.h Sun Aug 11 16:49:17 1996
@@ -94,15 +94,15 @@
#endif
#if !defined (N_DRELOFF)
-#define N_DRELOFF(x) (N_TRELOFF(x) + (x).a_trsize)
+#define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x))
#endif
#if !defined (N_SYMOFF)
-#define N_SYMOFF(x) (N_DRELOFF(x) + (x).a_drsize)
+#define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x))
#endif
#if !defined (N_STROFF)
-#define N_STROFF(x) (N_SYMOFF(x) + (x).a_syms)
+#define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x))
#endif
/* Address of text segment in memory after it is loaded. */
Other than that is seems that I have to mount a Toshiba SCSI CD-ROM
twice. The first attempt ends in an error. More of annoyance than
a show-stopper, but...
Michal
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-08-12 0:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-11 23:41 Fun with modules - 2.0.12 Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1996-08-12 0:48 Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox