Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

2,522 bytes added, 18:32, 10 May 2018
Prepare a SD to boot
 
<span class="mw-headline">In order to start developing with an IGEP PROCESSOR BOARD we can use a microSD Card to flash our system and boot from it. Most of the cases is the easiest way to boot a board.<br /></span>
 
<span class="mw-headline">The following steps details how to prepare a booteable MicroSD Card</span>
=='''<span class="mw-headline">Prepare a SD to boot</span>'''==
<div style="text-align: left;">{{Message/Information Message|title}}</div><div style="text-align: left;"><span id="bs_template:@@@TPL1@@@" class=TITLE|message"mceNonEditable template" data-bs-name="Message/Information Message" data-bs-type="template" data-bs-id= "1">{{ Message/Information Message }}</span ></div><div style="colortext-align: #000000left;">We are using this version First of Ubuntu ........all it is important to detect which device is our microSD Card.In order to do that we can follow this instructions in a Linux terminal:</div> <div style="text-align: left; padding-left: 30px;">'''1-''' Clean the ''dmesg'' information:</div> sudo dmesg -c<div style="text-align: left; padding-left: 30px;">'''2- '''Insert the microSD Card and show the ''dmesg'' information:</spandiv> dmesg<div style="text-align: left;">}}The result have to be similar to this:</div>   <div style="text-align: left;">We can use two differents methods see the name of our device in order to boot it. One the system: '''/dev/sdX''' where X is the character assigned by our system, in this case /dev/sd'''GPARTEDe.''' and </div>  <div style="text-align: left;">Now we have to ensure that the other MicroSD Card is completely clean. We can use the following command to do that:</div> sudo dd if=/dev/zero of=/dev/sdX bs=1024 count=1024<div style="text-align: left;">Where '''sfdiskX'''is the character returned previously by your system, for example, in the previous situation:</div> sudo dd if=/dev/zero of=/dev/sde bs=1024 count=1024<div style="text-align: left;">Now we are ready to create the corresponding partitions in our MicroSD Card. Gparted is more visual than sfdisk but </div> ==How to partition the MicroSD card== <div style="text-align: left;">There are several ways to partition a MicroSD Card. In this post we are using the GParted tool that can be installed as:</div> sudo apt-get install gparted<span class="mw-headline">Other tools as sfdisk and mkfs are useful too.</span> <span class="mw-headline">It is faster important to do sodifference between a MicroSD Card for a NXP processor and the other cases. The process of partition is similar but, in the case of NXP chips, there exists some differences. </span> ===<span class="mw-headline">General case process:</span>===<span class="mw-headline">[[File:SD2.png]]</divspan>
<span class="mw-headline">[[File:SD3.png]]</span>
 
<span class="mw-headline">[[File:SD4.png|776x531px]]</span>
===<span id="Preparing_the_microSD_card" class="mw-headline">Preparing the microSD card</span>===
[sudo] password for jdoe:</pre>
 
 
 
 
 
sudo sfdisk /dev/sdc <<EOF<br />label: dos<br />16065,128520,0x0C,*<br />144585,,,-<br />EOF
 
NORMAL<br />sudo sfdisk /dev/sdc <<EOF<br />label: dos<br />63,144522,0x0C,*<br />160650,,,-<br />EOF
 
sudo mkfs.vfat -F32 /dev/sdc1 -n boot<br />sudo mkfs.ext3 /dev/sdc2 -L rootfs
 
sudo dd if=./u-boot.imx of=/dev/sdc bs=512 seek=2; sync
===<span id="Install_GParted" class="mw-headline">Downloading GParted</span>===
<span style="color: #ff0000;">In order to prepare a micro SD with your already generated u-boot you need to flash the u-boot.imx using the command dd. (?)<br /></span>
It is important to prepare your micro SD card first creating a partition that leave some free space for the u-boot.imx. It can be used GPARTED as it is shown in the image.
<span style="color: #000000;">When the install procedure ends you can call the program from your system tools menu or directly using a terminal console.</span>
<span style="color: #000000;"> &nbsp;</span>
<div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code"></div>
 
==<span id="GParted_and_Creation_of_Partitions" class="mw-headline">'''Make the partition of the SD'''<br /></span>==
Now we are going to see some steps with the two methods.
59
edits