Re: console freeze after ifconfig wlan0 scan with wi(4) pccard device

2011-01-10 Thread Bernhard Schmidt
On Sunday, January 09, 2011 23:22:28 Anton Shterenlikht wrote:
 On amd64 r217010 laptop (HP Compaq 6715s)
 I'm trying to use this wi(4) device:
 
 wi0: The Linksys Group, Inc. Instant Wireless Network PC Card
  at port 0x100-0x13f irq 20 function 0 config 1 on pccard0
 
 I do
 
 # ifconfig wlan0 create wlandev wi0
 # ifconfig -a
 bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTAT
 E
 ether 00:1a:4b:89:4b:4e
 inet 192.168.1.102 netmask 0xff00 broadcast 192.168.1.255
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
 options=3RXCSUM,TXCSUM
 inet 127.0.0.1 netmask 0xff00
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL
 wi0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290
 ether 00:06:25:10:56:3b
 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
 status: no carrier
 wlan0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
 ether 00:06:25:10:56:3b
 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
 status: no carrier
 ssid  channel 1 (2412 MHz 11b)
 country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
 bintval 0
 
 But after
 
 # ifconfig wlan0 up scan
 
 I get console freeze requiring cold reboot.
 No panic, just a LOR:
 
  wi0: The Linksys Group, Inc. Instant Wireless Network PC Card at port
 0x100-0x13f irq 20 function 0 config 1 on pccard0 wlan0: Ethernet address:
 00:06:25:10:56:3b
  lock order reversal:
  1st 0xff80012be018 wi0_com_lock (wi0_com_lock) @
 /usr/src/sys/net80211/ieee80211_scan.c:806 2nd 0xfe0001b8d010 wi0
 (network driver) @ /usr/src/sys/dev/wi/if_wi.c:1083 KDB: stack backtrace:
 [..]

This is a known LOR, many wireless do have that. It happens right after a scan 
iteration if there is a network to connect to.

 In case it matters I've
 
 hw.cbb.start_memory=0xf480
 
 in /boot/loader.conf, according to
 http://www.freebsd.org/cgi/query-pr.cgi?pr=115623

Do you by any change have another device you can test the pccard slot with? 

Also, you might want to try 'ifconfig wlan0 ssid 
somethingwhichdoesdefinitelynotexist up; ifconfig wlan0 list scan'
instead of 'ifconfig wlan0 up scan'.

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


Recent mouse freeze problem with X, different window managers, any browser and flash.

2011-01-10 Thread Edwin L. Culp W.
For a week or so, with up to date, current, ports, etc.  everytime I
open a page that has automatic flash video my mouse freezes and I have
to manually kill X and restart.  I had worked fine for many months.
Yesterday I rebuilt all linux emulation.  All ports are up to date as
of today.  I have no idea where to look.

Anyone else seen this or know where to look.

thanks,

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


Re: HEADS UP: Merge of binutils 2.17

2011-01-10 Thread Anton Shterenlikht
On Fri, Jan 07, 2011 at 09:57:47PM +0100, Dimitry Andric wrote:
 Hi all,

This is slightly OT. I get this error on ia64 which seems to be
binutils related (still 2.15). I just thought if it is, then it
might have an effect on 2.17 as well.

The error seems to be ia64 specific. On amd64 and sparc64 I don't get it.


Installing print/teTeX-base on ia64 gives this:

*snip*
install  -o root -g wheel -m 444 ./mktex.opt 
/usr/local/share/texmf/web2c/mktex.opt
install  -o root -g wheel -m 555 ./mktexdir 
/usr/local/share/texmf/web2c/mktexdir
install  -o root -g wheel -m 444 ./mktexdir.opt 
/usr/local/share/texmf/web2c/mktexdir.opt
install  -o root -g wheel -m 555 ./mktexnam 
/usr/local/share/texmf/web2c/mktexnam
install  -o root -g wheel -m 444 ./mktexnam.opt 
/usr/local/share/texmf/web2c/mktexnam.opt
install  -o root -g wheel -m 555 ./mktexupd 
/usr/local/share/texmf/web2c/mktexupd
/bin/sh ../libtool --mode=install install  -o root -g wheel -m 444 
.libs/libkpathsea.a /usr/local/lib
install -o root -g wheel -m 444 .libs/libkpathsea.a /usr/local/lib/libkpathsea.a
ranlib /usr/local/lib/libkpathsea.a
chmod 644 /usr/local/lib/libkpathsea.a
/bin/sh ../libtool --mode=install install  -s -o root -g wheel -m 555 kpsewhich 
/usr/local/bin
install -o root -g wheel -m 555 -s kpsewhich /usr/local/bin/kpsewhich
install  -s -o root -g wheel -m 555 kpsestat /usr/local/bin
BFD: /usr/local/bin/stmBQcoa: The first section in the PT_DYNAMIC segment is 
not the .dynamic section
strip:/usr/local/bin/stmBQcoa[.interp]: Bad value
BFD: /usr/local/bin/stmBQcoa: The first section in the PT_DYNAMIC segment is 
not the .dynamic section
strip:/usr/local/bin/stmBQcoa: Bad value
install: wait: No such file or directory
gmake[2]: *** [install-exec] Error 70
gmake[2]: Leaving directory 
`/usr/ports/print/teTeX-base/work/tetex-src-3.0/texk/kpathsea'
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory 
`/usr/ports/print/teTeX-base/work/tetex-src-3.0/texk'
gmake: *** [install] Error 1
*** Error code 2

Stop in /usr/ports/print/teTeX-base.


many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


R: Recent mouse freeze problem with X, different window managers, any browser and flash.

2011-01-10 Thread Barbara



For a week or so, with up to date, current, ports, etc.  everytime I
open a page that has automatic flash video my mouse freezes and I have
to manually kill X and restart.  I had worked fine for many months.
Yesterday I rebuilt all linux emulation.  All ports are up to date as
of today.  I have no idea where to look.

Anyone else seen this or know where to look.

thanks,


From what I can see, on CURRENT most of the flash objects are triggering a X 
error.
I can see it on the console where I started X, but I don't remember it now.
I'll post il later.
Anyway Xorg is still working after that.

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


Re: Loading uart module fails

2011-01-10 Thread John Baldwin
On Sunday, January 09, 2011 9:02:15 am Bruce Cran wrote:
 Hi,
 
 I removed uart from my kernel configuration - when I tried to load it
 later as a module I got the following error:
 
 acpi_timer0: couldn't allocate resource (port 0x4008)
 driver bug: Unable to set devclass (devname: (null))

Can you get devinfo -rv output before you try to kldload uart?

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


Re: NFSv4 and pam_mount - mounting user home directories.

2011-01-10 Thread Rick Macklem
  Good to know if it will work with nfsv4 server started via rc.conf
  and
  sysctl values in sysctl.conf..
 
  build a kernel with options NFSD in its config file and then try
  it
  with that kernel, and then you'll find out...
 
 
 How about patching the /etc/rc.d/nfsd script like this:
 
 
 [..]
 nfsd_precmd()
 {
 if checkyesno nfs_server_newnfs_only; then
 echo 'NFS server serving only newnfs (NFSv4)=YES'
 sysctl vfs.newnfs.server_min_nfsvers=4  /dev/null
 fi
 [..]
 
 It checks if there is a
 nfs_server_newnfs_only=YES
 set in rc.conf, and if so, it runs the sysctl command.
 
 But, after testing, it is too late (nfsd starts with NFSv3 support).
 Any idea where to put that patch ?
 
I think you can stick it just before return 0 in /etc/rc.d/nfsd.
(I'd probably just go with the sysctl vfs.newnfs.server_min_nfsvers=4
 line in this case, since you want it unconditionally?)

Or, if you don't want to build a kernel with options NFSD, I think
you can get nfsd.ko loaded early by fiddling with loader.conf, but I'm
not volunteering to figure out what works there:-)

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


Re: NFSv4 and pam_mount - mounting user home directories (with security?)

2011-01-10 Thread Rick Macklem
 
 So I would like NFSv4 to serve user home directories across the
 network for all workstations, but I would like it to protect using
 user password
 
 Eg. on workstation I want to do:
 
 sudo mount -t nfs -o nfsv4 nfs4-server:/home/user1 /home/user1
 and then I want to be asked for password of user1 at server (or in the
 whole network - users and passwords are stored in LDAP server
 and workstation and server have access to it)
 
 Is it possible to do with NFSv4?
 
The short answer is no. The long answer is that you can require users to
have valid kerberos credentials for access to an NFS volume (via v3 or v4).
But that requires the setup of Kerberos and I'm not volunteering to help
with that.:-) There are some good books/tutorials on setting up Kerberos
and it works well, once you wade through the hassles of getting it going.
(Kerberos authenticates the user for access to the server volume. It is
 not a host based authentication for the mount. If you choose to use
 Kerberos, you need to allow the user to do the mount without sudo by
 setting vfs.usermount=1 and then you restrict the server volume(s) with
 the sec= export option.)

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


Re: NFSv4 and pam_mount - mounting user home directories (with security?)

2011-01-10 Thread Marek Salwerowicz

I think you can stick it just before return 0 in /etc/rc.d/nfsd.
(I'd probably just go with the sysctl vfs.newnfs.server_min_nfsvers=4
line in this case, since you want it unconditionally?)

Or, if you don't want to build a kernel with options NFSD, I think
you can get nfsd.ko loaded early by fiddling with loader.conf, but I'm
not volunteering to figure out what works there:-)

rick



Ok, that problem has been solved ;)
In nfs_precmd it checks if the option in rc.conf is set. If yes, it tries to set the sysctl flag, it it fails, loads nfsd module and 
then sets again the sysctl flag.


But I have another question - maybe you will know the answer.

So I would like NFSv4 to serve user home directories across the network for all workstations, but I would like it to protect using 
user password


Eg. on workstation I want to do:

sudo mount -t nfs -o nfsv4 nfs4-server:/home/user1 /home/user1
and then I want to be asked for password of user1 at server (or in the whole network - users and passwords are stored in LDAP server 
and workstation and server have access to it)


Is it possible to do with NFSv4?

--
Marek Salwerowicz 


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