SUMMARY: Need Help With SunOS 4.1.4 Kernel Rebuild

From: Michael Mitchell (lizrdegg@email.unc.edu)
Date: Tue Jun 23 1998 - 18:48:46 CDT


     Folks-

     Thanks to Jay Lessert, Sean Ward, Bismark Espinoza,
Thad MacMillan, Charles Seeger, Jochen Bern, Bruce Rossiter,
Nicky Ayoub, and Casper Dik for answers. One of the replies
and the original question are shown below.

     Mike

Original Question:

> Folks-
>
> I've installed SunOS 4.1.4 on an old, giant
>SparcServer 490. The installation went OK and
>the 490 runs OK. However, when I rebuild the
>operating system to add patches, etc., the newly
>built OS gives the following error at boot time:
>
> ps: /dev/mem; error on ktextseg; bad address
> ps: could not read kernel VM
>
>The 490 finishes booting OK, but when I log in as
>root and run the ps or top command I get the same
>errors to the console. Every attempt to rebuild
>the OS gives the same problem. Even if I simply
>rebuild the OS without adding any patches using the
>GENERIC configuration file, I still get the same
>problem. Can someone point out what I might do
>to compile this OS so that I can run the ps command?
>
> Thanks
>
> Mike

An answer:
     This looks like what happens when you build a
new kernel and boot it with a name other than "vmunix"
(like "vmunix.new", for example). Since kernel programs
only know to look in /vmunix for symbol tables, etc, they
won't know to look in the file you actually booted from.
Fix is just to copy (or link) the vmunix you booted from
to /vmunix and things should start working.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:42 CDT