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 09cfa51

Browse files
marqdevxBenjaminDannegardkprosisevanmaegimacaiotpereira
authored
Portenta X8 tutorial: custom image building[PC-920] (#354)
* Portenta X8 image building: first draft * Remove non mandatory step and fix command typo * Small fixes * Linter fixes * Small changes * MD format fixes * Linter fix * Title case * Apply suggestions from code review Co-authored-by: BenjaminDannegard <benjamin.dannegard@gmail.com> * Apply suggestions from code review Co-authored-by: Vanessa Maegima <van.ayumi@gmail.com> * Structure fix * Apply suggestions from code review Co-authored-by: Vanessa Maegima <vanessa.maegima@foundries.io> * Fix MD format issue * Apply suggestions from code review Co-authored-by: Vanessa Maegima <vanessa.maegima@foundries.io> * First re-structure of the content * Add Docker Image steps * building tools small update * Add bash wrap script * Rename wrap script * Add Docker step * Fix bash script * Fix spell-check * Final changes * Update commands * Upload new screenshots * Add git-repo needed config * rename screenshots * Fix typo * Remove unused assets * Add screenshots * Final content changes * Fix wrapper script * Small content update * small fix * fix small typos * Add alt text * Fix title case * Apply suggestions from code review Co-authored-by: Katrina Prosise <katrina.prosise@foundries.io> * Small tunning Co-authored-by: Caio Pereira <caio.pereira@foundries.io> * Review changes * Add required storage size on requirements section * Small note alginment * Fix bash script Co-authored-by: BenjaminDannegård <benjamin.dannegard@gmail.com> Co-authored-by: Kprosise <katrina.prosise@gmail.com> Co-authored-by: Vanessa Maegima <van.ayumi@gmail.com> Co-authored-by: Vanessa Maegima <vanessa.maegima@foundries.io> Co-authored-by: Katrina Prosise <katrina.prosise@foundries.io> Co-authored-by: Caio Pereira <caio.pereira@foundries.io>
1 parent 51abd69 commit 09cfa51

16 files changed

+277
-0
lines changed
106 KB
Loading[フレーム]
85.1 KB
Loading[フレーム]
30.6 KB
Loading[フレーム]
48.3 KB
Loading[フレーム]
34.8 KB
Loading[フレーム]
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Script to install and build the image for the Arduino Portenta X8
2+
# More info at https://docs.arduino.cc/hardware/portenta-x8
3+
# Script by Massimo Pennazio and Pablo Marquínez (@Arduino)
4+
5+
echo --------------------------------------------------------------------------
6+
echo Starting wrapper script to setup and build an Image and the Flashing tools
7+
echo @arduino Portenta-X8
8+
echo 1 Oct 2022
9+
echo
10+
11+
# Make sure its on the home directory
12+
echo Changing directory to home
13+
cd ~
14+
15+
# Git config
16+
echo Git config to example credentials
17+
git config --global user.email "you@example.com"
18+
git config --global user.name "Your Name"
19+
20+
# Initialize the git-repo and pull all the repos
21+
echo Starting git-repo initialization
22+
repo init -u https://github.com/arduino/lmp-manifest.git -m arduino.xml -b release
23+
echo Pulling git-repo files
24+
repo sync
25+
26+
# Build 'lmp-partner-arduino-image' image
27+
echo Building Portenta-X8 image
28+
DISTRO=lmp-xwayland MACHINE=portenta-x8 . setup-environment
29+
echo "ACCEPT_FSL_EULA = \"1\"" >> conf/local.conf
30+
bitbake lmp-partner-arduino-image
31+
32+
echo Exit X8 folder
33+
cd ..
34+
35+
# Build flashing tools
36+
echo Building tools
37+
DISTRO=lmp-mfgtool MACHINE=portenta-x8 . setup-environment
38+
echo "ACCEPT_FSL_EULA = \"1\"" >> conf/local.conf
39+
echo "MFGTOOL_FLASH_IMAGE = \"lmp-partner-arduino-image\"" >> conf/local.conf
40+
bitbake mfgtool-files
41+
42+
echo Exit tools folder
43+
cd ..
44+
45+
# Copy files to the deploy folder
46+
todaysDate=$(date +%d-%b-%H_%M)
47+
echo copying files
48+
mkdir ../../dockerVolume/$todaysDate
49+
DEPLOY_FOLDER=../../dockerVolume/$todaysDate
50+
51+
cp -L build-lmp-mfgtool/deploy/images/portenta-x8/mfgtool-files-portenta-x8.tar.gz $DEPLOY_FOLDER
52+
cp -L build-lmp-xwayland/deploy/images/portenta-x8/imx-boot-portenta-x8 $DEPLOY_FOLDER
53+
cp -L build-lmp-xwayland/deploy/images/portenta-x8/u-boot-portenta-x8.itb $DEPLOY_FOLDER
54+
cp -L build-lmp-xwayland/deploy/images/portenta-x8/sit-portenta-x8.bin $DEPLOY_FOLDER
55+
cp -L build-lmp-xwayland/deploy/images/portenta-x8/lmp-partner-arduino-image-portenta-x8.wic $DEPLOY_FOLDER
56+
57+
cd $DEPLOY_FOLDER
58+
tar xvf mfgtool-files-portenta-x8.tar.gz
59+
60+
echo finished
61+
echo Output folder called $todaysDate
62+
echo
63+
echo Read more at https://docs.arduino.cc/hardware/portenta-x8
69.9 KB
Loading[フレーム]
102 KB
Loading[フレーム]
111 KB
Loading[フレーム]
69.7 KB
Loading[フレーム]

0 commit comments

Comments
(0)

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