Skip to content

Commit 46e9e09

Browse files
authored
Merge pull request #113 from arduino/marqdevx/portenta-X8/OOB
2 parents dabbc1d + e62a630 commit 46e9e09

14 files changed

+114
-0
lines changed
Loading
Loading
Loading
Loading
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
beta: true
3+
title: 'Portenta X8 Getting Started (Beta)'
4+
description: 'Learn how to set up the Portenta X8 (Beta)'
5+
difficulty: medium
6+
tags:
7+
- Beta
8+
- Installation
9+
- OTA
10+
- Embedded Linux
11+
author: 'Pablo Marquínez'
12+
hardware:
13+
- hardware/04.pro/boards/portenta-x8
14+
software:
15+
- ide-v1
16+
- ide-v2
17+
- web-editor
18+
- iot-cloud
19+
---
20+
21+
## Connecting to the Board
22+
23+
Once the Portenta X8 its plugged via USB, you can open your browser and go to http://192.168.7.1 and see a web which is hosted by the board, from this dashboard you will be able to:
24+
25+
![Board set up page](assets/x8-oob-main.png)
26+
27+
28+
* [Configure Wi-Fi](#connecting-to-your-wi-fi)
29+
* [Register the factory (OTA)](#registering-a-factory)
30+
* Board details
31+
* Shell
32+
33+
## Connecting to Your Wi-Fi
34+
35+
Click the Wi-Fi button to start configuring your network connection.
36+
37+
![Select wifi on set up page](assets/x8-oob-main-wifi.png)
38+
39+
Select your Wi-Fi SSID
40+
41+
![Wifi ssid set up](assets/x8-oob-wifi-ssid.png)
42+
43+
Type the password
44+
![Wifi password set up](assets/x8-oob-wifi-pass.png)
45+
46+
Once its connected you should see the Wi-Fi status button on green.
47+
48+
![Wifi connection done](assets/x8-oob-wifi-sucess.png)
49+
50+
51+
***You can change your network by clicking again on the button and repeat the steps***
52+
53+
## Registering a Factory
54+
55+
Click the "Register with Factory" button.
56+
57+
![Register with factory](assets/x8-oob-main-factory.png)
58+
59+
And set your new factory name.
60+
61+
![Name your factory](assets/x8-oob-factory-name.png)
62+
63+
Click register, now you will get a code that you need to paste into your factory page by opening [Arduino Create Cloud](https://create.arduino.cc) in your browser and click inside the integrations section "Portenta X8 Board Manager"
64+
![Complete factory page](assets/x8-oob-factory-register.png)
65+
![Arduin Cloud integration](assets/cloud-main.png)
66+
67+
Once it succeed the factory button will turn to green.
68+
69+
![Successful connection](assets/x8-oob-wifi-sucess.png)
70+
71+
72+
## Controlling Portenta X8 Through the Terminal
73+
74+
You have plenty of ways to communicate with your board, we are going to show adb and ssh.
75+
76+
### ADB
77+
78+
First of all make sure you have the latest Mbed Portenta Core, which contains the adb program.
79+
You can go to its directory inside the Arduino15/packages/arduino/tools/adb/32.0.0, to check the tool you can type on your terminal `adb` you should get feedback from the tool.
80+
81+
To know the list of devices that can be accessed type `adb devices`.
82+
83+
If you see only one you just can type `adb shell` if it succeed, you are now communicating to your Portenta X8.
84+
85+
### SSH
86+
87+
SSH is commonly used for remote control on a different kind of devices running different set ups through TCP-IP.
88+
89+
To communicate with your board, you will need to know the IP of it, and just type `ssh fio@<IP>`, then the terminal workaround should be the same as ADB.
90+
91+
The password is `fio`.
92+
93+
![SSH connection](assets/ssh-connection.png)
94+
As it is a linux device, you can do normal stuff like creating files, changing directory, etc.
95+
96+
To gain admin (root) access, type `sudo su -` and the password is `fio` after that the terminal prefix should turn red.
97+
98+
![CLI configured](assets/ssh-connection-admin.png)
99+
100+
### Inspecting Real Time Tasks
101+
102+
Run: `journalctl -f` to see what's going on on the device
103+
104+
![Real time tasks on CLI](assets/command-journalctl.png)
105+
106+
## Uploading an Arduino Sketch
107+
108+
Make sure you have the latest mbed Core and as every other board you can select the board inside the `mbed Portenta`.
109+
110+
![Board selected in Arduino IDE](assets/IDE-boards.png)
111+
112+
And click compile and upload.
113+
114+
***Make sure you don't share GPIOs on the linux side and the Arduino sketc, this will avoid possible errors***

0 commit comments

Comments
 (0)