Re: Unknown COM to PCMCIA adapter, some help?

2011-10-09 Thread Atanas Vladimirov
2011/10/9 Jonathan Gray j...@goblin.cx

 On Sat, Oct 08, 2011 at 09:06:15PM +0300, Atanas Vladimirov wrote:
  2011/10/8 Jonathan Gray j...@goblin.cx
 
   On Sat, Oct 08, 2011 at 01:35:19PM +0300, Atanas Vladimirov wrote:
Hi misc,
   
Recently I bought COM to PCMCIA adapter, full dmesg at end of e-mail.
I don't understand programming and I can't offer working patches, but
 I
   can
test patches.
Tell me if I can give more information, that would be useful.
Sorry for my english, and sorry if I send to wrong mailing list.
   
Try it with the last snapshot from Oct 7 2011 and it was not
 configured:
unknown vendor 0x4348 product 0x3253 (class communications subclass
   serial,
rev 0x10) at cardbus0 dev 0 function 0 not configured
  
   try this, it doesn't include pcidevs information to make it easier to
 apply
  
   It would also be helpful if you could include the output of pcidump
 -v
  
   Index: sys/dev/cardbus/com_cardbus.c
   ===
   RCS file: /cvs/src/sys/dev/cardbus/com_cardbus.c,v
   retrieving revision 1.40
   diff -u -p -r1.40 com_cardbus.c
   --- sys/dev/cardbus/com_cardbus.c   15 Nov 2010 23:19:34 -
1.40
   +++ sys/dev/cardbus/com_cardbus.c   8 Oct 2011 12:56:40 -
   @@ -125,6 +125,8 @@ static struct csdev {
  { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_CBEM56G,
CARDBUS_BASE0_REG, PCI_MAPREG_TYPE_IO },
  { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_MODEM56,
   + CARDBUS_BASE0_REG, PCI_MAPREG_TYPE_IO },
   +   { 0x4348, 0x3253,
CARDBUS_BASE0_REG, PCI_MAPREG_TYPE_IO }
};
  
   Index: sys/dev/pci/pucdata.c
   ===
   RCS file: /cvs/src/sys/dev/pci/pucdata.c,v
   retrieving revision 1.74
   diff -u -p -r1.74 pucdata.c
   --- sys/dev/pci/pucdata.c   20 Apr 2011 04:58:29 -  1.74
   +++ sys/dev/pci/pucdata.c   8 Oct 2011 12:56:41 -
   @@ -1734,6 +1734,14 @@ const struct puc_device_description puc_
  { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
  },
  },
   +   {   /* WinChipHead CH352, */
   +   {   0x4348, 0x3253, 0, 0},
   +   {   0x, 0x, 0, 0
  },
   +   {
   +   { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ },
   +   { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ },
   +   },
   +   },
  
  {   /* NULL, */
  
  
  Thanks for your respond. I coudn't apply your patch. I tried with
  # cd /usr/src
  # patch -p0  /path/to/patch
  But I got errors. After that I manualy edited the two files and made the
  following patch, which works great.
  Then I compiled the new kernel. Full dmesg at the end of e-mail.
  Now pcmcia adapter works fine. I made two tests, one at 4800 baud and
 other
  at 115200 baud, there were no errors.
 
  com3 at cardbus0 dev 0 function 0 unknown vendor 0x4348 product 0x3253
 rev
  0x10: irq 268505099: ns16550a, 16 byte fifo
 
  # pcidump -v (when pcmcia adapter was pluged in)

 Can you show the pcidump entries from the serial card itself here?


How can I do that? Can you show me an example of the command I need?


 The point of interest is how many BARs it has.

 The chip is apparently at least a two port device, how
 many ports does your card have?


Yes, the chip is two port device, but my card has only one rs-232 port.
When I installed the card under windows, it shows two COM ports in windows
device manager, but only one works.
I bougth it from
herehttp://www.ebay.com/itm/RS232-DB9-Serial-Port-PCMCIA-PC-Card-CardBus-Adapter-/180726917544?pt=LH_DefaultDomain_0hash=item2a1429e9a8#ht_2820wt_908.
[
http://www.ebay.com/itm/RS232-DB9-Serial-Port-PCMCIA-PC-Card-CardBus-Adapter-/180726917544?pt=LH_DefaultDomain_0hash=item2a1429e9a8#ht_2820wt_908
]

Thanks for your help.



Re: Unknown COM to PCMCIA adapter, some help?

2011-10-09 Thread Atanas Vladimirov
2011/10/9 Jonathan Gray j...@goblin.cx

 On Sun, Oct 09, 2011 at 12:02:03PM +0300, Atanas Vladimirov wrote:
 
  How can I do that? Can you show me an example of the command I need?

 yes, plug the card in and send me the full output of pcidump -v
 run as root, without removing any parts of the output.

 thanks


Here you go:

# pcidump -v
Domain /dev/pci0:
 0:0:0: Intel 82945GM Host
0x: Vendor ID: 8086 Product ID: 27a0
0x0004: Command: 0106 Status ID: 2090
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 03
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR empty ()
0x0014: BAR empty ()
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 17aa Product ID: 2015
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0x00e0: Capability 0x09: Vendor Specific
 0:1:0: Intel 82945GM PCIE
0x: Vendor ID: 8086 Product ID: 27a1
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 03
0x000c: BIST: 00 Header Type: 01 Latency Timer: 00 Cache Line Size: 10
0x0010: 
0x0014: 
0x0018: Primary Bus: 0 Secondary Bus: 1 Subordinate Bus: 1
Secondary Latency Timer: 00
0x001c: I/O Base: 20 I/O Limit: 20 Secondary Status: 2000
0x0020: Memory Base: ee10 Memory Limit: ee10
0x0024: Prefetch Memory Base: d801 Prefetch Memory Limit: dff1
0x0028: Prefetch Memory Base Upper 32 Bits: 
0x002c: Prefetch Memory Limit Upper 32 Bits: 
0x0030: I/O Base Upper 16 Bits:  I/O Limit Upper 16 Bits: 
0x0038: Expansion ROM Base Address: 
0x003c: Interrupt Pin: 01 Line: 0b Bridge Control: 001c
0x0088: Capability 0x0d: PCI-PCI
0x0080: Capability 0x01: Power Management
0x0090: Capability 0x05: Message Signaled Interrupts (MSI)
0x00a0: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 Gb/s Link Width: x16 / x16
 0:27:0: Intel 82801GB HD Audio
0x: Vendor ID: 8086 Product ID: 27d8
0x0004: Command: 0106 Status ID: 0010
0x0008: Class: 04 Subclass: 03 Interface: 00 Revision: 02
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 10
0x0010: BAR mem 64bit addr: 0xee40/0x4000
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 17aa Product ID: 2010
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 02 Line: 0b Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
0x0060: Capability 0x05: Message Signaled Interrupts (MSI)
0x0070: Capability 0x10: PCI Express
 0:28:0: Intel 82801GB PCIE
0x: Vendor ID: 8086 Product ID: 27d0
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 02
0x000c: BIST: 00 Header Type: 81 Latency Timer: 00 Cache Line Size: 10
0x0010: 
0x0014: 
0x0018: Primary Bus: 0 Secondary Bus: 2 Subordinate Bus: 2
Secondary Latency Timer: 00
0x001c: I/O Base: 30 I/O Limit: 30 Secondary Status: 2000
0x0020: Memory Base: ee00 Memory Limit: ee00
0x0024: Prefetch Memory Base: fff1 Prefetch Memory Limit: 0001
0x0028: Prefetch Memory Base Upper 32 Bits: 
0x002c: Prefetch Memory Limit Upper 32 Bits: 
0x0030: I/O Base Upper 16 Bits:  I/O Limit Upper 16 Bits: 
0x0038: Expansion ROM Base Address: 
0x003c: Interrupt Pin: 01 Line: 0b Bridge Control: 0004
0x0040: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 Gb/s Link Width: x1 / x1
0x0080: Capability 0x05: Message Signaled Interrupts (MSI)
0x0090: Capability 0x0d: PCI-PCI
0x00a0: Capability 0x01: Power Management
 0:28:1: Intel 82801GB PCIE
0x: Vendor ID: 8086 Product ID: 27d2
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 02
0x000c: BIST: 00 Header Type: 81 Latency Timer: 00 Cache Line Size: 10
0x0010: 
0x0014: 
0x0018: Primary Bus: 0 Secondary Bus: 3 Subordinate Bus: 3
Secondary Latency Timer: 00
0x001c: I/O Base: 40 I/O Limit: 50 Secondary Status: 2000
0x0020: Memory Base: ec00 Memory Limit: edf0
0x0024: Prefetch Memory Base: e401 Prefetch Memory Limit: e401
0x0028: Prefetch Memory Base Upper 32 Bits: 
0x002c: Prefetch Memory Limit Upper 32 Bits: 
0x0030: I/O Base Upper 16 Bits:  I/O Limit Upper 16 Bits: 
0x0038: Expansion ROM Base Address: 
0x003c: Interrupt Pin: 02 Line: 0b Bridge Control: 0004
0x0040: Capability 0x10: PCI Express
Link Speed: 2.5 / 2.5 Gb/s Link Width: x1 / x1
0x0080: Capability 0x05: Message Signaled Interrupts (MSI)
0x0090: Capability 0x0d: PCI-PCI
0x00a0: Capability 0x01: Power Management
 0:28:2: Intel 82801GB PCIE
0x: Vendor ID: 8086 Product ID: 27d4
0x0004: Command: 0107 Status ID: 0010
0x0008: Class: 06 Subclass: 

Re: Unknown COM to PCMCIA adapter, some help?

2011-10-09 Thread Jonathan Gray
On Sun, Oct 09, 2011 at 03:28:49PM +0300, Atanas Vladimirov wrote:
 2011/10/9 Jonathan Gray j...@goblin.cx
 
  On Sun, Oct 09, 2011 at 12:02:03PM +0300, Atanas Vladimirov wrote:
  
   How can I do that? Can you show me an example of the command I need?
 
  yes, plug the card in and send me the full output of pcidump -v
  run as root, without removing any parts of the output.
 
  thanks
 
 
 Here you go:

oops my mistake, we don't print anything for cardbus cards yet as we
still treat it as a seperate set of abstractions from pci.



Re: Unknown COM to PCMCIA adapter, some help?

2011-10-09 Thread Atanas Vladimirov
2011/10/9 Jonathan Gray j...@goblin.cx

 On Sun, Oct 09, 2011 at 03:28:49PM +0300, Atanas Vladimirov wrote:
  2011/10/9 Jonathan Gray j...@goblin.cx
 
   On Sun, Oct 09, 2011 at 12:02:03PM +0300, Atanas Vladimirov wrote:
   
How can I do that? Can you show me an example of the command I need?
  
   yes, plug the card in and send me the full output of pcidump -v
   run as root, without removing any parts of the output.
  
   thanks
  
 
  Here you go:

 oops my mistake, we don't print anything for cardbus cards yet as we
 still treat it as a seperate set of abstractions from pci.


That's why I coudn't see it at the first time. :)
OK. What's up next? Do You need more information?



Re: DUID base root device for kernel

2011-10-09 Thread Jiri B
Hello,

I tried to boot via `bsd -a' and then asked for root device
I wrote DUID of accessible disk but no success.

root device (default sd0a): fba123e4bd29707a.a
use one of: exit em0 iwn0 sd0[a-p] cd0[a-p] sd1[a-p] sd2[a-p]

I still do not understand meaning of this commit, sorry
I don't know C so I cannot get glue from reading the source.

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/subr_disk.c#rev1.120

Another question: 'use one of ...' - em0, iwn0 ??? What this should
do if I would put a network card here? Or is this a bug?

If anybody would make booting working with DUID I will send you
a box of (in my option) the best Czech beer - Poutnik :-)

http://www.pivovarpoutnik.cz/en/produkty.php

jirib



Re: DUID base root device for kernel

2011-10-09 Thread Johan Ryberg
You can mount with duid in fstab but I can't find a way to change root
device to a duid in the boot manual. You must use a device found in
/dev/

http://www.openbsd.org/cgi-bin/man.cgi?query=bootsektion=8arch=i386apropos=0manpath=OpenBSD+Current

// Johan

2011/10/9 Jiri B ji...@wolfman.devio.us:
 Hello,

 I tried to boot via `bsd -a' and then asked for root device
 I wrote DUID of accessible disk but no success.

 root device (default sd0a): fba123e4bd29707a.a
 use one of: exit em0 iwn0 sd0[a-p] cd0[a-p] sd1[a-p] sd2[a-p]

 I still do not understand meaning of this commit, sorry
 I don't know C so I cannot get glue from reading the source.

 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/subr_disk.c#rev1.120

 Another question: 'use one of ...' - em0, iwn0 ??? What this should
 do if I would put a network card here? Or is this a bug?

 If anybody would make booting working with DUID I will send you
 a box of (in my option) the best Czech beer - Poutnik :-)

 http://www.pivovarpoutnik.cz/en/produkty.php

 jirib



Can I use carp with just one public IP?

2011-10-09 Thread Stefan Midjich
Everything I read about CARP, including my Book on PF 2nd edition,
says you're supposed to have two different ip-addresses set for each
carp device, for two hosts that is. And one third ip-address in the
same network on the psuedo carp0 interface you create.

Since I'm aiming to load balance on the first hop of a network this
means I need to allocate three external static IPs for my system of
two OpenBSD gateway hosts.

Is there a less wasteful way of doing load balancing with carp using IPv4?

--


Med vdnliga hdlsningar / With kind regards

Stefan Midjich
http://swehack.se



Re: Can I use carp with just one public IP?

2011-10-09 Thread Johan Ryberg
2011/10/9 Stefan Midjich sweh...@gmail.com:
 Everything I read about CARP, including my Book on PF 2nd edition,
 says you're supposed to have two different ip-addresses set for each
 carp device, for two hosts that is. And one third ip-address in the
 same network on the psuedo carp0 interface you create.

 Since I'm aiming to load balance on the first hop of a network this
 means I need to allocate three external static IPs for my system of
 two OpenBSD gateway hosts.

 Is there a less wasteful way of doing load balancing with carp using IPv4?

In what way are you trying to load balance?

// Johan



Re: Can I use carp with just one public IP?

2011-10-09 Thread Stefan Midjich
I assume you mean balancing? I wanted to go for balancing ip but
that's only because I read about it in the carp(4) manual, now I think
I'll go with just vhid carpdev and pass set to see if I can get the
load balancing working with just one ip-address on the carp interface,
first and foremost.

But maybe you have something to add about that.

2011/10/9 Johan Ryberg jo...@securit.se:
 2011/10/9 Stefan Midjich sweh...@gmail.com:
 Everything I read about CARP, including my Book on PF 2nd edition,
 says you're supposed to have two different ip-addresses set for each
 carp device, for two hosts that is. And one third ip-address in the
 same network on the psuedo carp0 interface you create.

 Since I'm aiming to load balance on the first hop of a network this
 means I need to allocate three external static IPs for my system of
 two OpenBSD gateway hosts.

 Is there a less wasteful way of doing load balancing with carp using IPv4?

 In what way are you trying to load balance?

 // Johan




--


Med vdnliga hdlsningar / With kind regards

Stefan Midjich
http://swehack.se



Re: Can I use carp with just one public IP?

2011-10-09 Thread Johan Ryberg
2011/10/9 Stefan Midjich sweh...@gmail.com:
 I assume you mean balancing? I wanted to go for balancing ip but
 that's only because I read about it in the carp(4) manual, now I think
 I'll go with just vhid carpdev and pass set to see if I can get the
 load balancing working with just one ip-address on the carp interface,
 first and foremost.

No, you wrote that you where aiming to load balancing and I just
wonder what your goal was =)

Do you have web servers that need load balancing or do you want to use
torrents on one internet connection and other protocols on another or
do you just want round robin on all outgoing traffic (probably not).

// Johan



Re: Can I use carp with just one public IP?

2011-10-09 Thread rik
Hi Stefan,
i'm not doing load balance, just active/passive router/firewall
configuration, but we're using only one ip on carp, with no ip address on
the phisical interfaces. Our configuration is like this:
# cat /etc/hostname.fxp0
up

# cat /etc/hostname.carp0
inet 81.xx.xx.xx   255.255.255.252   81.xx.xx.xx vhid 1 carpdev fxp0

same thing on the other machine (with advskew 100)
Hope this helps
Rick

On Sun, Oct 9, 2011 at 7:01 PM, Stefan Midjich sweh...@gmail.com wrote:

 Everything I read about CARP, including my Book on PF 2nd edition,
 says you're supposed to have two different ip-addresses set for each
 carp device, for two hosts that is. And one third ip-address in the
 same network on the psuedo carp0 interface you create.

 Since I'm aiming to load balance on the first hop of a network this
 means I need to allocate three external static IPs for my system of
 two OpenBSD gateway hosts.

 Is there a less wasteful way of doing load balancing with carp using IPv4?

 --


 Med vdnliga hdlsningar / With kind regards

 Stefan Midjich
 http://swehack.se



Re: Can I use carp with just one public IP?

2011-10-09 Thread Stefan Midjich
It's for a gateway with one external address on the outside interface
and an internal network on the inside, with servers on the internal
network that need to receive load balanced traffic.

So the aim is to have a carp0 on the outside between two systems. One
carp1 on the inside between the same two systems. Each system has one
carpdev interface for each carp pseudo-if.

Right now it only does NAT between the external and the internal
networks, but I was hoping to use rdr-to with a table of server ip's
and the round-robin method to distribute out traffic to them. Unless
you see an issue with this setup?

2011/10/9 Johan Ryberg jo...@securit.se:
 2011/10/9 Stefan Midjich sweh...@gmail.com:
 I assume you mean balancing? I wanted to go for balancing ip but
 that's only because I read about it in the carp(4) manual, now I think
 I'll go with just vhid carpdev and pass set to see if I can get the
 load balancing working with just one ip-address on the carp interface,
 first and foremost.

 No, you wrote that you where aiming to load balancing and I just
 wonder what your goal was =)

 Do you have web servers that need load balancing or do you want to use
 torrents on one internet connection and other protocols on another or
 do you just want round robin on all outgoing traffic (probably not).

 // Johan




--


Med vdnliga hdlsningar / With kind regards

Stefan Midjich



The OpenBSD user community needs to shake things up

2011-10-09 Thread Loganaden Velvindron
Fellow OpenBSD users,

I've noticed a disturbing trend: Very few users are testing
patches that developers/contributors are posting.

In OpenBSD, -current is NOT volatile as other projects. So
you can grab a a snapshot and start using it right away.

Ariane posted a huge diff to drastically reduce the size of
ramdisk kernels and got only 1 tester up to now.
http://marc.info/?l=openbsd-techm=131669525606850w=2

Otto Moerbeek posted a diff to improve malloc:
http://marc.info/?l=openbsd-techm=131537857923062w=2
and only 2 testers showed up.

All of the above diffs require testing on all platforms to make
sure that the releases are rock-solid and won't contain bugs
that will show up when a user will run the release on his arch.

As todd explained it to me once, when a diff gets committed,
the developers need to be have some confidence that it works
really well. A diff which has not been tested is not going to get
merged. However, a diff which has been tested by 5 more people
is more trustworthy.

I always see the same names testing patches (and it's a small
group of dedicated users).

I posted a diff for 2 memory leak in sftp (trivial diff),
and I didn't get any test reports from OpenBSD users. I ported it
to portable OpenSSH, and a Gentoo user tested it !

judging from the volume of mails on misc@, I would tend to think
that there are quite a few openbsd users out there. Where did
the excitement go ? Where are the adventurous openbsd users who
would always run -current, test patches and report bugs ? I met
more hardcore users in FreeBSD/Arch/Gentoo group than in openbsd.

If we don't shake things up, things will not change ! Running -current and
testing diffs _helps_ OpenBSD development significantly.

//Logan
C-x-C-c
-- 
`` Real men run current !''



Re: Can I use carp with just one public IP?

2011-10-09 Thread Johan Ryberg
2011/10/9 Stefan Midjich sweh...@gmail.com:
 It's for a gateway with one external address on the outside interface
 and an internal network on the inside, with servers on the internal
 network that need to receive load balanced traffic.

 So the aim is to have a carp0 on the outside between two systems. One
 carp1 on the inside between the same two systems. Each system has one
 carpdev interface for each carp pseudo-if.

 Right now it only does NAT between the external and the internal
 networks, but I was hoping to use rdr-to with a table of server ip's
 and the round-robin method to distribute out traffic to them. Unless
 you see an issue with this setup?

No, that should work nice for you.

You should use a separate nic for your pfsync and you only need a
cross over for that between the machines for that.. or use your lan
nic as sync with a vlan or something so that you don't need to spam
you lan with that traffic.

// Johan



Re: Webmin with OpenBSD

2011-10-09 Thread Kevin Chadwick
On Sun, 09 Oct 2011 12:59:16 +1000
Rod Whitworth wrote:

 Stop trolling.

Not to mention comparing searches for exploit and OpenBSD to exploits
and Cisco or the same for available attack tools.

The only valid reason he could have here is that the hardware is well
tested and you don't have to think about what hardware to use. Giving
a reliability/performance assurance of sorts without any thought or
research. Of course some history also throws that into question.



Re: The OpenBSD user community needs to shake things up

2011-10-09 Thread Alexey E. Suslikov
Loganaden Velvindron loganaden at gmail.com writes:

 
 If we don't shake things up, things will not change ! Running -current and
 testing diffs _helps_ OpenBSD development significantly.

The problem, IMO, how process is organized.

Mailing lists are not designed for commenting and reviewing
diffs. Patches simply gets forgotten and than reinvented. We
have *number* of oh, I forgot to ok. Isn't it because of
people receive *tons* of mail nowadays?

We have *number* of examples when developer hit dead url in
2 days after kernel panic screenshot been linked in mail to
bugs@.

Also, we have no bug-tracker. We've been told mail to bugs@
and search marc.info instead.

In the end of the day, we have *lot* of spam in our mailing
lists.

There is no center for all this stuff so people can't jump-in,
search, test and feedback to *right* developer.

We need tools like Review Board (google it).

Alexey



Iberregalos: Promociones de Octubre!

2011-10-09 Thread IberRegalos
Si no puede ver este boletmn, haga clic aqui

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Si has recibido este email es porque te has registrado en Groupmyid.com o
has tenido una relacion comercial con MYID Espaqa. Te recordamos que
segun la normativa vigente en materia de proteccion de datos y servicios
de la sociedad de la informacion (LSSI), tienes derecho a no recibir
informacion promocional de MYID Espaqa. Si quieres darte de baja de
nuestro servicio de e-news, hace respuesta a este email con BAJA.