From owner-freebsd-current Thu Mar 6 4: 1:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAA2237B401; Thu, 6 Mar 2003 04:01:51 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77A3E43FDF; Thu, 6 Mar 2003 04:01:48 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h26C1j908027; Thu, 6 Mar 2003 09:01:45 -0300 Message-ID: <3E6738A9.5080602@tcoip.com.br> Date: Thu, 06 Mar 2003 09:01:45 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Juli Mallett Cc: current@FreeBSD.ORG Subject: Re: elf_loadfile: kernel already loaded References: <20030302045202.A5998@FreeBSD.org> In-Reply-To: <20030302045202.A5998@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Juli Mallett wrote: > Hi, > > (Trying to boot an alternate kernel on FreeBSD/i386 with normal loader = > running > at a console, loading kernel from a disk.) > > It looks like after I "unload" the default kernel, and try to "load" a = new > one, when I go to "boot", loader is trying to load some other kernel, a= nd > I'm not sure why, but I get the "elf_loadfile: kernel already loaded", = I > was trying to fix this on my p4 branch by adding some printfs to figure= > out what it was trying to load, and since I didn't have libstand=20 > around, it > threw a fit at me during the compile and I gave up, so I figured I'd ju= st > mail here and ask if anyone has seen what I'm talking about, or knows i= f > it is fixed, or how to fix it. I'm intrigued. The word "boot", as modified by loader.4th, only tries to = load a kernel is "kernelname" is not defined. This variable should be=20 set by the inner workings of loader when a kernel is loaded, iirc. So, the question is why kernelname is not getting set when you load a=20 new one. Or, if it _is_ getting set, something very, very weird is going = on. --=20 Daniel C. Sobral Ger=EAncia de Opera=E7=F5es Divis=E3o de Comunica=E7=E3o de Dados Coordena=E7=E3o de Seguran=E7a TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message