From owner-freebsd-bugs Wed Oct 10 2:40:16 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CAA9337B409 for ; Wed, 10 Oct 2001 02:40:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9A9e3N91426; Wed, 10 Oct 2001 02:40:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 10 Oct 2001 02:40:03 -0700 (PDT) Message-Id: <200110100940.f9A9e3N91426@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: bin/31190: Program, like top, is used libkvm doesn't work Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/31190; it has been noted by GNATS. From: Peter Pentchev To: Serg Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/31190: Program, like top, is used libkvm doesn't work Date: Wed, 10 Oct 2001 12:36:13 +0300 On Wed, Oct 10, 2001 at 01:14:55PM +0400, Serg wrote: > Peter Pentchev wrote: > > >On Wed, Oct 10, 2001 at 12:52:00PM +0400, Serg wrote: > > > >>Peter Pentchev wrote: > >> > >>>On Wed, Oct 10, 2001 at 01:30:40AM -0700, Serg O. Malakhov wrote: > >>> > >>>>>Environment: > >>>>> > >>>>FreeBSD camel.servocomp.ru 4.3-RELEASE FreeBSD 4.4-RELEASE #0: Wed Sep 26 15:34:56 MSD 2001 > >>>> > >[snip] > > > >>>>make cvsup for src and build kernel and all sources, reboot, and just type after login top > >>>> > >>>What were the exact commands you used to 'build kernel and all sources'? > >>>Did you run 'make world', or did you use 'make buildworld buildkernel'? > >>>If you did it the 'buildworld' way, did you run both 'make installkernel' > >>>and 'make installworld' afterwards? > >>> > >>Sure > >> > >>> > >>>What is the output of 'ls -l /usr/bin/top'? > >>> > >>-r-xr-sr-x 1 root kmem 32456 9 okt 21:36 /usr/bin/top > >> > > > >OK, now for a really stupid question: are you sure you are running > >your newly compiled kernel? What does 'uname -a' say? If it says > >the same as in your PR (quoted above, saying 4.4-RELEASE #0 Sep 26), > >you are *not* running your compiled kernel, but the default 4.4-RELEASE > >kernel. > > > No. It's ok > I loaded various kernel, with patch of des@freebsd.org for linuxprocfs > and without. > > I've got mail from Alexey Neyman. He wrote: > > I encountered this when I started the kernel directly, bypassing the loader. > (I used /boot.config file to do this). Since I switched back to starting > /boot/loader instead of /kernel, top & family works fine. > > > I done all this and top works properly for now. > I don't understend why and can I load without the loader. Ahh... now I remember that I had this problem when booting a diskless station using Etherboot, too. Well, the loader's task is to load the kernel binary (the kernel is almost a normal ELF executable file) into memory, then fix up some symbols, load the necessary modules (just more ELF objects) and link the whole together. I had the nlist problem too, when I tried to bypass the loader; first I worked around it by removing the 'static' keyword before a couple of variable definitions in kern_{clock,fork,malloc,synch}.c, vfs_bio.c and vm_zone.c - that made top(1) work. Then, I just started actually loading loader(8) before the kernel and letting it do its job :) So.. now that you are not bypassing loader(8), things work for you, right? Can this PR be closed? G'luck, Peter -- This sentence was in the past tense. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message