[ale] custom boot disk woes

Christopher Fowler cfowler at outpostsentinel.com
Wed Sep 3 08:26:38 EDT 2003


On Wed, Sep 03, 2003 at 07:14:53AM -0500, Kevin Krumwiede wrote:
> I'm just messin' around with an old P75 I found in the trash.  Right now all it has is a floppy drive and a couple EtherExpress/10s... and wow, it's QUIET.  I'm hoping to make it into a firewall.
> 
> I built a 2.4 kernel and wrote it to a floppy.  It boots OK and of course hangs when it can't find init.
> 
> I then made a root filesystem containing only /sbin/init and /dev/tty0 and added it to the floppy.  The kernel finds and loads the compressed disk image, but then I get this message:
> 
> Warning: unable to open an initial console

copy /dev/tty1 and /dev/console to the image.  You'll probably need to 
copy over a  few more devices too.  It just depends on what you are supporting.
Below is a cut from one of our scripts that creates the device
nodes in our disk image.


 
---- Cut Here -------
sudo mknod --mode=640 $TEMPLATE/dev/kmem c 1 2 2>/dev/null
#
# now the character devices.
#
sudo mknod --mode=555 $TEMPLATE/dev/null c 1 3 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/zero c 1 5 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/urandom c 1 9 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty0 c 4 0 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty1 c 4 1 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty2 c 4 2 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty3 c 4 3 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty4 c 4 4 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty5 c 4 5 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/ttyS0 c 4 64 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/ttyS1 c 4 65 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty6 c 4 6 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/tty7 c 4 7 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/tty c 5 0 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/vcs0 c 7 0 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/vcs1 c 7 1 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/vcs2 c 7 2 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/vcsa0 c 7 128 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/vcsa1 c 7 129 2>/dev/null
sudo mknod --mode=666 $TEMPLATE/dev/vcsa2 c 7 130 2>/dev/null

sudo mknod --mode=555 $TEMPLATE/dev/console c 5 1 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/ptmx c 5 2 2>/dev/null
sudo mknod --mode=444 $TEMPLATE/dev/rtc c 10 135 2>/dev/null
sudo mknod --mode=444 $TEMPLATE/dev/mtd0 c 90 0 2>/dev/null
sudo mknod --mode=555 $TEMPLATE/dev/ppp c 108 0 2>/dev/null
---- Cut Here -------
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list