You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/04.pro/boards/portenta-x8/tutorials/custom-container/content.md
+10-12
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ TEST_CMD="python3 --help"
55
55
```
56
56
57
57
### Docker-compose.yml
58
-
This file defines the app name through the factory, permissions and settings for the involved containers. The argument in the image tag will make it so our image file builds locally.
58
+
This file defines the app name through the Factory, permissions and settings for the involved containers. The argument in the image tag will make it so our image file builds locally.
59
59
60
60
```python
61
61
version: '3.6'
@@ -122,9 +122,9 @@ if __name__ == '__main__':
122
122
123
123
## Uploading the Container Folder
124
124
125
-
First, you have to have set up your board to a factory, as shown in the [Portenta X8 Out of the Box tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box).
125
+
First, you have to have set up your board to a Factory, as shown in the [Portenta X8 Out of the Box tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box).
126
126
127
-
Once this is done, we will push our folder to a repository within the factory. Lets place our folder "x8-custom-test" inside the "containers.git" repository. You can find this repository inside your factory page, if you click on "Source". And then on "container.git", the url of this page will be used in the next command.
127
+
Once this is done, we will push our folder to a repository within the Factory. Lets place our folder "x8-custom-test" inside the "containers.git" repository. You can find this repository inside your Factory page, if you click on "Source". And then on "container.git", the url of this page will be used in the next command.
128
128
129
129

130
130
@@ -138,19 +138,17 @@ In order to pull or push repositories you have to generate an API key. This can
138
138
139
139

140
140
141
-
Use the following command in a Linux shell, like ADB which the previously mentioned tutorial showed how to set up. To get the repository on your board, replace the "YOUR_FACTORY" with the name of your factory. The "-m" tag selects the manifest file within the repository. If no manifest name is selected, the default is "default.xml". And the "-b" tag specifies a revision. Running this command will get the container repository, where we will put our folder.
141
+
Use the following command in a Linux shell, like ADB which the previously mentioned tutorial showed how to set up. To get the repository on your board, replace "YOUR_FACTORY" with the name of your Factory. The "-b" parameter specifies a branch to checkout after cloning the repository. Running this command will get the container repository, where we will put our folder.
We can also run ```repo sync``` to get the latest version of the repository. Put the "x8-custom-test" folder in the repository. If you push the commit to "container.git" a new target will automatically build on your Foundries.io Factory page.
148
-
149
-
***NOTE: The "repo sync" will at some point pause. This is because it is waiting for a username and password but the prompt will be hidden. Enter the username and password to move on.***
147
+
Put the "x8-custom-test" folder in the repository. If you push the commit to "containers.git" a new target will automatically build on your FoundriesFactory, you can inspect it in the "Targets" page.
150
148
151
149
### Building and Running the Container
152
150
153
-
After uploading the folder to the repository. Navigate into the "x8-custom-test" folder, that should be located on your board now. This allows us to build our container with a simple command. Using ```docker build``` with a ```--tag``` will let us give the container a tag so we can easily keep track of what version of the build this is.
151
+
After the build is finished, it can take up to 10 minutes for your device to OTA update to this new version. You can inspect it via the "Devices" tab of your FoundriesFactory. After your device takes the update, navigate into the "x8-custom-test" folder, that should be located on your board now. This allows us to build our container with a simple command. Using ```docker build``` with a ```--tag``` will let us give the container a tag so we can easily keep track of what version of the build this is.
154
152
155
153
```python
156
154
docker build --tag "x8-custom-test:latest" .
@@ -184,7 +182,7 @@ docker-compose stop
184
182
185
183
## Conclusion
186
184
187
-
This tutorial went through what goes into a container, how the folder should be built and what files it should contain. It then explained what each files purpose is and what they should contain for this example. Then we went through how this relates back to the factory, and how Foundries.io makes the whole process easier for us. We then showed how to build the container and run it on the Portenta X8. Lastly, we showed a useful testing feature with docker-compose. Which lets us test our container with a faster process.
185
+
This tutorial went through what goes into a container, how the folder should be built and what files it should contain. It then explained what each files purpose is and what they should contain for this example. Then we went through how this relates back to the Factory, and how Foundries.io makes the whole process easier for us. We then showed how to build the container and run it on the Portenta X8. Lastly, we showed a useful testing feature with docker-compose. Which lets us test our container with a faster process.
188
186
189
187
### Next Steps
190
188
@@ -196,4 +194,4 @@ To get a better understanding of how to manage containers with Docker, take a lo
196
194
Here are some errors that might occur in the process of this tutorial:
197
195
198
196
- Make sure you have followed our other tutorials that shows how to set up the [Portenta X8 out of the box](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box)
199
-
- If you are having issues with the adb shell, don't forget to try and use `sudo` and `su`
197
+
- If you are having issues with the adb shell, don't forget to try and use `sudo` and `su`
Copy file name to clipboardExpand all lines: content/hardware/04.pro/boards/portenta-x8/tutorials/display-output-webgl/content.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ The Arduino Portenta X8's processor **NXP® i.MX 8M Mini Processor** can be used
40
40
41
41
There are two ways to get the container, either through `foundriesFactories` or downloading the container from [portenta-containers repository](https://github.com/arduino/portenta-containers)
42
42
43
-
**With Foundries:**
43
+
**With Foundries.io:**
44
44
45
45
If you use [Foundries.io](https://www.foundries.io) you can switch the current `target` of your device to `x-kiosk-imx8-webgl` by switching the app from a terminal on your computer:
46
46
@@ -176,7 +176,7 @@ To save the changes press the **ESC** key and type `:wq` this will write and qui
176
176
177
177
## Conclusion
178
178
179
-
In this tutorial we went through how to connect the board and display something on a screen. Using a container from foundriesFactories or by downloading it and uploading it to your Portenta X8. Lastly, we showed how to edit the video output by editing the container.
179
+
In this tutorial we went through how to connect the board and display something on a screen. Using a container from FoundriesFactories or by downloading it and uploading it to your Portenta X8. Lastly, we showed how to edit the video output by editing the container.
Go to the `lmp-manifest`[GitHub repository](https://github.com/arduino/lmp-manifest) and open the [releases](https://github.com/arduino/lmp-manifest/releases) section, there you will find a compressed `.tar.gz` with all the required files.
60
59
61
-
#### Through Foundries
60
+
#### Through Foundries.io
62
61
63
62
Open your FoundriesFactory®.
64
63
@@ -76,7 +75,7 @@ On the "Runs" section open those collapsed labels, and download the files listed
Copy file name to clipboardExpand all lines: content/hardware/04.pro/boards/portenta-x8/tutorials/out-of-the-box/content.md
+23-20
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,12 @@ software:
30
30
31
31
## Connecting to the Board
32
32
33
-
Once the Portenta X8 is plugged in via USB, you can open your browser and go to http://192.168.7.1 if you use Windows and Linux or http://192.168.8.1 on MacOS. This web page is hosted on the Portenta X8, from this dashboard you will be able to:
33
+
Once the Portenta X8 is plugged in via USB, you can open your browser and go to http://192.168.7.1 if you use Windows and Linux or http://192.168.8.1 on MacOS. It can take up to 15 seconds for the board to boot up and make the page available. This web page is hosted on the Portenta X8, from this dashboard you will be able to:
34
34
35
35

36
36
37
37
*[Configure Wi-Fi](#connecting-to-your-wi-fi)
38
-
*[Add your device to a factory (OTA)](#add-a-new-device-to-your-factory)
38
+
*[Add your device to a FoundriesFactory (OTA)](#add-a-new-device-to-your-factory)
39
39
* Board details
40
40
* Shell (alpine python)
41
41
@@ -59,36 +59,36 @@ Once it is connected, you should see the Wi-Fi status bullet in the bottom left
59
59
60
60
***You can change your network by clicking on the button again and repeat the above steps***
61
61
62
-
## Connect to a Factory
62
+
## Connect to a FoundriesFactory
63
63
64
-
### Register the Factory on Foundries.io
64
+
### Register the FoundriesFactory on Foundries.io
65
65
66
66
***The integration with Foundries.io requires the Arduino Pro Cloud Subscription, contact us at [Arduino Pro Inquiries](https://www.arduino.cc/pro/contact-us), or learn more on the [Arduino Pro Page](https://www.arduino.cc/pro/hardware/product/portenta-x8#pro-cloud)***
67
-
Go to [https://create.arduino.cc](https://create.arduino.cc) and click on portenta-X8 board manager, you will get prompted to set a new `Factory` name if you didn't have one before. You will not be able to be change the name later, so use one that you can remember and write easily.
67
+
Go to [https://create.arduino.cc](https://create.arduino.cc) and click on Portenta X8 Board Manager, you will get prompted to set a new `Factory` name if you didn't have one before. You will not be able to be change the name later, so use one that you can remember and write easily.
Then choose the device you want to check by clicking on its box and it will open its page.
128
128
@@ -170,18 +170,21 @@ To check your manager connection status, use this command:
170
170
171
171
`nmcli de`
172
172
173
-
### Register Device to the Factory
173
+
### Register Device to the FoundriesFactory
174
174
175
175
Make sure the name is not already being used in your Factory.
176
176
177
177
`lmp-device-register -n <newDeviceName>`
178
178
179
-
**Not recommended:** In case you cannot register the new device, you can erase the current device info by removing `/var/sota/sql.db`
179
+
**Not recommended:** In case you cannot register the new device, you can erase the current device info by stopping the OTA services and removing `/var/sota/sql.db`. After these commands, you can register the device again.
180
180
181
+
`sudo systemctl stop aktualizr-lite`
182
+
`sudo systemctl stop fioconfig.path`
183
+
`sudo systemctl stop fioconfig.service`
181
184
`sudo rm /var/sota/sql.db`
182
185
183
186
### Inspecting Real Time Tasks
184
187
185
188
Run: `journalctl -f` to see what's going on on the device
186
189
187
-

190
+

0 commit comments