Boot Up
Boot Up
Bootup Linux Login
Poky (Yocto Project Reference Distro) 1.7.2 edison ttyMFD2
edison login: root
root@edison:~#
Bootup Initial Configuration, Wifi
Check your kernel version
root@edison:~# uname -a
Linux edison 3.10.17-poky-edison+ #2 SMP PREEMPT Mon Mar 14 15:26:16 PDT 2016 i686 GNU/Linux
Configure your WiFi
root@edison:~# configure_edison --wifi
Configure Edison: WiFi Connection
Scanning: 1 seconds left
0 : Rescan for networks
1 : Exit WiFi Setup
2 : Manually input a hidden SSID
3 : INFINITUM914E
Enter 0 to rescan for networks.
Enter 1 to exit.
Enter 2 to input a hidden network SSID.
Enter 3 to choose INFINITUM9###: 3
Is INFINITUM9### correct? [Y or N]: Y
Password must be between 8 and 63 characters.
What is the network password?:
What is the network password?: **********
Initiating connection to INFINITUM9###. Please wait...
Attempting to enable network access, please check 'wpa_cli status' after a minute to confirm.
Done. Please connect your laptop or PC to the same network as this device and go to http://192.168.1.72 or http://edison.local in your browser.
Warning: SSH is not yet enabled on the wireless interface. To enable SSH access to this device via wireless run configure_edison --password first.
root@edison:~#
Configure also password to enable SSH on the wireless interface
root@edison:~# configure_edison --password
Configure Edison: Device Password
Enter a new password (leave empty to abort)
This will be used to connect to the access point and login to the device.
Password: ********
Please enter the password again: ********
First-time root password setup complete. Enabling SSH on WiFi interface.
The device password has been changed.
Check IP address assigned
root@edison:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
usb0 Link encap:Ethernet HWaddr 02:00:86:58:c2:af
inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0
wlan Link encap:Ethernet HWaddr 00:1C:C0:AE:B5:E6
inet addr:192.168.1.74 Bcast:192.168.0.255 Mask:255.255.255.0
Shutdown USB0 interface
root@edison:~# ifconfig usb0 down
root@edison:~#
Error? Password Lenght
... I am asked for a 5 or 13 character network password, but my network's password is 10 characters long ... Edison WiFi setup - password must be either 5 or 13 characters
root@edison:~# whereis configure_edison
configure_edison: /usr/bin/configure_edison
--- configure_edison.orig
+++ configure_edison
@@ -60,6 +60,15 @@
wep_key0="%s"
}
'''
+ WEP_26HEX = '''
+network={
+ ssid="%s"
+ %s
+ key_mgmt=NONE
+ group=WEP104 WEP40
+ wep_key0=%s
+}
+'''
WPAPSK = '''
network={
ssid="%s"
@@ -359,10 +368,13 @@
return wpa_templates.OPEN % (ssid, "scan_ssid=1")
elif security == 1:
password = ''
- while len(password) != 5 and len(password) != 13:
- print "Password must be either 5 or 13 characters."
+ while len(password) != 5 and len(password) != 13 and len(password) != 26:
+ print "Password must be either 5 or 13 ascii characters or 26 hex."
password = getNetworkPassword()
- return wpa_templates.WEP % (ssid, "scan_ssid=1", password)
+ if len(password) == 26:
+ return wpa_templates.WEP_26HEX % (ssid, "scan_ssid=1", password)
+ else:
+ return wpa_templates.WEP % (ssid, "scan_ssid=1", password)
elif security == 2:
password = ''
while len(password) < 8 or len(password) > 63:
@@ -384,10 +396,13 @@
return wpa_templates.OPEN % (ssid, "")
elif network_map[ssid] == "WEP":
password = ''
- while len(password) != 5 and len(password) != 13:
- print "Password must be either 5 or 13 characters."
+ while len(password) != 5 and len(password) != 13 and len(password) != 26:
+ print "Password must be either 5 or 13 ascii characters or 26 hex."
password = getNetworkPassword()
- return wpa_templates.WEP % (ssid, "", password)
+ if len(password) == 26:
+ return wpa_templates.WEP_26HEX % (ssid, "", password)
+ else:
+ return wpa_templates.WEP % (ssid, "", password)
elif network_map[ssid] == "WPA-PSK":
password = ''
while len(password) < 8 or len(password) > 63:
@@ -409,10 +424,13 @@
return wpa_templates.OPEN % (ssid, "scan_ssid=1")
elif protocol == "WEP":
password = changewifi[2]
- if len(password) != 5 and len(password) != 13:
- print "Password must be either 5 or 13 characters."
+ if len(password) != 5 and len(password) != 13 and len(password) != 26:
+ print "Password must be either 5 or 13 ascii characters or 26 hex."
return None
- return wpa_templates.WEP % (ssid, "scan_ssid=1", password)
+ if len(password) == 26:
+ return wpa_templates.WEP_26HEX % (ssid, "scan_ssid=1", password)
+ else:
+ return wpa_templates.WEP % (ssid, "scan_ssid=1", password)
elif protocol == "WPA-PSK":
password = changewifi[2]
if len(password) < 8 or len(password) > 63:
Last updated