NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45514: MAKEDEV doesn't create /dev/tty20 and over



>Number:         45514
>Category:       bin
>Synopsis:       MAKEDEV doesn't  create /dev/tty20 and over
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 23 18:10:00 +0000 2011
>Originator:     Ryo Shimizu
>Release:        5.99.56
>Organization:
>Environment:
NetBSD falsie 5.99.56 NetBSD 5.99.56 (FALSIE.CUR) #1: Fri Oct 21 19:36:48 JST 
2011  ryo@phenomena:/src/cvs/NetBSD/sys/arch/amd64/compile/FALSIE.CUR amd64

>Description:
/dev/MAKEDEV doesn't create /dev/tty20 and over
>How-To-Repeat:
attach over com20, and MAKEDEV tty20.


Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
   2006, 2007, 2008, 2009, 2010, 2011
   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 5.99.56 (FALSIE.CUR) #0: Fri Oct 21 19:28:31 JST 2011
        ryo@phenomena:/src/cvs/NetBSD/sys/arch/amd64/compile/FALSIE.CUR
total memory = 1023 MB
avail memory = 976 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
MSI MS-6702E (1.0)
mainbus0 (root)
cpu0 at mainbus0 apid 0: AMD Athlon(tm) 64 Processor 3000+, id 0x20ff2
ioapic0 at mainbus0 apid 1: pa 0xfec00000, version 3, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,01000627>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
attimer0 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pckbc0 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc1 at acpi0 (PS2M, PNP0F03) (aux port): irq 12
pcppi0 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
com2 at acpi0 (UAR1, PNP0501-1): io 0x3f8-0x3ff irq 4
com2: ns16550a, working fifo
FDC (PNP0700) at acpi0 not configured
SIOR (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
OMSC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
RMEM (PNP0C01) at acpi0 not configured
acpibut1 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
attimer0: attached to pcppi0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x1106 product 0x0282 (rev. 0x00)
agp0 at pchb0: 1 Miscellaneous Control unit(s) found.
agp0: aperture at 0xe0000000, size 0x10000000
pchb1 at pci0 dev 0 function 1: vendor 0x1106 product 0x1282 (rev. 0x00)
pchb2 at pci0 dev 0 function 2: vendor 0x1106 product 0x2282 (rev. 0x00)
pchb3 at pci0 dev 0 function 3: vendor 0x1106 product 0x3282 (rev. 0x00)
pchb4 at pci0 dev 0 function 4: vendor 0x1106 product 0x4282 (rev. 0x00)
pchb5 at pci0 dev 0 function 7: vendor 0x1106 product 0x7282 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0xb188 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x102b product 0x2527 (rev. 0x01)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
mgadrm0 at vga0: Matrox G550 (AGP)
mgadrm0: AGP at 0xe0000000 256MB
mgadrm0: Initialized mga 3.2.2 20060319
puc0 at pci0 dev 5 function 0: SystemBase SB16C1058 (com, com, com, com, com, 
com, com, com)
com3 at puc0 port 0: interrupting at ioapic0 pin 16
com3: ns16550a, working fifo
com4 at puc0 port 1: interrupting at ioapic0 pin 16
com4: ns16550a, working fifo
com5 at puc0 port 2: interrupting at ioapic0 pin 16
com5: ns16550a, working fifo
com6 at puc0 port 3: interrupting at ioapic0 pin 16
com6: ns16550a, working fifo
com7 at puc0 port 4: interrupting at ioapic0 pin 16
com7: ns16550a, working fifo
com8 at puc0 port 5: interrupting at ioapic0 pin 16
com8: ns16550a, working fifo
com9 at puc0 port 6: interrupting at ioapic0 pin 16
com9: ns16550a, working fifo
com10 at puc0 port 7: interrupting at ioapic0 pin 16
com10: ns16550a, working fifo
puc1 at pci0 dev 6 function 0: Oxford Semiconductor OX16PCI954 UARTs (com, com, 
com, com)
com11 at puc1 port 0: interrupting at ioapic0 pin 17
com11: ns16550a, working fifo
com12 at puc1 port 1: interrupting at ioapic0 pin 17
com12: ns16550a, working fifo
com13 at puc1 port 2: interrupting at ioapic0 pin 17
com13: ns16550a, working fifo
com14 at puc1 port 3: interrupting at ioapic0 pin 17
com14: ns16550a, working fifo
vendor 0x1415 product 0x9510 (serial communications, interface 0x06) at pci0 
dev 6 function 1 not configured
puc2 at pci0 dev 7 function 0: Moxa Technologies, SmartIO CP-104/PCI (com, com, 
com, com)
com15 at puc2 port 0: interrupting at ioapic0 pin 18
com15: ns16550a, working fifo
com16 at puc2 port 1: interrupting at ioapic0 pin 18
com16: ns16550a, working fifo
com17 at puc2 port 2: interrupting at ioapic0 pin 18
com17: ns16550a, working fifo
com18 at puc2 port 3: interrupting at ioapic0 pin 18
com18: ns16550a, working fifo
puc3 at pci0 dev 8 function 0: EXAR XR17D154 (com, com, com, com)
com19 at puc3 port 0: interrupting at ioapic0 pin 19
com19: ns16550a, working fifo
com20 at puc3 port 1: interrupting at ioapic0 pin 19
com20: ns16550a, working fifo
com21 at puc3 port 2: interrupting at ioapic0 pin 19
com21: ns16550a, working fifo
com22 at puc3 port 3: interrupting at ioapic0 pin 19
com22: ns16550a, working fifo
vge0 at pci0 dev 10 function 0: VIA VT612X Gigabit Ethernet (rev. 0x11)
vge0: interrupting at ioapic0 pin 17
vge0: Ethernet address: 00:02:2a:dd:58:24
    :
    :
(abbr.)


# cd /dev
# ./MAKEDEV tty20
./MAKEDEV: tty20: unknown device
# ./MAKEDEV tty21
./MAKEDEV: tty21: unknown device

>Fix:
Index: MAKEDEV.tmpl
===================================================================
RCS file: /cvsroot/src/etc/MAKEDEV.tmpl,v
retrieving revision 1.144
diff -a -u -r1.144 MAKEDEV.tmpl
--- MAKEDEV.tmpl        12 Oct 2011 20:57:55 -0000      1.144
+++ MAKEDEV.tmpl        23 Oct 2011 18:01:58 -0000
@@ -1203,7 +1203,7 @@
        lndev dtyZ$unit dty0${unit}
        ;;
 
-tty0*|tty1*|tty[0-9])
+tty0*|tty1*|tty2*|tty[0-9])
        unit=${i#tty}
        ounit=00$unit
        ounit=${ounit#${ounit%??}}



Home | Main Index | Thread Index | Old Index