VMware 5.5 w/FreeBSD as host OS?

2006-01-12 Thread Brian J. McGovern
All,
I'm just curious, given the Linux support, if anyone is running VMware
5.5 with FreeBSD as the host operating system. VMware claims they "don't
support it", but history has repeatedly shown me that "not supported" is
not the same as "doesn't work".

Feedback?

-B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ICH7 w/multiple ar devices?

2006-03-15 Thread Brian J. McGovern
All,
I've recently just picked up a couple of new boxes that come with a
Tyan motherboard that has an ICH7[r, I believe] on the motherboard. I
installed 2x500GB drives, and discovered that the card will allow me to put
multiple arrays on the disk. For chuckles, I put a 100GB mirror (RAID 1), and a
700-and-chage (500x2 - the 200GB mirror) stripe (RAID 0) array.

However, when I boot the installer (6.0), its only seeing ar0 (the
RAID 1 array). Is there any way to get an ar1 to see the other disk array? I
see a kern.disks sysctl knob, but I'm assuming its read-only, and atacontrol
create smells about right, but again seems to assume 1 raid setup per
physical device.

-B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


HP AMD64 booting problems...

2005-02-28 Thread Brian J. McGovern
I recently picked up an HP5460 AMD64 laptop, and I recently wanted to try 
FreeBSD on it. Unfortunately, both the x86 and AMD64 versions will not boot,
actually shutting the power down shortly after the kernel finishes loading.
I've tried 5.3 and 4.8 with similar results, also cycling through disabling
ACPI, "safe mode", and going to the boot loader prompt and manually turning off
whatever I can think of.

Does anyone have any additional suggestions (either to boot it, or provide
diagnostics), or will I be trapped to run Windows on this rather powerful
machine? :)

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Recommendations for "All-in-One" device?

2005-03-19 Thread Brian J. McGovern
I'm currently in the market for an "All-in-One" device for the home network, 
mostly for the fax functionality (it'll be replacing an Canon scanner and
Okidata 810e laser printer). Before anyone suggests their favorite FreeBSD
Fax modem/app, I'll let it be known that I've been told that the expectation
is that we'll have a "normal" looking/working fax machine for the house ;)

I've searched the mailing lists for "All-in-One", and tried searches on
printers, scanners, copiers, and faxes individually with no real good hits.

I'm somewhat curious about the HPs, but wanted to get people's experiences
with different devices, and what works/doesn't work with FreeBSD.

-B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problems with ATI MOBILITY RADEON 7500

2003-09-26 Thread Brian J. McGovern
I've been fighting with this for a day or two now, and I've run out of leads
to fix it. Help pointing me in the right direction would be appreciated.

I have an IBM T40 running FreeBSD 5.1 (stock) with a ports collection from
9/24, as there were apparently some changes to the XFree86 port between 5.1 and
that date (and I wanted to make sure I had the latest patches).

Using X -configure and xf86config generate similar, yet distinctly different
config files. Both have the same problem, however, in that when I start X,
I get either signal 6s, or signal 11s, and it crashes, whether I use XFree86
directly, or run xdm.

I've gone through the log, and made changes to load the modules to get rid
of the missing symbols from the generated config file. At this point, the
only thing that looks odd is the reported screen resolution of 65536x65535,
but can't find a way to over ride it.

I've included my dmesg output from the laptop, so that the hardware I'm 
running can be seen. I've also included my XF86Config file, and the log from
a typical run.

Again, a working config or pointers on what to try next would be greatly
appreciated.

-Brian

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.1-RELEASE #2: Sat Sep 20 23:03:44 EDT 2003
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/LAPTOP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0651000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc065126c.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 1495157978 Hz
CPU: Intel(R) Pentium(R) M processor 1500MHz (1495.16-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
  
Features=0xa7e9f9bf
real memory  = 536215552 (511 MB)
avail memory = 513974272 (490 MB)
netsmb_dev: loaded
Pentium Pro MTRR support enabled
VESA: v2.0, 32704k memory, flags:0x1, mode table:0xc05468a2 (122)
VESA: ATI MOBILITY RADEON 7500
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 15 entries at 0xc00fdea0
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.FDC_._INI] (Node 
0xc4065b00), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__._INI] (Node 
0xc405c1a0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT0._STA] 
(Node 0xc405d900), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT0._STA] 
(Node 0xc405d900), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT1._STA] 
(Node 0xc405d780), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT1._STA] 
(Node 0xc405d780), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BGID] (Node 
0xc4065c40), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BINI] (Node 
0xc4065c60), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BSTA] (Node 
0xc4065ca0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.IDE0.SCND.MSTR._STA] 
(Node 0xc4065b60), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\\_SB_.PCI0.IDE0.SCND.MSTR._STA] 
(Node 0xc4065b60), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.USB7._INI] (Node 
0xc40670a0), AE_AML_REGION_LIMIT
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT0._STA] 
(Node 0xc405d900), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT0._STA] 
(Node 0xc405d900), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT1._STA] 
(Node 0xc405d780), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BAT1._STA] 
(Node 0xc405d780), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BGID] (Node 
0xc4065c40), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BINI] (Node 
0xc4065c60), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.BSTA] (Node 
0xc4065ca0), AE_NOT_EXIST
ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.IDE0.SCND.MSTR._STA] 
(Node 0xc4065b60), AE_NOT_EXIST
ACPI-0175: *** Error: Method execution failed [\\_SB_.PCI0.IDE0.SCND.MSTR._STA] 
(Node 0xc4065b60), AE_NOT_EXIST
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_cpu0:  port 0x530-0x537 on acpi0
acpi_tz0:  port 0x530-0x537 on acpi0
acpi_lid0:  on acpi0
ACPI-1287: *** Error: Method execution failed [\\_SB_.LID_._PSW] (Node 
0xc3fb2d00), AE_NOT_EXIST
acpi_button0:  on acpi0
ACPI-128

Need help getting NIS authentication working w/5.1

2003-10-28 Thread Brian J. McGovern
I'm having some problems getting NIS working with 5.1.

Historically, I'd set up ypbind, add +: to the user database, and
I was off and running. Not so, it appears, in 5.1.

My understanding is that the servers are NIS+, although I do not have all of
the details. I'm able to get ypbind to bind to the domain using
"-m -S ,," syntax. I can use ypwhich, ypcat, and
ypmatch to pull database records, so this side of it seems to work.

However, if I add the +: to the user database, I can not log in as
a NIS user. Using trafshow, I can see traffic to and from the server, so
I'm guessing its a local authentication thing, so I pressed on.

After reading the man page, it tickled my memory about using DES passwords, so
I went in to /etc/login.conf and changed the passwd_format entry to des. Still
no joy. So, more reading.

Based on what the "defaults" are supposed to be, this should now be working.
However, in believing that the docs might be wrong, I removed the +:,
and created the following nsswitch.conf file, which I stuck in /etc.

hosts:files dns
passwd:nis [success=return] files
group:nis files
networks:files

Still no joy, and playing with the file doesn't seem to help out a lot. The
only log messages I'm getting is the stock "login failed..." messages.

Can anyone give me a pointer as to what I'm missing? I can't believe that
it would be totally broken, so I'm assuming its OE.

If you could email me directly, I'd appreciate it, as I don't always get a 
chance to review the list digests.

-Brian
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Sendmail relaying from remote domains?

2005-06-14 Thread Brian J. McGovern
I realize this question is probably best served by the sendmail mailing list,
but whereas I've added the Spam Assassin filter, I'm hoping to find a larger
community here that is running FreeBSD + sendmail + SpamAssassin who
have handled this, so I don't have to ask the question in 3 places :)

The issue I seem to be having is that messages are coming in, forged from my
domain, but sent to a valid user within my domain (e.g. from [EMAIL PROTECTED] 
to
[EMAIL PROTECTED]) containing a virus attachment.

I had assumed that sendmail would be smart enough to look at the fqdn portion,
and see that the sender is not in fact from that domain at all (a quick
reverse/forward DNS lookup of the inbound socket should prove this), and trash
this.

Is there an easy way to shut this down? An example mail log entry (for 
reference)...

Jun 14 09:16:47 spoon sm-mta[26398]: j5EDGgha026398: from=<[EMAIL PROTECTED]>, 
size=79449, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, 
daemon=IPv4, relay=255-115.users.forrester.com [63.76.255.115] (may be forged)
Jun 14 09:16:47 spoon spamd[697]: connection from localhost.beta.com 
[127.0.0.1] at port 64931 
Jun 14 09:16:47 spoon spamd[697]: info: setuid to root succeeded 
Jun 14 09:16:47 spoon spamd[697]: Still running as root: user not specified 
with -u, not found, or set to root.  Fall back to nobody. 
Jun 14 09:16:47 spoon spamd[697]: processing message (unknown) for root:65534. 
Jun 14 09:16:49 spoon spamd[697]: clean message (-0.0/5.0) for root:65534 in 
2.2 seconds, 80647 bytes. 
Jun 14 09:16:49 spoon spamd[697]: result: .  0 - 
ALL_TRUSTED,HTML_10_20,HTML_MESSAGE,MIME_HTML_ONLY,MISSING_MIMEOLE,NO_REAL_NAME,PRIORITY_NO_NAME
 scantime=2.2,size=80647,mid=(unknown),autolearn=failed 
Jun 14 09:16:49 spoon sm-mta[26398]: j5EDGgha026398: Milter add: header: 
X-Spam-Status: No, score=-0.0 required=5.0 
tests=ALL_TRUSTED,HTML_10_20,\n\tHTML_MESSAGE,MIME_HTML_ONLY,MISSING_MIMEOLE,NO_REAL_NAME,\n\tPRIORITY_NO_NAME
 autolearn=failed version=3.0.2
Jun 14 09:16:49 spoon sm-mta[26398]: j5EDGgha026398: Milter add: header: 
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on spoon.beta.com
Jun 14 09:16:49 spoon sm-mta[26402]: j5EDGgha026398: to=<[EMAIL PROTECTED]>, 
delay=00:00:07, xdelay=00:00:00, mailer=local, pri=110031, relay=local, 
dsn=2.0.0, stat=Sent

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Setting up VLAN interfaces with Cisco gear... getting traffic on broadcast only...

2005-11-30 Thread Brian J. McGovern
All,
I've got three Catalyst 6500s configured in a switching domain via
fiber, with one "hub" 6500 connecting two remotes. Their port 
configurations are basically (the actual port number varies based on the
device).

interface Gigabit Ethernet 9/2
no ip address
switchport
switchport trunk encapsulation dot1q
switchport mode trunk


The switches have been working as-is for over a year now, so I know
that part of the configuration is good. 

I've been asked to provide some Sun jumpstart services, and want to 
use an IBM x335 with a bge interface to act as a bootparams/tftp/rarp server,
and figured that trunking it in to the main switch and bringing up vlans for
the individual subnets that would be served would be the right way to go, so
I configured up one of the gig-E interfaces, as above, with the only change 
selecting the UTP media.

On the FreeBSD (6.0) side, I then ran:

ifconfig bge0 up media 1000baseTX mediaopt full-duplex
ifconfig vlan0 create vlan 1 vlandev bge0
ifconfig vlan0 10.86.154.221 netmask 255.255.255.240

The other devices on the subnet are 10.86.154.209 ("Hub 6500"), 
10.86.154.210 ("Remote 6500 1"), 10.86.154.211 ("Remote 6500 2"), and 
10.86.154.222 ("Another x335 server running Linux").

However, I don't seem to be able to get normal traffic through the
link. If I ping 10.86.154.223 (the subnet broadcast), I see responses from all
of the above devices - the first looking normal, and the remainder showing
(DUP!), which I would expect.

Pinging a device directly causes packets to get lost. They show up in
the outbound stats, and the 6500(s) appear(s) to see and respond to it, but
it never comes back in via the vlan0 interface.

Any suggestions to try before I bang my head against the wall?

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Update: Setting up VLAN interfaces with Cisco gear... getting traffic on broadcast only...

2005-11-30 Thread Brian J. McGovern
I hate to add to my own issue.

I did some more playing and VLANs != 1 seem to work ok (typically in the 
100-150 range). However, operating on VLAN 1 still seems to be an issue.

-B

 > All,
 >  I've got three Catalyst 6500s configured in a switching domain via
 > fiber, with one "hub" 6500 connecting two remotes. Their port 
 > configurations are basically (the actual port number varies based on the
 > device).
 > 
 > interface Gigabit Ethernet 9/2
 >  no ip address
 >  switchport
 >  switchport trunk encapsulation dot1q
 >  switchport mode trunk
 > 
 > 
 >  The switches have been working as-is for over a year now, so I know
 > that part of the configuration is good. 
 > 
 >  I've been asked to provide some Sun jumpstart services, and want to 
 > use an IBM x335 with a bge interface to act as a bootparams/tftp/rarp server
,
 > and figured that trunking it in to the main switch and bringing up vlans for
 > the individual subnets that would be served would be the right way to go, so
 > I configured up one of the gig-E interfaces, as above, with the only change 
 > selecting the UTP media.
 > 
 >  On the FreeBSD (6.0) side, I then ran:
 > 
 > ifconfig bge0 up media 1000baseTX mediaopt full-duplex
 > ifconfig vlan0 create vlan 1 vlandev bge0
 > ifconfig vlan0 10.86.154.221 netmask 255.255.255.240
 > 
 >  The other devices on the subnet are 10.86.154.209 ("Hub 6500"), 
 > 10.86.154.210 ("Remote 6500 1"), 10.86.154.211 ("Remote 6500 2"), and 
 > 10.86.154.222 ("Another x335 server running Linux").
 > 
 >  However, I don't seem to be able to get normal traffic through the
 > link. If I ping 10.86.154.223 (the subnet broadcast), I see responses from a
ll
 > of the above devices - the first looking normal, and the remainder showing
 > (DUP!), which I would expect.
 > 
 >  Pinging a device directly causes packets to get lost. They show up in
 > the outbound stats, and the 6500(s) appear(s) to see and respond to it, but
 > it never comes back in via the vlan0 interface.
 > 
 >  Any suggestions to try before I bang my head against the wall?
 > 
 >  -Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Automatic Firewall software?

2004-10-13 Thread Brian J. McGovern
All,
This morning, I woke up to find one of my systems under hacker attack
(considerable multiple attempts to log in to ftp, ssh, etc., mostly using
system accounts). I loaded ipfw and set up a couple of quick rules to block
the point of origin. Unfortunately, the address appears to be DHCP'ed, so I
expect the hacker will at some point get a new address, and start over.

Rather than having to hang over my machine is there any software out
there that will monitor logs (e.g. /var/log/messages), parse out failed logins
like this, and run an ipfw command to block it? Perhaps something can be done
via PAM? 

An added extra bonus would be if it would unblock after some period
of time, in case a legit. user bungles their password, and can't get in
(saves the service call).

-Brian
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


USB Stack/# of bytes to read?

2010-12-07 Thread Brian J. McGovern
All,

  I have a couple of quick questions about the USB stack in 8.x that I'm hoping
someone with a bit more experience than I can answer.

  I am currently working on a device driver for a Velleman K8055 board. 
Basically, it does digital and analog I/O under the control of a PC via USB. 
I've got the basic driver working fine, and I'm moving data back and forth 
without issue.

  What I'd like to be able to do, however, is poll the driver to see how much
data is sitting in the input buffer, or at least see how many packet/buffers
are waiting. Looking through the control structures, it appears that something
like sc->fifo.fp[USB_FIFO_TX]->used_q.ifq_len would be the right field, but it
never appears to be set anywhere (and is always 0). Using something like 
USB_IF_POLL() on the used_q suggests there is something to write, but not how
much.

  On a similar line of thinking, how about flushing the queue entirely? Should
I call usb_fifo_reset() directly? Or should I just reimplement the logic?

  -B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Changes to libfetch in 5.0 break proxy support?

2003-03-03 Thread Brian J. McGovern
I'm having a problem with fetch and libfetch in 5.0, and (given that I 
currently have a bad cold), I'm hoping to get a cheap answer before I have
to start crawling through code.

In the 4.x days, I was able to set up an apache web proxy, and then export
FTP_PASSIVE_MODE=YES and HTTP_PROXY=:80, and then go to
/usr/ports, and say, for instance "make all".

Everything would then download correctly, and go on happily.

Now, however, it appears that when I do this, the connection either times out,
or I get a file with the right name, but the contents are an HTML document
(wrapped to fit in 80 cols).

ftp://space.mit.edu/pub/davis/jed/v0.99/jed-B0.99-15.tar.gz";>


I know the proxy is working, as my 4.x boxes still go through it happily.

Anyone have any ideas if something has broken, or whether its pilot error?

-Brian

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


Trek Thumbdrive support?

2002-07-23 Thread Brian J. McGovern

Has anyone used a Trek Thumbdrive w/FreeBSD? When I plug it in, it gets 
recognized as da1, but I can't figure out how to mount it. If not, maybe I'll
pursue Trek, and see whats needed to get them utilized.

-Brian

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



Suggestions for embedded systems... ?

2006-09-17 Thread Brian J. McGovern
All,
I've been browsing the FreeBSD site looking for a system I can
embed in the car. Optimally, it will do video output via a RCA cable (ala your
VCR) so I can plug it in to one of the new Alpine radios with an AUX in. Input
will probably come via a USB gaming pad (arrow keys, a few buttons, and 16-20
keys). I'd like to have bluetooth and 802.11b/g for communicating with a base
station and the in car GPS and phone audio systems. USB (4-6 ports) would
be perfect - I can get the keyboard, bluetooth, 802.11g, and ODB II 
connectors in without a hub. Most I've seen boot from compact flash, but 
booting from a USB thumb drive or SD ram would also be useful. Audio would 
also be nice, but I can get away with the bluetooth link.

The form factor should be as small as possible for under-seat, 
behind-dash, or trunk installation.

I've seen the Soekris systems, and they're at a good price point, but
while they'd support most of what I'd need, they don't seem to have RCA video
output, which would be a major plus for real time color displays of status and
information (has anyone played with the USB video options available? Does 
FreeBSD support them?)

Suggestions? Comments? Projects already done?

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Suggestions for embedded systems... ?

2006-09-18 Thread Brian J. McGovern
Thanks. The downsides I see are its relatively large size (ATX) and
power requirements (full ATX). What I'm looking for is more along the
lines of http://www.soekris.com/net4801.htm, only with an RCA video
connector. Its small, takes virtually no power, takes car voltages (vs.
upconverting back to 110AC for an ATX power supply), and has 80% of what I 
want. I just need the last 20% :)

-B
 > 
 > 
 > --- "Brian J. McGovern" <[EMAIL PROTECTED]> wrote:
 > 
 > > All,
 > >I've been browsing the FreeBSD site looking for a
 > > system I can
 > > embed in the car. Optimally, it will do video output
 > > via a RCA cable (ala your
 > > VCR) so I can plug it in to one of the new Alpine
 > > radios with an AUX in. Input
 > > will probably come via a USB gaming pad (arrow keys,
 > > a few buttons, and 16-20
 > > keys). I'd like to have bluetooth and 802.11b/g for
 > > communicating with a base
 > > station and the in car GPS and phone audio systems.
 > > USB (4-6 ports) would
 > > be perfect - I can get the keyboard, bluetooth,
 > > 802.11g, and ODB II 
 > > connectors in without a hub. Most I've seen boot
 > > from compact flash, but 
 > > booting from a USB thumb drive or SD ram would also
 > > be useful. Audio would 
 > > also be nice, but I can get away with the bluetooth
 > > link.
 > > 
 > >The form factor should be as small as possible for
 > > under-seat, 
 > > behind-dash, or trunk installation.
 > > 
 > >I've seen the Soekris systems, and they're at a
 > > good price point, but
 > > while they'd support most of what I'd need, they
 > > don't seem to have RCA video
 > > output, which would be a major plus for real time
 > > color displays of status and
 > > information (has anyone played with the USB video
 > > options available? Does 
 > > FreeBSD support them?)
 > > 
 > >Suggestions? Comments? Projects already done?
 > > 
 > >-Brian
 > > ___
 > > freebsd-questions@freebsd.org mailing list
 > >
 > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 > > To unsubscribe, send any mail to
 > > "[EMAIL PROTECTED]"
 > > 
 > 
 > sorry about the blank one I dropped/catched the
 > keyboard with the wrong anykey...
 > 
 > http://www.aaeon.com/?TabIndex=Products&TabID=Detail&Cate_ID={AEEE87FC-762C-
45F1-AC39-54000B62A180}&Item_ID={88258D2F-17B8-4FA5-80D3-31E93126D326}&Product_
ID={EE4FC77D-FCFD-40EE-AA27-3CFCEA592237}
 > 
 > is a PC104 board I found that seems to do what you
 > want. I've been comtemplating this for a while.
 > possibly when I finally fix my eldo... This might be a
 > little pricey I'm not certain. Good luck with the
 > project and keep us up to date. I am deffinately
 > interested in seeing one of these come to pass. if you
 > do opt for compact flash make sure its read-only, you
 > might want to use some sort of Harddrive. this one
 > does EIDE. 
 > 
 > 
 > -brian
 > 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


if_bridge and VMware....

2007-08-21 Thread Brian J. McGovern
I'm in the process of doing something that is possibly a bit out of the
ordinary with VMware. I have two stand alone PCs connected to a catalyst 2900
doing 802.1q trunking. I can configure the VLAN interfaces on the stand alone
PCs, assign IP addresses, and communicate happily.

I then add a PC running VMware's free software offering, again set up the
ethernet for 802.1q, and load FreeBSD in to a VM. Like the stand alone
PCs, I can configure the vlan interface, attach it to the "hardware" interface
(lnc0), configure vlan interfaces, assign IPs, and life goes happily on.

However, what I want to do is add another VM to the network, which does not
support 802.1q natively, so thought I could create a host only network, add
the network to the FreeBSD machine and the new VM, and then bridge the VLAN
interface to the new network's "hardware" interface (lnc1).

To test connectivity, I initally assigned an IP to lnc1 of the FreeBSD system,
and an IP to the new VM's ethernet interface. The two systems communicated
fine, so far, so good.

I then rebooted both boxes, configured the "vlan100" interface with:

ifconfig vlan100 create vlan 100 vlandev lnc0
ifconfig vlan100 up

I then changed the mtu of lnc1 to match vlan100, and brought it up:

ifconfig lnc1 mtu 1496
ifconfig lnc1 up

I then created the bridge, and attached the interfaces:

ifconfig bridge0 create
ifconfig bridge0 addm vlan100 addm lnc1
ifconfig bridge0 inet 1.1.1.10 netmask 255.255.255.0 up

The stand alone hosts are 1.1.1.1 and 1.1.1.2. The other VM is 1.1.1.20.

At this point, the FreeBSD system can not ping either the stand alone boxen,
nor the other VM. In playing with it, if I assign an IP address to vlan100,
I can reach the stand alone boxes, but not the other VM.

Running trafshow, I see broadcast ARP requests on bridge0, vlan100, and lnc1,
but no responses.

Any thoughts about what I can look at, or what additional information would be
handy? Quick ASCII art to help the discussion

   +---++
   |   ||
1.1.1.1 1.1.1.2 |
Linux Host/VMWare
|
| vlan100 via lnc0 (MTU 1492)
 FreeBSD 6.2 VM | bridge0 1.1.1.10
| lnc1 (MTU 1492)
|
|
 Test Client VM
 1.1.1.20   
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Looking for a cookbook on Oracle clients...

2006-12-04 Thread Brian J. McGovern
All,
I have a task that requires I extract a data set from a MySQL server,
and push it on to an Oracle (9i) server. I figured I'd go the ODBC route, 
and installed unix_odbc_driver and its dependencies. 

However, its pretty clear that I don't fully understand what I'm doing,
and each step forward is costing me half a day of debugging, reading code,
and banging my head against the wall. From the documents I can find on the
web, it seems all I should have to do is install, configure my odbc.ini and
odbcinst.ini files, and go.

So, the questions:

1.) Is anyone using unixODBC and oracle_driver_odbc against a 9i
server?
2.) If so, can someone send me their .ini files and any other 
environment and oracle settings they needed to do to make it work (mine
are below)?

3.) Have people moved over to the instantclient in ports? If so, does
anyone have some sample code to test the basic ability to connect?

-Brian

[Oracle]
Description = Oracle Configuration
Driver  = Oracle
Trace   = Yes
TraceFile   = /var/log/odbc.log
Database= eengstg
Servername  = oracle_server
UserName= 
Password= 
Port= 1521

[Oracle]
Description = Oracle driver for FreeBSD
Driver  = /usr/local/lib/liboraodbc.so
Setup   = /usr/local/lib/liboradbS.so
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mapping USB ugen 802.11g adapter to ndis

2007-01-12 Thread Brian J. McGovern
All,
I have a USB 802.11g (DLINK) adapter that I would like to use to
access a wireless network. I've been able to download the Windows drivers,
convert them in to the kernel module, and load the module.

However, when I plug the adapter in, the ugen driver picks it up.

Historically, when I've had a new device, I had to tweak the USB
driver to recognize the manufacturer and model. However, in the case of
ndis, I've only found /usr/src/sys/dev/if_ndis/if_ndis_usb.c, which doesn't 
seem to have such a list.

Can anyone point me to how I can get the ndis driver to take ownership
for the USB device in question? Or is USB NDIS support just not there yet?

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


bootparamd doesn't allow parameters?

2005-08-18 Thread Brian J. McGovern
All,
I'm in the process of trying to set up a Solaris jumpstart server in
a lab, and I decided for chuckles to do it with FreeBSD.

The problem I'm running in to is that apparently, the Sun bootparamd
allows you to pass parameters as fields, for instance, as a couple of sample
fields out of the Solaris-generated /etc/bootparams (note: entry is clearly
not complete, but I didn't want to distract)

testserver  rootopts=:rsize=32768 term=:vt100

However, if I move this directly in to FreeBSD's /etc/bootparams, it
will complain that it can not answer the request for "rootopts" from the Sun
box.

Is there something I'm missing? the man page seems to allude to the
fact that all entries should be in the format of :. Or, am
I going to have to look at finding another bootparamd than the stock one?

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: bootparamd doesn't allow parameters?

2005-08-19 Thread Brian J. McGovern
Dan,
Thanks. I'm out of the office today, but I'll give it a spin Monday
and report.

-brian
 > 
 > --NzB8fVQJ5HfG6fxh
 > Content-Type: text/plain; charset=us-ascii
 > Content-Disposition: inline
 > 
 > In the last episode (Aug 18), Brian J. McGovern said:
 > >I'm in the process of trying to set up a Solaris jumpstart
 > > server in a lab, and I decided for chuckles to do it with FreeBSD.
 > > 
 > >The problem I'm running in to is that apparently, the Sun bootparamd
 > > allows you to pass parameters as fields, for instance, as a couple of
 > > sample fields out of the Solaris-generated /etc/bootparams (note:
 > > entry is clearly not complete, but I didn't want to distract)
 > > 
 > >testserver  rootopts=:rsize=32768 term=:vt100
 > > 
 > >However, if I move this directly in to FreeBSD's /etc/bootparams, it
 > > will complain that it can not answer the request for "rootopts" from
 > > the Sun box.
 > > 
 > >Is there something I'm missing? the man page seems to allude to
 > > the fact that all entries should be in the format of
 > > :. Or, am I going to have to look at finding
 > > another bootparamd than the stock one?
 > 
 > The code silently fails if any host field doesn't resolve to a valid IP
 > address.  Try the attached diff, which lets your example line work for
 > me.
 >  
 > -- 
 >  Dan Nelson
 >  [EMAIL PROTECTED]
 > 
 > --NzB8fVQJ5HfG6fxh
 > Content-Type: text/plain; charset=us-ascii
 > Content-Disposition: attachment; filename="bootparamd.diff"
 > 
 > Index: bootparamd.c
 > ===
 > RCS file: /home/ncvs/src/usr.sbin/bootparamd/bootparamd/bootparamd.c,v
 > retrieving revision 1.11.4.1
 > diff -u -p -r1.11.4.1 bootparamd.c
 > --- bootparamd.c 28 Nov 2004 14:10:19 -  1.11.4.1
 > +++ bootparamd.c 19 Aug 2005 03:20:23 -
 > @@ -114,7 +114,7 @@ bp_getfile_res *
 >  bp_getfile_arg *getfile;
 >  struct svc_req *req;
 >  {
 > -  char *where, *index();
 > +  char *where;
 >static bp_getfile_res res;
 >  
 >if (debug)
 > @@ -127,35 +127,47 @@ struct svc_req *req;
 >  
 >he = NULL;
 >he = gethostbyname(getfile->client_name);
 > -  if (! he ) goto failed;
 > +  if (! he ) {
 > +if (debug) warnx("bad hostname %s", getfile->client_name);
 > +goto failed;
 +  }
 >  
 >strncpy(askname, he->h_name, sizeof(askname));
 >askname[sizeof(askname)-1] = 0;
 >  
 >if (getthefile(askname, getfile->file_id,buffer,sizeof(buffer))) {
 > +if (debug) warnx("matched: %s",buffer);
 > +res.server_name = "";
 > +res.server_path = "";
 > +res.server_address.address_type = IP_ADDR_TYPE;
 > +bzero(&res.server_address.bp_address_u.ip_addr,4);
 > +
 >  if ( (where = index(buffer,':')) ) {
 >/* buffer is re-written to contain the name of the info of file */
 >strncpy(hostname, buffer, where - buffer);
 >hostname[where - buffer] = '\0';
 >where++;
 >strcpy(path, where);
 > -  he = gethostbyname(hostname);
 > -  if ( !he ) goto failed;
 > -  bcopy( he->h_addr, &res.server_address.bp_address_u.ip_addr, 4);
 > -  res.server_name = hostname;
 >res.server_path = path;
 > -  res.server_address.address_type = IP_ADDR_TYPE;
 > -}
 > -else { /* special for dump, answer with null strings */
 > -  if (!strcmp(getfile->file_id, "dump")) {
 > -res.server_name = "";
 > -res.server_path = "";
 > -res.server_address.address_type = IP_ADDR_TYPE;
 > -bzero(&res.server_address.bp_address_u.ip_addr,4);
 > -  } else goto failed;
 > +  if (hostname[0]) {
 > +he = gethostbyname(hostname);
 > +if ( !he ) {
 > +  if (debug) warnx("invalid hostname %s", hostname);
 > +  goto failed;
 > +}
 > +bcopy( he->h_addr, &res.server_address.bp_address_u.ip_addr, 4);
 > +res.server_name = hostname;
 > +  }
 > +} else { 
 > +  /* XXX allow "dump" keyword with no value.  Why? no idea. 
 > + Fail otherwise. */
 > +  if (strcmp(getfile->file_id, "dump")) {
 > +if (debug) warnx("invalid value for keyword %s", getfile->file_id);
 > +goto failed;
 > +  }
 >  }
 >  if (debug)
 > -  fprintf(stderr, "returning server:%s path:%s address: %d.%d.%d.%d\n",
 > +  fprintf(stderr, "returning server:\"%s\" path:\"%s\" address: %d.%d.%
d.%d\n",
 >   res.server_name, res.server_path,
 >   255 &  res.server_address.bp_address_u.ip_addr.net,
 >   255 & res.server_address.bp_address_u.ip_addr.host,
 > 
 > --NzB8fVQJ5HfG6fxh--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: bootparamd doesn't allow parameters?

2005-08-22 Thread Brian J. McGovern
Dan,
 > In the last episode (Aug 18), Brian J. McGovern said:
 > >I'm in the process of trying to set up a Solaris jumpstart
 > > server in a lab, and I decided for chuckles to do it with FreeBSD.
 > > 
 > >The problem I'm running in to is that apparently, the Sun bootparamd
 > > allows you to pass parameters as fields, for instance, as a couple of
 > > sample fields out of the Solaris-generated /etc/bootparams (note:
 > > entry is clearly not complete, but I didn't want to distract)
 > > 
 > >testserver  rootopts=:rsize=32768 term=:vt100
 > > 
 > >However, if I move this directly in to FreeBSD's /etc/bootparams, it
 > > will complain that it can not answer the request for "rootopts" from
 > > the Sun box.
 > > 
 > >Is there something I'm missing? the man page seems to allude to
 > > the fact that all entries should be in the format of
 > > :. Or, am I going to have to look at finding
 > > another bootparamd than the stock one?
 > 
 > The code silently fails if any host field doesn't resolve to a valid IP
 > address.  Try the attached diff, which lets your example line work for
 > me.

bootparamd is now passing the values back to the Sun box. I can't demonstrate
that the Sun box is making use of them (although NFS transfer rates are up
this morning, which may be an indication).

Thanks for the quick patch.

Now, its back to figuring out why it can't find my rules.ok file and automate
the install :)

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Getting a Netgear WG511T recognized on 5.4/6.0...

2005-08-23 Thread Brian J. McGovern
I have a HP AMD64 laptop (Pavillion zv5000) with a built-in Broadcom wireless
card that doesn't appear to be supported, so I picked up a WG511T, which
claims to be supported by the ath man page.

However, in recompiling the kernel with the ath driver and installing the
card, I don't get the device.

Attached is the verbose dmesg output at boot, and the kernel config. pccardd
won't start at all, claiming "fatal error: no PC-CARD slots", although cardbus
slots do show up.

Any chance I can get this working, or am I SOL?

-B

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.0-BETA2 #4: Thu Aug 11 21:53:48 EDT 2005
root@:/usr/src/sys/i386/compile/LAPTOP
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a6a000.
APIC: Could not find any APICs.
Calibrating clock(s) ... i8254 clock: 1193174 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 797945689 Hz
CPU: AMD Athlon(tm) 64 Processor 3200+ (797.95-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0xf4a  Stepping = 10
  
Features=0x78bfbff
  AMD Features=0xe0500800
Data TLB: 32 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 1073152000 (1023 MB)
Physical memory chunk(s):
0x1000 - 0x0009efff, 647168 bytes (158 pages)
0x0010 - 0x003f, 3145728 bytes (768 pages)
0x00c25000 - 0x3ed39fff, 1041321984 bytes (254229 pages)
avail memory = 1041285120 (993 MB)
bios32: Found BIOS32 Service Directory header at 0xc00f71f0
bios32: Entry = 0xfd750 (c00fd750)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xfd750+0x16c
pnpbios: Found PnP BIOS data at 0xc00f7280
pnpbios: Entry = f:b71d  Rev = 1.0
Other BIOS signatures found:
wlan: <802.11 Link Layer>
ath_rate: 
mem: 
Pentium Pro MTRR support enabled
null: 
random: 
nfslock: pseudo-device
io: 
ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pci_open(1):mode 1 addr port (0x0cf8) is 0x80001110
pci_open(1a):   mode1res=0x8000 (0x8000)
pci_cfgcheck:   device 0 [class=06] [hdr=00] is there (id=00d110de)
pcibios: BIOS version 2.10
Found $PIR table, 11 entries at 0xc00fdf10
PCI-Only Interrupts: none
Location  Bus Device Pin  Link  IRQs
embedded01A   0x06  9 10 11 12 14 15
embedded02A   0x09  9 10 11 12
embedded02B   0x0a  9 10 11 12
embedded02C   0x07  9 10 11 12
embedded06A   0x0c  9 10 11 12 14 15
embedded06B   0x0d  9 10 11 12 14 15
slot 1  09A   0x08  9 10 11 12 14 15
embedded0   10A   0x01  9 10 11 12 14 15
embedded0   10B   0x02  9 10 11 12 14 15
embedded0   10C   0x03  9 10 11 12 14 15
embedded0   10D   0x04  9 10 11 12 14 15
embedded20A   0x01  9 10 11 12 14 15
embedded21A   0x02  9 10 11 12 14 15
embedded24A   0x01  9 10 11 12 14 15
embedded24B   0x02  9 10 11 12 14 15
embedded22A   0x03  9 10 11 12 14 15
embedded0   11A   0x05  9 10 11 12 14 15
pcib0:  pcibus 0 on motherboard
pir0:  on motherboard
$PIR: Links after initial probe:
Link  IRQ  Rtd  Ref  IRQs
 0x6  255   N 1  9 10 11 12 14 15
 0x9  255   N 1  9 10 11 12
 0xa  255   N 1  9 10 11 12
 0x7  255   N 1  9 10 11 12
 0xc  255   N 1  9 10 11 12 14 15
 0xd  255   N 1  9 10 11 12 14 15
 0x8  255   N 1  9 10 11 12 14 15
 0x1  255   N 3  9 10 11 12 14 15
 0x2  255   N 3  9 10 11 12 14 15
 0x3  255   N 2  9 10 11 12 14 15
 0x4  255   N 1  9 10 11 12 14 15
 0x5  255   N 1  9 10 11 12 14 15
$PIR: Found matching pin for 0.1.INTA at func 1: 10
$PIR: Found matching pin for 0.2.INTA at func 0: 11
$PIR: Found matching pin for 0.2.INTB at func 1: 10
$PIR: Found matching pin for 0.2.INTC at func 2: 10
$PIR: Found matching pin for 0.6.INTA at func 0: 11
$PIR: Found matching pin for 0.6.INTB at func 1: 10
$PIR: Found matching pin for 2.0.INTA at func 0: 11
$PIR: Found matching pin for 2.1.INTA at func 0: 10
$PIR: Found matching pin for 2.4.INTA at func 0: 11
$PIR: Found matching pin for 2.4.INTB at func 1: 10
$PIR: Found matching pin for 2.2.INTA at func 0: 11
$PIR: Links after initial IRQ discovery:
Link  IRQ  Rtd  Ref  IRQs
 0x6   10   Y 1  9 10 11 12 14 15
 0x9   11   Y 1  9 10 11 12
 0xa   10   Y 1  9 10 11 12
 0x7   10   Y 1  9 10 11 12
 0xc   11   Y 1  9 10 11 12 14 15
 0xd   10   Y 1  9 10 11 12 14 15
 0x8  255   N 1  9 10 11 

Debugging Apache with mod_auth_pam2 on 5.4

2005-09-21 Thread Brian J. McGovern
All,
I'm having a bit of an issue getting mod_auth_pam2 from the ports
collection working with the apache2 port.

I've installed the module, uncommented the config lines in httpd.conf,
and set up a .htaccess file in the virtual server's top-level data directory...

AuthName BXBLIT
AuthType Basic
require valid-user
AuthPAM_Enabled On
AuthPAM_FallThrough Off


I also set up /etc/pam.d/httpd

authrequiredpam_unix.so debug
account requiredpam_unix.so debug


The only logging I seem to be able to get is via the apache error
log, where I see:

[Wed Sep 21 15:53:13 2005] [error] [client 161.44.65.27] PAM: user '' - 
not authenticated: authentication error


for each login attempt. I'm not seeing anything at all in messages,
auth.log, etc, so I'm not even sure if apache is doing the right things.

Everything else is pretty much at install configuration. Any suggestions on
things I may want to change (e.g. syslog.conf) to start to peel the edges up
on the black box, and get a look at whats going on inside?



-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Simple PAM authentication code?

2005-09-30 Thread Brian J. McGovern
Could someone point me at a short, straight forward bit of code that 
validates a given username and password via PAM? I've tried writing a short
app to make sure PAM is working the way I want to locally, but no matter how
good the info, I'm getting an authentication denied, so I know I'm
missing something.

The openpam site didn't seem to helpful documentation wise, and my connection to
download the source seems to be timing out at the moment...

-B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


NFS hangs (client) when rebooted server tries to [re]mount filesystem

2005-10-13 Thread Brian J. McGovern
All,
I'm seeing an odd problem while using a FreeBSD system as a Solaris
jumpstart system. If I run a client box through the process, its fine the first
time. However, if there is an error, or I'm testing, subsequent passes 
hang up right around the time it should be trying to do an NFS mount. Rebooting
the server (FreeBSD 5.4) and restarting the jumpstart process on the client
cleans the issue up, and it runs through again (once) fine.

Upon running "showmount localhost" after a good pass, I see that the 
server is registered, even after its been booted, powered off for some time,
etc. I expect this is because its not properly doing a unmount. However, the
registration can persist for days.

I don't have the lock or stat daemons running (didn't see a need),
but that may be next on my things to do.

Has anyone seen this before? Is there a way to flush this list, or
see what may be causing the client to lock up? I've seen the notes in the
bootparams file about setting up an all-0s alias for SunOS broadcast, and have
done that, as well.

Suggestions?

-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ancontrol turns on WEP for Leap on 5.1-RELEASE

2003-06-16 Thread Brian J. McGovern
I just searched the mailing list for this, and didn't find anything,
so I figured I'd ask.

I just installed 5.1-RELEASE on my laptop, reloaded my script that
sets up my Cisco wireless card, ran it, and BAM! no networking.

Upon inspection, it would appear that when using LEAP as the
authentication method, WEP is coming on when you run the
authentication (-L) step. My understanding is that using LEAP means you
can't use WEP, let alone it being the default.

I haven't gone back to 5.0 to compare yet, but i don't believe it
worked that way there. Has anyone else seen this? Should I pr it?

-Brian
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FIONREAD behavior possible on uhid?

2009-08-03 Thread Brian J. McGovern
All,
I recently picked up a Velleman K8055, which is basically a Digital and
analog I/O board that connects to a PC via a USB connection. So far, its
worked fine w/FreeBSD, the uhid driver picks it up, and a simple cat
< /dev/uhid0 will start pulling the 8 bytes that represent the inputs
and counters available.

However, once the device is open, it polls several times per second,
and uhid begins to buffer the board's output in a clist. Since I don't
need that level of resolution, I'm looking to have the application back
down to once per second, perhaps slower (every 5 seconds). However, in
order to do this, I need to either stop the over sampling or flush the
buffer, and then pick up the first "new" read. However, performing both
a TIOCFLUSH (have ioctl flush the buffers) as well as a FIONREAD (return
the number of bytes waiting so the application can read them and throw
them away) fail. 

I also tried to add a FIONREAD to uhid_do_ioctl() and uhidioctl() at
different times. My understanding is that with the ioctl calls, the
infrastructure should be able to do the copy out, so a simple:
case FIONREAD:
  {
*addr = sc->sc_q.c_cc;
break;
  }

should have done the trick, and it compiles happily, but it fails with
an invalid address error when the ioctl is called. I also tried using
copyout directly, but from the little reading I did, addr is already
supposed to be in the kernel address space, and it returns EFAULT.

Its been about 10 years since I've played seriously in the kernel
space, so I hope its something simple I've just forgotten. Can someone
point me at a way to get this functionality, short have having to write
a device-specific driver (a-la uvisor) ?

-B

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


[no subject]

2003-09-08 Thread Brian J. McGovern
 > 
 > 
 > Hi,
 > 
 > I inserted an USB stick into a 5.1 FreeBSD box and
 > was pleasantly surprised to see it being autodetected:
 > 
 > umass0: UrDisk USB FLASH DISK, rev 1.10/1.00, addr 2
 > da0 at umass-sim0 bus 0 target 0 lun 0
 > da0:  Removable Direct Access SCSI-2 device 
 > da0: 1.000MB/s transfers
 > da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C)

... and I've been sending patches as I get my hands on more brands/types.
Unfortunately, this isn't one of mine, so I can't claim credit ;)

 > But when I try to mount it, I'm getting 
 > 
 > # mount -t msdos /dev/da0 /mnt
 > msdosfs: /dev/da0: Invalid argument
 > 

See if there is a slice for the device, e.g. /dev/da0s1. Also, you can try
a fdisk on the device, in case it doesn't use the first slice (I've yet
to see this on USB devices, but ZIP drives used to use slice 4 for their
"DOS" partition).

If you still can't get it to work, drop me a line, and I can try to provide
some other pointers. On most devices, its a matter of tweaking the protocol
settings in umass.c.

 > 
 > Assumed I will get it working soon, how can I achieve that
 > it is automatically mounted?
 > Is there a user wrapper to mount/unmount the USB stick?


You should be able to set something up in /etc/usbd.conf for attach. Detach
may be a bit tricker, as you should unmount the filesystem before pulling the
stick.
-Brian
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(no subject)

2006-07-27 Thread Brian J. McGovern
> On the switch side of things I'm using a Cisco 3550 runing layer3
> code, I've had this working before with a em driver (on another box)
> but my setup was a little different then so I'm pretty sure the switch
> isnt at fault?

Is the vr interface capable of sending > 1500 byte MTUs? Its not in the vlan(4)
man page. This could be one area to look at, or, if its one of the other causes 
below, you may have issues with big packets.

> My rc.conf looks like:
> 
> cloned_interfaces="vlan100 vlan200 vlan233"
> ifconfig_vr0="up"
> ifconfig_vlan100="inet 192.168.100.1 netmask 255.255.255.0 vlan 100 vlandev 
> vr0"
> ifconfig_vlan200="inet 192.168.200.1 netmask 255.255.255.0 vlan 200 vlandev 
> vr0"
> ifconfig_vlan233="inet 10.233.233.1 netmask 255.255.255.0 vlan 233 vlandev 
> vr0"
> ifconfig_vr0="inet 10.254.254.252 netmask 255.255.255.0 media100baseTX 
> mediaopt full-duplex"
> defaultrouter="10.254.254.254"

This looks reasonable. However, your first ifconfig_vr0 line will get 
overridden by the second, and is therefore redundant. Does "ifconfig -a"
confirm that everything gets set up ok?

> and my switch config looks like this:
> 
> interface FastEthernet0/12
>   switchport access vlan 254
>   switchport trunk encapsulation dot1q
>   switchport trunk allowed vlan 100,200,233
>   switchport mode trunk
>  logging event trunk-status
>  duplex full
>  speed 100
> end

The "switchport access vlan 254" looks suspect. A trunking port shouldn't
have access port parameters. You're also missing vlan 1. See below...

> I'm getting to the point that the vlan interfaces (100,200,233) can
> talk to machines on their subnet but I cannot seem to ping anything on
> the 10.254.254.0/24 subnet (ip address applied to vr0 interface) or
> anythnig via the default route.

Well, if you can't ping anything on the subnet, that would assume you can't
reach the default gateway, and therefore, its not surprising you can't
ping anything further upstream :)

>From what I see here, you never allow vlan1 to travel on your trunk. vr0, as 
>an "unvlan'ed" 
interface, will default to vlan1 with dot1q.

> If anyone can assist me I'd appreciate it, please contact me off list
> as I am not subscribed to -questions.
> 
> Cheers,
> 
> Will
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"