Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

45 bytes added, 11:03, 9 May 2018
no edit summary
==Introduction==
imagesThis how to explains how to '''create a microSD card''' to boot IGEP boards with  '''software distributions ( yocto, Ubuntu, Debian ...)'''.
<br />images
==<span id="Prerequisites" class="mw-headline">Prerequisites</span>==
$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=1024 count=1024
[sudo] password for jdoe:
=='''<span class="mw-headline">Prepare a SD to boot</span>'''== ===<span id="Install_GParted" class="mw-headline">Install GParted</span>===
We will use the gparted program for create the partitions, if you don't have this program installed then you must install it with this command:
<div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code">
===<span style="color: #ff0000;">Use sfdisk partition method</span>===
<div class="codeContent panelContent pdl"><div id="highlighter_789287" class="syntaxhighlighter sh-eclipse nogutter bash">
{| class=" contenttable" border="0" cellspacing="0" cellpadding="0"
|-
| class="code"|<div class="container" title="Hint: double-click to select code"><div class="line number1 index0 alt2"><span style="color: #ff0000;"><code class="bash functions">sudo</code> <code class="bash plain">sfdisk </code><code class="bash plain">/dev/</code><code class="bash plain"><your_sd> <<EOF</code></span>
{| class=" contenttable" border="0" cellspacing="0" cellpadding="0"
|-
| class="code"|<div class="container" title="Hint: double-click to select code"><div class="line number1 index0 alt2"><code class="bash plain">$ </code><code class="bash functions">sudo</code> <code class="bash plain">mkfs.vfat -F 32 </code><code class="bash plain">/dev/</code><code class="bash plain"><your_sd_partition1> -n boot</code>
<div class="line number2 index1 alt1"><code class="bash plain">$ </code><code class="bash functions">sudo</code> <code class="bash plain">mkfs.ext3 </code><code class="bash plain">/dev/</code><code class="bash plain"><your_sd_partition2> -L rootfs</code></div>
</div>
</div>
{| class=" contenttable" border="0" cellspacing="0" cellpadding="0"
|-
| class="code"|<div class="container" title="Hint: double-click to select code"><div class="line number1 index0 alt2"><code class="bash plain">$ </code><code class="bash functions">sudo</code> <code class="bash functions">dd</code> <code class="bash keyword">if</code><code class="bash plain">=/<your_u-boot_directory></code><code class="bash plain">/u-boot</code><code class="bash plain">.imx of=</code><code class="bash plain">/dev/</code><code class="bash plain"><your_sd> bs=512 seek=2</code>
When the install procedure ends you can call the program from your system tools menu or directly using a terminal console.
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
The next step it's create the msdos table partition for it you should click in the "Device" menu and then in the "Create Partition Table" option.
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
After that you can '''Apply'''.
 
The Next step it's create the partitions for it you should go to the partition menu and select the "New" option then the application show a window like this:
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
The Next step it's create the partitions for it you should go to the partition menu and select the "New" option then the application show a window like this:
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
First you should select the unallocated partition area and then  you should go to the partition menu and select the "New" option then the application show a window like this:
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
At end we will click on "Add" button.
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
or
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
Now we must select the boot flag for the first partition for it we use the right mouse button over the boot partition and select "Manage Flags" option
<div class="center"><div class="thumb tnone"><div class="thumbinner">[[]]<div class="thumbcaption"><div class="magnify"></div>
</div>
</div>
 =='''How to boot each part'''==
Now we will see where to put each part and how to.
560
edits