Subject: Re: LKM examples
To: None <ender@macbsd.com>
From: Scott Ellis <scotte@warped.com>
List: current-users
Date: 07/31/2000 13:16:45
I've seen this behaviour with 1.5_ALPHA when attempting to load cd9660 and
mfs LKM's (with them defined in lkm.conf, and LKM=Yes in rc.conf).  I've not
had time to debug it and file a PR yet.

I imagine it's just an ordering issue, with modload being called at the
wrong time in the boot process (I don't run with INSECURE).

    ScottE


----- Original Message -----
From: "Colin Wood" <cwood@ichips.intel.com>
To: "gabriel rosenkoetter" <gr@eclipsed.net>
Cc: <current-users@netbsd.org>
Sent: Monday, July 31, 2000 9:36 AM
Subject: Re: LKM examples


> gabriel rosenkoetter wrote:
> > Having compiled my kernel with LKM included (yes, I'm sure; modstat
> > returns, obviously without any modules right now... but modstat would
> > return an error if LKM weren't enabled, no?), I had really hoped the
> > examples in /usr/share/lkm would work. But they don't:
> >
> > cygnus:syscall/module# uname -a
[57]
> > NetBSD cygnus 1.5_ALPHA NetBSD 1.5_ALPHA (SCINTILA) #2: Mon Jul 24
15:58:46 PDT 2000     root@cygnus:/usr/src/sys/arch/macppc/compile/SCINTILA
macppc
> > cygnus:syscall/module# whoami
[58]
> > root
> > cygnus:syscall/module# pwd
[59]
> > /usr/share/lkm/syscall/module
> > cygnus:syscall/module# make load
[60]
> > modload -o newsyscall -enewsyscall combined.o
> > modload: can't reserve memory: Operation not permitted
> > *** Error code 9
>
> i don't know if this is the problem or not, but to load a module you
> either have to be in single-user mode or else have "options INSECURE" in
> your kernel config...
>
> i hope this helps some.
>
> -colin
>
>