vorab: Slovenia-Image v2.7.
Dann der üble Vorsatz: Ich möchte einen temporären Zugang zum Cubietruck (CT) haben, wenn das normale (W)Lan nicht zur Verfügung steht. (Die beiden laufen übrigens). Also habe ich mir folgendes gedacht:
Man nehme einen WLan-USBstick (Edimax EW-8711UN) und stöpsele den bei Bedarf ein. Nun bekomme ich das Ding aber gar nicht erst ans Laufen.
Was wurde bislang gemacht?
1. Firmware installiert:
Code: Alles auswählen
apt-get install firmware-realtek
2.
Code: Alles auswählen
root@cubie:~# lsusb
Bus 004 Device 003: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Code: Alles auswählen
lsmod
Module Size Used by
...
8192cu 454624 0
4.
Code: Alles auswählen
# Wireless Adapter #2
auto wlan1
allow-hotplug wlan1
iface wlan1 inet static
address 192.168.3.1
netmask 255.255.255.0
broadcast 192.168.3.255
up service hostapd restart
up service dnsmasq restart
#
Code: Alles auswählen
ifconfig wlan1
wlan1 Link encap:Ethernet HWaddr 80:1f:02:b9:6f:94
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
...
6.
Code: Alles auswählen
iwconfig wlan1
wlan1 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
...
Code: Alles auswählen
hostapd -dd /etc/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=4 type=2 op=0 soft=0 hard=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=8 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 8 iftype 2 (STATION)
nl80211: Failed to set interface 8 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x8272c8)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x8272c8)
hostapd_bss_deinit: deinit bss wlan1
hostapd_cleanup(hapd=0x827ed0 (wlan1))
hostapd_free_hapd_data: Interface wlan1 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x8272c8)
hostapd_interface_free: free hapd 0x827ed0
hostapd_cleanup_iface(0x8272c8)
hostapd_cleanup_iface_partial(0x8272c8)
hostapd_cleanup_iface: free iface=0x8272c8
8. Schaun wir auf seine vorläufige, weitgehend default übernommen Konfig:
Code: Alles auswählen
cat /etc/hostapd.conf
ssid=CUBIE
interface=wlan1
hw_mode=b
channel=1
logger_syslog=0
logger_syslog_level=0
wmm_enabled=0
wpa=2
preamble=1
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
Was ist also faul im Staate CT? Fehlkonfiguration? Fehlt ihm der Strom für die zusätzliche NIC? Dank im voraus für sachdienliche Hinweise.