Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

162 bytes removed, 08:38, 14 May 2018
How to partition the MicroSD card
<span class="mw-headline">It is important to difference 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 processUsing Gparted:</span>'''=== 
{| class="contenttable sortable"
|-
!|
====='''GENERAL CASE'''=====
!|
====='''NXP PROCESSORS'''=====
|-
||'''1- '''Select the corresponding device
==='''Using SFDISK& MKFS<br />'''===
Another method is to use the following commands in order to prepare the microSD card. These commands will perform the same operations that in the previous part.
|-
| style="width: 431.367px;"|
sudo sfdisk /dev/<strong><your_microsd></strong> <<EOF<br>label: dos<br>63,144522,0x0C,*<br>160650,,,-<br>EOF
| style="width: 436.633px;"|
sudo sfdisk /dev/<strong><your_microsd></strong> <<EOF<br>label: dos<br>16065,128520,0x0C,*<br>144585,,,-<br>EOF
|-
| style="width: 431.367px;"|
sudo mkfs.vfat -F32 /dev/<strong><your_microsd></strong> -n boot
| style="width: 436.633px;"|
sudo mkfs.vfat -F32 /dev/<strong><your_microsd></strong> -n boot
|-
| style="width: 431.367px;"|
sudo mkfs.ext4 /dev/<strong><your_microsd></strong> -L rootfs
| style="width: 436.633px;"|
sudo mkfs.ext4 /dev/<strong><your_microsd></strong> -L rootfs
|-
| style="width: 431.367px;"|'''For example:'''
sudo sfdisk /dev/<strong>sdc</strong> <<EOF<br data-attributes="%20/">label: dos<br data-attributes="%20/">16065,128520,0x0C,*<br data-attributes="%20/">144585,,,-<br data-attributes="%20/">EOF<br><br>sudo mkfs.vfat -F32 /dev/<strong>sdc</strong> -n boot<br><br>sudo mkfs.ext4 /dev/<strong>sdc</strong> -L rootfs<br><br>
|}
 
='''How to copy everything into the MicroSD Card<br />'''=
59
edits