Changes

Jump to: navigation, search

XUELK-AN-002: Running Debian distribution

946 bytes removed, 11:28, 21 March 2017
WiFi (client mode)
As the WiFi driver is not statically linked to the kernel image, it is necessary to load the module first:
<pre class="board-terminal">
root@arm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:C2:1E:AF:E9
inet addr:192.168.0.81 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:c2ff:fe1e:afe9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:592 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58472 (57.1 KiB) TX bytes:1077 (1.0 KiB)
 
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:95 (95.0 B) TX bytes:95 (95.0 B)
 
root@arm:~# modprobe wl12xx
root@arm:~# ifconfig wlan0 up
[ 108.813796] wlcore: firmware booted (Rev 6.3.10.0.133)
[ 108.835973] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
root@arm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:C2:1E:AF:E9
inet addr:192.168.0.81 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:c2ff:fe1e:afe9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4238 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:418532 (408.7 KiB) TX bytes:1341 (1.3 KiB)
 
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:95 (95.0 B) TX bytes:95 (95.0 B)
 
wlan0 Link encap:Ethernet HWaddr 88:33:14:5E:30:61
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
</pre>
</pre>
Add the passphrase key to the <code>wpa_supplicant</code> configration configuration fileand make it readable by <code>root</code> only:
<pre class="board-terminal">
root@arm:~# wpa_passphrase SSID_ZyXEL_WPA2 >> /etc/wpa_supplicant.conf
ZyXEL-WPA2-PSK
root@arm:~# cat chmod 0600 /etc/wpa_supplicantwpa_supplicant/ wpa_supplicant.conf
root@arm:~# cat /etc/wpa_supplicant.conf
# reading passphrase from stdin
beacon int: 100
</pre>
====Configuring WiFi interface automatically====It is possible to modify <code>/etc/networks/interfaces</code> in order to automatically start and configure the WiFi interface on every boot. The following example shows After assigning a configuration with (static ) IP addresses. The address to the <code>wpa-pskwlan0</code> string interface, it is retrieved from possibile to ping the <code>/etc/wpa_supplicant.conf</code> file.Access Point:
<pre class="board-terminal">
root@arm:/etc/network~# cat /etc/network/interfacesifconfig wlan0 192.168.11.81root@arm:~# interfaces(5) file used by ifup(8) and ifdown(8)ifconfigeth0 Link encap:Ethernet HWaddr 00:50:C2:1E:AF:E9# Include files from /etc/network/interfaces inet addr:192.168.0.81 Bcast:192.168.0.d255 Mask:255.255.255.0#source-directory inet6 addr: fe80::250:c2ff:fe1e:afe9/etc/network/interfaces64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:35226 errors:0 dropped:0 overruns:0 frame:0 TX packets:28 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3555583 (3.3 MiB) TX bytes:1906 (1.dauto eth08 KiB)
##########################################lo Link encap:Local Loopback# inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 88:33:14:5E:30:61# - static configurationiface eth0 inet static address addr:192.168.011.81 netmask Bcast:192.168.11.255 Mask:255.255.255.0 gateway 192.168. inet6 addr: fe80::8a33:14ff:fe5e:3061/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24970 errors:0 dropped:0 overruns:0 frame:0.254# - DHCP configuration TX packets:12 errors:0 dropped:0 overruns:0 carrier:0#allow-hotplug eth0 collisions:0 txqueuelen:1000#iface eth0 inet dhcp RX bytes:2448625 (2.3 MiB) TX bytes:1291 (1.2 KiB)
root@arm:~##########################################ping 192.168.11.243# WiFiPING 192.168.11.243 (192.168.11.243): 56 data bytes# - static configuration64 bytes from 192.168.11.243: seq=0 ttl=64 time=20.155 msauto wlan064 bytes from 192.168.11.243: seq=1 ttl=64 time=11.253 msiface wlan0 inet static64 bytes from 192.168.11.243: seq=2 ttl=64 time=11.259 ms address 64 bytes from 192.168.11.81243: seq=3 ttl=64 time=3.726 ms netmask 25564 bytes from 192.255168.25511.243: seq=4 ttl=64 time=11.0582 ms network 64 bytes from 192.168.11.0243: seq=5 ttl=64 time=3.138 ms broadcast 64 bytes from 192.168.11.255243: seq=6 ttl=64 time=11.221 ms gateway 64 bytes from 192.168.11.243: seq=7 ttl=64 time=11.652 ms dns-nameservers 64 bytes from 192.168.011.1, 243: seq=8ttl=64 time=11.294 ms64 bytes from 192.168.11.243: seq=9 ttl=64 time=11.268 ms64 bytes from 192.168.811.243: seq=10 ttl=64 time=11.598 ms64 bytes from 192.168.11.8243: seq=11 ttl=64 time=11.8690 ms^C wpa-ssid SSID_ZyXEL_WPA2-- 192.168.11.243 ping statistics ---12 packets transmitted, 12 packets received, 0% packet loss wparound-psk ec41b79ebdf10022908aa10189b0341f095fd62eeb719a67c5c920e0cde28564trip min/avg/max = 3.138/10.819/20.155 ms
</pre>
Also, it is required In order to automatically load the <code>wl12xx</code> module on startup, issue the following command:
root@arm:~# echo wl12xx >> /etc/modules
4,650
edits

Navigation menu