Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Nov 1998 00:17:36 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Andrew Kenneth Milton <akm@zeus.theinternet.com.au>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Booting Elf Kernel 
Message-ID:  <199811020817.AAA08915@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 02 Nov 1998 12:45:45 %2B1000." <199811020245.MAA19222@zeus.theinternet.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Is it possible to boot an ELF kernel?

Yes.

> The Release Notes say that the kernel is still in aout format, but, is
> there a way? I don't have any active LKM's to worry about, and I'm
> reinstalling most of my stuff in ELF format anyway.

You probably want to update to -current first.  Following a 'make world',
build an ELF kernel by setting KERNFORMAT to 'elf' in the environment 
before doing the kernel build.  Install the kernel as /kernel.elf

Reboot, and at the boot: prompt type '/boot/loader', then abort the 
kernel load and type 'boot kernel.elf'.

If this works for you, the next step is to update the bootblocks with
'disklabel -B -b /boot/boot1 -s /boot/boot2 <disk>' where <disk> is 
your boot slice.  Remove any existing /boot.config file.

This will now default to using the new loader to boot your system.  
Note that the new loader is still under development, so YMMV.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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