Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 15:41:06 -0300
From:      "Daniel C. Sobral" <dcs@tcoip.com.br>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: module path?
Message-ID:  <3EA6DE42.9020601@tcoip.com.br>
In-Reply-To: <16038.56029.799743.49248@grasshopper.cs.duke.edu>
References:  <16038.56029.799743.49248@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Gallatin wrote:
> What's the official way to boot an alternate kernel these days?
> 
> I upgraded the kernel sources and installed the resulting kernel and
> *.ko in /boot/kernel.test/
> 
> I then booted, broke into the loader, and told it to load
> /boot/kernel.test/kernel.  When doing this, I expected that the module
> path would get set so that /boot/kernel.test was first.  Nope.
> It auto-loaded /boot/kernel/acpi.ko.  Then there was an
> earth-shattering kaboom :-(
> 
> Is there a way to boot an alternate kernel which sets the module path
> for you?

Sure. All documented ways. :-)

boot kernel.test
boot-conf kernel.test

or even

unload
set kernel=kernel.test
boot

Of course, you can set the path by yourself.

> 
> Thanks,
> 
> Drew
> 
> FreeBSD/i386 bootstrap loader, Revision 1.1
> (gallatin@shout, Fri Apr  4 09:41:26 EST 2003)
> Loading /boot/defaults/loader.conf
> /boot/kernel/kernel text=0x27010c data=0x3bb64+0x3f870
> syms=[0x4+0x36560+0x4+0x422cb]
> 
> Hit [Enter] to boot immediately, or any other key for command prompt.
> Booting [/boot/kernel/kernel] in 9 seconds...
> 
> Type '?' for a list of commands, 'help' for more detailed help.
> OK unload
> OK load kernel.test
> can't find 'kernel.test'
> OK load /boot/kernel.test/kernel
> /boot/kernel.test/kernel text=0x3ed2f8 data=0x5b5ac+0x77848
> syms=[0x4+0x4ee50+0x4+\
> 0x5ed77]
> OK boot
> /boot/kernel/acpi.ko text=0x39d74 data=0x19d8+0xb28
> syms=[0x4+0x5800+0x4+0x74f]|
> Copyright (c) 1992-2003 The FreeBSD Project.
> <...>
>  io3 (APIC): apic id: 11, version: 0x000f0011, at 0xfec03000
> Pentium Pro MTRR support enabled
> 
> 
> Fatal trap 12: page fault while in kernel mode
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


-- 
Daniel C. Sobral                   (8-DCS)
Gerencia de Operacoes
Divisao de Comunicacao de Dados
Coordenacao de Seguranca
VIVO Centro Oeste Norte
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

Outros:
	dcs@newsguy.com
	dcs@freebsd.org
	capo@notorious.bsdconspiracy.net

Osborn's Law:
	Variables won't; constants aren't.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EA6DE42.9020601>