Subject: Re: LKM Broken for Qube2 (MIPS) More Information
To: Jowell, Chris {GGRP~Graz} <chris.jowell@Roche.COM>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-kern
Date: 05/11/2004 15:40:49
This looks as if your kernel wouldn't be compiled with
options LKM (those functions are only available if the kernel
contains LKM support). Can you confirm whether or not your kernel config
has that option enabled?

Jaromir


Jowell, Chris {GGRP~Graz} wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
> 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(.text+0xa8): undefined reference to `VOP_UNLOCK'
> layer_vnops.o: In function `layer_lock':
> /sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.text+0x7dc): undefined reference to `VOP_LOCK'
> /sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.text+0x80c): undefined reference to `VOP_UNLOCK'
> layer_vnops.o: In function `layer_unlock':
> /sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.text+0x88c): undefined reference to `VOP_UNLOCK'
> layer_vnops.o: In function `layer_inactive':
> /sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.text+0x968): undefined reference to `VOP_UNLOCK'
> layer_vnops.o: In function `layer_strategy':
> /sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.text+0xafc): undefined reference to `VOP_STRATEGY'
> layer_vnops.o: In function `layer_bwrite':
> /sys/arch/cobalt/compile/Qube2/../../../../miscfs/genfs/layer_vnops.c(.text+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 
> 
> Christopher Jowell
> Roche Diagnostics GmbH
> Roche Near Patient Testing
> R&D Engineering
> Kratkystra_e 2
> A-8020 Graz
> 
> Phone:  + 43 (316) 27787-4971
> 

-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you        -=-
-=- sometimes levitate or glow.   Do not let this distract you.''   -=-