Subject: Internal modem, again
To: 386BSD-list <port-i386@NetBSD.ORG>
From: Paul Goyette <paul@whooppee.com>
List: port-i386
Date: 04/24/1998 17:52:32
Despite all the helpful suggestions I received from the list last week,
I'm still having trouble talking with my internal USRobotics 56k modem.
I've managed to get things to autoconfigure correctly (I think),
including having PnP find the modem at the right port/IRQ. (Just in
case things _aren't_ right, I've included the output from dmesg below.)
If I look at the tty settings, I get this:
# stty -f /dev/tty01 -e
speed 0 baud; 0 rows; 0 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl oxtabs onocr onlret
cflags: -cread cs5 -parenb -parodd -hupcl -clocal -cstopb -crtscts
-mdmbuf -cdtrcts
discard dsusp eof eol eol2 erase intr kill lnext
^O ^Y ^D <undef> <undef> ^? ^C ^U ^V
min quit reprint start status stop susp time werase
1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W
A couple of the cflags immediately look like they need changing, so I
tried setting clocal, speed ###, cs8, and a few others. Each attempt
results in "stty: tcsetattr: Invalid argument". I get the same message
when I try to use kermit's set line command.
Any ideas on what I can try next? :)
---------
| dmesg |
---------
NetBSD 1.3E (PRG2) #9: Fri Apr 24 17:18:58 PDT 1998
paul@pc1.whooppee.com:/home/paul/src/sys/arch/i386/compile/PRG2
cpu0: family 6 model 5 step 0
cpu0: Intel Pentium Pro (686-class)
real mem = 133824512
avail mem = 122986496
using 1659 buffers containing 6795264 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443LX PCI AGP Controller (PAC) (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443LX AGP Device (PAC) (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o enabled, memory enabled
Velocity-128 STB Systems (VGA display, revision 0x10) at pci1 dev 0 function 0 not configured
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
Intel 82371AB IDE controller (PIIX4) (IDE mass storage, interface 0x80, revision 0x01) at pci0 dev 7 function 1 not configured
Intel 82371AB USB Host Controller (PIIX4) (USB serial bus, revision 0x01) at pci0 dev 7 function 2 not configured
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 3 not configured
ep0 at pci0 dev 13 function 0: 3Com 3C905 Ethernet
ep0: MAC address 00:10:4b:73:06:34
ep0: 8KB word-wide FIFO, 3:5 Rx:Tx split, mii default mii, autoselect
ep0: interrupting at irq 10
ahc0 at pci0 dev 15 function 0
ahc0: interrupting at irq 15
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <WDIGTL, WDE4360-1807A3, 1.80> SCSI2 0/direct fixed
sd0: 4095MB, 5720 cyl, 8 head, 183 sec, 512 bytes/sect x 8388314 sectors
ahc0: target 5 synchronous at 10.0MHz, offset = 0xf
cd0 at scsibus0 targ 5 lun 0: <NEC, CD-ROM DRIVE:464, 1.05> SCSI2 5/cdrom removable
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pms0 at pc0 irq 12
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
com1 at isapnp0 port 0x2f8/8 irq 3: ns16550a, working fifo
biomask 8040 netmask 8440 ttymask 94c2
WARNING: old BSD partition ID!
boot device: sd0
root on sd0a dumps on sd0b
WARNING: old BSD partition ID!
WARNING: old BSD partition ID!
IP Filter: initialized. Default = pass all, Logging = disabled
Aperture driver for XFree86 version 1.6
----------------------------------
| config (minus all the comment) |
----------------------------------
include "arch/i386/conf/std.i386"
maxusers 32 # estimated number of users
# CPU support. At least one is REQUIRED.
options I686_CPU
# CPU-related options.
options USER_LDT # user-settable LDT; used by WINE
# Misc. i386-specific options
options XSERVER # X server support in console drivers
# Standard system options
options UCONSOLE # users can use TIOCCONS (for xconsole)
#options INSECURE # disable kernel security levels
options RTC_OFFSET=480 # hardware clock is this many mins. west of GMT
options NTP # NTP phase/frequency locked loop
options KTRACE # system call tracing via ktrace(1)
#options UVM # Use UVM instead of Mach VM.
#options PMAP_NEW # new pmap interface; requires UVM
options SYSVMSG # System V-like message queues
options SYSVSEM # System V-like semaphores
options SYSVSHM # System V-like memory sharing
#options SHMMAXPGS=1024 # 1024 pages is the default
options LKM # loadable kernel modules
# Diagnostic/debugging support options
options DIAGNOSTIC # cheap kernel consistency checks
options DDB # in-kernel debugger
# Compatibility options
options COMPAT_12 # NetBSD 1.2,
options COMPAT_13 # NetBSD 1.3,
options COMPAT_43 # and 4.3BSD
options COMPAT_386BSD_MBRPART # recognize old partition ID
options COMPAT_SVR4 # binary compatibility with SVR4
options COMPAT_IBCS2 # binary compatibility with SCO and ISC
options COMPAT_LINUX # binary compatibility with Linux
options COMPAT_FREEBSD # binary compatibility with FreeBSD
# Executable format options
options EXEC_ELF32 # 32-bit ELF executables (SVR4, Linux)
# File systems
file-system FFS # UFS
file-system EXT2FS # second extended file system (linux)
file-system MFS # memory file system
file-system NFS # Network File System client
file-system CD9660 # ISO 9660 + Rock Ridge file system
file-system MSDOSFS # MS-DOS file system
file-system FDESC # /dev/fd
file-system KERNFS # /kern
file-system NULLFS # loopback file system
file-system PROCFS # /proc
file-system UNION # union file system
# File system options
options QUOTA # UFS quotas
options NFSSERVER # Network File System server
options FIFO # FIFOs; RECOMMENDED
# Networking options
options GATEWAY # packet forwarding
options INET # IP + ICMP + TCP + UDP
# These options enable verbose messages for several subsystems.
# Warning, these may compile large string tables into the kernel!
options EISAVERBOSE # verbose EISA device autoconfig messages
options PCIVERBOSE # verbose PCI device autoconfig messages
options SCSIVERBOSE # human readable SCSI error messages
options NFS_BOOT_BOOTP,NFS_BOOT_BOOTPARAM
# Kernel root file system and dump configuration.
config netbsd root on sd0a type ffs
#
# Device configuration
#
mainbus0 at root
# Basic Bus Support
# PCI bus support
pci* at mainbus? bus ?
pci* at pchb? bus ?
pci* at ppb? bus ?
# PCI bridges
pchb* at pci? dev ? function ? # PCI-Host bridges
pcib* at pci? dev ? function ? # PCI-ISA bridges
ppb* at pci? dev ? function ? # PCI-PCI bridges
# ISA bus support
isa* at pcib?
# ISA Plug-and-Play bus support
isapnp0 at isa?
# Coprocessor Support
# Math Coprocessor support
npx0 at isa? port 0xf0 irq 13 # x86 math coprocessor
# Console Devices
# ISA console. You can only configure one of these!
pc0 at isa? port 0x60 irq 1 # pccons generic PC console driver
# Serial Devices
# ISA Plug-and-Play serial interfaces
com* at isapnp? # Modems and serial boards
# ISA serial interfaces
com0 at isa? port 0x3f8 irq 4 # Standard PC serial ports
# Parallel Printer Interfaces
# ISA parallel printer interfaces
lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports
# SCSI Controllers and Devices
# PCI SCSI controllers
ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI
# SCSI bus support
scsibus* at ahc?
# SCSI devices
sd* at scsibus? target ? lun ? # SCSI disk drives
st* at scsibus? target ? lun ? # SCSI tape drives
cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
ch* at scsibus? target ? lun ? # SCSI autochangers
ss* at scsibus? target ? lun ? # SCSI scanners
uk* at scsibus? target ? lun ? # SCSI unknown
# Miscellaneous mass storage devices
# ISA floppy
fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
fd* at fdc? drive ? # the drives themselves
# Network Interfaces
# PCI network interfaces
ep* at pci? dev ? function ? # 3Com 3c59x/3c90x Ethernet
# Audio Devices
# ISA audio devices
sb0 at isa? port 0x220 irq 7 drq 1 drq2 5 # SoundBlaster
# Audio support
audio* at sb?
# Mice
# ISA busmice
pms0 at pc? irq 12 # PS/2 auxiliary port mouse
# Pull in optional local configuration
include "arch/i386/conf/GENERIC.local"
# Pseudo-Devices
# disk/mass storage pseudo-devices
pseudo-device ccd 4 # concatenated/striped disk devices
pseudo-device md 1 # memory disk device (ramdisk)
pseudo-device vnd 4 # disk-like interface to files
# network pseudo-devices
pseudo-device bpfilter 12 # Berkeley packet filter
pseudo-device ipfilter # IP filter (firewall) and NAT
pseudo-device loop # network loopback
pseudo-device ppp 2 # Point-to-Point Protocol
# miscellaneous pseudo-devices
pseudo-device pty 64 # pseudo-terminals
pseudo-device tb 1 # tablet line discipline
-----------------------------------------------------------------------------
| Paul Goyette | Public Key fingerprint: | E-mail addresses: |
| Network Engineer | 0E 40 D2 FC 2A 13 74 A0 | paul@whooppee.com |
| and kernel hacker | E4 69 D5 BE 65 E4 56 C6 | paul.goyette@ascend.com |
-----------------------------------------------------------------------------