Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 849fc0d

Browse files
authored
[PC-1198] Portenta X8: Portenta X8 Image Flashing Tutorial Content Update (#948)
* Initial commit - Tutorial content update (Added Barebone update procedure) * Tutorial content update * Tutorial content minor update * Tutorial content update * Tutorial content update (Aligned with the changes of User Manual) * Tutorial content update * Tutorial content update - Removed post flash section * Tutorial content minor update
1 parent b92b942 commit 849fc0d

File tree

1 file changed

+31
-1
lines changed
  • content/hardware/04.pro/boards/portenta-x8/tutorials/09.image-flashing

1 file changed

+31
-1
lines changed

‎content/hardware/04.pro/boards/portenta-x8/tutorials/09.image-flashing/content.md‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ In this tutorial, you will learn how to manually flash your Portenta X8 with the
2525
### Required Hardware and Software
2626

2727
- [Arduino Portenta X8](https://store.arduino.cc/products/portenta-x8)
28-
- [Portenta Breakout Board](https://store.arduino.cc/products/arduino-portenta-breakout) or [Arduino Portenta Max Carrier](https://store.arduino.cc/products/portenta-max-carrier)
2928
- USB-C® cable (either USB-C® to USB-A or USB-C® to USB-C®)
29+
- Portenta Family Carrier (Optional):
30+
- [Portenta Breakout Board](https://store.arduino.cc/products/arduino-portenta-breakout)
31+
- [Arduino Portenta Max Carrier](https://store.arduino.cc/products/portenta-max-carrier)
3032

3133
## Instructions
3234

@@ -62,6 +64,8 @@ Unzipped folder
6264

6365
### Setting the Portenta X8 to Flashing Mode
6466

67+
#### Flashing Mode with Carrier
68+
6569
Connect your Portenta X8 into your carrier of choice, either *Portenta Breakout* or *Portenta Max Carrier*, via High-Density connectors. After connecting the Portenta X8, you will need to set the `BOOT` DIP switches to the ON position. The `BOOT` switch configuration is important as it will put the board into Flashing mode.
6670

6771
On the Portenta Max Carrier, the DIP switches are identified by the label `BOOT SEL` and `BOOT` as shown in the figure:
@@ -74,6 +78,28 @@ On the Portenta Breakout, the DIP switches are identified by the label `BT_SEL`
7478

7579
You will need to connect one USB-C® end to the Portenta X8 and the other end (USB-C® or USB-A) to your computer. If the connection is established correctly, you will be able to see a newly connected device called `SE Blank M845S`.
7680

81+
#### Flashing Mode without Carrier
82+
83+
If *Portenta Breakout* or *Portenta Max Carrier* is not available to you, the Portenta X8 can be configured for programming mode using a few lines of command inside the Portenta X8's terminal via ADB. Please use the following commands in exact sequence while you are in the root environment with root permission.
84+
85+
```arduino
86+
echo 0 > /sys/block/mmcblk2boot0/force_ro
87+
```
88+
89+
```arduino
90+
dd if=/dev/zero of=/dev/mmcblk2boot0 bs=1024 count=4096 && sync
91+
```
92+
93+
```arduino
94+
echo 0 > /sys/block/mmcblk2boot1/force_ro
95+
```
96+
97+
```arduino
98+
dd if=/dev/zero of=/dev/mmcblk2boot1 bs=1024 count=4096 && sync
99+
```
100+
101+
This sequence of commands will allow you to reset Portenta X8's bootloader sector, defaulting the internal bootloader to `uuu` mode.
102+
77103
### Flashing the Portenta X8
78104

79105
To flash the Portenta X8, you need to begin by opening a terminal. Within the terminal, you need to change the directory to where `mfgtool-files-portenta-x8` file is located using the `cd` command. Once it is inside the directory where the previous file is included, the following command is used:
@@ -82,12 +108,16 @@ To flash the Portenta X8, you need to begin by opening a terminal. Within the te
82108
uuu full_image.uuu
83109
```
84110

111+
If you have followed the __Flashing Mode without Carrier__ method to flash an OS or a custom image, the `uuu` command should be active and seeking for the board. While the process is active, please unplug and reconnect the USB-C® cable powering the Portenta X8 to allow entering the programming mode of the boot sequence. This should trigger the standing-by `uuu` task to run the flash process.
112+
85113
When the flashing operation is finished, you should see a similar result as the following figure:
86114

87115
![uuu tool flashing success output](assets/uuu-flashing-success.png)
88116

89117
Once you have verified it has successfully flashed the Portenta X8, the `BOOT` DIP switches that have been configured to the ON position, now need to be set to the OFF position. Otherwise, you will always have the Portenta X8 in Flashing mode whenever it is attached to a carrier. Recycle the power for Portenta X8 by reconnecting the board to your computer and start using with the latest updates.
90118

119+
In case the Portenta X8 was flashed barebone, you will just need to recycle the power and should be ready with the latest OS image.
120+
91121
***After booting, you will need to wait 10 seconds until the Portenta X8 starts blinking Blue LED. The Blue LED indicates it was able to boot successfully.***
92122

93123
## Conclusion

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /