Re: ath and how to control wireless light

2012-02-04 Thread Waitman Gobble
On Thu, Feb 2, 2012 at 6:52 AM, Chris Whitehouse cwhi...@onetel.com wrote:

 Hello

 I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine has a
 combined wireless switch and led. The switch turns the wifi on and off but
 the light stays red.

 The light is supposed to show red for wireless off and blue for wireless
 on. I found some sysctls that control it:
 dev.ath.0.softled: 0
 dev.ath.0.ledpin: 3
 dev.ath.0.ledon: 1
 dev.ath.0.ledidle: 2700

 softled, ledpin and ledon are all set to 0 on boot.
 I set ledpin to 3, then to change the colour of the light I turn on
 softled 0-1, toggle ledon and turn off softled again.

 Can I make that sequence occur, or do something else, to make the led
 change when the button is pressed _and_ keep in sync with whether the
 wireless is on or off?

 With softled=1 the light is blue with a short red flash or red with a
 short blue flash depending on the value of ledon. Also when softled=1 the
 light flashes in it's opposite colour when there is network traffic. So
 it would probably be ok just to leave softled=1 and toggle ledon.

 The wireless device is
 dev.ath.0.%desc: Atheros 5424/2424.

 I think there is a slight glitch with the on/off button, that under some
 circumstances it doesn't turn the wifi on again, which would be much easier
 to test if the light worked.

 Also what is ledidle and what do different settings do?

 Thanks

 Chris
 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org


Hi Chris,

I have an Acer Aspire D150 and the LED hasn't been lit with FreeBSD, 9-rc3,
9-release or 10-current  (with BroadCom and 2 Atheros cards). it did work
with Fedora GNU/Linux 11. I did try setting in loader.conf as recommended
to me to no avail. On one hand it was easy to get the attitude who cares
about the LED anyway but on the other I'm thinking it's a simple little
thing that's important,I guess like maybe buying a new car and it's missing
a knob on the stereo. (?) :) I suppose it probably should work.

Waitman Gobble
San Jose California USA
___
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


FreeBSD custom CD and extra files to be included in the iso

2012-02-04 Thread Amitabh Kant
I have been able to use the make release command to create a custom iso
for FreeBSD which includes some changes to the various bsdinstall scripts.
It all works well as the iso / memory stick images / ftp files are
generated and usable.

What I would now like to do is try adding couple of files, scripts and/or
packages, to this custom iso. I am a little confused on where the files
should be placed so that it is placed in either root's home directory after
installation?

Amitabh
___
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


Re: FreeBSD custom CD and extra files to be included in the iso

2012-02-04 Thread Amitabh Kant
On Sat, Feb 4, 2012 at 2:50 PM, Amitabh Kant amitabhk...@gmail.com wrote:

 I have been able to use the make release command to create a custom iso
 for FreeBSD which includes some changes to the various bsdinstall scripts.
 It all works well as the iso / memory stick images / ftp files are
 generated and usable.

 What I would now like to do is try adding couple of files, scripts and/or
 packages, to this custom iso. I am a little confused on where the files
 should be placed so that it is placed in either root's home directory after
 installation?

 Amitabh


Sorry for not making it clear in my last mail, I am using FreeBSD 9.0
RELEASE on amd64 arch.

Amitabh
___
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


Re: fixating USB Storage

2012-02-04 Thread Mike Clarke
On Saturday 04 February 2012, Conrad J. Sabatier wrote:

 I don't know if anyone else has already mentioned it to you in
 response to this question, but I just very recently switched over to
 using volume labels to mount my partitions instead of device names.
  I was having an ongoing issue where this external USB drive's device
 number assignment would change from one boot to the next, toggling
 back and forth between da0 and da4 (strange!).

Sounds similar to my experience. Normally my internal 4 slot memory card 
reader is assigned devices da[0-3] and when the USB memory stick is 
inserted it comes up as da4. If the USB stick is present on booting 
then it appears as da0 and the card reader is da[1-4]. So it looks like 
occupied slots are given priority when numbers are assigned at boot 
time.

-- 
Mike Clarke
___
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


Re: fixating USB Storage

2012-02-04 Thread Jonathan Vomacka
On Feb 4, 2012 4:54 AM, Mike Clarke jmc-freeb...@milibyte.co.uk wrote:

 On Saturday 04 February 2012, Conrad J. Sabatier wrote:

  I don't know if anyone else has already mentioned it to you in
  response to this question, but I just very recently switched over to
  using volume labels to mount my partitions instead of device names.
   I was having an ongoing issue where this external USB drive's device
  number assignment would change from one boot to the next, toggling
  back and forth between da0 and da4 (strange!).

 Sounds similar to my experience. Normally my internal 4 slot memory card
 reader is assigned devices da[0-3] and when the USB memory stick is
 inserted it comes up as da4. If the USB stick is present on booting
 then it appears as da0 and the card reader is da[1-4]. So it looks like
 occupied slots are given priority when numbers are assigned at boot
 time.

 --
 Mike Clarke
 ___
 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

Do you know if it is different with zfs system?
___
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


Re: ath and how to control wireless light

2012-02-04 Thread Chris Whitehouse

On 04/02/2012 08:37, Waitman Gobble wrote:

On Thu, Feb 2, 2012 at 6:52 AM, Chris Whitehousecwhi...@onetel.com  wrote:


Hello

I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine has a
combined wireless switch and led. The switch turns the wifi on and off but
the light stays red.

The light is supposed to show red for wireless off and blue for wireless
on. I found some sysctls that control it:
dev.ath.0.softled: 0
dev.ath.0.ledpin: 3
dev.ath.0.ledon: 1
dev.ath.0.ledidle: 2700

softled, ledpin and ledon are all set to 0 on boot.
I set ledpin to 3, then to change the colour of the light I turn on
softled 0-1, toggle ledon and turn off softled again.

Can I make that sequence occur, or do something else, to make the led
change when the button is pressed _and_ keep in sync with whether the
wireless is on or off?

With softled=1 the light is blue with a short red flash or red with a
short blue flash depending on the value of ledon. Also when softled=1 the
light flashes in it's opposite colour when there is network traffic. So
it would probably be ok just to leave softled=1 and toggle ledon.

The wireless device is
dev.ath.0.%desc: Atheros 5424/2424.

I think there is a slight glitch with the on/off button, that under some
circumstances it doesn't turn the wifi on again, which would be much easier
to test if the light worked.

Also what is ledidle and what do different settings do?

Thanks

Chris
__**_
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-**
unsubscr...@freebsd.orgfreebsd-questions-unsubscr...@freebsd.org



Hi Chris,

I have an Acer Aspire D150 and the LED hasn't been lit with FreeBSD, 9-rc3,
9-release or 10-current  (with BroadCom and 2 Atheros cards). it did work
with Fedora GNU/Linux 11. I did try setting in loader.conf as recommended
to me to no avail. On one hand it was easy to get the attitude who cares
about the LED anyway but on the other I'm thinking it's a simple little
thing that's important,I guess like maybe buying a new car and it's missing
a knob on the stereo. (?) :) I suppose it probably should work.

Waitman Gobble
San Jose California USA

I have another HP laptop with a Broadcomm card which has a 
button_with_light and it just works. None of the sysctl oids above occur 
though. Maybe I'll swap wireless cards between the two and see what happens.


What is the output of sysctl -a |grep led ?
You'll get lots of enabled's but there might be something that relates 
to led's.


I had to change ledpin from default of 0 to 3 before any of the other 
ones had any effect.


Thanks for the reply anyway.

Chris
___
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


Re: the WD USB 3.0 My Book Essential

2012-02-04 Thread Thomas Mueller
 Ah!, I didn't know that some USB connectors (the receptacle on the computer
 side of the cable,) were for 3.0 and others for 2.0.  How do I discover or
 test my USB receptacles?

USB 3.0 connectors have a somewhat different appearance than USB 2.0 or 1.1 
connectors.

I knew which were which from motherboard labels and documentation.  I built the 
new computer from parts, and two important motherboard features I was looking 
for were UEFI and USB 3.0.

Do you know if your motherboard has USB 3.0?  There are PCI and PCI Express 
adapters with USB 3.0 ports that you can buy.

Tom
___
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


Re: fixating USB Storage

2012-02-04 Thread Mike Clarke
On Saturday 04 February 2012, Jonathan Vomacka wrote:

 On Feb 4, 2012 4:54 AM, Mike Clarke jmc-freeb...@milibyte.co.uk
 wrote:
?
  Sounds similar to my experience. Normally my internal 4 slot memory
  card reader is assigned devices da[0-3] and when the USB memory
  stick is inserted it comes up as da4. If the USB stick is present
  on booting then it appears as da0 and the card reader is da[1-4].
  So it looks like occupied slots are given priority when numbers are
  assigned at boot time.
 

 Do you know if it is different with zfs system?

That was with a UFS basedFreeBSD 8.1-RELEASE system but I've just tested 
it 9.0-RELEASE booting from ZFS and it does just the same.

-- 
Mike Clarke
___
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


setuid directories - or other option?

2012-02-04 Thread Modulok
List,

I have a media project directory shared with windows users via samba. Every
authenticated samba user that accesses the directory is forced to the same
FreeBSD user, 'foo', regardless. The group also has write-access:

drwxrwxr-x  47 foofoo 2.5K Feb  4 05:42 foo/

Local shell users, however, are a problem. Ideally, I want a simliar behavior
for them too i.e. Any files they create in the directory are also owned by the
user 'foo'. How do I do that? (See below about setuid.)

I wouldn't even care who owns the files, so long as file permission bits in
this directory defaulted to 664 so every member of the group 'foo' could edit
them. Can I do this without changing every user's default umask? (I want to
avoid that.) Is there some kind of 'umask for this directory is blah' feature?

I looked at setuid bit on directories. Sounds perfect! BUT I'll be moving to
ZFS soon and from what I gather, it won't work there. I guess I could have a
cron job run every minute and change offending permission bits, but that feels
hacky.

Any other ideas?
-Modulok-
___
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


Re: FreeBSD custom CD and extra files to be included in the iso

2012-02-04 Thread Devin Teske

On Feb 4, 2012, at 1:37 AM, Amitabh Kant wrote:

 On Sat, Feb 4, 2012 at 2:50 PM, Amitabh Kant amitabhk...@gmail.com wrote:
 
 I have been able to use the make release command to create a custom iso
 for FreeBSD which includes some changes to the various bsdinstall scripts.
 It all works well as the iso / memory stick images / ftp files are
 generated and usable.
 
 What I would now like to do is try adding couple of files, scripts and/or
 packages, to this custom iso. I am a little confused on where the files
 should be placed so that it is placed in either root's home directory after
 installation?
 
 Amitabh
 
 
 Sorry for not making it clear in my last mail, I am using FreeBSD 9.0
 RELEASE on amd64 arch.
 


If you use the DRUID (http://druidbsd.sf.net/), this is extremely easy.

Step-by-step instructions...

NOTE: Feel free to use ANY operating system you like, so long as it has (1) 
/bin/sh (2) cvs (3) mkisofs (4) GNU make. Including (but not limited to) Mac OS 
X (with developer tools installed), Cygwin, Linux, and of course, FreeBSD.

1. mkdir druidbsd.sf.net

2. cd druidbsd.sf.net

3. cvs -d:pserver:anonym...@druidbsd.cvs.sourceforge.net:/cvsroot/druidbsd login

NOTE: Press ENTER when prompted for CVS password:

NOTE: Ignore warning about failed to open ~/.cvspass

4. cvs -z3 -d:pserver:anonym...@druidbsd.cvs.sourceforge.net:/cvsroot/druidbsd 
co -P druidbsd/druid

NOTE: The screen will stream information for about 5-10 minutes as it downloads 
510MB of source code to the FreeBSD DRUID installer -- a sysinstall(8) based 
custom FreeBSD 9.0 installer capable of installing *either* i386 or amd64 from 
the same disc (among many many other things).

5. cd druidbsd/druid

NOTE: The DRUID has a special directory in-which anything placed there gets 
copied to the target installation disk automatically after installation of the 
Operating System completes (but before any post-installation scripts are run). 
This directory is called sys_custom and it lives within the RELEASE 
directory. Within sys_custom, files are copied exactly as-is, so since you 
mentioned that you wanted to copy files to /root, let's operate under that 
assumption below.

6. mkdir -p src/freebsd/repos/9.0-RELEASE-amd64/sys_custom/root

7. cp myfiles src/freebsd/repos/9.0-RELEASE-amd64/sys_custom/root/

NOTE: If you want the same files available for the installation of the i386 
release of 9.0-RELEASE, you should repeat the above steps 6-7 with the 
destination directory src/freebsd/repos/9.0-RELEASE/sys_custom/root 
(remember, the DRUID is a unified installer that supports both the installation 
of i386 and amd64 from the same disc).

8. ./configure

9. make freebsd

NOTE: Replace make with gmake if on FreeBSD

NOTE: If you're using FreeBSD, you may have to first say pkg_add -r gmake 
followed by rehash (if using csh or tcsh as your shell).

NOTE: Also, if you need to get mkisofs, it's pkg_add -r cdrtools (and 
again, rehash if using csh or tcsh as your shell).

10. You now have a custom FreeBSD_Druid-9.0b56.iso that will install your 
custom files automatically to /root when either i386 or amd64 is installed.

ASIDE: sys_custom is like a dumping ground for anything and everything you 
simply want to be copied to-disk post-installation of the OS. If instead you 
want to write scripts to be run as part of the post-installation process, see 
instead dep/freebsd/run_once/template.sh and 
src/freebsd/repos/9.0-RELEASE/run_once/*.sh and 
src/freebsd/repos/9.0-RELEASE-amd64/run_once/*.sh. The run_once directory 
unlike sys_custom is a dumping ground for post-installation scripts (any 
script ending in .sh in that directory will automatically be executed as part 
of the post-installation procedure after installing the OS.

ASIDE: As you can tell, the DRUID is a FreeBSD installer that was designed to 
be *easily* extended by anybody/everybody on any OS they like (any OS that can 
produce or edit an ISO that is).
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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


Re: ath and how to control wireless light

2012-02-04 Thread Waitman Gobble
On Sat, Feb 4, 2012 at 3:52 AM, Chris Whitehouse cwhi...@onetel.com wrote:

 On 04/02/2012 08:37, Waitman Gobble wrote:

 On Thu, Feb 2, 2012 at 6:52 AM, Chris Whitehousecwhi...@onetel.com
  wrote:

  Hello

 I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine has a
 combined wireless switch and led. The switch turns the wifi on and off
 but
 the light stays red.

 The light is supposed to show red for wireless off and blue for wireless
 on. I found some sysctls that control it:
 dev.ath.0.softled: 0
 dev.ath.0.ledpin: 3
 dev.ath.0.ledon: 1
 dev.ath.0.ledidle: 2700

 softled, ledpin and ledon are all set to 0 on boot.
 I set ledpin to 3, then to change the colour of the light I turn on
 softled 0-1, toggle ledon and turn off softled again.

 Can I make that sequence occur, or do something else, to make the led
 change when the button is pressed _and_ keep in sync with whether the
 wireless is on or off?

 With softled=1 the light is blue with a short red flash or red with a
 short blue flash depending on the value of ledon. Also when softled=1 the
 light flashes in it's opposite colour when there is network traffic. So
 it would probably be ok just to leave softled=1 and toggle ledon.

 The wireless device is
 dev.ath.0.%desc: Atheros 5424/2424.

 I think there is a slight glitch with the on/off button, that under some
 circumstances it doesn't turn the wifi on again, which would be much
 easier
 to test if the light worked.

 Also what is ledidle and what do different settings do?

 Thanks

 Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questionshttp://lists.freebsd.org/**mailman/listinfo/freebsd-**questions
 http://lists.**freebsd.org/mailman/listinfo/**freebsd-questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.orgfreebs**d-questions-unsubscribe@**freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 


 Hi Chris,

 I have an Acer Aspire D150 and the LED hasn't been lit with FreeBSD,
 9-rc3,
 9-release or 10-current  (with BroadCom and 2 Atheros cards). it did work
 with Fedora GNU/Linux 11. I did try setting in loader.conf as recommended
 to me to no avail. On one hand it was easy to get the attitude who cares
 about the LED anyway but on the other I'm thinking it's a simple little
 thing that's important,I guess like maybe buying a new car and it's
 missing
 a knob on the stereo. (?) :) I suppose it probably should work.

 Waitman Gobble
 San Jose California USA

  I have another HP laptop with a Broadcomm card which has a
 button_with_light and it just works. None of the sysctl oids above occur
 though. Maybe I'll swap wireless cards between the two and see what happens.

 What is the output of sysctl -a |grep led ?
 You'll get lots of enabled's but there might be something that relates
 to led's.

 I had to change ledpin from default of 0 to 3 before any of the other ones
 had any effect.

 Thanks for the reply anyway.

 Chris


Oh thats a good idea :) Thanks

here's what someone recommended :

dev.ath.0.ledpin=3
dev.ath.0.softled=1

but here are some extras i found from sysctl -a that i will check out:

dev.ath.0.ledon: 0
dev.ath.0.ledidle: 2700
dev.ath.0.hardled: 0
dev.ath.0.led_net_pin: -1
dev.ath.0.led_pwr_pin: -1

Waitman Gobble
San Jose California USA
___
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


Re: ath and how to control wireless light

2012-02-04 Thread Waitman Gobble
On Sat, Feb 4, 2012 at 8:49 AM, Waitman Gobble gobble...@gmail.com wrote:



 On Sat, Feb 4, 2012 at 3:52 AM, Chris Whitehouse cwhi...@onetel.comwrote:

 On 04/02/2012 08:37, Waitman Gobble wrote:

  On Thu, Feb 2, 2012 at 6:52 AM, Chris Whitehousecwhi...@onetel.com
  wrote:

  Hello

 I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine has a
 combined wireless switch and led. The switch turns the wifi on and off
 but
 the light stays red.

 The light is supposed to show red for wireless off and blue for wireless
 on. I found some sysctls that control it:
 dev.ath.0.softled: 0
 dev.ath.0.ledpin: 3
 dev.ath.0.ledon: 1
 dev.ath.0.ledidle: 2700

 softled, ledpin and ledon are all set to 0 on boot.
 I set ledpin to 3, then to change the colour of the light I turn on
 softled 0-1, toggle ledon and turn off softled again.

 Can I make that sequence occur, or do something else, to make the led
 change when the button is pressed _and_ keep in sync with whether the
 wireless is on or off?

 With softled=1 the light is blue with a short red flash or red with a
 short blue flash depending on the value of ledon. Also when softled=1
 the
 light flashes in it's opposite colour when there is network traffic.
 So
 it would probably be ok just to leave softled=1 and toggle ledon.

 The wireless device is
 dev.ath.0.%desc: Atheros 5424/2424.

 I think there is a slight glitch with the on/off button, that under some
 circumstances it doesn't turn the wifi on again, which would be much
 easier
 to test if the light worked.

 Also what is ledidle and what do different settings do?

 Thanks

 Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questionshttp://lists.freebsd.org/**mailman/listinfo/freebsd-**questions
 http://lists.**freebsd.org/mailman/listinfo/**freebsd-questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.orgfreebs**d-questions-unsubscribe@**freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 


 Hi Chris,

 I have an Acer Aspire D150 and the LED hasn't been lit with FreeBSD,
 9-rc3,
 9-release or 10-current  (with BroadCom and 2 Atheros cards). it did work
 with Fedora GNU/Linux 11. I did try setting in loader.conf as recommended
 to me to no avail. On one hand it was easy to get the attitude who cares
 about the LED anyway but on the other I'm thinking it's a simple little
 thing that's important,I guess like maybe buying a new car and it's
 missing
 a knob on the stereo. (?) :) I suppose it probably should work.

 Waitman Gobble
 San Jose California USA

  I have another HP laptop with a Broadcomm card which has a
 button_with_light and it just works. None of the sysctl oids above occur
 though. Maybe I'll swap wireless cards between the two and see what happens.

 What is the output of sysctl -a |grep led ?
 You'll get lots of enabled's but there might be something that relates
 to led's.

 I had to change ledpin from default of 0 to 3 before any of the other
 ones had any effect.

 Thanks for the reply anyway.

 Chris


 Oh thats a good idea :) Thanks

 here's what someone recommended :

 dev.ath.0.ledpin=3
 dev.ath.0.softled=1

 but here are some extras i found from sysctl -a that i will check out:

 dev.ath.0.ledon: 0
 dev.ath.0.ledidle: 2700
 dev.ath.0.hardled: 0
 dev.ath.0.led_net_pin: -1
 dev.ath.0.led_pwr_pin: -1

 Waitman Gobble
 San Jose California USA


in if_athvar.h
  sc_softled  : 1,/* enable LED gpio status */
  sc_hardled  : 1,/* enable MAC LED status */

if_ath_sysctl.c: ath_sysctl_hardled, I, enable/disable hardware LED
support);
if_ath_sysctl.c: /* XXX Laziness - configure pins, then flip hardled off/on
*/
if_athvar.h: sc_hardled  : 1,/* enable MAC LED status

this one maybe?

p00ntang# grep led_pwr_pin *
if_ath.c: sc-sc_led_pwr_pin = -1;
if_ath_led.c: if (sc-sc_led_pwr_pin  0)
if_ath_led.c: ath_hal_gpioCfgOutput(sc-sc_ah, sc-sc_led_pwr_pin,
if_ath_sysctl.c: led_pwr_pin, CTLFLAG_RW, sc-sc_led_pwr_pin, 0,
if_athvar.h: int sc_led_pwr_pin; /* MAC power LED GPIO pin */
___
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


Re: the WD USB 3.0 My Book Essential

2012-02-04 Thread Roland Smith
On Fri, Feb 03, 2012 at 05:59:43PM -0500, Henry Olyer wrote:
 Ah!, I didn't know that some USB connectors (the receptacle on the computer
 side of the cable,) were for 3.0 and others for 2.0.  How do I discover or
 test my USB receptacles?

The plastic bits inside a USB 3 connector are usually blue.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpcbNQWTdj04.pgp
Description: PGP signature


Re: ath and how to control wireless light

2012-02-04 Thread Waitman Gobble
On Sat, Feb 4, 2012 at 9:02 AM, Waitman Gobble gobble...@gmail.com wrote:



 On Sat, Feb 4, 2012 at 8:49 AM, Waitman Gobble gobble...@gmail.comwrote:



 On Sat, Feb 4, 2012 at 3:52 AM, Chris Whitehouse cwhi...@onetel.comwrote:

 On 04/02/2012 08:37, Waitman Gobble wrote:

  On Thu, Feb 2, 2012 at 6:52 AM, Chris Whitehousecwhi...@onetel.com
  wrote:

  Hello

 I have FreeBSD 9R amd64 installed on a HP G60 laptop. This machine has
 a
 combined wireless switch and led. The switch turns the wifi on and off
 but
 the light stays red.

 The light is supposed to show red for wireless off and blue for
 wireless
 on. I found some sysctls that control it:
 dev.ath.0.softled: 0
 dev.ath.0.ledpin: 3
 dev.ath.0.ledon: 1
 dev.ath.0.ledidle: 2700

 softled, ledpin and ledon are all set to 0 on boot.
 I set ledpin to 3, then to change the colour of the light I turn on
 softled 0-1, toggle ledon and turn off softled again.

 Can I make that sequence occur, or do something else, to make the led
 change when the button is pressed _and_ keep in sync with whether the
 wireless is on or off?

 With softled=1 the light is blue with a short red flash or red with a
 short blue flash depending on the value of ledon. Also when softled=1
 the
 light flashes in it's opposite colour when there is network traffic.
 So
 it would probably be ok just to leave softled=1 and toggle ledon.

 The wireless device is
 dev.ath.0.%desc: Atheros 5424/2424.

 I think there is a slight glitch with the on/off button, that under
 some
 circumstances it doesn't turn the wifi on again, which would be much
 easier
 to test if the light worked.

 Also what is ledidle and what do different settings do?

 Thanks

 Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questionshttp://lists.freebsd.org/**mailman/listinfo/freebsd-**questions
 http://lists.**freebsd.org/mailman/listinfo/**freebsd-questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.orgfreebs**d-questions-unsubscribe@**freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 


 Hi Chris,

 I have an Acer Aspire D150 and the LED hasn't been lit with FreeBSD,
 9-rc3,
 9-release or 10-current  (with BroadCom and 2 Atheros cards). it did
 work
 with Fedora GNU/Linux 11. I did try setting in loader.conf as
 recommended
 to me to no avail. On one hand it was easy to get the attitude who
 cares
 about the LED anyway but on the other I'm thinking it's a simple little
 thing that's important,I guess like maybe buying a new car and it's
 missing
 a knob on the stereo. (?) :) I suppose it probably should work.

 Waitman Gobble
 San Jose California USA

  I have another HP laptop with a Broadcomm card which has a
 button_with_light and it just works. None of the sysctl oids above occur
 though. Maybe I'll swap wireless cards between the two and see what happens.

 What is the output of sysctl -a |grep led ?
 You'll get lots of enabled's but there might be something that relates
 to led's.

 I had to change ledpin from default of 0 to 3 before any of the other
 ones had any effect.

 Thanks for the reply anyway.

 Chris


 Oh thats a good idea :) Thanks

 here's what someone recommended :

 dev.ath.0.ledpin=3
 dev.ath.0.softled=1

 but here are some extras i found from sysctl -a that i will check out:

 dev.ath.0.ledon: 0
 dev.ath.0.ledidle: 2700
 dev.ath.0.hardled: 0
 dev.ath.0.led_net_pin: -1
 dev.ath.0.led_pwr_pin: -1

 Waitman Gobble
 San Jose California USA


 in if_athvar.h
   sc_softled  : 1,/* enable LED gpio status */
   sc_hardled  : 1,/* enable MAC LED status */

 if_ath_sysctl.c: ath_sysctl_hardled, I, enable/disable hardware LED
 support);
 if_ath_sysctl.c: /* XXX Laziness - configure pins, then flip hardled
 off/on */
 if_athvar.h: sc_hardled  : 1,/* enable MAC LED status

 this one maybe?

 p00ntang# grep led_pwr_pin *
 if_ath.c: sc-sc_led_pwr_pin = -1;
 if_ath_led.c: if (sc-sc_led_pwr_pin  0)
 if_ath_led.c: ath_hal_gpioCfgOutput(sc-sc_ah, sc-sc_led_pwr_pin,
 if_ath_sysctl.c: led_pwr_pin, CTLFLAG_RW, sc-sc_led_pwr_pin, 0,
 if_athvar.h: int sc_led_pwr_pin; /* MAC power LED GPIO pin */




It looks like all the LED code is in if_ath_led.c :)

   /* Software LED blinking - GPIO controlled LED */
if (sc-sc_softled) {
ath_hal_gpioCfgOutput(sc-sc_ah, sc-sc_ledpin,
HAL_GPIO_MUX_OUTPUT);
ath_hal_gpioset(sc-sc_ah, sc-sc_ledpin, !sc-sc_ledon);
}

/* Hardware LED blinking - MAC controlled LED */
if (sc-sc_hardled) {
/*
 * Only enable each LED if required.
 *
 * Some NICs only have one LED connected; others may
 * have GPIO1/GPIO2 connected to other hardware.
 */
if (sc-sc_led_pwr_pin  0)
   

Re: Jails V2, VIMAGE, and integration in the base system

2012-02-04 Thread Hugo Silva

On 02/03/12 17:02, Devin Teske wrote:

Please give this a try:

http://druidbsd.sf.net/vimage.shtml
http://druidbsd.sf.net/download.shtml



Hi,

Interesting.

Is it safe to run in production (VIMAGE/vnets) ?
___
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


Re: Jails V2, VIMAGE, and integration in the base system

2012-02-04 Thread Devin Teske

On Feb 4, 2012, at 10:45 AM, Hugo Silva wrote:

 On 02/03/12 17:02, Devin Teske wrote:
 Please give this a try:
 
 http://druidbsd.sf.net/vimage.shtml
 http://druidbsd.sf.net/download.shtml
 
 
 Hi,
 
 Interesting.
 
 Is it safe to run in production (VIMAGE/vnets) ?

I can't speak to every application, release, or even purpose, but we've been 
using between 2 and 3 dozen vimages for various purposes without problem on 
8.1-RELEASE-p6 (just haven't got around to updating to -p7 which is lated 
RELENG_8_1 security patch).

We've been running amd64 hosts with both amd64 and i386 jails. Doing compiler 
builds, using them as web servers, shell servers, bastion's, gateways, proxies 
(both shell and web), and even for running legacy releases of FreeBSD (running 
4.11 i386 on an amd64 8.1 host).

So the VIMAGE/vnets support seems pretty stable in 8.1-RELEASE.

Oh, we did have to MFC SVN r207194 to fix a bug in sys/net/rtsock.c when 
running i386 route(8) in VIMAGE under amd64 host. Though you don't have to 
apply the patch, as the workaround was simple -- copy the host's amd64 route(8) 
over vimage's i386 one. That's really the only bug we ever hit, but your 
mileage may vary. We've been generally very happy with VIMAGE/vnets so far.

Now, with respect to the script being production ready, I'd say yes with one 
minor nit...

Unnecessarily starting/stopping vimages after boot is bad for two reasons:
1. In 8.1-RELEASE there's an necessary loss in VM pages everytime you remove a 
vimage jail with jail -r (this has been fixed in later releases).
2. The Ethernet HW address auto-calculations performed in my script are based 
on the order in which vimages are started and stopped. This is easily overcome 
by setting the HW address in the ifconfig_* line within rc.conf(5) (within the 
vimage rootdir).
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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


Can I use qjail on FreeBSD 9.0?

2012-02-04 Thread masayoshi
Hi

Can I use qjail on FreeBSD 9.0?
I

# qjail install  log

Could not fetch base from ftp2.freebsd.org.
Maybe your release (9.0-RELEASE) is specified incorrectly or
the host ftp2.freebsd.org does not provide that release build.
Use the -r option to specify an existing release or the -h option to
specify an alternative ftp server.

# less log 
pub/FreeBSD/releases/amd64/9.0-RELEASE/base: No such file or directory.
pub/FreeBSD/snapshot/amd64/9.0-RELEASE/base: No such file or directory.
pub/FreeBSD/amd64/9.0-RELEASE/base: No such file or directory.
releases/amd64/9.0-RELEASE/base: No such file or directory.
snapshots/amd64/9.0-RELEASE/base: No such file or directory.

# pkg_info | grep qjail
qjail-1.1_1 Utility to quickly deploy and manage large numbers of jails

Thanks in advance.

 
--- 

masayoshi  Ayumi Kinoshita
___
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


gpt zfs raidz1 boot failure

2012-02-04 Thread Chris Jones
I have a raidz1 in degraded mode, with only 1 disk available. When I try 
to boot it, I get this:


ZFS: can only boot from disk, mirror, raidz1, raidz2 and raidz3 vdevs
ZFS: i/o error - all block copies unavailable
ZFS: can't read MOS
ZFS: unexpected object set type 0
...followed by a couple of attempts to load maxroot/boot/kernel/kernel.

I've carefully followed the instructions at 
http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE -- except that 
I'm starting with a degraded zfs so I can transition my data from 
gmirror. Here's more system info:


maxwell$ uname -a
FreeBSD maxwell.cjones.org 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  
3 07:15:25 UTC 2012 
r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


maxwell# gpart show ada2
=   34  488281183  ada2  GPT  (232G)
 34128 1  freebsd-boot  (64k)
162  488281055 2  freebsd-zfs  (232G)

maxwell# zpool status
  pool: maxroot
 state: DEGRADED
status: One or more devices has been taken offline by the administrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using 'zpool online' or replace the device with
'zpool replace'.
 scan: none requested
config:

NAME STATE READ WRITE CKSUM
maxroot  DEGRADED 0 0 0
  raidz1-0   DEGRADED 0 0 0
ada2p2   ONLINE   0 0 0
8747991784175675917  OFFLINE  0 0 0  was 
/usr/bigfile


errors: No known data errors


The errors seem to indicate that it's getting to the first- and 
second-stage bootstrap, but it's unable to load /boot/zfsloader; 
correct? The first line of error text seems to indicate that the 
bootstrap thinks my pool isn't a raidz1; but the output of zpool says 
otherwise. Any thoughts?


Chris
___
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


Re: HowTo easy use IPFW

2012-02-04 Thread Julian Elischer

On 2/4/12 10:53 PM, Julian Elischer wrote:

On 2/2/12 1:33 AM, Коньков Евгений wrote:
this is the mine script which helps me keep my firewall very clean 
and safe.


It is easy to understand even if you have a thousands ruBTWles, I 
think =)


please comment.

PS. If anybody may, please put into ports tree. thank you.


it would probably be get more response if it was in a file format we 
had heard of.. like tar..


WTF is a .rar  file?

BTW the  stuffit expander on a Mac seems to be able to handle it..

I can see that this would allow you to manage very complex rule sets 
while keeping errors under control.


I find the syntax hard to follow however
 I guess that comes from it being a relatively simple perl script 
doing the work.


it would be nice to get rid of the line numbers entirely in the 
specifications
and allow the program to completely specify them using symbolic 
definitions instead.








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


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




___
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


Re: HowTo easy use IPFW

2012-02-04 Thread Julian Elischer

On 2/2/12 1:33 AM, Коньков Евгений wrote:

this is the mine script which helps me keep my firewall very clean and safe.

It is easy to understand even if you have a thousands rules, I think =)

please comment.

PS. If anybody may, please put into ports tree. thank you.


it would probably be get more response if it was in a file format we 
had heard of.. like tar..


WTF is a .rar  file?



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


___
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


Re: HowTo easy use IPFW

2012-02-04 Thread Kevin Oberman
2012/2/4 Julian Elischer jul...@freebsd.org:
 On 2/2/12 1:33 AM, Коньков Евгений wrote:

 this is the mine script which helps me keep my firewall very clean and
 safe.

 It is easy to understand even if you have a thousands rules, I think =)

 please comment.

 PS. If anybody may, please put into ports tree. thank you.


 it would probably be get more response if it was in a file format we had
 heard of.. like tar..

 WTF is a .rar  file?

rar is a compression and archiving tool used commonly for bittorrent.
The tool to extract files is in port archivers/rar, but it's
commercial and a proprietary format. The free tool is only capable of
extracting, not compressing. It is reported that its compression is
very good, better than bzip2, xz and can even do a reasonable job of
compressing things like already compressed video formats. (Probably
why it became popular for bittorrent.)

R. Kevin Oberman, Network Engineer
E-mail: kob6...@gmail.com
___
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