Subject: Re: /dev/ksyms not configured?
To: Quentin Garnier <cube@cubidou.net>
From: Stephen Borrill <netbsd@precedence.co.uk>
List: tech-kern
Date: 03/03/2007 13:46:20
On Fri, 2 Mar 2007, Quentin Garnier wrote:
> On Fri, Mar 02, 2007 at 08:49:31PM +0000, Stephen Borrill wrote:
>> I'm trying to modload -s a lkm and I'm getting
>> modload: /dev/ksyms: Device not configured
>>
>> (I need the symbol table loading for use by another lkm).
>>
>> This is GENERIC 3.1_STABLE with the lkm compiled up against the same
>> source tree. The same lkm source and NetBSD tree code yields a loadable
>> lkm elsewhere (not tried the same kernel, but GENERIC has "options LKM").
>>
>> I can't see what's different except for this machine is using grub to dual
>> boot with Linux. I'm doing a kernel load with "kernel --type=netbsd
>> /netbsd" (i.e. I have to specify the root device) as chainloading didn't
>> work for me (yet).
>
> You're loading the NetBSD kernel directly with GRUB.  That breaks ksyms,
> because GRUB hasn't been taught how to boot a NetBSD kernel posterior to
> the 1.4 release (and thus gives bogus information about the layout of
> the ELF sections).
>
> You have to chainload the NetBSD bootloader.

Thanks for the pointer. I've got chainloading working now (just required 
me to run installboot on the relevant partition which I was a bit nervous 
of doing because I couldn't risk the Linux partition becoming unbootable - 
this is our main VoIP server). My lkms are loading fine :-)

-- 
Stephen