From owner-freebsd-questions Thu Dec 21 23:26:22 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 21 23:26:19 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from c007.snv.cp.net (c007-h014.c007.snv.cp.net [209.228.33.221]) by hub.freebsd.org (Postfix) with SMTP id 6C49237B400 for ; Thu, 21 Dec 2000 23:26:19 -0800 (PST) Received: (cpmta 21964 invoked from network); 21 Dec 2000 23:26:18 -0800 Received: from dsl-216-227-91-85.telocity.com (HELO zoso) (216.227.91.85) by smtp.telocity.com (209.228.33.221) with SMTP; 21 Dec 2000 23:26:18 -0800 X-Sent: 22 Dec 2000 07:26:18 GMT From: "Otter" To: "Murray" , Subject: RE: how to recovery an old kernel? Date: Fri, 22 Dec 2000 02:31:31 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <20001221185520.A46994@converging.net> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG }-----Original Message----- }From: owner-freebsd-questions@FreeBSD.ORG }[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Murray }Sent: Thursday, December 21, 2000 8:55 PM }To: freebsd-questions@FreeBSD.ORG }Subject: how to recovery an old kernel? } } }Hi, } }I just built a new 4.2 workstation and used a kernel from another }system. The other system had a pentium ii, but the new system has a }pentium iii. Therefore, in the old kernel the cpu was set as 586, not }686. Therefore, the new system does not boot, it hangs as it tries to }determine the cpu. } ouch. p2 and p3 should both be set as 686, and if you use gcc optimization flags, set it to -march=pentiumpro for both processor types. This goes for Celerons as well. The only ones that don't get it are pre-Pentium 2's. }I initially copied the old system's kernel to the new }system and then }recompiled. I am guessing here but it seems that the only thing I }need to do is change the cpu setting in my }kernel and then recompile. } }If I could only rn kernel to kernel.bad and then rename kernel.old to }kernel and then reboot and recompile correctly, everything }would be ok. } }How do you boot a bad kernel so that you could do the above? I tried }going into edit mode at the point where you can boot in 9 seconds... }or press any other key. However, I cannot accomplish anything here. }-- }Murray Davis }Converging Technology Solutions }Edmonton, AB } if you still have a kernel.GENERIC, you should be able to boot from that. When it boots up and prompts you to hit any key other than return to get the menu, do it. Then type: unload load kernel.GENERIC boot If you don't have a kernel.GENERIC, I can send you one. I'm running 4.2-STABLE on this machine and 4.2-RELEASE on another. -Otter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message