Skip to content

Commit e0bbfa5

Browse files
committed
I-Pi SMARC 1200: Modified the LEC-MTK-1200 Yocto Build Guide
1 parent 951687c commit e0bbfa5

File tree

1 file changed

+18
-28
lines changed

1 file changed

+18
-28
lines changed

smarc/ipi-smarc-1200/HowToBuildYocto.html

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
<meta property="og:site_name" content="ADLINK Industrial Pi Wiki">
8080
<meta property="og:description" content="How to Build YoctoThe Yocto Project provides open-source tools for developers to customize Linux-based systems regardless of the architecture. With this procedure, you will be able to build a Yocto im">
8181
<meta property="og:locale" content="en_US">
82-
<meta property="article:published_time" content="2024-10-15T07:44:34.867Z">
83-
<meta property="article:modified_time" content="2024-10-15T07:44:34.867Z">
82+
<meta property="article:published_time" content="2024-10-25T03:26:04.857Z">
83+
<meta property="article:modified_time" content="2024-10-25T03:26:04.857Z">
8484
<meta property="article:author" content="ADLINK Technology Inc. All Rights Reserved.">
8585
<meta name="twitter:card" content="summary">
8686
<!-- Google Analytics -->
@@ -114,7 +114,7 @@ <h1 id="logo-wrap">
114114
</nav>
115115

116116
<div id = "changeurl">
117-
<script>window.onload = function() {parent.postMessage( {msg: '?page=HowToBuildYocto.html'}, '*');}</script>
117+
<script>window.onload = function() {parent.postMessage( {msg: '?page=HowToBuildYocto.html#HowToBuildYocto.html'}, '*');}</script>
118118

119119
</div>
120120

@@ -142,56 +142,46 @@ <h1 class="article-title" itemprop="name"></h1>
142142
<a href="" class="article-edit-link" title="Improve this doc"><i class="fa fa-pencil"></i></a>
143143
</header>
144144
<div class="article-content bullets" itemprop="articleBody">
145-
<h1 id="How-to-Build-Yocto" class="article-heading"><a href="#How-to-Build-Yocto" class="headerlink" title="How to Build Yocto"></a>How to Build Yocto<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#How-to-Build-Yocto'}, '*');" class="article-anchor" href="#How-to-Build-Yocto" aria-hidden="true"></a></h1><p>The Yocto Project provides open-source tools for developers to customize Linux-based systems regardless of the architecture. With this procedure, you will be able to build a Yocto image for I-Pi SMARC 1200.</p>
146-
<br>
147-
148-
<h2 id="1-Set-up-a-build-host-environment" class="article-heading"><a href="#1-Set-up-a-build-host-environment" class="headerlink" title="1. Set up a build host environment"></a>1. Set up a build host environment<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#1-Set-up-a-build-host-environment'}, '*');" class="article-anchor" href="#1-Set-up-a-build-host-environment" aria-hidden="true"></a></h2><h3 id="1-1-Recommended-Hardware-for-the-host" class="article-heading"><a href="#1-1-Recommended-Hardware-for-the-host" class="headerlink" title="1.1 Recommended Hardware for the host"></a>1.1 Recommended Hardware for the host<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#1-1-Recommended-Hardware-for-the-host'}, '*');" class="article-anchor" href="#1-1-Recommended-Hardware-for-the-host" aria-hidden="true"></a></h3><ul>
145+
<h1 id="How-to-Build-Yocto" class="article-heading"><a href="#How-to-Build-Yocto" class="headerlink" title="How to Build Yocto"></a>How to Build Yocto<a class="article-anchor" href="#How-to-Build-Yocto" aria-hidden="true"></a></h1><p>The Yocto Project provides open-source tools for developers to customize Linux-based systems regardless of the architecture. With this procedure, you will be able to build a Yocto image for I-Pi SMARC 1200.</p>
146+
<h2 id="1-Set-up-a-build-host-environment" class="article-heading"><a href="#1-Set-up-a-build-host-environment" class="headerlink" title="1. Set up a build host environment"></a>1. Set up a build host environment<a class="article-anchor" href="#1-Set-up-a-build-host-environment" aria-hidden="true"></a></h2><h3 id="1-1-Recommended-Hardware-for-the-host" class="article-heading"><a href="#1-1-Recommended-Hardware-for-the-host" class="headerlink" title="1.1 Recommended Hardware for the host"></a>1.1 Recommended Hardware for the host<a class="article-anchor" href="#1-1-Recommended-Hardware-for-the-host" aria-hidden="true"></a></h3><ul>
149147
<li>Intel Core-i7 Processor (&gt;&#x3D; 4 cores)</li>
150148
<li>at least 8GB Memory</li>
151149
<li>at least 500GB Disk space</li>
152150
<li>Ubuntu <strong>22.04 LTS 64bit</strong> or later version for Yocto Project Build</li>
153151
<li>High speed network connectivity</li>
154152
</ul>
155-
<h3 id="1-2-Essential-host-Packages-required-to-be-installed-in-your-host" class="article-heading"><a href="#1-2-Essential-host-Packages-required-to-be-installed-in-your-host" class="headerlink" title="1.2 Essential host Packages required to be installed in your host"></a>1.2 Essential host Packages required to be installed in your host<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#1-2-Essential-host-Packages-required-to-be-installed-in-your-host'}, '*');" class="article-anchor" href="#1-2-Essential-host-Packages-required-to-be-installed-in-your-host" aria-hidden="true"></a></h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo apt update &amp;&amp; sudo apt upgrade</span><br><span class="line">sudo apt install gawk wget git-core diffstat unzip gcc-multilib build-essential chrpath socat cpio python3-pip xz-utils debianutils iputils-ping python3-jinja2 libsdl1.2-dev xterm zstd liblz4-tool curl git</span><br></pre></td></tr></table></figure>
153+
<h3 id="1-2-Essential-host-Packages-required-to-be-installed-in-your-host" class="article-heading"><a href="#1-2-Essential-host-Packages-required-to-be-installed-in-your-host" class="headerlink" title="1.2 Essential host Packages required to be installed in your host"></a>1.2 Essential host Packages required to be installed in your host<a class="article-anchor" href="#1-2-Essential-host-Packages-required-to-be-installed-in-your-host" aria-hidden="true"></a></h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">sudo apt update &amp;&amp; sudo apt upgrade</span><br><span class="line">sudo apt install gawk wget git-core diffstat unzip gcc-multilib build-essential chrpath socat cpio python3-pip xz-utils debianutils iputils-ping python3-jinja2 libsdl1.2-dev xterm zstd liblz4-tool curl git</span><br></pre></td></tr></table></figure>
156154

157155
<p><strong>Note:</strong></p>
158156
<p>Please <strong>Don’t</strong> use the root account to build Yocto. It might cause unpredictable errors.</p>
159-
<h3 id="1-3-Setup-the-GitHub-account-in-the-Host" class="article-heading"><a href="#1-3-Setup-the-GitHub-account-in-the-Host" class="headerlink" title="1.3 Setup the GitHub account in the Host"></a>1.3 Setup the GitHub account in the Host<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#1-3-Setup-the-GitHub-account-in-the-Host'}, '*');" class="article-anchor" href="#1-3-Setup-the-GitHub-account-in-the-Host" aria-hidden="true"></a></h3><p>Before starting to build the source, make sure that git is set up properly with the commands below.</p>
160-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">git config --global user.name &quot;Your_Name&quot;</span><br><span class="line">git config --global user.email &quot;Your_Email&quot;</span><br><span class="line">git config --list</span><br></pre></td></tr></table></figure>
157+
<h3 id="1-3-Setup-the-GitHub-account-in-the-Host" class="article-heading"><a href="#1-3-Setup-the-GitHub-account-in-the-Host" class="headerlink" title="1.3 Setup the GitHub account in the Host"></a>1.3 Setup the GitHub account in the Host<a class="article-anchor" href="#1-3-Setup-the-GitHub-account-in-the-Host" aria-hidden="true"></a></h3><p>Before starting to build the source, make sure that git is set up properly with the commands below.</p>
158+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">git config --global user.name <span class="string">&quot;Your_Name&quot;</span></span><br><span class="line">git config --global user.email <span class="string">&quot;Your_Email&quot;</span></span><br><span class="line">git config --list</span><br></pre></td></tr></table></figure>
161159

162-
<h3 id="1-4-“Google-repo”-packages-required-to-be-installed-in-your-host" class="article-heading"><a href="#1-4-“Google-repo”-packages-required-to-be-installed-in-your-host" class="headerlink" title="1.4 “Google repo” packages required to be installed in your host"></a>1.4 “Google repo” packages required to be installed in your host<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#1-4-“Google-repo”-packages-required-to-be-installed-in-your-host'}, '*');" class="article-anchor" href="#1-4-“Google-repo”-packages-required-to-be-installed-in-your-host" aria-hidden="true"></a></h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">mkdir -p ~/bin</span><br><span class="line">curl https://storage.googleapis.com/git-repo-downloads/repo &gt; ~/bin/repo</span><br><span class="line">chmod a+x ~/bin/repo</span><br><span class="line">export PATH=&quot;~/bin:$PATH&quot;</span><br></pre></td></tr></table></figure>
160+
<h3 id="1-4-“Google-repo”-packages-required-to-be-installed-in-your-host" class="article-heading"><a href="#1-4-“Google-repo”-packages-required-to-be-installed-in-your-host" class="headerlink" title="1.4 “Google repo” packages required to be installed in your host"></a>1.4 “Google repo” packages required to be installed in your host<a class="article-anchor" href="#1-4-“Google-repo”-packages-required-to-be-installed-in-your-host" aria-hidden="true"></a></h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">mkdir -p ~/bin</span><br><span class="line">curl https://storage.googleapis.com/git-repo-downloads/repo &gt; ~/bin/repo</span><br><span class="line">chmod a+x ~/bin/repo</span><br><span class="line"><span class="built_in">export</span> PATH=<span class="string">&quot;~/bin:<span class="variable">$PATH</span>&quot;</span></span><br></pre></td></tr></table></figure>
163161

164-
<h2 id="2-Fetch-the-source-from-the-git-location-as-below" class="article-heading"><a href="#2-Fetch-the-source-from-the-git-location-as-below" class="headerlink" title="2. Fetch the source from the git location as below"></a>2. Fetch the source from the git location as below<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#2-Fetch-the-source-from-the-git-location-as-below'}, '*');" class="article-anchor" href="#2-Fetch-the-source-from-the-git-location-as-below" aria-hidden="true"></a></h2><h3 id="2-1-Create-the-working-directory" class="article-heading"><a href="#2-1-Create-the-working-directory" class="headerlink" title="2.1 Create the working directory"></a>2.1 Create the working directory<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#2-1-Create-the-working-directory'}, '*');" class="article-anchor" href="#2-1-Create-the-working-directory" aria-hidden="true"></a></h3><p><strong>Note:</strong> If you’re using external drive to build the image it must be Ext4 format. FAT and eXFAT formats are not supported.</p>
165-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">mkdir mtk_bsp</span><br><span class="line">cd mtk_bsp</span><br></pre></td></tr></table></figure>
162+
<h2 id="2-Fetch-the-source-from-the-git-location-as-below" class="article-heading"><a href="#2-Fetch-the-source-from-the-git-location-as-below" class="headerlink" title="2. Fetch the source from the git location as below"></a>2. Fetch the source from the git location as below<a class="article-anchor" href="#2-Fetch-the-source-from-the-git-location-as-below" aria-hidden="true"></a></h2><h3 id="2-1-Create-the-working-directory" class="article-heading"><a href="#2-1-Create-the-working-directory" class="headerlink" title="2.1 Create the working directory"></a>2.1 Create the working directory<a class="article-anchor" href="#2-1-Create-the-working-directory" aria-hidden="true"></a></h3><p><strong>Note:</strong> If you’re using external drive to build the image it must be Ext4 format. FAT and eXFAT formats are not supported.</p>
163+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">mkdir mtk_bsp</span><br><span class="line"><span class="built_in">cd</span> mtk_bsp</span><br></pre></td></tr></table></figure>
166164

167-
<h3 id="2-2-Start-to-download-the-sources" class="article-heading"><a href="#2-2-Start-to-download-the-sources" class="headerlink" title="2.2 Start to download the sources"></a>2.2 Start to download the sources<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#2-2-Start-to-download-the-sources'}, '*');" class="article-anchor" href="#2-2-Start-to-download-the-sources" aria-hidden="true"></a></h3><ul>
165+
<h3 id="2-2-Start-to-download-the-sources" class="article-heading"><a href="#2-2-Start-to-download-the-sources" class="headerlink" title="2.2 Start to download the sources"></a>2.2 Start to download the sources<a class="article-anchor" href="#2-2-Start-to-download-the-sources" aria-hidden="true"></a></h3><ul>
168166
<li><font size="3" color="red">Attention: current default branch for build image is “kirkstone”. For other branches build, please refer to our ADLINK <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/ADLINK/adlink-manifest/" style="color:red; text-decoration:underline;">GitHub repository</a> for paired manifest  .xml accordingly!</font></li>
169167
</ul>
170-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">repo init -u https://github.com/ADLINK/adlink-manifest.git -b rity-kirkstone-v23.2 -m 4.0.xml --no-repo-verify</span><br><span class="line">repo sync</span><br></pre></td></tr></table></figure>
168+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">repo init -u https://github.com/ADLINK/adlink-manifest.git -b rity-kirkstone-v23.2 -m 4.0.xml --no-repo-verify</span><br><span class="line">repo sync</span><br></pre></td></tr></table></figure>
171169

172170
<p>Setup the build machine</p>
173-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">source setup_adlink_env.sh -b build</span><br></pre></td></tr></table></figure>
174-
175-
<blockquote>
176-
<p>[!IMPORTANT]</p>
177-
<p>You need permission to access the <a target="_blank" rel="noopener external nofollow noreferrer" href="https://gitlab.com/mediatek/aiot/nda">https://gitlab.com/mediatek/aiot/nda</a> to build fully functioned <code>rity-demo-image</code>. You can still build image using only publicly available packages through configuration, but the resulting images have only limited feature set.</p>
178-
<p>To request for the permission, Please leave a mail to <a href="mailto:[email protected]" rel="external nofollow noreferrer">[email protected]</a></p>
179-
</blockquote>
180-
<p>Required modification in conf&#x2F;local.conf for storage memory and removing NDA access. By default, the NDA access has been enabled in the local.conf.</p>
181-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">vi &lt;build_dir&gt;/conf/local.conf</span><br><span class="line">IMAGE_ROOTFS_EXTRA_SPACE = &quot;40000000&quot;</span><br><span class="line"><span class="meta">#</span><span class="bash">NDA_BUILD = <span class="string">&quot;1&quot;</span> (remove the NDA access by hiding this line using (<span class="string">&quot;#&quot;</span>), <span class="keyword">if</span> you <span class="keyword">do</span> not have)</span></span><br></pre></td></tr></table></figure>
171+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="built_in">source</span> setup_adlink_env.sh -b build</span><br></pre></td></tr></table></figure>
182172

183173
<p>Run the following command on your host system to provoke the yocto image building process.</p>
184-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">bitbake rity-demo-image</span><br></pre></td></tr></table></figure>
174+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">bitbake rity-demo-image</span><br></pre></td></tr></table></figure>
185175

186176
<p>After the build is complete, disk images will be located at work-dir&#x2F;build-dir&#x2F;tmp&#x2F;deploy&#x2F;images&#x2F;lec-mtk-i1200-ufs&#x2F;</p>
187-
<h3 id="3-Flashing-the-build" class="article-heading"><a href="#3-Flashing-the-build" class="headerlink" title="3. Flashing the build"></a>3. Flashing the build<a onclick="parent.postMessage( {msg: '?page=HowToBuildYocto.html#3-Flashing-the-build'}, '*');" class="article-anchor" href="#3-Flashing-the-build" aria-hidden="true"></a></h3><p>Go to the image build directory. Replace with your directory path [work-dir&#x2F;build-dir].</p>
188-
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta">$</span><span class="bash"> <span class="built_in">cd</span> work-dir/build-dir/tmp/deploy/images/lec-mtk-i1200-ufs/</span></span><br></pre></td></tr></table></figure>
177+
<h3 id="3-Flashing-the-build" class="article-heading"><a href="#3-Flashing-the-build" class="headerlink" title="3. Flashing the build"></a>3. Flashing the build<a class="article-anchor" href="#3-Flashing-the-build" aria-hidden="true"></a></h3><p>Go to the image build directory. Replace with your directory path [work-dir&#x2F;build-dir].</p>
178+
<figure class="highlight bash"><table><tr><td class="code"><pre><span class="line"><span class="built_in">cd</span> work-dir/build-dir/tmp/deploy/images/lec-mtk-i1200-ufs/</span><br></pre></td></tr></table></figure>
189179

190180
<p>Flashing the image on UFS <a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.ipi.wiki/pages/1200-docs?page=BootFromUFS.html#BootFromUFS.html">click here</a>.</p>
191181

192182
</div>
193183
<footer class="article-footer">
194-
<time class="article-footer-updated" datetime="2024-10-15T07:44:34.867Z" itemprop="dateModified">Last updated: 2024-10-15</time>
184+
<time class="article-footer-updated" datetime="2024-10-25T03:26:04.857Z" itemprop="dateModified">Last updated: 2024-10-25</time>
195185
<a href="SerialLogReadSER.html" class="article-footer-prev" title="How to Read Console Output"><i class="fa fa-chevron-left"></i><span>Prev</span></a><a href="BootFromUFS.html" class="article-footer-next" title="Flashing Yocto"><span>Next</span><i class="fa fa-chevron-right"></i></a>
196186
</footer>
197187

0 commit comments

Comments
 (0)