From owner-freebsd-questions Sat Nov 23 8:40: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55DC637B404 for ; Sat, 23 Nov 2002 08:40:00 -0800 (PST) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4055E43E91 for ; Sat, 23 Nov 2002 08:39:57 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id gANGdkD89862; Sat, 23 Nov 2002 10:39:50 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20021123103949.010ff368@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sat, 23 Nov 2002 10:39:49 -0600 To: Jez Hancock , FreeBSD questions List From: "Jack L. Stone" Subject: Re: Booting an alternate kernel In-Reply-To: <20021123160921.GA54194@users.munk.nu> References: <3.0.5.32.20021123093535.010ff368@mail.sage-one.net> <20021123150522.GA53763@users.munk.nu> <3.0.5.32.20021123093535.010ff368@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 04:09 PM 11.23.2002 +0000, Jez Hancock wrote: >On Sat, Nov 23, 2002 at 09:35:35AM -0600, Jack L. Stone wrote: >> At 03:05 PM 11.23.2002 +0000, Jez Hancock wrote: >> >Hi, >> > >> >I have fbsd 4.7 installed on a hdd in a dev machine which I want to transfer >> >to and from another machine. However the current machine is a K6-2 CPU >> and the target >> >machine is an AMD Athlon 1900+ - a generic kernel will not work >> >when I transfer the hdd between machines. >> > >> >I've just built a new kernel that will work in the Athlon and the kernel >> >that works ok in the K6 machine is now called /kernel.old. >> > >> >How can I make sure I don't accidentally overwrite /kernel.old (ie when >> >I rebuild the kernel again)? Ideally I'd like to rename kernel.old to >> >something like kernel.k6, but would I have to rename the /modules.old >> >dir too? >> > >> >Thanks in advance, >> > >> >Jez >> > >> >> You can just copy the kernel to kernel.k6. You don't need to delete the >> kernel.old..... >Cheers Jack. > >The main thing I was unsure of was what files a kernel rebuild puts in >/modules - ie if I had to rename /modules.old as well as just /kernel.old >- but I've had a chance to check it out now and it seems the size of >/modules and /modules.old is identical (as long as the release point >is the same of course). > >All ticking over verrrrrrrry fast - this athlon 1900+ is a far cry >from the p166 ! > >On to building X on freebsd for first time - joy ;) > >Thanks again, >Jez > As further example, I have occasions to copy desired kernels over to other machines. No problem because I try to keep most of the machines configured the same. One big difference would be a single CPU vs dual. Don't forget to keep track of your kernel config files. They should be symlinked to a directory separate from the "/usr/src/sys/i386/conf" just in case you suddenly decide to delete your /usr/src and forget the kernel.conf is in there. But, the main thing, I believe is to keep your kernel in sync with your userland build. Modules may or may not change, especially if you are only updating a release... although keeping a copy never hurts. Have fun.... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message