Skip to content

Commit d87985c

Browse files
committed
Portenta X8: Add GS
1 parent dabbc1d commit d87985c

14 files changed

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