Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 21:24:59 -0400
From:      "Mark J. Taylor" <mtaylor@cybernet.com>
To:        jkruger@oskar.nanoteq.co.za
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Custom boot.flp
Message-ID:  <37E58CEB.77F11EDF@cybernet.com>
References:  <37DE5F82.92A87782@oskar.nanoteq.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Johan Kruger wrote:
> 
> I mounted the boot.flp image and replaced kernel.gz with my own, for use
> of bootable CD.
> I don't want the default sysinstall ( presumably compiled into the
> kernel ) to come up on screen, instead i want a command prompt only. I
> will insert my scripts into .profile.
> The PROBLEM is that i get the message mounting root on fd0c while i am
> actually booting from CDROM. In my kernel the default root device is

Actually, when you boot from CD-ROM, you are really booting from the
first floppy drive: for bootable "EL-TORITO" CD-ROMs, the motherboard's
BIOS will make the specified boot image, present on the CD-ROM, look
to the BIOS just like the first floppy disk drive.

You may have some luck with "boot -C" (cd-rom).  I've never really tried
it.  Also checkout the "boot -a" (ask-root) option.  You can force these
options to ALWAYS be active by creating a "/boot.config" file containing
your boot-line options, like "0:fd(0,a)/kernel -C".

For the release CD-ROM images, the kernel is compiled with the "MFS_ROOT"
option, and a special program, release/write_mfs_in_kernel.c, is used to
put the root filesystem image into the kernel.  With the new forth-based
boot loader, this is no longer necessary (I've done away with it in our
product based on FreeBSD)- you can pre-load the MFS into a "variable",
and the kernel will detect it/use it when it boots.

To build a custom boot floppy image, you should be playing with the
src/release/Makefile and friends.  It's kinda tricky in there.
As someone else stated, "/stand/sysinstall" is used as the "init"
program on the release floppies (see src/sys/kern/init_main.c).  You want
to use a standard "init".  Stick "init" in your boot_crunch.conf file for
your boot floppy image.


Good luck!
(if you have any specific questions, email me directly: I troll this
list only every week or so)


-Mark Taylor
NetMAX Developer
mtaylor@cybernet.com
http://www.netmax.com/


> wd0, but i tried to change kernel root to acd0 , and to no avail.
> 
> I get :
> ----------------------
> Mounting root device on fd0c
> error mounting root on fd0c
> -- will reboot in 15 seconds -- bla bla
> ----------------------
> How do i tell it to mount it on CDROM ( probably wcd0a ) say for
> instance /MYMOUNT_DIR ??
> 
>   --------------------------------------------------------------------------------
> 
>   Johan Kruger <jkruger@oskar.nanoteq.co.za>
>   Mr
>   Nanoteq
>   Development
> 
>   Johan Kruger
>   Mr                                                                                <jkruger@oskar.nanoteq.co.za>
>   Nanoteq
>   Development
>   P.O BOX 12872 Onderstepoort 0110 South Africa;Pretoria;Gauteng;0110;South Africa  Cellular: +27 83 3015923
>                                                                                     Fax: +27 12 6651343
>                                                                                     Home: +27 83 3015923
>                                                                                     Work: +27 12 6651338
>                                                                                     Netscape Conference Address
>                                                                                     Netscape Conference DLS Server
>   Additional Information:
>   Last Name     Kruger
>   First Name    Johan
>   Version       2.1


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37E58CEB.77F11EDF>