Pagina 1 di 2

[RISOLTO] Ndiswrapper,SIOCSIFFLAGS:No such file or directory

Inviato: gio 16 ott 2008, 18:21
da Vic Steele
Salve a tutti.

Sto per la prima volta configurando una scheda di rete Wireless su un portatile, un HP Pavilion zv5467EA.
Il portatile in questione monta Slackware 12.1, e gli ho compilato il 2.6.27.1 .
Accade che tutto funziona senza problemi, eccetto la scheda di rete wlan0. In questo momento sto postando proprio dal portatile in questione, collegato in Ethernet.

lspci -v
02:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
Subsystem: Hewlett-Packard Company NX9500 Built-in Wireless
Flags: bus master, fast devsel, latency 64, IRQ 17
Memory at e0104000 (32-bit, non-prefetchable) [size=8K]
Kernel driver in use: b43-pci-bridge
Kernel modules: ssb
Ho installato ndiswrapper e questi driver.

Codice: Seleziona tutto

bash-3.1# ndiswrapper -l
bcmwl5 : driver installed
	device (14E4:4320) present (alternate driver: ssb)
Al lancio del demone rc.inet1 ecco gli errori:

Codice: Seleziona tutto

bash-3.1# sh /etc/rc.d/rc.inet1 restart
Polling for DHCP server on interface eth0:
dhcpcd: MAC address = 00:0f:b0:4a:d2:18
dhcpcd: your IP address = 192.168.0.8
SIOCSIFFLAGS: No such file or directory
/etc/rc.d/rc.wireless.conf: line 228: [y: command not found
/etc/rc.d/rc.inet1:  wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
wlan0     no private ioctls.

wlan0     no private ioctls.

wlan0     no private ioctls.

Polling for DHCP server on interface wlan0:
SIOCSIFFLAGS: No such file or directory
iwconfig:

Codice: Seleziona tutto

bash-3.1# iwconfig
lo        no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"NETGEAR"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=0 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.
Il mio /etc/rc.d/rc.inet1.conf:

Codice: Seleziona tutto

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="192.168.0.1"

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.0.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="192.168.0.1"
DHCP_KEEPRESOLV[4]="yes"
DHCP_KEEPNTP[4]="yes"
DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=NETGEAR
WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set 
WPAPSK=[b]miocodicewpa[/b]"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
Cos'è che sto sbagliando?

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 18:35
da conraid
Al di la del fatto che dal 2.6.25 in poi ho smesso di usare rc.inet1 per il wifi perché non mi funziona come dovrebbe (ma è colpa dei driver, solo che da proprio quell'errore), noto che hai degli errori, cioè delle cose duplicate

per esempio
WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set
WPAPSK=miocodicewpa"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="ndiswrapper"

perché tutto questo?
basta
WLAN_WPA[4]="wpa_supplicant"
e da /etc/wpa_supplicant dai password, etc... altrimenti a che ti serve wlan_wpa?

Io ho solamente

Codice: Seleziona tutto

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
e funzionerebbe bene se non fosse che non riconosce quando il wifi è spento o acceso (colpa di rf_kill immagino)

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 18:39
da phobos3576
Come hai fatto ad installare ndiswrapper?

L'attuale package presente qui su Slacky non compila con i kernel 2.6.27.x e ti avrebbe dovuto dare errore; non è che stai usando la vecchia installazione di ndiswrapper?
Ogni volta che installi un nuovo kernel, devi rimuovere il vecchio package ndiswrapper e poi reinstallarlo; infatti, ndiswrapper è un vero e proprio modulo che va a sistemarsi nel kernel correntemente in uso.

Se vuoi utilizzare ndiswrapper con i kernel 2.6.27.x devi scaricare la versione SVN; puoi anche modificare il vecchio SlackBuild per generare la versione aggiornata del package.

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 19:15
da Vic Steele
Seguito entrambi, ma ancora problemi.

Phobos aveva ragione, avevo installato ndiswrapper prima di compilare il nuovo kernel, infatti provando a reinstallare il pacchetto o a cercare il modulo ndiswrapper mi dava errore.
Ho così scaricato l'SVN e modificato lo SlackBuild, ed il pacchetto è stato correttamente compilato ed installato.

L'errore, comunque, continuava ad essere lo stesso. L'unica cosa è che ora il modprobe ndiswrapper non mi restituisce più errore di modulo inesistente.
Ho così settato con le dritte di Conraid, ottenendo questo errore al riavvio del demone:
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device wlan0 ; Operation not supported.
Oltre sempre alla citazione dell'inesistente SIOCSIFFLAGS.
Provato, per scrupolo, anche a disattivare le protezioni della rete, ed a commentare i WPA. Errore SIOCSIFFLAGS.

Non è accesa neanche la spia del Wireless sul PC, deduco quindi che il problema sia a monte e riguarda proprio il riconoscimento corretto dell'hardware, anche se alle query mi risponde come ho già riportato.

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 19:53
da neongen
prima di caricare ndiswrapper hai rimosso (e messo in blacklist ssb, b43, bcm43xxx, varie ed eventuali)?
i driver broadcom non supportano la tua scheda?

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 19:55
da Vic Steele
Ho rimosso tutto alla ricompilazione del kernel, tranne ssb.
Dovevo farlo?

I driver li provo ad installare tranquillamente o dovrei fare qualcosa prima?

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 20:11
da neongen
:dontknow: su ubuntu (non era mio il pc ok! 8-[ ) non li ho compilati... leggi che c'è scritto dentro e leggi la licenza.

se vuoi riprovare con ndiswrapper

Codice: Seleziona tutto

/etc/rc.d/rc.inet1 stop
rmmod ndiswrapper
rmmod ssb
modprobe ndiswrapper
/etc/rc.d/rc.inet1 start

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: gio 16 ott 2008, 20:22
da Vic Steele
Ho disabilitato i moduli b43, ohci_hcd e ssb, ed è cambiato qualcosa.
Il led WiFi si è acceso, e inet1 mi dice:

Codice: Seleziona tutto

bash-3.1# /etc/rc.d/rc.inet1 restart
Polling for DHCP server on interface eth0:
No carrier detected on eth0.  Reducing DHCP timeout to 10 seconds.
dhcpcd: MAC address = 00:0f:b0:4a:d2:18
/etc/rc.d/rc.inet1:  wlan0 information: 'Any ESSID'
Polling for DHCP server on interface wlan0:
dhcpcd: MAC address = 00:90:4b:9f:99:9f
Non riesce ad ottenere il DHCP, però non dà più errori. Ovviamente non funziona.
Cosa sarà?
Provo nel frattempo a disattivare, di nuovo, le protezioni.


EDIT: Vi scrivo connesso in WiFi. Funge.
Però ho dovuto disabilitare il WPA e ho una rete non protetta.
Credo di potermela vedere da solo in questo momento, in caso contrario posterò ancora.

Vi ringrazio come sempre, riuscite a risolvere ogni problema!

RI-EDIT: E anche il WPA ora funge.

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: mar 28 ott 2008, 15:35
da carmine65
Vic Steele ha scritto:Ho disabilitato i moduli b43, ohci_hcd e ssb, ed è cambiato qualcosa.
Il led WiFi si è acceso, e inet1 mi dice:

Codice: Seleziona tutto

bash-3.1# /etc/rc.d/rc.inet1 restart
Polling for DHCP server on interface eth0:
No carrier detected on eth0.  Reducing DHCP timeout to 10 seconds.
dhcpcd: MAC address = 00:0f:b0:4a:d2:18
/etc/rc.d/rc.inet1:  wlan0 information: 'Any ESSID'
Polling for DHCP server on interface wlan0:
dhcpcd: MAC address = 00:90:4b:9f:99:9f
Non riesce ad ottenere il DHCP, però non dà più errori. Ovviamente non funziona.
Cosa sarà?
Provo nel frattempo a disattivare, di nuovo, le protezioni.


EDIT: Vi scrivo connesso in WiFi. Funge.
Però ho dovuto disabilitare il WPA e ho una rete non protetta.
Credo di potermela vedere da solo in questo momento, in caso contrario posterò ancora.

Vi ringrazio come sempre, riuscite a risolvere ogni problema!

RI-EDIT: E anche il WPA ora funge.
Ciao,

stessa scheda e stesso problema + o meno. A me non funziona solo il WPA. Mi spieghi come hai fatto a farlo fuzionare?

Grazie! e ciao.

Re: [RISOLTO] Ndiswrapper,SIOCSIFFLAGS:No such file or directory

Inviato: mar 28 ott 2008, 18:59
da Vic Steele
Ciao, non ho fatto nessuna operazione particolare. Dopo aver ovviamente riconfigurato il WPA nell'access point, ho stoppato il demone inet1 e riconfigurato per il wpa_supplicant (segui le dritte di Conraid in questo stesso topic), riavviato l'inet poi ha ritrovato regolare risoluzione nel dhcp. Uso l'automatico, eh.

Re: [RISOLTO] Ndiswrapper,SIOCSIFFLAGS:No such file or directory

Inviato: mar 28 ott 2008, 20:57
da carmine65
Bene Luigi...
io invece uso IP statici (per questione di map delle porte per E-Mule)...
sembra proprio non voler andare... (invece se disabilito il WPA nel router, la Slack mi naviga... ) cosa può essere che il WPA non vuol dialogare col router? Dritte cercasi e benvenute.

Poi un'altra cosa: ho visto che hai installato il KDE 4.1
Mi daresti delle semplici istruzioni per poter fare lo stesso anch'io?

Graziee.

riciao.

Re: [RISOLTO] Ndiswrapper,SIOCSIFFLAGS:No such file or directory

Inviato: mar 28 ott 2008, 21:00
da conraid
carmine65 ha scritto:Bene Luigi...
io invece uso IP statici (per questione di map delle porte per E-Mule)...
sembra propro non voler andare... (invece se disabilito il WPA nel router, la Slack mi naviga... ) cosa può essere che il WPA non vuol dialogare col router? Dritte cercasi e benvenute.
Posta l'output di

Codice: Seleziona tutto

# cat /etc/rc.inet1.conf
# cat /etc/wpa_supplicant.conf
se hai pwd camuffale

Re: [RISOLTO] Ndiswrapper,SIOCSIFFLAGS:No such file or directory

Inviato: mar 28 ott 2008, 23:00
da carmine65
root@kermit:~# cat /etc/wpa_supplicant.conf

# See /usr/doc/wpa_supplicant-0.5.10/wpa_supplicant.conf.sample
# for many more options that you can use in this file.

# home network; allow all valid ciphers

ctrl_interface=/var/run/wpa_supplicant

network={

ssid="Nino"
scan_ssid=0
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="*****************"
}


=================================================================================

root@kermit:~# cat /etc/rc.d/rc.inet1.conf
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.1.5"

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]="192.168.1.117"
NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]="Nino"
#WLAN_MODE[4]="Managed"
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="1"
#WLAN_KEY[4]="f8530----------------"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set
##WPAPSK="9638------------------"
WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name nstead of
# the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # Here, you can override _any_ parameter
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).


C i a o e g r a z i e .

Re: [RISOLTO] Ndiswrapper,SIOCSIFFLAGS:No such file or directory

Inviato: mer 29 ott 2008, 10:33
da conraid
Intanto metti le parti dei file tra i tag code, altrimenti non si capisce niente, e poi magari la prossima volta evita le parti commentate, ma qui dovevo dirti io il comando esatto.

prova a metterlo così

Codice: Seleziona tutto

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
  scan_ssid=1
  ssid="Nino"
  proto=WPA
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP
  psk=xxxxxxxxxx
}
tieni presente che la psk sarebbe meglio che la generassi tu, con il comando wpa_passphrase
Segui le istruzioni e ti da anche cosa mettere nel file wpa_supplicant.conf

Naturalmente devi essere sicuro che dalla parte router sia tutto esatto, WPA e non WPA2, TKIP, SSID, etc... altrimenti cambia anche wpa_supplicant di conseguenza

E poi mentre lanci il tutto dai un occhiata ai messaggi con

Codice: Seleziona tutto

# tail -f /var/log/messages
e poi anche a dmesg dopo

Re: Ndiswrapper, SIOCSIFFLAGS: No such file or directory

Inviato: mer 29 ott 2008, 14:18
da tigerwalk
Vic Steele ha scritto:..................................................................
Ho così scaricato l'SVN e modificato lo SlackBuild, ed il pacchetto è stato correttamente compilato ed installato.

..................................................
Potresti essere così gentile da dirmi quale parte dello slackbuild va modificata?
Grazie.