RE: Wireless Card Issue AFTER Install

2004-04-03 Thread Craig Booth
Anton, thank you for taking time to help.  I have answered your questions
within your text at the bottom of this email as best as I know how to as a
raw BSD Unix user.

-Original Message-
From: Anton Alin-Adrian [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 03, 2004 4:18 PM
To: Craig Booth
Cc: [EMAIL PROTECTED]
Subject: Re: Wireless Card Issue AFTER Install

Craig Booth wrote:
> Any guru out there that has the knowledge to provide some advice to
persist the use of the Linksys card beyond the first install?  I tried this
question on the Questions mailing list, but no one could tackle it,
unfortunately.

Situation:
 
I have set up my Sony VAIO PCG-FRV27 laptop as a dual boot machine between
Win XP Pro and FreeBSD.  
 
I am using a Linksys Wireless card connecting through a Linksys router.  
 
My install successfully enabled and used the wireless card and router to
install directly from the FreeBSD ftp site (after CD boot) and completed
with no errors. 
 
Even though my rc.conf file is verified as setup with "DHCP" and the pccard
enabled, and even though the startup processes appear to find and enable the
card ok, I can't connect back to the ftp site to download more stuff unless
I use the CD to restart the install over the ftp site again.  It either
can't resolve the ftp site, or hangs during the attempt.
 
I have read where this can sometimes happen with dual boot machines when the
other OS doesn't properly release the card, but I have tried unplugging the
machine, removing and putting back both the card and the laptop battery
before rebooting, and it still doesn't work.  I am getting the [Null] [Null]
message after the Linksys Card Found message during startup, as my earlier
reading about the problem discussed, but nothing seems to change that,
unless I reinstall FreeBSD from the CD (which I'm obviously not going to do
everytime I want to use FreeBSD!)  
 
Two things I notice when I go to set up the media in SYSINSTALL.  The
gateway address (192.168.2.1) and the DHCP assigned address (range starting
with 192.168.2.2), both present on this same screen when booting from the
CD, are missing from the DHCP config screen that comes up just before
SYSINSTALL attempts to connect to the ftp site, though the connection
attempt still fails if I enter the info back in manually before trying to
connect.  Also, a message comes up before that which says something about
being in multiuser mode, and ask if I want to assume network settings are
already correct.  (or something like that)  This multiuser message is not
present when booting from the CD.>
___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 
> 
Hi, could you please provide a bit more info?

What is the model of your Linksys card?

Answer: Linksys Instant Wireless Network PC Card WPC11 V3.0

and what driver are you using for it?

Answer: Win XP:  Intersil islp2 version 2.0.10.0
  FreeBSD:  Intersil Firmware:  Primary 1.01.00, Station 1.04.02 (as
reported by FreeBSD)

Is it supported on the FreeBSD hardware list?

Answer: Yes

How do you configure your wireless driver? Using what software/scripts? 
Don't skip details please.

Answer: No software scripts, none that I initiated anyway.  The wireless
card is configured through the wi0 (Lucent WaveLAN/IEEE 802.11 wireless
adapter) choice, since that was the only wireless adapter selection
available on the SYSINSTALL menu.  Again, it worked for the initial install,
and when I try other choices, the logon scripts change it back to wi0
anyway, since that's apparently being picked up on auto-detection.  Here are
excerpts from the logon messages that may answer your questions, as well as
provide a bit more insight:

Apr 3 18:06:11 pccardd[49]:Card "The Linksys Group, Inc."(" Instant Wireless
Network PC Card")[ISL37300P][RevA] matched "The Linksys Group, Inc."("
Instant Wireless Network PC Card")[(null)][(null)]
.
.
.
login: wi0 at port 0x240-0x27f irq11 slot 0 on pccard0
wi0: 802.11 address:00:06:25:15:f9:34
wi0: using RF:PRISM3(PCMCIA)
wi0: Intensil Firmware: Primary 1.01.00, Station 1.04.02

Apr 3 18:06:16 pccardd[49]:wi0: The Linksys Group, Inc."(" Instant Wireless
Network PC Card inserted.

Apr 3 18:06:25 pccard[49]: pccardd started


Trying a non-DHCP config for testing might help. See if you can ping. Can
you ping your own IP of the wireless card, locally? 

Answer: I pinged 192.168.2.100 successfully.  However, I'm not sure how to
find out the local address of the card, as 192.168.2.100 was what DHCP
assigned, I believe.

Can you ping the broadcast IP for it?

Answer: If this is what I think you mean, it's the http://68.168.1.42 IP?
No, it can't ping that IP.  Furthermore, it can't ping anything on the
outside, including DSN name http://www.FreeBSD.org or anything else.  I also
tried pinging an IP directly (http://216.136.204.117 is the FreeBSD site IP)

Re: Wireless Card Issue AFTER Install

2004-04-03 Thread Anton Alin-Adrian
Craig Booth wrote:
Any guru out there that has the knowledge to provide some advice to persist
the use of the Linksys card beyond the first install?  I tried this question
on
the Questions mailing list, but no one could tackle it, unfortunately.
 
Situation:
 
I have set up my Sony VAIO PCG-FRV27 laptop as a dual boot machine between
Win XP Pro and FreeBSD.  
 
I am using a Linksys Wireless card connecting through a Linksys router.  
 
My install successfully enabled and used the wireless card and router to
install directly from the FreeBSD ftp site (after CD boot) and completed
with no errors. 
 
Even though my rc.conf file is verified as setup with "DHCP" and the pccard
enabled, and even though the startup processes appear to find and enable the
card ok, I can't connect back to the ftp site to download more stuff unless
I use the CD to restart the install over the ftp site again.  It either
can't resolve the ftp site, or hangs during the attempt.
 
I have read where this can sometimes happen with dual boot machines when the
other OS doesn't properly release the card, but I have tried unplugging the
machine, removing and putting back both the card and the laptop battery
before rebooting, and it still doesn't work.  I am getting the [Null] [Null]
message after the Linksys Card Found message during startup, as my earlier
reading about the problem discussed, but nothing seems to change that,
unless I reinstall FreeBSD from the CD (which I'm obviously not going to do
everytime I want to use FreeBSD!)  
 
Two things I notice when I go to set up the media in SYSINSTALL.  The
gateway address (192.168.2.1) and the DHCP assigned address (range starting
with 192.168.2.2), both present on this same screen when booting from the
CD, are missing from the DHCP config screen that comes up just before
SYSINSTALL attempts to connect to the ftp site, though the connection
attempt still fails if I enter the info back in manually before trying to
connect.  Also, a message comes up before that which says something about
being in multiuser mode, and ask if I want to assume network settings are
already correct.  (or something like that)  This multiuser message is not
present when booting from the CD.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Hi, could you please provide a bit more info?

What is the model of your Linksys card, and what driver are you using 
for it. Is it supported on the FreeBSD hardware list? If not, are you 
using a third-party driver?

How do you configure your wireless driver? Using what software/scripts? 
Don't skip details please.

Trying a non-DHCP config for testing might help. See if you can ping. 
Can you ping your own IP of the wireless card, locally? Can you ping the 
broadcast IP for it?

Is there any firewalling capability in your kernel/loaded modules?

I assume the card is working neat on XP. Have you tried it after 
rebooting freebsd without actually going into XP? XP may set up some 
BIOS parameters which FreeBSD doesn't like?

Regards,

--
Alin-Adrian Anton
Reversed Hell Networks
GPG keyID 0x1E2FFF2E (2963 0C11 1AF1 96F6 0030 6EE9 D323 639D 1E2F FF2E)
gpg --keyserver pgp.mit.edu --recv-keys 1E2FFF2E
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: P4 HT with SMP kernel, FreeBSD 5.2.1-p4 problem

2004-04-03 Thread Claudiu Dragalina-Paraipan
Hello,

I come back with a little more informations.
It seems that changing the hw.acpi.disable_on_poweroff from default 
value of 1 to 0 fixes the problem. At least for now I don't get the 
panics on shutdown anymore.

Also, while running the kernel with WITNESS and INVARIANTS, I didn't get 
 the panics (as I already said), and I get this in /var/log/messages:

Apr  3 17:28:59 oxygen kernel: lock order reversal
Apr  3 17:28:59 oxygen kernel: 1st 0xc0691680 UMA lock (UMA lock) @ 
/usr/src/sys/vm/uma_core.c:1200
Apr  3 17:28:59 oxygen kernel: 2nd 0xc0c31100 system map (system map) @ 
/usr/src/sys/vm/vm_map.c:2210
Apr  3 17:28:59 oxygen kernel: Stack backtrace:
Apr  3 17:37:03 oxygen kernel: lock order reversal
Apr  3 17:37:03 oxygen kernel: 1st 0xc2a54ad4 vm object (vm object) @ 
/usr/src/sys/vm/swap_pager.c:1323
Apr  3 17:37:03 oxygen kernel: 2nd 0xc0690b00 swap_pager swhash 
(swap_pager swhash) @ /usr/src/sys/vm/swap_pager.c:1838
Apr  3 17:37:03 oxygen kernel: 3rd 0xc0c38738 vm object (vm object) @ 
/usr/src/sys/vm/uma_core.c:873
Apr  3 17:37:03 oxygen kernel: Stack backtrace:

This appear once, shortly after a startup.

Best regards.

Claudiu Dragalina-Paraipan wrote:
Hello,

I have a Pentium 4 2.8E (with HT), and an Intel 865GBF motherboard.
After I made a bios upgrade I have this problem with it: every time I do 
a reboot or a shutdown the kernel hangs. Sometimes it gives a specific 
error message, sometimes the last lines of text are garbage, and rarely 
it just resets before it should.
Seems that it happens before the file system is unmounted, because every 
next boot I have problems with it. Until now I didn't lose any important 
file, but I assume that this can happen giving this situation.
Also, this does not happen if I compile a kernel without SMP support, or 
if I disable HT from bios (with SMP or not).
Running a kernel with INVARIANTS and WITNESS seems to fix this problem too.

I have attached a dmesg result after a boot -v.
Please let me know what other informations you need for solving this 
situation.

With respect,


--
Claudiu Dragalina-Paraipan
Reversed Hell Networks / reversedhell.net
e-mail: [EMAIL PROTECTED]

GPG KeyID: BFACC244 (9F07 2B86 7965 B9A8 9AAB 1BEA 9B41 56C5 BFAC C244)
gpg --keyserver gpg.mit.edu --recv-keys BFACC244


signature.asc
Description: OpenPGP digital signature


Re: Pointers about CPU load measuring

2004-04-03 Thread Jose Marcio Martins da Cruz
> 
> In the last episode (Apr 02), Mark said:
> > Dan Nelson wrote:
> > >>> Someone can send some pointers on how to measure global CPU load
> > >>> under FreeBSD from a C program ? I'm looking for values for
> > >>> idle/kernel/user, in a similar way as does top. Is there any
> > >>> pointer or doc ?. I'd like to avoir browsing top code.
> > >>
> > >> Use sysctlbyname(3) to retrieve vm.loadavg, which is a struct
> > >> loadavg (defined in )
> > >
> > > Actually the kern.cp_time variable might be better if you want
> > > idle/kernel/user values.
> > 
> > I current let snmpd do the job. Is that as accurate as manually
> > reading the kern.cp_time variable?
> 
> If you're talking about enterprises.ucdavis.systemStats, then yes.
> Snmpd digs directly into /dev/kmem instead of using sysctl (so it can
> run on older kernels that didn't provide the sysctl variable), but the
> values are the same.  enterprises.ucdavis.laTable is populated from the
> vm.loadavg sysctl variable.

If I'm not wrong, loadavg gives the mean number of processes in the
run queue averaged on 1, 5 and 15 minutes. This gives an idea of
system load but lacks precision. It seems to me that kern.cp_time
counters is a better metrics of CPU load.

> 
> -- 
>   Dan Nelson
>   [EMAIL PROTECTED]
> 

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


Re: uhid devices

2004-04-03 Thread kitsune
On Thu, 1 Apr 2004 15:50:05 -0600
Vulpes Velox <[EMAIL PROTECTED]> wrote:

> What would be the simplest way to get input from a uhid device and
> then feed it to X as keyboard input, mainly aimed at X?
> 
> I am currently trying to find a nice starting place to looking at
> how to go about from a usb joypad and mapping it as keyboard in put.

Well getting it working went far smoother than expected... did not
require any wrapper code or any thing...

Just stuck it in the X config as a keyboard and it worked perfectly.
The only thing to do now is look into remapping they keys on it.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Critical mmap failure?

2004-04-03 Thread Konrad Heuer

I've a couple of systems running FreeBSD 4.9; they all share /usr and
anything below by nfs. There are (at less) two applications that do not
run or do not run correctly on one distinguished system, but correctly on
each other machine.

One application is mozilla; it stops shortly after invocation with the
following error message:

INTERNAL ERROR on Browser End: JavaPluginFactory5 init - no agent?

System error?:: Cannot allocate memory

Analyzing the problem with "truss" shows an error while mozilla calls
"mmap":

mmap(0xbfaef000,65536,0x3,0x400,-1,0x0) ERR#12 'Cannot allocate memory'
mmap(0xbfade000,65536,0x3,0x400,-1,0x0) ERR#12 'Cannot allocate memory'

On the other systems, there are no errors:

mmap(0xbfaef000,65536,0x3,0x400,-1,0x0) = -1079054336 (0xbfaef000)
mmap(0xbfade000,65536,0x3,0x400,-1,0x0) = -1079123968 (0xbfade000)

* Other "mmap" calls that do not require MAP_STACK (0x400) do not lead to
  errors anywhere.
* All kernels are compiled with -DVM_STACK since this is default on i386.
* The value of the variable vm.max_proc_mmap is not higher on any of the
  systems which do well than on the problematic one.
* The same holds for resource limits.
* The machines in question are all DELL PowerEdge 2650, three with
  RAID controllers, one without. The main difference in hardware is
  that the system on wich the error occurs has 4 GB of memory, the
  others 2 GB. There are no significant differences in the kernel
  configuration files except driver entries for RAID or not.

Any idea that may help is very welcome, since the other application that
fails is a commercial linux binary calling "linux mmap" frequently and
producing wrong data (possibly the return code of "mmap" isn't checked).
This application is very important for us, and does not do anything than
reading and writing data and calling "mmap".

Best regards

Konrad Heuer ([EMAIL PROTECTED])  ___  ___
GWDG   / __/__ ___ / _ )/ __/ _ \
Am Fassberg   / _// __/ -_) -_) _  |\ \/ // /
37077 Goettingen /_/ /_/  \__/\__//___//
Germany
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Loosing STDOUT after file rotation

2004-04-03 Thread Daniel O'Connor
On Fri, 2 Apr 2004 07:23, James Housley wrote:
> I have a program that I have the is supposed to run forever.  I log any
> output to a log file.  It is run in a startup script like thie:
>
> program_name >> $err_log 2>&1
>
> The problem is that after newsyslog rotates the $err_log file, no more
> data is written to the file.  I can not stop and restart the program.  I
> can accept a signal.  But what do I need to do in "program_name" to allow
> the data to be written after the "rotation" of the file.

As other people have pointed out, you need another program or to write the log 
file in the program itself.

I have the "another program" bit, it doesn't listen for signals but reopens 
the file for each blob of data.

It's actually work's but I can get my boss to relicense it if you want it.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: wireless usb atmel driver

2004-04-03 Thread Anton Alin-Adrian
Bruce M Simpson wrote:
On Fri, Apr 02, 2004 at 04:25:08PM +0300, Anton Alin-Adrian wrote:

I am killing myself trying to compile http://www.vitsch.net/bsd/atuwi/ 
driver on 5.2.1-RELEASE.


Try the atuwi from my perforce tree.

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

Ok, thanks, I will try.

Regards,
--
Alin-Adrian Anton
Reversed Hell Networks
GPG keyID 0x1E2FFF2E (2963 0C11 1AF1 96F6 0030 6EE9 D323 639D 1E2F FF2E)
gpg --keyserver pgp.mit.edu --recv-keys 1E2FFF2E
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"