|
79 | 79 | <meta property="og:site_name" content="ADLINK Industrial Pi Wiki">
|
80 | 80 | <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">
|
81 | 81 | <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"> |
84 | 84 | <meta property="article:author" content="ADLINK Technology Inc. All Rights Reserved.">
|
85 | 85 | <meta name="twitter:card" content="summary">
|
86 | 86 | <!-- Google Analytics -->
|
@@ -114,7 +114,7 @@ <h1 id="logo-wrap">
|
114 | 114 | </nav>
|
115 | 115 |
|
116 | 116 | <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> |
118 | 118 |
|
119 | 119 | </div>
|
120 | 120 |
|
@@ -142,56 +142,46 @@ <h1 class="article-title" itemprop="name"></h1>
|
142 | 142 | <a href="" class="article-edit-link" title="Improve this doc"><i class="fa fa-pencil"></i></a>
|
143 | 143 | </header>
|
144 | 144 | <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> |
149 | 147 | <li>Intel Core-i7 Processor (>= 4 cores)</li>
|
150 | 148 | <li>at least 8GB Memory</li>
|
151 | 149 | <li>at least 500GB Disk space</li>
|
152 | 150 | <li>Ubuntu <strong>22.04 LTS 64bit</strong> or later version for Yocto Project Build</li>
|
153 | 151 | <li>High speed network connectivity</li>
|
154 | 152 | </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 && 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 && 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> |
156 | 154 |
|
157 | 155 | <p><strong>Note:</strong></p>
|
158 | 156 | <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 "Your_Name"</span><br><span class="line">git config --global user.email "Your_Email"</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">"Your_Name"</span></span><br><span class="line">git config --global user.email <span class="string">"Your_Email"</span></span><br><span class="line">git config --list</span><br></pre></td></tr></table></figure> |
161 | 159 |
|
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 > ~/bin/repo</span><br><span class="line">chmod a+x ~/bin/repo</span><br><span class="line">export PATH="~/bin:$PATH"</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 > ~/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">"~/bin:<span class="variable">$PATH</span>"</span></span><br></pre></td></tr></table></figure> |
163 | 161 |
|
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> |
166 | 164 |
|
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> |
168 | 166 | <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>
|
169 | 167 | </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> |
171 | 169 |
|
172 | 170 | <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/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 <build_dir>/conf/local.conf</span><br><span class="line">IMAGE_ROOTFS_EXTRA_SPACE = "40000000"</span><br><span class="line"><span class="meta">#</span><span class="bash">NDA_BUILD = <span class="string">"1"</span> (remove the NDA access by hiding this line using (<span class="string">"#"</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> |
182 | 172 |
|
183 | 173 | <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> |
185 | 175 |
|
186 | 176 | <p>After the build is complete, disk images will be located at work-dir/build-dir/tmp/deploy/images/lec-mtk-i1200-ufs/</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/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/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> |
189 | 179 |
|
190 | 180 | <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>
|
191 | 181 |
|
192 | 182 | </div>
|
193 | 183 | <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> |
195 | 185 | <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>
|
196 | 186 | </footer>
|
197 | 187 |
|
|
0 commit comments