Subject: LKM Broken for Qube2 (MIPS) More Information
To: None <tech-kern@NetBSD.org>
From: Jowell, Chris {GGRP~Graz} <chris.jowell@Roche.COM>
List: tech-kern
Date: 05/11/2004 13:54:51
Hi,

	I thought I'd post the actual error messages generated when I attempt =
to compile a kernel with LKM turned on, on my Qube 2.
If only to see if jogged anyone's memory...

Christopher

making sure the compat library is up to date...
`libcompat.a' is up to date.
making sure the kern library is up to date...
`libkern.a' is up to date.
ld -T ../../../../arch/mips/conf/kern.ldscript -Ttext 0x80001000 -e =
start -EL -G 0 --oformat elf32-littlemips -x -o netbsd ${SYSTEM_OBJ} =
vers.o
kern_lkm.o: In function `_lkm_exec':
/sys/arch/cobalt/compile/Qube2/../../../../kern/kern_lkm.c(.text+0x10f8):=
 undefined reference to `exec_add'
/sys/arch/cobalt/compile/Qube2/../../../../kern/kern_lkm.c(.text+0x110c):=
 undefined reference to `exec_remove'
kern_lkm.o: In function `_lkm_compat':
/sys/arch/cobalt/compile/Qube2/../../../../kern/kern_lkm.c(.text+0x1170):=
 undefined reference to `emul_register'
/sys/arch/cobalt/compile/Qube2/../../../../kern/kern_lkm.c(.text+0x118c):=
 undefined reference to `emul_unregister'
layer_subr.o: In function `layer_node_find':
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_subr.c(.tex=
t+0xa8): undefined reference to `VOP_UNLOCK'
layer_vnops.o: In function `layer_lock':
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.te=
xt+0x7dc): undefined reference to `VOP_LOCK'
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.te=
xt+0x80c): undefined reference to `VOP_UNLOCK'
layer_vnops.o: In function `layer_unlock':
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.te=
xt+0x88c): undefined reference to `VOP_UNLOCK'
layer_vnops.o: In function `layer_inactive':
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.te=
xt+0x968): undefined reference to `VOP_UNLOCK'
layer_vnops.o: In function `layer_strategy':
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.te=
xt+0xafc): undefined reference to `VOP_STRATEGY'
layer_vnops.o: In function `layer_bwrite':
/sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.te=
xt+0xb4c): undefined reference to `VOP_BWRITE'
*** Error code 1


-----Original Message-----
From: tech-kern-owner@NetBSD.org [mailto:tech-kern-owner@NetBSD.org] On =
Behalf Of Jowell, Chris {GGRP~Graz}
Sent: Tuesday, May 04, 2004 10:17 AM
To: tech-kern@NetBSD.org
Subject: LKM for Qube2 (MIPS)


Hi,

	I was trying to enable loadable kernel modules for my Qube 2 kernel  =
(using 1.6.1 and then current).

This doesn't appear to be completely implemented for this architecture,  =
as the kernel compile complains of numerous undefined variables and then =
fails.

Does anyone know what work needs to be done to finalize LKM for the =
Qube2 Arch?

Or is it that I *really* don't know what I'm doing when I enable LKM for =
my kernel?

Thanks=20

Christopher Jowell
Roche Diagnostics GmbH
Roche Near Patient Testing
R&D Engineering
Kratkystra=DFe 2
A-8020 Graz

Phone:  + 43 (316) 27787-4971