Subject: Re: building RAMDISK kernel failure (Re: Warning: no /dev/console)
To: None <port-sun3@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sun3
Date: 06/10/2000 14:26:35
In <200006071324.e57DOrY21689@mirage.ceres.dti.ne.jp>
I wrote:

> I tried to build sun3 RAMDISK kernels, but there were
> some problems in src/distrib/sun3:

> - The definitions of ramdisk are inconsistent among etc/disktab,
>   sun3/config/RAMDISK{,3X} and distrib/ramdisk/Makefile.
> - ramdisk/Makefile uses /dev/sd1b implicitely to make ramdisk image.
>   (vnd should be used here.)
> - ramdisk/Makefile uses home-grown rdsetroot, not MI mdsetimage.
>   (I guess mdsetimage is based on rdsetroot, though.)

I have committed fixes for these problems.

At least, RAMDISK3X kernel seems to boot properly from sd0a
on my 3/80. (boot message log attached)

I'll try to build a snapshot from the latest sources.
(It will take about a week?)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp


>b sd()/netbsd.rd
Boot: sd(0,0,0)/netbsd.rd 
>> NetBSD ufsboot [$Revision: 1.7 $]
ufsboot: loading /netbsd.rd
749064+443148+132912+[54816+61522]=0x15feba
Starting program at 0x4000
console is ttya
Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.4Y (RAMDISK3X) #2: Sat Jun 10 13:22:26 JST 2000
    tsutsui@mirage:/usr/src/sys/arch/sun3/compile/RAMDISK3X
Model: sun3x 80
fpu: mc68882
total memory = 16384 KB
avail memory = 13712 KB
using 115 buffers containing 920 KB of memory
mainbus0 (root)
obio0 at mainbus0
iommu0 at obio0 addr 0x60000000
memerr0 at obio0 addr 0x61001000 ipl 7: (Parity memory)
intreg0 at obio0 addr 0x61001400
zsc0 at obio0 addr 0x62000000 ipl 6: (softpri 3)
kbd0 at zsc0 channel 0
zsc0:  channel 1 not configured
zsc1 at obio0 addr 0x62002000 ipl 6: (softpri 3)
zstty0 at zsc1 channel 0 (console i/o)
zstty1 at zsc1 channel 1
eeprom0 at obio0 addr 0x64000000
clock0 at obio0 addr 0x640007f8 ipl 5
le0 at obio0 addr 0x65002000 ipl 3: address 08:00:20:07:c4:e6
le0: 8 receive buffers, 2 transmit buffers
dma0 at obio0 addr 0x66001000 ipl 2: rev 0
esp0 at obio0 addr 0x66000000 ipl 2: ESP100, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
fdc0 at obio0 addr 0x6e000000 ipl 6 vect 0x40: (softpri 2) chip 82072
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
enabling interrupts
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <CONNER, CFP2105S  2.14GB, 1524> SCSI2 0/direct fixed
sd0: 2048 MB, 3940 cyl, 10 head, 106 sec, 512 bytes/sect x 4194304 sectors
md0: internal 400K image area
boot device: sd0a
root on md0a dumps on md0b

        Welcome to the NetBSD/sun3 RAMDISK root!

This environment is designed to do only three things:
1:  Partititon your disk (use the command:  edlabel /dev/rsd0c)
2:  Copy a miniroot image into the swap partition  (/dev/rsd0b)
3:  Reboot (using the swap partition, i.e. /dev/sd?b).

Copying the miniroot can be done several ways, allowing
the source of the miniroot image to be on any of these:
    boot tape,  NFS server, TFTP server, rsh server

The easiest is loading from tape, which is done as follows:
        mt -f /dev/nrst0 rewind
        mt -f /dev/nrst0 fsf 2
        dd bs=32k if=/dev/nrst0 of=/dev/rsd0b
(For help with other methods, please see the install notes.)

To reboot using the swap partition, first use "halt",
then at the PROM monitor prompt use a command like:
        b sd(,,1) -s

To view this message again, type:  cat /.welcome
ssh: halt
 signal 15
ssh: syncing disks... done
Kernel halted.

Abort at 0xF809BE52.
>