---
description: >-
  ruggedBOARD-A5D2x ships with inbuilt 32MB NOR flash, which is sufficient for
  installing Yocto Build Linux OS. Its always recommended using NOR flash to
  boot OS.
---

# Preparing SD card in case of OS failure

Please note that ruggedBOARD-A5D2x comes with inbuilt 32MB NOR flash, which is sufficient for installing Yocto Build Linux OS. In case of up-gradation of OS or cases where the OS got corrupted due to some reason SD card can be used to flash the default images of OS and regain access to the board.

**Note**: Prepare your SD-Card with Default images (BOOT.BIN, uboot.bin, zImage, at91-sama5d27\_som1\_ek.dtb, rootfs)



**Partitioning Micro SD card in Ubuntu:**

* **Using Graphical User Interface**

Use the application Disk Utility in Ubuntu.

* Select Mass storage device
* Umount the volume
* Delete the partition
* Create the two partition "boot" and "rootfs" with **“fat32”** and **“ext4”** support respectively

![](https://3659589761-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbvnQRGvCTc2Zmsi6BG%2F-Lc0zq_eQoA0qL4RkVAu%2F-Lc11j6gBJ0slS3ijKOs%2FScreenshot%20\(74\).png?alt=media\&token=d0589f75-f9d0-4fc2-80c3-904a4a1fded4)

Select the first fat partition and then select “edit partition” and mark it as **bootable**.

**After successfully creating partitions and copy the images in “boot“and “rootfs” respectively with the commands mentioned below. this commands has to be performed the Ubuntu PC.**

Notes : Kindly keep all the default Images in the below path:&#x20;

_ubuntu@pc:\~$ Work/images_



**Flashing Images in SDCARD:**

`Ubuntu@pc:~$ cp zImage    /media/gopal/boot/`

`Ubuntu@pc:~$ cp u-boot.in   /media/gopal/boot/`

`Ubuntu@pc:~$ cp BOOT.BIN    /media/gopal/boot/`

`Ubuntu@pc:~$ cp  cp at91-sama5d27_som1_ek.dtb    /media/gopal/boot/`

`Ubuntu@pc:~$sudo tar -xvf  rootfs.tgz  -C /media/gopal/rootfs`

You have successfully prepared SD card for future use.
