Gautham Ganapathy | 1 Oct 2002 08:06
Picon

Re: device HOWTO

On Monday, September 30, 2002 5:27 PM, Peter Haag wrote
> Dear all,
> Cann anybody point me to an URL or a code skeleton how to
> create a new device.
> I need to write a small device driver, which enables me to
> read/write a certain
> address space outside standard RAM, where a few special
> registers from an
> external device can be read/written.
>
> Many thanks
>
> 	- Peter
>

FreeBSD has a template called cskel somewhere in /usr/share/. Maybe
OpenBSD has something similar like that ?

Jack J. Woehr | 1 Oct 2002 11:15

pcidevs_data.h typo

Here's a patch that I believe fixes a typo in current (as of 12:00 MDT 9/30) in /sys/dev/pci/pcidevs_data.h

Anyway, I can now build the kernel with current.

--
Jack J. Woehr                 # Ceterum censeo
PO Box 51, Golden, CO 80402   # in herbas belli
http://www.softwoehr.com      # ab idem desistamus.
Index: pcidevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs_data.h,v
retrieving revision 1.553
diff -u -r1.553 pcidevs_data.h
--- pcidevs_data.h	30 Sep 2002 18:13:01 -0000	1.553
+++ pcidevs_data.h	1 Oct 2002 08:43:09 -0000
 <at>  <at>  -39,7 +39,7  <at>  <at> 

 static const struct pci_known_product pci_known_products[] = {
 	{
-	    PCI_VENDOR_2MICRO, PCI_PRODUCT_2MICRO_OZ6832,
+	    PCI_VENDOR_O2MICRO, PCI_PRODUCT_2MICRO_OZ6832,
 	    "OZ6832 CardBus",
 	},
 	{

Anders Arnholm | 1 Oct 2002 13:00
Picon

Re: i386 install using Serial Console tty0?

On Mon, Sep 30, 2002 at 11:44:28AM -0400, Michael Shalayeff wrote:
> Making, drinking tea and reading an opus magnum from James Rippas:
> > Hi,
> >
> > Is it possible to  modify the boot images so that the serial console can
be used during install on i386 machines?  I know how to setup a serial console
by modifying /etc/boot.conf and /etc/ttys after install.
>
> you do not need to modify the boot image.
> all you need is to type at the boot> prompt
> the same commands you put into the boot.conf .

And how does one from then serial console write set tty com0, I think
one need a keyboard on the default tty pc0 to write that one.

Some arcitectutres are better ion this when one doesn't have a keyboard
they use the first serial port.

/ Balp
--
      o_   Anders Arnholm,               HiQ - Consultant
 o/  /\    anders <at> arnholm.nu             Phone  : +46-703-160969
/|_, \\    http://anders.arnholm.nu/     http://www.hiq.se
/
`

[demime 0.98d removed an attachment of type application/pgp-signature]

Benninghoff, John | 1 Oct 2002 15:49

Re: aac(4) timeout problems + fix

FWIW, I was also experiencing the same timeout issues with my Dell PERC 2/Si
controller. I have been running a 3.1-stable+this patch kernel for about a
week with no problems.

Kudos to haver <at>  and blc3 <at>  !!

-----Original Message-----
From: Srebrenko Sehic [mailto:haver <at> insecure.dk]
Sent: Wednesday, September 04, 2002 1:39 PM
To: tech <at> openbsd.org
Cc: niklas <at> openbsd.org; blc3 <at> only.arl.psu.edu
Subject: aac(4) timeout problems + fix

Timeout/lockup issues with Dell's PERC series of controllers have been
discussed several times on tech <at> . Bug report was also submitted (can't
provide bug# since the gnats is currently disabled).

Anyways, I believe we have a patch (see below) that fixes these
problems. Credit goes to Brandin L Claar <blc3 <at> only.arl.psu.edu> for
in-depth debugging + fixes.

I've been running GENERIC 3.1-stable kernel with this patch for a month
on 2 Dell machines (2400 and 2550) with two different PERC controllers
(2/Si and 3/Di) and _all_ the previous problems have gone away. No more
'sd0(aac0:0:0): timed out' messages nor 30 seconds lookups under heavy disc
activity. It simply works, even with softupdates enabled.

I've attached dmesgs from the two systems.

I really believe that this should go into the tree. Since Niklas seems
(Continue reading)

Todd C. Miller | 1 Oct 2002 16:30
Favicon

Re: ccd FAQ problem (?)

In message <D6CE5018C5563D47A8A823409AA4F19403301A0D <at> MAIL3.corp.isib.net>
	so spake "Benninghoff, John" (John.Benninghoff):

> This implies, at least to me, that once ccd0 is created, you need to run
> (for example) disklabel -E /dev/rccd0c and partition the new ccd0 device.

The default ccd label includes a single partition.  If you want
something other than that you need to use disklabel.

> However:
> 
> a) This doesn't work. If you try to add a partition, you get the error:
>    "No space left, you need to shrink a partition"

That's because the default label consists of a single partition
that uses all the space.  If you change 'c' to be unused you can
add additional partitions (since that will free up the space).

 - todd

Michael Shalayeff | 1 Oct 2002 20:54
Gravatar

Re: i386 install using Serial Console tty0?

Making, drinking tea and reading an opus magnum from Anders Arnholm:
> On Mon, Sep 30, 2002 at 11:44:28AM -0400, Michael Shalayeff wrote:
> > Making, drinking tea and reading an opus magnum from James Rippas:
> > > Hi,
> > >
> > > Is it possible to  modify the boot images so that the serial console can
> be used during install on i386 machines?  I know how to setup a serial console
> by modifying /etc/boot.conf and /etc/ttys after install.
> >
> > you do not need to modify the boot image.
> > all you need is to type at the boot> prompt
> > the same commands you put into the boot.conf .
> 
> And how does one from then serial console write set tty com0, I think
> one need a keyboard on the default tty pc0 to write that one.

if you are talkign about the bios's own serial console
option, which is not availbale, in general, then that's
a different story. it's not compatible w/ our serial console
and you would have to switch the com ports (;
of course, what you are suggesting is to put "set serial com0"
onto the cdrom, that's gonna do it, indeed.

> Some arcitectutres are better ion this when one doesn't have a keyboard
> they use the first serial port.

you can write your own bios instead.

cu

(Continue reading)

Andrey Smagin | 2 Oct 2002 02:08

Re: i386 install using Serial Console tty0?

----- Original Message ----- 
From: "Michael Shalayeff"

> > Some arcitectutres are better ion this when one doesn't have
> > a keyboard they use the first serial port.
> 
> you can write your own bios instead.

...or use PC Weasel - it's amazing.
   http://www.realweasel.com/

--
Andrey

Chris Kuethe | 1 Oct 2002 22:14
Picon
Picon
Favicon

Re: i386 install using Serial Console tty0?

On Mon, 30 Sep 2002, James Rippas wrote:

> Hi,
>
> Is it possible to  modify the boot images so that the serial console can be used during install on i386
machines?  I know how to setup a serial console by modifying /etc/boot.conf and /etc/ttys after install.
>
> Thanks,

yes, mount the floppy image with vnd and then create an appropriate
boot.conf.  umount and write it to a disk and there you have it. or,
when the boot> prompt comes up, just enter "set tty com0" and from
then on, you will have a serial console.

--

-- 
Chris Kuethe, GCIA CISSP: Secure Systems Specialist - U of A CNS
      office: 157 General Services Bldg.    +1.780.492.8135
              chris.kuethe <at> [pyxis.cns.]ualberta.ca

No trees were destroyed in the sending of this contaminant free message; we
do concede a significant number of electrons may have been inconvenienced.

Eugene Tsyrklevich | 2 Oct 2002 04:25

Re: device HOWTO

http://www.netbsd.org/Documentation/kernel/pseudo/

should be similar enough

On Mon, Sep 30, 2002 at 01:56:31PM +0200, Peter Haag wrote:
> Dear all,
> Cann anybody point me to an URL or a code skeleton how to create a new device. 
> I need to write a small device driver, which enables me to read/write a certain 
> address space outside standard RAM, where a few special registers from an 
> external device can be read/written.
> 
> Many thanks
> 
> 	- Peter

Loryan Strant | 2 Oct 2002 08:44

Re: passive ftp and pf

I have the same problem with passive FTP.
I've just added that line:
pass out on fxp0 inet proto tcp from 192.168.100.0/24 to any port > 1024
keep state

and haven't noticed any difference.
can still log in and do normal things, just doing "ls" on any directory with
more than 1 file causes it to timeout.
works on FTP servers that are only a few hops away, but seems to timeout on
other FTP servers.

any ideas?

"Ryan McBride" <mcbride <at> countersiege.com> wrote in message
news:20020930035205.GA13829 <at> countersiege.com...
> On Sat, Sep 28, 2002 at 06:07:45PM +0200, Kruse <at> email.si wrote:
> > Does anybody know why pf (OBSD3.1 i386) isn't keeping state for
> > passive ftp? My pf rules are:
> >
> > pass out quick on fxp0 inet proto { tcp, udp } from myIP to any port 20
keep state
> > - || -    21 keep state
> > I can connect to a ftp server, do a cd, pwd..., but ls timeouts.
>
> Passive ftp makes outgoing connections to arbitrary unprivileged ports
> on the ftp server, so you have to make sure you also have something
> along the lines of the following:
>
> pass out on fxp0 inet proto tcp from $myIp to any port > 1024 keep state
>
(Continue reading)


Gmane