Subject: RE: modload & /dev/ksyms
To: 'ragge@ludd.luth.se' <ragge@ludd.luth.se>
From: Hsu, Cheng-Hsin (Cheng-Hsin) <chs@lucent.com>
List: tech-kern
Date: 11/16/2003 22:00:00
Uah, you are right. My arch/evbarm/conf/mk.ixm1200 clears 'SYSTEM_LD_TAIL_EXTRA'. After comments it out, everything works fine....

Thanks,
Bear

-----Original Message-----
From: ragge@ludd.luth.se [mailto:ragge@ludd.luth.se]
Sent: Sunday, November 16, 2003 6:16 AM
To: chs@lucent.com
Cc: tech-kern@NetBSD.org; netbsd-help@NetBSD.org
Subject: Re: modload & /dev/ksyms


> 
> 	I'm working on a memory-disk based system based on evbarm port. 
> 	I'm trying to modload a .o, however, modload complains the /dev/ksyms doesn't exist and quits. Then, I compile a new kernel with ksyms as well as create the /dev/ksyms node.
> 	I notice that there is a "missing symbol table" line at bootup, and recognize there is no symbol in my 'netbsd'. I did the following things: (1) set MDSET_NOSTRIP in Makefile to skip symbol strip of kernel. (2) I turn on DEBUG="-g", per some old posts. (3) I set the symbolsize to be non-zero in md code before calling ksyms_init(actually, I set it the same as SYMTAB_SPACE value in conf file). 
> 	Now, I can see "wrong symbol table format". :-(
> 	Did I miss any step? Thank you!
> 
Simple question: Did you remember to run dbsym on the kernel?

-- Ragge