Re: Custom boot.flp

1999-09-19 Thread Mark J. Taylor

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
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
>   Mr
>   Nanoteq
>   Development
> 
>   Johan Kruger
>   Mr
><[EMAIL PROTECTED]>
>   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 NameJohan
>   Version   2.1


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: Custom boot.flp

1999-09-14 Thread Andrzej Bialecki

On Tue, 14 Sep 1999, Marc Nicholas wrote:

> Doesn't the boot.flp actually use sysinstall and a custom init process?
> Therefore, you'd have to replace sysinstall with an init process of some
> sort...

No, sysinstall is THE custom init. Yes, you'd have to replace it with your
own init, if you really want to. You can take a look at
src/release/picobsd/tinyware/oinit. Or, you can take a look at scripting
abilities in sysinstall, if they are enough for your needs.

> Someone correct me if I'm talking out of my a.out ;-)

I thought you were an elf...

Andrzej Bialecki

//  <[EMAIL PROTECTED]> WebGiro AB, Sweden (http://www.webgiro.com)
// ---
// -- FreeBSD: The Power to Serve. http://www.freebsd.org 
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: Custom boot.flp

1999-09-14 Thread Andrzej Bialecki
On Tue, 14 Sep 1999, Marc Nicholas wrote:

> Doesn't the boot.flp actually use sysinstall and a custom init process?
> Therefore, you'd have to replace sysinstall with an init process of some
> sort...

No, sysinstall is THE custom init. Yes, you'd have to replace it with your
own init, if you really want to. You can take a look at
src/release/picobsd/tinyware/oinit. Or, you can take a look at scripting
abilities in sysinstall, if they are enough for your needs.

> Someone correct me if I'm talking out of my a.out ;-)

I thought you were an elf...

Andrzej Bialecki

//   WebGiro AB, Sweden (http://www.webgiro.com)
// ---
// -- FreeBSD: The Power to Serve. http://www.freebsd.org 
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ 



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



RE: Custom boot.flp

1999-09-14 Thread Marc Nicholas

Doesn't the boot.flp actually use sysinstall and a custom init process?
Therefore, you'd have to replace sysinstall with an init process of some
sort...

Someone correct me if I'm talking out of my a.out ;-)

-marc

---
Marc Nicholas netSTOR Technologies, Inc. http://www.netstor.com
"Fast, Expandable and Affordable Internet Caching Products"
1.877.464.4776 416.979.9000x11 fax: 416.979.8223 cell: 416.346.9255

On Tue, 14 Sep 1999, Wills, Ken wrote:

> 
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Johan Kruger
> > Sent: Tuesday, September 14, 1999 9:45 AM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Custom boot.flp
> > 
> > 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 ??
> 
> Check the kernel config. You may need to build a new GENERIC kernel.
> Also you'd check for any rc* or /etc/fstab entries that mount the floppy
> as the root fs.
> 
> As a disclaimer, I've never done or tried to do this, but thats the
> general idea <:)
> 
> Ken
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: Custom boot.flp

1999-09-14 Thread Marc Nicholas
Doesn't the boot.flp actually use sysinstall and a custom init process?
Therefore, you'd have to replace sysinstall with an init process of some
sort...

Someone correct me if I'm talking out of my a.out ;-)

-marc

---
Marc Nicholas netSTOR Technologies, Inc. http://www.netstor.com
"Fast, Expandable and Affordable Internet Caching Products"
1.877.464.4776 416.979.9000x11 fax: 416.979.8223 cell: 416.346.9255

On Tue, 14 Sep 1999, Wills, Ken wrote:

> 
> > [mailto:owner-freebsd-hack...@freebsd.org]on Behalf Of Johan Kruger
> > Sent: Tuesday, September 14, 1999 9:45 AM
> > To: freebsd-questi...@freebsd.org; freebsd-hackers@FreeBSD.ORG
> > Subject: Custom boot.flp
> > 
> > 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 ??
> 
> Check the kernel config. You may need to build a new GENERIC kernel.
> Also you'd check for any rc* or /etc/fstab entries that mount the floppy
> as the root fs.
> 
> As a disclaimer, I've never done or tried to do this, but thats the
> general idea <:)
> 
> Ken
> 
> 
> To Unsubscribe: send mail to majord...@freebsd.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



RE: Custom boot.flp

1999-09-14 Thread Wills, Ken


> [mailto:[EMAIL PROTECTED]]On Behalf Of Johan Kruger
> Sent: Tuesday, September 14, 1999 9:45 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Custom boot.flp
> 
> 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 ??

Check the kernel config. You may need to build a new GENERIC kernel.
Also you'd check for any rc* or /etc/fstab entries that mount the floppy
as the root fs.

As a disclaimer, I've never done or tried to do this, but thats the
general idea <:)

Ken


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: Custom boot.flp

1999-09-14 Thread Wills, Ken

> [mailto:owner-freebsd-hack...@freebsd.org]on Behalf Of Johan Kruger
> Sent: Tuesday, September 14, 1999 9:45 AM
> To: freebsd-questi...@freebsd.org; freebsd-hackers@FreeBSD.ORG
> Subject: Custom boot.flp
> 
> 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 ??

Check the kernel config. You may need to build a new GENERIC kernel.
Also you'd check for any rc* or /etc/fstab entries that mount the floppy
as the root fs.

As a disclaimer, I've never done or tried to do this, but thats the
general idea <:)

Ken


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message