Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 1996 22:54:29 +1000 (GMT+1000)
From:      "Francis Percival C. Favoreal" <june@adn.edu.ph>
To:        Gary Chrysler <tcg@ime.net>
Cc:        freebsd-questions <questions@freebsd.ORG>
Subject:   Re: modems connected to BOCA 8-ports not responding
Message-ID:  <Pine.LNX.3.91.960826220338.963A-200000@sili.adn.edu.ph>
In-Reply-To: <322198C1.76B7@ime.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On Mon, 26 Aug 1996, Gary Chrysler wrote:

> Francis Percival C. Favoreal wrote:
> > 
> > On Sun, 25 Aug 1996, Gary Chrysler wrote:
> > 
> > > Francis Percival C. Favoreal wrote:
> > > >
> > > > On Sun, 25 Aug 1996, Gary Chrysler wrote:
> > > >
> > > > > Francis Percival C. Favoreal wrote:
> > > > > >
> > > > > > (Please respond to this address directly.)
> > > > > >
> > > > > > I have the following lines inserted in the kernel config:
> > > > > >
> > > > > > options "COM_MULTIPORT"
> > > > > > ...
> > > > > > device sio4 at isa? port 0x300 tty flags 0xb05
> > > > > > device sio5 at isa? port 0x308 tty flags 0xb05
> > > > > > device sio6 at isa? port 0x310 tty flags 0xb05
> > > > > > device sio7 at isa? port 0x318 tty flags 0xb05
> > > > > > device sio8 at isa? port 0x320 tty flags 0xb05
> > > > > > device sio9 at isa? port 0x328 tty flags 0xb05
> > > > > > device sio10 at isa? port 0x330 tty flags 0xb05
> > > > > > device sio11 at isa? port 0x338 tty flags 0xb05
> > > > > >
> > > > > > I recompiled the kernel and rebooted. When the new kernel booted, sio4
> > > > > > upto sio11 were found in their respective ports.
> > > > > >
> > > > > > Then, I made a sequence of MAKEDEV. Now, I have devices
> > > > > >
> > > > > >         cuaa4 upto cuaab
> > > > > >         ttyd4 upto ttydb
> > > > > >
> > > > > > Now, I tried to connect one modem to the BOCA board to test if the modem
> > > > > > responds. I typed,
> > > > > >
> > > > > >         echo at > /dev/ttyd4
> > > > > >
> > > > >
> > > > > Your method of testing will not work.
> > > > >
> > > > > use: cu -l cuaa?
> > > > > Then AT (or as I prefere ATDT), AT should respond with OK, ATDT
> > > > > should respond with phone off hook.
> > > >
> > > > I tried it. I typed,
> > > >
> > > >         # cu -l cuaa4
> > > >         Connected.
> > > >
> > > > After this I notice that the modem does not go off hook. And further
> > > > more, when I tried to type AT, I don't see anything displayed on the
> > > > screen. I know it's supposed to show 'AT' as I typed it.
> > > >
> > > > I thought maybe I referenced the wrong port, so I tried it all from cuaa5
> > > > to cuaab but I got same results.
> > > >
> > > > I hope this piece of info helped.
> > > >
> > > > Any other test you could recommend?
> > > >
> > >
> > > Welp, it may or may not echo your keystrokes depending on your
> > > modems E register. (ATE0 or 1, echo off or on)
> > >
> > > Although no matter what ATE is,  It still should echo OK by
> > > entering AT if it's working.
> > > Typing ATDT should result in a dial tone if plugged into
> > > phone line. As stated earlier, I prefer to use ATDT it can be
> > > heard!
> > >
> > > What do you get when you type:
> > >       # cu -l cuaa4
> > >       Connected.
> > >       AT <enter>
> > >       (Should result a: OK )
> > >       ATDT <enter>
> > >       (Should result a: dialtone if pluged to a phone line)
> > > Unless of course it's broke. :)
> > 
> > I think it isn't broke, because when I try this to connect this modem to
> > COM1 it responds that is if I typed,
> > 
> >         # cu -l cuaa0
> >         Connected.
> >         AT <enter>
> >         OK
> > 
> 
> If you don't get the same results as above on the Boca ports
> then it is broke!
> Whats broke is yet to figure out.
> 
> Have you read: man 4 sio
> 
> > I get the results above. So, really there is nothing wrong with the
> > modem. It just won't respond when I type AT commands if it was connected
> > to one port in the BOCA board.
> > 
> 
> Never said the *modem* was broke.
> I said *it's* broke, Meaning that something isn't right.
> 
> > >
> > > Did you make your device files after compiling/installing/re-booting
> > > you system??
> > 
> > To create the devices I used,
> > 
> >         # MAKEDEV ttyd4 (upto ttydb)
> >         # MAKEDEV cuaa4 (upto cuaab)
> > 
> > Is there something I missed ?
> 
> Thats correct, But did you do this AFTER enabling COM_MULTIPORT,
> recompiling and rebooting?


> ie: After you saw the boot messages saying that sio4-11 are
>     found??

Yes, sio4 to sio11 were found and were successfully probed.

> 
> I'll run down the steps as I see em from what I've read, I have not
> actually done it with a Boca board.
> 
> Add options COM_MULTIPORT, sio4-11 to kernel config as stated in
> man 4 sio.

Yes, I did this.

> 
> # config YOURKERNEL
> # cd ../../compile/YOURKERNEL
> # make
> # make install
> # halt (shutdown now)

Yes, this too.

> 
> Power down, Install Properly configured Boca Board.
> Power up, boot messages should pick up the sio4-11
> 
> # cd /dev
> # sh MAKEDEV cuaa4 (thru 11)
> # sh MAKEDEV ttyd4 (thru 11)

Yes, this too.

> 
> (I would reboot here, Although I belive it's not needed, I'm just
>  that way)
> 
> # cu -l cuaa4
>   Connected
>   AT <enter>
>   (should result: OK)

I hate to say this, but nothing changed.

 # cu -l cuaa4
   Connected.
   (no response still)

> 
> If not something is broke! and is above what I can do for you.
> I personally don't use Boca boards so I know very little about them.
> 
> > > > > > device sio11 at isa? port 0x338 tty flags 0xb05
> 
> Is this what your sio11 looks like??

Well, I missed some few words in the mail. But, it is there.

   device sio11 at isa? port 0x338 tty flags 0xb05 irq 12 vector siointr

> >From the man 4 sio page it states:
> device sio11 at isa? port 0x338 tty flags 0xb05 irq 12 vector siointr
>                                                 ^^^^^^^^^^^^^^^^^^^^^
> That is the MASTER PORT! according to 'flags 0xb05'
> Change the IRQ to fit your Boca board of course!

I used IRQ 12

Here attached is the result of dmesg and my kernel config file.

> 
> -Enjoy
> Gary
> ~~~~~~~~~~~~~~~~
> Improve America's Knowledge... Share yours
> The Borg... Where minds meet
> (207) 929-3848
> 
[-- Attachment #2 --]
Probing for devices on PCI bus 0:
chip0 <SiS 85c496> rev 49 on pci0:5
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16450
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16450
sio4 at 0x300-0x307 flags 0xb05 on isa
sio4: type 16550A (multiport)
sio5 at 0x308-0x30f flags 0xb05 on isa
sio5: type 16550A (multiport)
sio6 at 0x310-0x317 flags 0xb05 on isa
sio6: type 16550A (multiport)
sio7 at 0x318-0x31f flags 0xb05 on isa
sio7: type 16550A (multiport)
sio8 at 0x320-0x327 flags 0xb05 on isa
sio8: type 16550A (multiport)
sio9 at 0x328-0x32f flags 0xb05 on isa
sio9: type 16550A (multiport)
sio10 at 0x330-0x337 flags 0xb05 on isa
sio10: type 16550A (multiport)
sio11 at 0x338-0x33f irq 12 flags 0xb05 on isa
sio11: type 16550A (multiport master)
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 765
fd0: 1.2MB 5.25in
fd1: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <ST3630A>
wd0: 601MB (1232784 sectors), 1223 cyls, 16 heads, 63 S/T, 512 B/S
1 3C5x9 board(s) on ISA found at 0x340
ep0 at 0x340-0x34f irq 10 on isa
ep0: aui/utp/bnc[*UTP*] address 00:a0:24:55:36:97
npx0 on motherboard
npx0: INT 16 interface
new masks: bio c0004040, tty c003141a, net c003141a
IP firewall initialized
#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	$Id: GENERIC,v 1.69 1996/05/01 03:26:58 bde Exp $
#

machine		"i386"
#cpu		"I386_CPU"
cpu		"I486_CPU"
#cpu		"I586_CPU"
#cpu		"I686_CPU"
ident		ASIN
maxusers	16

options		IPFIREWALL
options		IPFIREWALL_VERBOSE
options		IPACCT

#options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
#options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
#options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
#options		SCSI_DELAY=15		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
#options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		COM_MULTIPORT		#Multiport Cards

config		kernel	root on wd0

controller	isa0
controller	eisa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
#tape		ft0	at fdc0 drive 2

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

#controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
#disk		wd2	at wdc1 drive 0
#disk		wd3	at wdc1 drive 1

options		ATAPI		#Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
#device		wcd0	#IDE CD-ROM

# A single entry for any of these controllers (ncr, ahb, ahc) is sufficient
# for any number of installed devices.
#controller	ncr0
#controller	ahb0
#controller	ahc0

#controller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
#controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
#controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
#controller	aic0	at isa? port 0x340 bio irq 11 vector aicintr
#controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
#controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
#controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr

#controller	scbus0

#device		sd0

#device		od0

#device		st0

#device		cd0	#Only need one of these, the code dynamically grows

#device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
#device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
#device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr

#controller	matcd0	at isa? port 0x230 bio

#device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
#options		PCVT_FREEBSD=210	# pcvt running on FreeBSD >= 2.0.5
#options		XSERVER			# include code for XFree86
#options		FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options		PCVT_SCANSET=2		# IBM keyboards are non-std

# Mandatory, don't remove
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

#
# Laptop support (see LINT for more options)
#
#device		apm0    at isa?	disable	# Advanced Power Management
#options		APM_BROKEN_STATCLOCK	# Workaround some buggy APM BIOS

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 9 vector siointr
#device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
#device		sio3	at isa? disable port "IO_COM4" tty irq 9 vector siointr
#device		cy0	at isa? tty irq 10 iomem 0xd4000 iosiz 0x2000 vector cyintr
#device		cyb0	at isa? tty irq 15 iomem 0xd8000 iosiz 8192 vector cybintr

device		sio4	at isa? port 0x300 tty flags 0xb05
device		sio5	at isa? port 0x308 tty flags 0xb05
device		sio6	at isa? port 0x310 tty flags 0xb05
device		sio7	at isa? port 0x318 tty flags 0xb05
device		sio8	at isa? port 0x320 tty flags 0xb05
device		sio9	at isa? port 0x328 tty flags 0xb05
device		sio10	at isa? port 0x330 tty flags 0xb05
device		sio11	at isa? port 0x338 tty flags 0xb05 irq 12 vector siointr

#device		lpt0	at isa? port? tty irq 7 vector lptintr
#device		lpt1	at isa? port? tty
#device		lpt2	at isa? port? tty
#device		mse0	at isa? port 0x23c tty irq 5 vector mseintr

#device		psm0	at isa? disable port "IO_KBD" conflicts tty irq 12 vector psmintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
#device de0
#device fxp0
#device vx0

#device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
#device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
#device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
device ep0 at isa? port 0x340 net irq 10 vector epintr
#device fe0 at isa? port 0x300 net irq ? vector feintr
#device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
#device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
#device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
#device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
#device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
#device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	9
# ijppp uses tun instead of ppp device
pseudo-device	ppp	2
pseudo-device	tun	1
pseudo-device	pty	8
# keep this if you want to be able to continue to use /stand/sysinstall
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	bpfilter	2

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.960826220338.963A-200000>