kern/87758: Reboot problem with atheros wireless card (DWL-G520)

Paulo Fragoso paulo at nlink.com.br
Sat Jul 8 13:37:06 UTC 2006


Hi,

This problem are happening yet using FreeBSD 6.x, but there are some 
motherboards  working fine like Gigabyte GA-K8NS.

I'm using a perl script to workaround this problem on all motherboards:

=================================================================
#!/usr/bin/perl -T

$ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin';
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};

$debug = 0;
$wlans="ath";

$cmd = "/sbin/ifconfig -l";
print "DEBUG: Executa: $cmd\n" if $debug;
$nics = qx( $cmd );

@tipos = split( /\s+/, $wlans );
@nic = split( /\s+/, $nics );

$k = 0;
for( $i = 0 ; $i <= $#tipos ; $i++ ){
  $tmp = $tipos[ $i ];
  print "DEBUG: Veifica o tipo: $tmp\n" if $debug;
  for( $j = 0 ; $j <= $#nic ; $j++ ){
    if( $nic[ $j ] =~ /$tmp/ ){
      print "DEBUG: Encontrou: $nic[ $j ]\n" if $debug;
      if( $nic[ $j ] =~ /^(\w+)$/ ){
        $interface[ $k++ ] = $1;
      }
    }
  }
}

for( $k = 0 ; $k <= $#interface ; $k++ ){
  $cmd = "/sbin/ifconfig $interface[ $k ] down";
  print "DEBUG: $cmd\n" if $debug;
  qx( $cmd );
}

print "DEBUG: Reiniciando...\n" if $debug;
qx( reboot );
=================================================================

All cards listed in $wlans have yours state changed to down before 
reboot, now we can reboot all servers with atheros card.

Paulo.

FreeBSD-gnats-submit at FreeBSD.org escreveu, Em 20/10/2005 18:00:
> Thank you very much for your problem report.
> It has the internal identification `kern/87758'.
> The individual assigned to look at your
> report is: freebsd-bugs. 
>
> You can access the state of your problem report at any time
> via this link:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=87758
>
>   
>> Category:       kern
>> Responsible:    freebsd-bugs
>> Synopsis:       Reboot problem with atheros wireless card (DWL-G520)
>> Arrival-Date:   Thu Oct 20 21:00:34 GMT 2005
>>     


More information about the freebsd-bugs mailing list