# Labs

## Boot Up Labs

> Connect your development board (Intel Edison/Intel Galileo) to your Development Workstation using the registered COM / TTY device and boot up

## Yocto Project @ Edison

```bash
Poky (Yocto Project Reference Distro) 1.7.3 edison ttyMFD2                      

edison login: root                                                              
Last login: Mon Jun  6 21:33:16 UTC 2016 on ttyMFD2
```

Check your kernel version

```bash
root@edison:~# uname -r                                                         
3.10.98-poky-edison+                                                            
root@edison:~#
```

Configure your Edison WiFi network

```bash
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 :     CACUNAT
4 :     INFINITUMf89t
5 :     INFINITUM09E845
6 :     17057Abril
7 :     INFINITUMndjj
8 :     INFINITUMfjph


Enter 0 to rescan for networks.
Enter 1 to exit.
Enter 2 to input a hidden network SSID.
Enter a number between 3 to 8 to choose one of the listed network SSIDs: 8
Is INFINITUMfjph correct? [Y or N]: Y
Password must be between 8 and 63 characters.
What is the network password?: **********
Initiating connection to INFINITUMfjph. Please wait...                          
Attempting to enable network access, please check 'wpa_cli status' after a minu.
Done. Please connect your laptop or PC to the same network as this device and g.
Warning: SSH is not yet enabled on the wireless interface. To enable SSH access.
root@edison:~#
```

```bash
root@edison:~# ping -c 2 8.8.8.8                                                
PING 8.8.8.8 (8.8.8.8): 56 data bytes                                           
64 bytes from 8.8.8.8: seq=0 ttl=59 time=151.659 ms                             
64 bytes from 8.8.8.8: seq=1 ttl=59 time=43.713 ms                              

--- 8.8.8.8 ping statistics ---                                                 
2 packets transmitted, 2 packets received, 0% packet loss                       
round-trip min/avg/max = 43.713/97.686/151.659 ms                               
root@edison:~#
```

Shutdown usb0 interface and check IP address assigned

```bash
root@edison:~# ifconfig usb0 down
```

```bash
root@edison:~# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.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
          ...
          ...
```

## Yocto Project @ Galileo

```bash
Poky (Yocto Project Reference Distro) 1.7.2 galileo ttyMFD2

galileo login: root
root@galileo:~#
```

Check your kernel version

```bash
root@galileo:~# uname -r
3.8.7-yocto-standard
```

Check IP address assigned

```bash
root@galileo:~# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          ...
          ...
eth0      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
          ...
          ...
```

If IP address is not assigned then bring up Ethernet interface

```bash
root@galileo:~# ifup eth0 up
```

```bash
root@galileo:~# ping -c 2 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=59 time=35.086 ms
64 bytes from 8.8.8.8: seq=1 ttl=59 time=22.468 ms        
--- 8.8.8.8 ping statistics ---         
2 packets transmitted, 2 packets received, 0% packet loss         
round-trip min/avg/max = 22.468/28.777/35.086 ms
root@galileo:~#
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://theiotlearninginitiative.gitbook.io/internetofthings101/architecture/thing/embedded-linux/boot-up/labs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
