Subject: Problems with enabling tty login on i386
To: None <netbsd-help@NetBSD.ORG>
From: Anders Dinsen <dinsen@danbbs.dk>
List: netbsd-help
Date: 06/02/1998 22:59:01
Greetings everyone,

I have recently set up NetBSD 1.3.1 on an i386 compatible. It works
well except for one thing: I cannot get the tty ports enabled for
login. I'd like to do that, since I don't have a monitor attached to
the system and I would like to configure tty00 as the console.

I have enabled tty00 and tty01 for login in /etc/ttys, but getty seems
to hang. ps -lx reports:

  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME
COMMAND
    0   229     1   2   3  0    28  164 ttyopn IW   ??    0:00.08
/usr/libexec/getty std.9600 tty00
    0   230     1   0   3  0    28  164 ttyopn S    ??    0:00.08
/usr/libexec/getty std.9600 tty01

The port echoes everything I type on the terminal intelligently - I
can press enter and get a new line (cr-lf) and I can delete what I
type with DEL.

I have tried switching the i/o card with another one.

If I disable login, "echo hello world > /dev/tty00" simply hangs (it
hangs too when login is enabled).

Below are my boot messages (I haven't got enough diskspace to store
the sources and rebuild the kernel yet, therefore the GENERIC kernel -
I don't assume that that has anything to say).

Sincerely,
Anders


NetBSD 1.3.1 (GENERIC) #0: Wed Apr  8 00:27:10 EDT 1998

perry@frankenstein.piermont.com:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Cyrix 486DLC (486-class)
WARNING: CYRIX 486DLC CACHE UNCHANGED.
real mem  =3D 7995392
avail mem =3D 5373952
using 123 buffers containing 503808 bytes of memory
mainbus0 (root)
isa0 at mainbus0
(bha probe): bha_cmd, cmd/data port empty 13
aha0 at isa0 port 0x330-0x333 irq 11 drq 5
aha0: model AHA-1540A/1542A/1542B, firmware 0.5
aha0: async, parity
scsibus0 at aha0: 8 targets
st0 at scsibus0 targ 3 lun 0: <\020\017ADAPTE, C\003, > SCSI0
1/sequential removable
st0: drive empty
sd0 at scsibus0 targ 4 lun 0: <SyQuest, EZ135S, 1_13> SCSI2 0/direct
removable
sd0: drive offline
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
wd0 at wdc0 drive 0: <Conner Peripherals 121MB - CP30101G>
wd0: 116MB, 762 cyl, 8 head, 39 sec, 512 bytes/sec
wd0: using 16-sector 16-bit pio transfers, chs addressing
ec0 at isa0 port 0x250-0x25f iomem 0xd8000-0xd9fff irq 9
ec0: 3Com 3c503 Ethernet (8-bit)
ec0: Ethernet address 02:60:8c:1a:0c:25
npx0 at isa0 port 0xf0-0xff irq 13
pc0 at isa0 port 0x60-0x6f irq 1: color
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.2MB, 80 cyl, 2 head, 15 sec
biomask 4840 netmask 4a40 ttymask 4ac2
findroot: can't open dev sd0a (5)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs