8.0 regression: consecutive panics (iwi / wlan / zfs ?)

2010-01-04 Thread martinko

Hallo,

A few hours ago I experienced 3 consecutive panics on this freshly 
installed 8.0, the last panic just 28s into boot sequence.  It seems to 
me that culprit could be iwi/wlan possibly with help from zfs or others.

More details even with screen-shot of the last panic follow.

I have used versions 5.3 to 6.4 on this laptop, the last one being the 
most stable and smooth.  A few weeks ago I moved to 8.0 (fresh install) 
and since then I've been experiencing funny issues.


Last night I was writing an email when I noticed my wi-fi link was gone. 
 I checked /var/log/messages and saw the following:


wlan0: link state changed to DOWN
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
linux: pid 6189 (skype): syscall inotify_init not implemented
ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable,
add vfs.zfs.prefetch_disable=0 to /boot/loader.conf.
ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable 
behavior.

 Consider tuning vm.kmem_size and vm.kmem_size_max
 in /boot/loader.conf.
ZFS filesystem version 13
ZFS storage pool version 13

While wifi weirdness did not impressed me, I was perplexed by ZFS 
messages.  I checked kldstat and indeed ZFS was loaded.  Note that I 
have not attached any ZFS storage devices nor I have ever configured ZFS 
on this laptop.  And before I could investigate any further my laptop 
froze and then rebooted.


After reboot I logged into X11 and was checking system logs while 
waiting for background fsck to finish.  I noticed that wifi was screwed 
up, probably reset did not reinitialize it properly and the driver was 
at lost.  And as soon as fsck finished the system suddenly rebooted.


And it was getting worse.  Next reboot did not even finish and the 
system panicked again.  At least this time I could see a message and so 
I took a picture of it for your perusal:


http://mato.gamato.org/freebsd/aw1n/2010-01-04_05-59-10_panic-8.0-iwi.jpg

FreeBSD mb-aw1n-bsd 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 
15:48:17 UTC 2009 
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


Please note that this is just one of multiple issues I'm having since 
moving from 6.4 to 8.0 and now I'm even worrying about my data etc. :(


What else would you need from me to investigate further please ?

With regards,

Martin

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


Re: 8.0 regression: consecutive panics (iwi / wlan / zfs ?)

2010-01-04 Thread Jeremy Chadwick
On Mon, Jan 04, 2010 at 04:13:36PM +0100, martinko wrote:
 A few hours ago I experienced 3 consecutive panics on this freshly
 installed 8.0, the last panic just 28s into boot sequence.  It seems
 to me that culprit could be iwi/wlan possibly with help from zfs or
 others.
 More details even with screen-shot of the last panic follow.
 
 I have used versions 5.3 to 6.4 on this laptop, the last one being
 the most stable and smooth.  A few weeks ago I moved to 8.0 (fresh
 install) and since then I've been experiencing funny issues.
 
 Last night I was writing an email when I noticed my wi-fi link was
 gone.  I checked /var/log/messages and saw the following:
 
 wlan0: link state changed to DOWN
 wlan0: link state changed to UP
 wlan0: link state changed to DOWN
 wlan0: link state changed to UP
 wlan0: link state changed to DOWN
 wlan0: link state changed to UP
 linux: pid 6189 (skype): syscall inotify_init not implemented
 ZFS NOTICE: Prefetch is disabled by default on i386 -- to enable,
 add vfs.zfs.prefetch_disable=0 to /boot/loader.conf.
 ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable
 behavior.
  Consider tuning vm.kmem_size and vm.kmem_size_max
  in /boot/loader.conf.
 ZFS filesystem version 13
 ZFS storage pool version 13
 
 While wifi weirdness did not impressed me, I was perplexed by ZFS
 messages.  I checked kldstat and indeed ZFS was loaded.  Note that I
 have not attached any ZFS storage devices nor I have ever configured
 ZFS on this laptop.  And before I could investigate any further my
 laptop froze and then rebooted.

The ZFS messages in question get printed when ZFS initialises (in your
case, when the kernel module was loaded).  How or why it got loaded is
beyond me.

In this case would help to post these kinds of kernel messages taken
directly from /var/log/messages instead of from dmesg -- the file in
question is handled by syslog and will have timestamps.

I can't help with the rest of the problems mentioned, sorry.  :-(

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


mounting ext3 for rw

2010-01-04 Thread Zoran Kolic
Hi all!
I prepare to make plug music server with usb connected hard drive,
formated ext3, since the system is ubuntu 9.04 as default. My
rips are back-uped on spare usb disk, formated as ufs. My idea is
to copy files from ufs to ext3 drive, using freebsd. I would
probably enconter inode problem, since modern linuces use inode
as 256, but bsd uses it as 128. I could use knoppix and format
is with -I 128 flag. In ports available is e2fsprogs package with
some utilities that might help. I could also take another approach
and use rsync to avoid all inode puzzles.
What would you recommend as the most reliable? Mounting ext3 as
ext2 poses the question of making it dirty and necessity to
fsck it first on linux system. Also, I found some posts of ina-
bility to have the job done this way on branch 7. I have 8.0
on the laptop I write this and (if memory serves me well) 7.1
on old desktop.
Best reagards

   Zoran

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


Re: mounting ext3 for rw

2010-01-04 Thread Bruce Simpson

You could try this, but it needs patching for FreeBSD:
http://sourceforge.net/projects/ext2fuse/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: mounting ext3 for rw

2010-01-04 Thread Ed Jobs
On Monday 04 January 2010 17:58, Zoran Kolic wrote:
 Hi all!
 I prepare to make plug music server with usb connected hard drive,
 formated ext3, since the system is ubuntu 9.04 as default. My
 rips are back-uped on spare usb disk, formated as ufs. My idea is
 to copy files from ufs to ext3 drive, using freebsd. I would
 probably enconter inode problem, since modern linuces use inode
 as 256, but bsd uses it as 128. I could use knoppix and format
 is with -I 128 flag. In ports available is e2fsprogs package with
 some utilities that might help. I could also take another approach
 and use rsync to avoid all inode puzzles.
 What would you recommend as the most reliable? Mounting ext3 as
 ext2 poses the question of making it dirty and necessity to
 fsck it first on linux system. Also, I found some posts of ina-
 bility to have the job done this way on branch 7. I have 8.0
 on the laptop I write this and (if memory serves me well) 7.1
 on old desktop.
 Best reagards
 
Zoran
 
i have been using the e2fsprogs from the ports collection since 8.0-BETA2 
without any problems*, i think that it will work for you.

* the partition which i mounted was a 256 one too
-- 
Real programmers don't document. If it was hard to write, it should be hard to 
understand.


signature.asc
Description: This is a digitally signed message part.


TIOCSTI possibly broken under 8.0 ?

2010-01-04 Thread Pete French
TIOCSTI appears to be broken - the code attached at the bottom
works fine in 7.x but fails in 8.0. What the code is attempting to
do is to print a prompt for text input, along with an initial
value for that text which can be edited by the user. I am assuming
this is a bug, and not incorrect usage of TIOCSTI, but evven if not
it is still a regression compared to 7.x.

The reason I am intested in this is that this is the code which
is used by /usr/bin/mail to allow the headers to be edited in an
email, so this does break a very basic piece of the base system.

cheers,

-pete.





#include stdio.h
#include sys/ttycom.h

char *src = hello world;

int
main(int argc, char *argv[])
{
char ch;
int c;
char *cp;
char x[512];

puts(Enter text: );
fflush(stdout);

cp = src == NULL ?  : src;
while ((c = *cp++) != '\0') {
ch = c;
ioctl(0, TIOCSTI, ch);
}

fgets(x, 511, stdin);
printf(We got: %s\n, x);
fflush(stdout);
return 0;
}



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


Re: mounting ext3 for rw

2010-01-04 Thread Zoran Kolic
Hi all!

 i have been using the e2fsprogs from the ports collection since 8.0-BETA2 
 without any problems*, i think that it will work for you.
 
 * the partition which i mounted was a 256 one too

K, I could install 8 on old box. Have you partitioned and formatted
the usb drive on freebsd? Or it was done on some linux distro?
Finally, after mounting, I will have to copy files to ext3 drive.
Does it work also flowlessly?
Since the sheevaplug could mount ext3, I have an option to
either rsync or scp to it directories recursive over ethernet
adapters and setting ip addresses. What do you think over this?
Best regards

Zoran

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


Re: 8.0 regression: consecutive panics (iwi / wlan / zfs ?)

2010-01-04 Thread David Wolfskill
On Mon, Jan 04, 2010 at 04:13:36PM +0100, martinko wrote:
 ...
 
 I have used versions 5.3 to 6.4 on this laptop, the last one being the 
 most stable and smooth.  A few weeks ago I moved to 8.0 (fresh install) 
 and since then I've been experiencing funny issues.
 
 Last night I was writing an email when I noticed my wi-fi link was gone. 
  I checked /var/log/messages and saw the following:
 
 wlan0: link state changed to DOWN
 wlan0: link state changed to UP
 wlan0: link state changed to DOWN
 wlan0: link state changed to UP
 wlan0: link state changed to DOWN
 wlan0: link state changed to UP
 ...

While I do not currently use ZFS, the wireless NIC I have been using
most often for the last several months has been iwi0 on my laptop, on
which I track stable/6, stable/7, stable/8, and head on a daily basis.

While I have seen the interface bounce dwn  up repeatedly, and it
refuses to communicate with an Apple Airport AP (while working with
a Linksys WAP11) under head (but the Airport is OK for stable/6 and
stable/7; not sure about stable/8), it has been (at least) several
weeks since my last panic, so I am inclined to suggest that iwi(4)
and wlan(4) are unlikely to be involved in the root cause of the
panic.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpGA8VT0iacl.pgp
Description: PGP signature


Re: TIOCSTI possibly broken under 8.0 ?

2010-01-04 Thread Jeremy Chadwick
On Mon, Jan 04, 2010 at 04:50:26PM +, Pete French wrote:
 TIOCSTI appears to be broken - the code attached at the bottom
 works fine in 7.x but fails in 8.0. What the code is attempting to
 do is to print a prompt for text input, along with an initial
 value for that text which can be edited by the user. I am assuming
 this is a bug, and not incorrect usage of TIOCSTI, but evven if not
 it is still a regression compared to 7.x.
 
 The reason I am intested in this is that this is the code which
 is used by /usr/bin/mail to allow the headers to be edited in an
 email, so this does break a very basic piece of the base system.
 
 cheers,
 
 -pete.
 
 
 
 
 
 #include stdio.h
 #include sys/ttycom.h
 
 char *src = hello world;
 
 int
 main(int argc, char *argv[])
 {
 char ch;
 int c;
 char *cp;
 char x[512];
 
 puts(Enter text: );
 fflush(stdout);
 
 cp = src == NULL ?  : src;
 while ((c = *cp++) != '\0') {
 ch = c;
 ioctl(0, TIOCSTI, ch);
 }
 
 fgets(x, 511, stdin);
 printf(We got: %s\n, x);
 fflush(stdout);
 return 0;
 }

Adding Ed Schouten to the thread, who will probably be able to shed
some light on things.  :-)

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: TIOCSTI possibly broken under 8.0 ?

2010-01-04 Thread Ed Schouten
* Jeremy Chadwick free...@jdc.parodius.com wrote:
 Adding Ed Schouten to the thread, who will probably be able to shed
 some light on things.  :-)

http://80386.nl/pub/tty.diff

Wrote it some time ago, but nobody wanted to test it for me, which made
me asume nobody cared. ;-)

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpEbpxluCqV7.pgp
Description: PGP signature


Re: TIOCSTI possibly broken under 8.0 ?

2010-01-04 Thread Pete French
   http://80386.nl/pub/tty.diff

 Wrote it some time ago, but nobody wanted to test it for me, which made
 me asume nobody cared. ;-)

Ah, well I care a lot and am testing it now, thankyou :-) Will report back
later this evening...

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


Re: mounting ext3 for rw

2010-01-04 Thread Ed Jobs
On Monday 04 January 2010 18:55, Zoran Kolic wrote:
 K, I could install 8 on old box. Have you partitioned and formatted
 the usb drive on freebsd? Or it was done on some linux distro?
 Finally, after mounting, I will have to copy files to ext3 drive.
 Does it work also flowlessly?
 Since the sheevaplug could mount ext3, I have an option to
 either rsync or scp to it directories recursive over ethernet
 adapters and setting ip addresses. What do you think over this?
 Best regards
 
 Zoran
no, it wasn't formated on freebsd. i formatted it under the ArchLinux 
distribution. In addition, the partition was an ext3, not just an ext2. And i 
was able to read/write without any problems (at least i didn't notice any).

Also, the port installed the following files:
fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev 
so even if the journal somehow will get corrupted, it will be possible to fix 
it. (i think that i used the fsck.ext3 utility once, because a friend of mine 
unplugged the drive without unmounting it first and it worked perfectly)

ofc ymmv, but i think that it worths a shot.

on the last part of your question, i'm afraid that i haven't used sheevaplug, 
so i can't be of any assistance there.

hope i was helpful,
Ed

-- 
Real programmers don't document. If it was hard to write, it should be hard 
to understand.


signature.asc
Description: This is a digitally signed message part.


Re: TIOCSTI possibly broken under 8.0 ?

2010-01-04 Thread Pete French
   http://80386.nl/pub/tty.diff

Just tested the patch - works beautifully! Please commit and MFC if
you can :-)

cheers,

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


Re: TIOCSTI possibly broken under 8.0 ?

2010-01-04 Thread Ed Schouten
* Pete French petefre...@ticketswitch.com wrote:
  http://80386.nl/pub/tty.diff
 
 Just tested the patch - works beautifully! Please commit and MFC if
 you can :-)

Done. Will MFC it in two weeks from now.

Greetings,
-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpx5Et2x4Za4.pgp
Description: PGP signature


Re: UTF-8 problem in 8.0

2010-01-04 Thread Sean C. Farley

On Sun, 3 Jan 2010, Derek Kulinski wrote:


Hello Sean,

Sunday, January 3, 2010, 9:03:01 AM, you wrote:

The last commit that I recall (r192561) fixed dashes in front of 
options (.Fl macro) but not dashes present within a man page. 
Personally, I just create an alias for man to call 'LANG=C man' to 
protect against examples with non-ASCII (U+002D) dashes.


Read the commit message[1] for a better explanation of unresolved 
issues.



Sean
   1. http://svn.freebsd.org/viewvc/base?view=revisionrevision=192561


What caused this to be broken? Everything was fine up until 7.2 (or at 
least I didn't notice this earlier)


Previously (to some commit revision), man (nroff) did not have NLS 
enabled, so the output was in ASCII.


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


ath hostap problems

2010-01-04 Thread Nenhum_de_Nos
hail,

I have a Core 2 Duo 2.66 GHz as a wifi ap:

Jan  4 22:31:08 xxx kernel: cpu_reset: Stopping other CPUs
Jan  4 22:31:08 xxx kernel: Copyright (c) 1992-2010 The FreeBSD Project.
Jan  4 22:31:08 xxx kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988,
1989, 1991, 1992, 1993, 1994
Jan  4 22:31:08 xxx kernel: The Regents of the University of California.
All rights reserved.
Jan  4 22:31:08 xxx kernel: FreeBSD is a registered trademark of The
FreeBSD Foundation.
Jan  4 22:31:08 xxx kernel: FreeBSD 8.0-STABLE #0: Sun Jan  3 00:25:30 BRT
2010
Jan  4 22:31:08 xxx kernel: r...@xxx.xxx:/usr/obj/usr/src/sys/xxx amd64
Jan  4 22:31:08 xxx kernel: Timecounter i8254 frequency 1193182 Hz
quality 0
Jan  4 22:31:08 xxx kernel: CPU: Intel(R) Core(TM)2 Duo CPU E6750  @
2.66GHz (2669.34-MHz K8-class CPU)
Jan  4 22:31:08 xxx kernel: Origin = GenuineIntel  Id = 0x6fb  Stepping
= 11

xxx# uname -a
FreeBSD xxx.xxx 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Jan  3 00:25:30 BRT
2010 r...@xxx.xxx:/usr/obj/usr/src/sys/xxx  amd64

cat /etc/hostapd.conf
interface=wlan0
#bridge=bridge0
driver=bsd
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=apartnet2
#macaddr_acl=1
#accept_mac_file=/etc/hostapd/accept
auth_algs=3
eapol_key_index_workaround=0
#eap_server=0
wpa=3
wpa_psk_file=/etc/hostapd/wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
#stakey=0
ieee8021x=0
hw_mode=g

and just get these messages in logs:

Jan  4 22:49:46 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jan  4 22:49:48 xxx last message repeated 4 times
Jan  4 22:49:48 xxx postfix/local[1293]: fatal: open database
/etc/aliases.db: No such file or directory
Jan  4 22:49:48 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jan  4 22:50:03 xxx last message repeated 46 times
Jan  4 22:50:03 xxx kernel:
Jan  4 22:50:03 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jan  4 22:50:19 xxx last message repeated 51 times
Jan  4 22:50:20 xxx kernel:
Jan  4 22:50:20 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jan  4 22:50:33 xxx last message repeated 41 times
Jan  4 22:50:33 xxx kernel:
Jan  4 22:50:33 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jan  4 22:50:49 xxx last message repeated 50 times
Jan  4 22:50:49 xxx postfix/local[1296]: fatal: open database
/etc/aliases.db: No such file or directory
Jan  4 22:50:49 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
Jan  4 22:51:20 xxx last message repeated 98 times
Jan  4 22:51:50 xxx last message repeated 100 times
Jan  4 22:51:50 xxx postfix/local[1297]: fatal: open database
/etc/aliases.db: No such file or directory
Jan  4 22:51:50 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)

I can't even see the network in other computers.

Some time ago I reported this problem in here, but using slower hardware.
and Sam said that was it. That machine was running Linux before and is now
being converted to FreeBSD 8. when in linux, I had some performance
penalties but it works great for internet access.

is there anything I can do to solve this ?

the card is this:

a...@pci0:5:0:0:class=0x02 card=0x3a131186 chip=0x0013168c rev=0x01
hdr=0x00
vendor = 'Atheros Communications Inc.'
device = '802.11a/b/g Wireless Adapter (AR5212)'
class  = network
subclass   = ethernet

the card doesn't support 802.11a though.

I'm about to buy a rum based usb wlan, may be Hawking HWUG1 or TP-LINK
TL-WN321G, to make another freebsd based ap for light internet access. is
this supposed to happen as well ?

thanks,

matheus

-- 
We will call you cygnus,
The God of balance you shall be

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

http://en.wikipedia.org/wiki/Posting_style
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ath hostap problems

2010-01-04 Thread Nenhum_de_Nos

On Tue, January 5, 2010 00:09, Nenhum_de_Nos wrote:
 hail,

 I have a Core 2 Duo 2.66 GHz as a wifi ap:

 Jan  4 22:31:08 xxx kernel: cpu_reset: Stopping other CPUs
 Jan  4 22:31:08 xxx kernel: Copyright (c) 1992-2010 The FreeBSD Project.
 Jan  4 22:31:08 xxx kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988,
 1989, 1991, 1992, 1993, 1994
 Jan  4 22:31:08 xxx kernel: The Regents of the University of California.
 All rights reserved.
 Jan  4 22:31:08 xxx kernel: FreeBSD is a registered trademark of The
 FreeBSD Foundation.
 Jan  4 22:31:08 xxx kernel: FreeBSD 8.0-STABLE #0: Sun Jan  3 00:25:30 BRT
 2010
 Jan  4 22:31:08 xxx kernel: r...@xxx.xxx:/usr/obj/usr/src/sys/xxx amd64
 Jan  4 22:31:08 xxx kernel: Timecounter i8254 frequency 1193182 Hz
 quality 0
 Jan  4 22:31:08 xxx kernel: CPU: Intel(R) Core(TM)2 Duo CPU E6750  @
 2.66GHz (2669.34-MHz K8-class CPU)
 Jan  4 22:31:08 xxx kernel: Origin = GenuineIntel  Id = 0x6fb  Stepping
 = 11

 xxx# uname -a
 FreeBSD xxx.xxx 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Jan  3 00:25:30 BRT
 2010 r...@xxx.xxx:/usr/obj/usr/src/sys/xxx  amd64

 cat /etc/hostapd.conf
 interface=wlan0
 #bridge=bridge0
 driver=bsd
 logger_syslog=-1
 logger_syslog_level=2
 logger_stdout=-1
 logger_stdout_level=2
 debug=0
 dump_file=/tmp/hostapd.dump
 ctrl_interface=/var/run/hostapd
 ctrl_interface_group=0
 ssid=apartnet2
 #macaddr_acl=1
 #accept_mac_file=/etc/hostapd/accept
 auth_algs=3
 eapol_key_index_workaround=0
 #eap_server=0
 wpa=3
 wpa_psk_file=/etc/hostapd/wpa_psk
 wpa_key_mgmt=WPA-PSK
 wpa_pairwise=CCMP
 #stakey=0
 ieee8021x=0
 hw_mode=g

 and just get these messages in logs:

 Jan  4 22:49:46 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
 Jan  4 22:49:48 xxx last message repeated 4 times
 Jan  4 22:49:48 xxx postfix/local[1293]: fatal: open database
 /etc/aliases.db: No such file or directory
 Jan  4 22:49:48 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
 Jan  4 22:50:03 xxx last message repeated 46 times
 Jan  4 22:50:03 xxx kernel:
 Jan  4 22:50:03 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
 Jan  4 22:50:19 xxx last message repeated 51 times
 Jan  4 22:50:20 xxx kernel:
 Jan  4 22:50:20 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
 Jan  4 22:50:33 xxx last message repeated 41 times
 Jan  4 22:50:33 xxx kernel:
 Jan  4 22:50:33 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
 Jan  4 22:50:49 xxx last message repeated 50 times
 Jan  4 22:50:49 xxx postfix/local[1296]: fatal: open database
 /etc/aliases.db: No such file or directory
 Jan  4 22:50:49 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)
 Jan  4 22:51:20 xxx last message repeated 98 times
 Jan  4 22:51:50 xxx last message repeated 100 times
 Jan  4 22:51:50 xxx postfix/local[1297]: fatal: open database
 /etc/aliases.db: No such file or directory
 Jan  4 22:51:50 xxx kernel: ath0: stuck beacon; resetting (bmiss count 4)

 I can't even see the network in other computers.

 Some time ago I reported this problem in here, but using slower hardware.
 and Sam said that was it. That machine was running Linux before and is now
 being converted to FreeBSD 8. when in linux, I had some performance
 penalties but it works great for internet access.

 is there anything I can do to solve this ?

 the card is this:

 a...@pci0:5:0:0:  class=0x02 card=0x3a131186 chip=0x0013168c rev=0x01
 hdr=0x00
 vendor = 'Atheros Communications Inc.'
 device = '802.11a/b/g Wireless Adapter (AR5212)'
 class  = network
 subclass   = ethernet

 the card doesn't support 802.11a though.

 I'm about to buy a rum based usb wlan, may be Hawking HWUG1 or TP-LINK
 TL-WN321G, to make another freebsd based ap for light internet access. is
 this supposed to happen as well ?

 thanks,

 matheus

Using similar configuration file for hostapd, I did test another atheros
based wlan card in same role:

a...@pci0:1:0:0:class=0x02 card=0x3065168c chip=0x001c168c
rev=0x01 hdr=0x00
vendor = 'Atheros Communications Inc.'
device =
'HDAUDIOFUNC_01VEN_1095DEV_1392SUBSYS_10280242REV_1000
(USBVID_147EPID_20165B71A44601)'
class  = network
subclass   = ethernet

this is a pcie part, AFAIK, running on Asus F3T turion based notebook.
Runs FreeBSD 8 as well:

[math...@xxx/usr/home/matheus]$ uname -a
FreeBSD xxx.xxx 8.0-STABLE FreeBSD 8.0-STABLE #5: Sun Jan  3 16:20:25 BRT
2010 r...@xxx.xxx:/usr/obj/usr/src/sys/xxx  amd64

but this time I have no message as tha other box, and the AP works fine.

matheus
-- 
We will call you cygnus,
The God of balance you shall be

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

http://en.wikipedia.org/wiki/Posting_style
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


stat(2) docs

2010-01-04 Thread grarpamp
Where did the chflags(2) part of the stat(2) struct go as documented
in the man page for stat(2) in RELENG_4 but not in RELENG_8?
I can see it in various places on both in /usr/include/sys/stat.h.
I'm not sure what to make of __BSD_VISIBLE yet.
Am I missing a change in how to use stat(2) somewhere?
Thanks.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org