Re: USER PPP

2000-08-09 Thread Mark Ovens

On Wed, Aug 09, 2000 at 07:17:37PM -0500, justin wrote:
> Hey fellas...
> 
> Allright, here is the situation. I just had a second phone line installed in my 
>house, a POTS (plain old telephone service) line. I have plugged it directly into my 
>FreeBSD 4.1-STABLE workstation/server. I allready have PPP setup and when I execute 
>it, it runs fine. Now then, what I would eventually like to do is have all of my 
>windows based machines connect to this one and use it as a gateway for internet 
>traffic. However, that will come later.
> 
> What I would like to do right now, however, is guarantee that anytime, anyday, 
>barring a problem with my ISP, that my box is connected to the internet. I have it 
>currently setup to dial the internet when it boots and that seems, so far to work ok. 
>My problem you ask? My ISP implements a 5 minute no transfer policy, they disconnect 
>my connection after 5 minutes of 'idling'. What I would like to do is have some kind 
>of check to verify if I am still connected to the internet and if not, execute it. I 
>was thinking some type of script running from crontab every 5 minutes. If I am not 
>connected, then automatically reconnect to the internet.
> 
> Now there is another possible solution I cannot find an answer to. Is there a 
>BSD option to 'keep-alive' the connection so I do not time out? I would prefer not to 
>leave an X session opening refreshing CNN every five minutes :P
> 

Firstly, please set your mailer to wrap lines at ~70 chars please.

Add `` set reconnect'' to /etc/ppp/ppp.conf. From the manpage:

  set reconnect timeout ntries

 This command tells ppp to re-establish the connection ntries
 times on loss of carrier with a pause of timeout seconds before
 each try.For example,



> Your help and/or scripts are welcome :)
> 
> Justin W. Pauler
> JWPages Web Development
> [EMAIL PROTECTED]
> 
> 

-- 
4.4 - The number of the Beastie

51.44°N  FreeBSD - The Power To Serve http://www.freebsd.org
2.057°W  My Webpage http://ukug.uk.freebsd.org/~mark
mailto:[EMAIL PROTECTED]http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Request for review/comments - new option for uname(1)

2000-08-09 Thread Mark Ovens

On Wed, Aug 09, 2000 at 02:33:44PM -0400, Will Andrews wrote:
> On Wed, Aug 09, 2000 at 12:59:29AM +0100, Mark Ovens wrote:
> > Is there any reason why this is unacceptable and could not be committed?
> 
> Because it can be done with an awk/sed script?
> 

I'll forget about it then. I only did it because I was fed up with
manually editing the output so it was tidier in e-mails and PRs. Like
I said, it's not important.

Thanks for the feedback.

> -- 
> Will Andrews <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> GCS/E/S @d- s+:+ a--- C++ UB$ P+ L- E--- W+ N-- !o ?K w---
> O- M+ V- PS+ PE++ Y+ PGP+>+++ t++ 5 X+ R+ tv+ b++ DI+++ D+ 
> G++ e> h! r- y?

-- 
4.4 - The number of the Beastie

51.44°N  FreeBSD - The Power To Serve http://www.freebsd.org
2.057°W  My Webpage http://ukug.uk.freebsd.org/~mark
mailto:[EMAIL PROTECTED]http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Request for review/comments - new option for uname(1)

2000-08-08 Thread Mark Ovens

The output of ``uname -a'' appears in hundreds of e-mails and PRs yet
the output format is not ideal for this (especially e-mail in
80-column mail readers) as it is a single line.

Attached is a patch for an enhancement I've made that adds a new
option ``-A'' (rather than change ``-a'') that splits it up into 3
lines thus making it better for including verbatim in e-mails and PRs:

  # uname -A
  FreeBSD parish 4.1-STABLE FreeBSD 4.1-STABLE #0:
  Tue Aug  8 00:51:02 BST 2000
  mark@parish:/usr/src/sys/compile/PARISH i386

The only thing I couldn't work out is why sysctl() adds 5 spaces after
the date sub-string, so I've haven't stripped them out (hence the
indented third line).

Is there any reason why this is unacceptable and could not be committed?

BTW, please Cc: me.

Thanks for your time.

-- 
4.4 - The number of the Beastie

51.44°N  FreeBSD - The Power To Serve http://www.freebsd.org
2.057°W  My Webpage http://ukug.uk.freebsd.org/~mark
mailto:[EMAIL PROTECTED]http://www.radan.com



--- uname.c.origTue Aug  8 21:32:36 2000
+++ uname.c Tue Aug  8 21:53:20 2000
@@ -61,16 +61,20 @@
 #defineRFLAG   0x04
 #defineSFLAG   0x08
 #defineVFLAG   0x10
+#defineAFLAG   0x20
u_int flags;
int ch, mib[2];
size_t len, tlen;
char *p, *prefix, buf[1024];
 
flags = 0;
-   while ((ch = getopt(argc, argv, "amnprsv")) != -1)
+   while ((ch = getopt(argc, argv, "Aamnprsv")) != -1)
switch(ch) {
+   case 'A':
case 'a':
flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG);
+   if (ch == 'A')
+   flags |= AFLAG;
break;
case 'p':
case 'm':
@@ -137,9 +141,22 @@
len = sizeof(buf);
if (sysctl(mib, 2, &buf, &len, NULL, 0) == -1)
err(1, "sysctl");
-   for (p = buf, tlen = len; tlen--; ++p)
-   if (*p == '\n' || *p == '\t')
-   *p = ' ';
+
+   if (flags & AFLAG) {
+   for (p = buf, tlen = len; tlen--; ++p)
+   if (*p == ':') {
+   *++p = '\n';
+   break;
+   }
+
+   if (buf[strlen(buf) - 1] == '\n')
+   buf[strlen(buf) - 1] = '\0';
+   } else {
+   for (p = buf, tlen = len; tlen--; ++p)
+   if (*p == '\n' || *p == '\t')
+   *p = ' ';
+   }
+
(void)printf("%s%.*s", prefix, (int)len, buf);
prefix = " ";
}



Request for review

2000-08-02 Thread Mark Ovens

I originally sent this to -committers but was advised that the
maintainers and -hackers or -current was more appropriate.

I've posted some patches for PR 14682 which include some changes to
the source code for lpr(1), lprm(1) etc.

Could someone review them for me please, especially the C code.

Thanks. (please Cc: me as I'm not subscribed to -current)

-- 
  If I buy a copy of WinDelete, and it doesn't delete Windows,
  am I entitled to my money back?

51.44°N  FreeBSD - The Power To Serve http://www.freebsd.org
2.057°W  My Webpage http://ukug.uk.freebsd.org/~mark
mailto:[EMAIL PROTECTED]http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Accessing FreeBSD 3.4-STABLE filesystems from 4.0-STABLE...

2000-03-25 Thread Mark Ovens

On Sat, Mar 25, 2000 at 01:40:05PM -0700, Warner Losh wrote:
> In message <[EMAIL PROTECTED]> Jeroen Ruigrok van der Werven 
>writes:
> : Block/character device collapsing breaking you up now?
> : 
> : /dev/ Should only be character devices now.
> 
> I was surprised how many block devices were in my /dev when I did a ls
> -l /dev | grep ^b.
> 
> Maybe we should put something in /etc/daily in -current to whine about
> all block devices in /dev :-)
> 

At a slight tangent; could removal of block devices be the cause of
this message when starting the ddd debugger?

gdb: warning: cannot set file to non-blocking mode: Resource
temporarily unavailable

and when exiting:

gdb: warning: cannot restore file mode: Resource temporarily unavailable

Possibly trying to set a device (the pipe?) to non-blocking when it
already is?

> Warner
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message

-- 
Seminars, n.:
   From "semi" and "arse", hence, any half-assed discussion.

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: SCSI errors from xmcd

2000-03-21 Thread Mark Ovens

On Tue, Mar 21, 2000 at 01:50:46PM -0700, Kenneth D. Merry wrote:
> On Tue, Mar 21, 2000 at 20:15:29 +0000, Mark Ovens wrote:
> > Since u/g to 4.0 I've had problems with audio CD players and my
> > Toshiba XM6201 SCSI CD drive, cdcontrol and xmcd. Re-MAKEDEV'ing all
> > the cd devices has got cdcontrol working but still xmcd (v2.6)
> > doesn't. It all worked fine under 3.4-STABLE
> > 
> > Starting it with ``-debug'' yields a constant (one every few seconds)
> > stream  of:
> > 
> > SCSI CDB bytes (dev=/dev/rcd0c rw=0 to=20):
> > 00 00 00 00 00 00 -- --  -- -- -- -- -- -- -- --
> > CD audio: SCSI command fault on /dev/rcd0c:
> > Status=0x16
> > 
> > Is this because xmcd needs updating to work with the new CAM system,
> > or something else?
> 
> You need to recompile xmcd.
> 

In that case I need to wait for the package to be updated. xmcd needs
Motif, which I don't have, so I use the binary package.

Thanks for the quick response.

> Ken
> -- 
> Kenneth Merry
> [EMAIL PROTECTED]

-- 
Seminars, n.:
   From "semi" and "arse", hence, any half-assed discussion.

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: SCSI errors from xmcd

2000-03-21 Thread Mark Ovens

On Tue, Mar 21, 2000 at 02:02:57PM -0700, Kenneth D. Merry wrote:
> On Tue, Mar 21, 2000 at 20:57:17 +0000, Mark Ovens wrote:
> > On Tue, Mar 21, 2000 at 01:50:46PM -0700, Kenneth D. Merry wrote:
> > > On Tue, Mar 21, 2000 at 20:15:29 +, Mark Ovens wrote:
> > > > Is this because xmcd needs updating to work with the new CAM system,
> > > > or something else?
> > > 
> > > You need to recompile xmcd.
> > > 
> > 
> > In that case I need to wait for the package to be updated. xmcd needs
> > Motif, which I don't have, so I use the binary package.
> 
> There's an xmcd package for 4.0 here:
> 
> ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-4.0-release/audio/xmcd-2.6.tgz
> 
> What package are you waiting for?
> 

This one I guess :). Just d/l it and installed it; works a treat.
Thanks.

FWIW, I got the original from
ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/packages/audio/



> Ken
> -- 
> Kenneth Merry
> [EMAIL PROTECTED]
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Seminars, n.:
   From "semi" and "arse", hence, any half-assed discussion.

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



SCSI errors from xmcd

2000-03-21 Thread Mark Ovens

Since u/g to 4.0 I've had problems with audio CD players and my
Toshiba XM6201 SCSI CD drive, cdcontrol and xmcd. Re-MAKEDEV'ing all
the cd devices has got cdcontrol working but still xmcd (v2.6)
doesn't. It all worked fine under 3.4-STABLE

Starting it with ``-debug'' yields a constant (one every few seconds)
stream  of:

SCSI CDB bytes (dev=/dev/rcd0c rw=0 to=20):
00 00 00 00 00 00 -- --  -- -- -- -- -- -- -- --
CD audio: SCSI command fault on /dev/rcd0c:
Status=0x16

Is this because xmcd needs updating to work with the new CAM system,
or something else?

% uname -a
FreeBSD parish 4.0-STABLE FreeBSD 4.0-STABLE #1: Sat Mar 18 18:53:40 GMT 2000 
mark@parish:/usr/src/sys/compile/PARISH  i386

Thanks.

-- 
Seminars, n.:
   From "semi" and "arse", hence, any half-assed discussion.

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Weird problems with PnP (related to sio?)?

2000-03-11 Thread Mark Ovens

On Sat, Mar 11, 2000 at 06:44:32PM -0500, Eric D. Futch wrote:
> Ugh... nevermind.  Getting rid of the PNPBIOS option from the kernel
> config got rid of all the unknown strangeness, 

Argh!, yes , that was it, PNPBIOS not ``device pnp0''. Close though,
only 3 letters out :)

-- 
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD:   Are you guys coming, or what?
  -Poster at LinuxWorld 2000

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Weird problems with PnP (related to sio?)?

2000-03-11 Thread Mark Ovens

On Sat, Mar 11, 2000 at 05:27:33PM -0500, Eric D. Futch wrote:
> # cat QUAKE | grep ^device | grep pnp
> #
> 
> Attached is my kernel config.
> 

Hmm, I saw exactly the same thing when I moved to -current and I was
certain that it was pnp0 that caused it, obviously not. Sorry for
wasting your time.

> --
> Eric Futch  New York Connect.Net, Ltd.
> [EMAIL PROTECTED] Technical Support Staff
> http://www.nyct.net (212) 293-2620
> "Bringing New York The Internet Access It Deserves"
> 
> 
> On Sat, 11 Mar 2000, Mark Ovens wrote:
> 
> >Remove the line
> >
> >device pnp0
> >
> >from the kernel config file and re-build.
> >
> >
> >
> >
> >-- 
> > Microsoft: Where do you want to go today?
> > Linux: Where do you want to go tomorrow?
> > BSD:   Are you guys coming, or what?
> >   -Poster at LinuxWorld 2000
> >
> >  FreeBSD - The Power To Serve http://www.freebsd.org
> >  My Webpage http://ukug.uk.freebsd.org/~mark/
> >mailto:[EMAIL PROTECTED] http://www.radan.com
> >

> machine   i386
> #cpu  I386_CPU
> #cpu  I486_CPU
> #cpu  I586_CPU
> cpu   I686_CPU
> ident QuakeStation
> maxusers  128
> 
> #makeoptions  DEBUG=-g#Build kernel with gdb(1) debug symbols
> 
> #options  MATH_EMULATE#Support for x87 emulation
> options   INET#InterNETworking
> options   FFS #Berkeley Fast Filesystem
> options   FFS_ROOT#FFS usable as root device [keep this!]
> #options  MFS #Memory Filesystem
> #options  MD_ROOT #MD is a potential root device
> options   NFS #Network Filesystem
> #options  NFS_ROOT#NFS usable as root device, NFS required
> options   MSDOSFS #MSDOS Filesystem
> options   CD9660  #ISO 9660 Filesystem
> #options  CD9660_ROOT #CD-ROM usable as root, CD9660 required
> options   PROCFS  #Process filesystem
> options   COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
> #options  SCSI_DELAY=15000#Delay (in ms) before probing SCSI
> options   UCONSOLE#Allow users to grab the console
> options   USERCONFIG  #boot -c editor
> options   VISUAL_USERCONFIG   #visual boot -c editor
> options   KTRACE  #ktrace(1) support
> options   SYSVSHM #SYSV-style shared memory
> options   SYSVMSG #SYSV-style message queues
> options   SYSVSEM #SYSV-style semaphores
> options   P1003_1B#Posix P1003_1B real-time extentions
> options   _KPOSIX_PRIORITY_SCHEDULING
> options   ICMP_BANDLIM#Rate limit bad replies
> 
> # To make an SMP kernel, the next two are needed
> options   SMP # Symmetric MultiProcessor Kernel
> options   APIC_IO # Symmetric (APIC) I/O
> # Optionally these may need tweaked, (defaults shown):
> #options  NCPU=2  # number of CPUs
> #options  NBUS=4  # number of busses
> #options  NAPIC=1 # number of IO APICs
> #options  NINTR=24# number of INTs
> 
> deviceisa
> deviceeisa
> devicepci
> 
> # Floppy drives
> devicefdc0at isa? port IO_FD1 irq 6 drq 2
> devicefd0 at fdc0 drive 0
> devicefd1 at fdc0 drive 1
> 
> # ATA and ATAPI devices
> deviceata0at isa? port IO_WD1 irq 14
> deviceata1at isa? port IO_WD2 irq 15
> deviceata
> deviceatadisk # ATA disk drives
> deviceatapicd # ATAPI CDROM drives
> deviceatapifd # ATAPI floppy drives
> deviceatapist # ATAPI tape drives
> options   ATA_STATIC_ID   #Static device numbering
> #options  ATA_ENABLE_ATAPI_DMA#Enable DMA on ATAPI devices
> 
> # SCSI Controllers
> #device   ahb # EISA AHA1742 family
> deviceahc # AHA2940 and onboard AIC7xxx devices
> #device   amd # AMD 53C974 (Teckram DC-390(T))
> #device   dpt # DPT Smartcache - Se

Re: Weird problems with PnP (related to sio?)?

2000-03-11 Thread Mark Ovens

On Sat, Mar 11, 2000 at 03:30:33PM -0500, Eric D. Futch wrote:
> I'm having some weird problems with PnP, I guess.  I have a "SmartLink 56K
> Voice Fax Modem" that I just stuck into the computer.  Before I added the
> PnP magic to src/sys/isa/sio.c, in the kernel messages just said unknown
> for it, which is what I expected.  So at that point I had three unkowns,
> one for ,  and then that modem.
> 
> The src/sys/isa/sio.c magic for this modem looks like this:
> {0x12206804, NULL}, /* ACH2012 - 5634BTS 56K Video Ready Modem */
> 
> Now that I have that in there, after building/installing a fresh kernel,
> it gets attached to the sio driver but I'm getting these other lines of
> unknown stuff that seems to be causing problems with memory. Random things
> die on signal 11 now, like kdm.
> 
> >From dmesg:
> sio2: <5634BTS 56K Video Ready Modem> at port 0x3e8-0x3ef irq 10 on isa0
> sio2: type 16550A
> unknown2:  at port 0x20-0x21,0xa0-0xa1,0x4d0-0x4d1 irq 2 on isa0
> unknown3:  at port 
>0-0xf,0x80-0x90,0x94-0x9f,0xc0-0xde,0x40b,0x410-0x43f,0x481-0x483,0x487,0x489-0x48c,0x4d6
> drq 4 on isa0
> unknown4:  at port 0x40-0x43 irq 0 on isa0
> unknown5:  at port 0x70-0x71 irq 8 on isa0
> unknown:  can't assign resources

[snip]

Remove the line

device pnp0

from the kernel config file and re-build.




-- 
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD:   Are you guys coming, or what?
  -Poster at LinuxWorld 2000

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Modem no longer found after u/g to 4.0-current - help

2000-03-05 Thread Mark Ovens

On Mon, Mar 06, 2000 at 12:57:50AM +0800, Peter Wemm wrote:
> Mark Ovens wrote:
> > On Sun, Mar 05, 2000 at 04:04:59PM +, Doug Rabson wrote:
> > > On Sun, 5 Mar 2000, Mark Ovens wrote:
> > > 
> > > > On Sun, Mar 05, 2000 at 01:04:23PM +, Doug Rabson wrote:
> > > > > Could you send me the output of pnpinfo. I think we are missing a PnP I
> D
> > > > > in the sio driver.
> > > > > 
> > > > 
> > > > The line I've added to sio.c is:
> > > > 
> > > > 
> > > > {0x3024a341, NULL}, /* PMC2430 - Pace 56 Voice Internal Modem */
> > > 
> > > Does the modem work with this addition? If so, I'll commit the change.
> > > 
> > 
> > Yes :)
> > 
> > sio2:  at port 0x3e8-0x3ef irq 5 on
>  isa0
> > sio2: type 16550A
> 
> Heh, it's already committed.  (oops! :-)
> 
> > Why did it work before though, under 3.x, without this line in sio.c?
> 
> The PNP bios preconfigured it and left it laying around in port space,
> so the old-style isa probes "found" it there.
> 
> Under 4.0, the isa code is much more pnp centric.  It was possible for an
> isa probe to find a "stray" device and then for the PNP device id to match
> and then fail due to resource conflicts.  So, it disables the programmable
> cards first so this double probing cannot happen.  It also means that it
> needs to know the PNP id's for supported pnp hardware.  Making this more
> user tweakable is on the TODO list.
> 

Thanks for the explanation.

> Cheers,
> -Peter
> 

-- 
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD:   Are you guys coming, or what?
  -Poster at LinuxWorld 2000

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Feedback: Minor problems u/g 3.4-STABLE -> 4.0

2000-03-05 Thread Mark Ovens

Firstly, a big thank-you to all the developers for their work on 4.x.

I've just u/g 3.4-STABLE -> 4.0, following the instructions in
/usr/source/UPDATING using sources cvsup'd 10:00GMT 4th March, and
although it went quite smoothly came across a few minor problems
which I'm posting here in case anyone is interested.

1. This message appeared 166 times during ``make buildworld'':

/usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found

   It also caused config(8) on the new kernel to fail, but

ldconfig -R /usr/obj/usr/src/lib/libc

   cured that.

2. UPDATING includes the following in the instructions to build the
   new kernel:

cd src/usr.bin/genassym
make depend all install clean
cd ../../usr.sbin/config
make depend all install clean
 
   however doing a ``make clean'' at this point then causes ``make
   installworld'' fail in those directories.

3. This probably won't affect most people but I'm including it so
   it's in the mail archives.

   I have a Diamond Fireport 40 SCSI card (NCR/Symbios 53c875j
   chip) and my 2nd (UW SCSI) disk is a single slice (although
   *not* dangerously dedicated) mounted as /usr. As this disk is
   not a boot device I had not enabled boot probing for it in the
   SCSI BIOS but under 2.2.x and 3.x it was still found by the old
   ncr driver.

   The new sym driver, however, failed to find the disk and caused
   a "device not configured" error from mount(8) which resulted in
   the boot-up dropping to single-user. It took me a while to find
   the cause (I thought it was a problem, or my mistake, when making
   the new device nodes for the disks).

-- 
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD:   Are you guys coming, or what?
  -Poster at LinuxWorld 2000

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Modem no longer found after u/g to 4.0-current - help

2000-03-05 Thread Mark Ovens

On Sun, Mar 05, 2000 at 04:04:59PM +, Doug Rabson wrote:
> On Sun, 5 Mar 2000, Mark Ovens wrote:
> 
> > On Sun, Mar 05, 2000 at 01:04:23PM +, Doug Rabson wrote:
> > > Could you send me the output of pnpinfo. I think we are missing a PnP ID
> > > in the sio driver.
> > > 
> > 
> > The line I've added to sio.c is:
> > 
> > 
> > {0x3024a341, NULL}, /* PMC2430 - Pace 56 Voice Internal Modem */
> 
> Does the modem work with this addition? If so, I'll commit the change.
> 

Yes :)

sio2:  at port 0x3e8-0x3ef irq 5 on isa0
sio2: type 16550A

Why did it work before though, under 3.x, without this line in sio.c?

> --
> Doug Rabson   Mail:  [EMAIL PROTECTED]
> Nonlinear Systems Ltd.Phone: +44 181 442 9037
> 
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD:   Are you guys coming, or what?
  -Poster at LinuxWorld 2000

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Modem no longer found after u/g to 4.0-current - help

2000-03-05 Thread Mark Ovens

On Sun, Mar 05, 2000 at 01:04:23PM +, Doug Rabson wrote:
> On Sat, 4 Mar 2000, Mark Ovens wrote:
> 
> > I've just done a relatively painless upgrade from 3.4-STABLE to 4.0,
> > kudos to all he developers. However, one thing that doesn't work is
> > causing me great problems. My ISA PnP modem is found as "unknown0",
> > instead of sio2 no matter what I do:
> > 
> > unknown0:  at port
> > 0x3e8-0x3ef irq 5 on isa0
> > 
> > The full dmseg output is at the end of this post.
> > 
> > I've tried changing the PnP-OS seting in the BIOS, but it's no
> > different.
> > 
> > I thought I'd found the solution in LINT:
> > 
> > # PnP `flags' (set via userconfig using pnp x flags y)
> > #   0x1 disable probing of this device.  Used to
> > #   prevent your modem from being attached
> > #   as a PnP modem.
> > #
> > 
> > which appears to be what is needed but ``boot -c'' and ``pnp 1 flags
> > 0x1'' at the ``config>'' prompt gives:
> > 
> > Invalid command or syntax. type '?' for help.
> > 
> > Does anyone know the solution to this? This modem has worked
> > flawlessly on this PC from 2.2.8 to 3.4-STABLE and it would be a shame
> > to have to replace it now.
> 
> Could you send me the output of pnpinfo. I think we are missing a PnP ID
> in the sio driver.
> 

The line I've added to sio.c is:


{0x3024a341, NULL}, /* PMC2430 - Pace 56 Voice Internal Modem */

Output of pnpinfo:

Checking for Plug-n-Play devices...

Card assigned CSN #1
Vendor ID PMC2430 (0x3024a341), Serial Number 0x
PnP Version 1.0, Vendor Version 0
Device Description: Pace 56 Voice Internal Plug & Play Modem

Logical Device ID: PMC2430 0x3024a341 #0
Device supports I/O Range Check
TAG Start DF
I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 4  - only one type (true/edge)
TAG Start DF
I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 3  - only one type (true/edge)
TAG Start DF
I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 4  - only one type (true/edge)
TAG Start DF
I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 3  - only one type (true/edge)
TAG Start DF
I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 5 7 9 10 11 12 15  - only one type (true/edge)
TAG Start DF
I/O Range 0x2f8 .. 0x2f8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 5 7 9 10 11 12 15  - only one type (true/edge)
TAG Start DF
I/O Range 0x3e8 .. 0x3e8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 5 7 9 10 11 12 15  - only one type (true/edge)
TAG Start DF
I/O Range 0x2e8 .. 0x2e8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 5 7 9 10 11 12 15  - only one type (true/edge)
TAG Start DF
I/O Range 0x100 .. 0xfff8, alignment 0x8, len 0x8
[16-bit addr]
IRQ: 3 4 5 7 9 10 11 12 15  - only one type (true/edge)
TAG End DF
End Tag

Successfully got 31 resources, 1 logical fdevs
-- card select # 0x0001

CSN PMC2430 (0x3024a341), Serial Number 0x

Logical device #0
IO:  0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8
IRQ 5 0
DMA 4 0
IO range check 0x00 activate 0x01


> --
> Doug Rabson   Mail:  [EMAIL PROTECTED]
> Nonlinear Systems Ltd.Phone: +44 181 442 9037
> 
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD:   Are you guys coming, or what?
  -Poster at LinuxWorld 2000

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:[EMAIL PROTECTED] http://www.radan.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Modem no longer found after u/g to 4.0-current - help

2000-03-05 Thread Mark Ovens

I've just done a relatively painless upgrade from 3.4-STABLE to 4.0,
kudos to all he developers. However, one thing that doesn't work is
causing me great problems. My ISA PnP modem is found as "unknown0",
instead of sio2 no matter what I do:

unknown0:  at port
0x3e8-0x3ef irq 5 on isa0

The full dmseg output is at the end of this post.

I've tried changing the PnP-OS seting in the BIOS, but it's no
different.

I thought I'd found the solution in LINT:

# PnP `flags' (set via userconfig using pnp x flags y)
#   0x1 disable probing of this device.  Used to
#   prevent your modem from being attached
#   as a PnP modem.
#

which appears to be what is needed but ``boot -c'' and ``pnp 1 flags
0x1'' at the ``config>'' prompt gives:

Invalid command or syntax. type '?' for help.

Does anyone know the solution to this? This modem has worked
flawlessly on this PC from 2.2.8 to 3.4-STABLE and it would be a shame
to have to replace it now.

TIA

BTW, please Cc: me diractly as I'm not subscribed to any lists under
this temporary Internet account, thanks.

dmesg output:

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #3: Sat Mar  4 19:45:35 GMT 2000
root@parish:/usr/src/sys/compile/PARISH
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 233864767 Hz
CPU: AMD-K6tm w/ multimedia extensions (233.86-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x562  Stepping = 2
  Features=0x8001bf
  AMD Features=0x400<>
real memory  = 67108864 (65536K bytes)
avail memory = 61726720 (60280K bytes)
Preloaded elf kernel "kernel" at 0xc0311000.
Preloaded elf module "vesa.ko" at 0xc031109c.
Preloaded userconfig_script "/kernel.config" at 0xc0311138.
VESA: v2.0, 4096k memory, flags:0x0, mode table:0xc030e102 (122)
VESA: ATI MACH64
md0: Malloc disk
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
pci0:  on pcib0
isab0:  at device 7.0 on pci0
isa0:  on isab0
pci0:  at 7.1
pci0:  at 7.2 irq 11
chip1:  port 0x5f00-0x5f0f
at device 7.3 on pci0
pci0:  at 8.0
sym0: <875> port 0x6600-0x66ff mem
0xe1002000-0xe1002fff,0xe1001000-0xe10010ff irq 10 at device 9.0 on
pci0
sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: SCAN AT BOOT disabled for targets 1 2 3 4 5 9 10 11 12 13 14 15.
xl0: <3Com 3c900-COMBO Etherlink XL> port 0x6700-0x673f irq 9 at
device 10.0 on pci0
xl0: Ethernet address: 00:60:08:73:4e:e0
xl0: selecting 10baseT transceiver, half duplex
pcm0:  port 0x6800-0x683f irq 11 at device 11.0 on
pci0
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0:  at port 0x60-0x6f on isa0
atkbd0:  irq 1 on atkbdc0
psm0:  irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on
isa0
sc0:  on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio2: configured irq 5 not in bitmap of probed irqs 0
ppc0:  at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0:  MLC,PCL,PML
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
unknown0:  at port
0x3e8-0x3ef irq 5 on isa0
Waiting 10 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
Mounting root from ufs:/dev/da0s3a
cd0 at sym0 bus 0 target 6 lun 0
cd0:  Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not
present
da0 at sym0 bus 0 target 0 lun 0
da0:  Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da0: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C)
da1 at sym0 bus 0 target 8 lun 0
da1:  Fixed Direct Access SCSI-2 device 
da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged
Queueing Enabled
da1: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)




-- 
  Q. How many Software Engineers does it take to change a light bulb?
  A. None. It's a hardware problem

  FreeBSD - The Power To Serve http://www.freebsd.org
  My Webpage http://ukug.uk.freebsd.org/~mark


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message