Changes

Jump to: navigation, search

System boot and recovery via microSD card (BELK/BXELK)

229 bytes added, 11:57, 30 October 2015
no edit summary
|}
==InstructionsIntroduction==It is assumed that the development environment has been set up properly as described [[Build_system_(BELK)|here]].BELK provides a bootable microSD that can be used not only to quickly start the system, but also as a recovery method in case the primary boot device (eg. SPI QSPI NOR flash) gets erased or corrupted. The following sections describe how to create a bootable SD card and how to configure the system for booting from SD.3.4.9.1 ==How to create a bootable MicroSD card==
This section describes how to create a new bootable microSD card from scratch.
The following components must be available:
*FSBL built with Vivado 2014.4 as described in Section 3.4.2[[Creating_and_building_example_Vivado_project_(BELK)|here]]*U-boot built in elf format, as described in Section 3.4.4[[Building_U-Boot_(BELK)|here]]*FPGA bitstream (optional).
The procedure is the following:
*from the Vivado 2014.4 SDK, apply the required patches to the <code>main.c </code> project file.This step can be done in two ways:**manually, directly modifying the <code>main.c </code> file adding the following code snippets:<pre>
----CUT----
/*
#ifdef XPAR_PS7_QSPI_LINEAR_0_S_AXI_BASEADDR
----CUT----
</pre>**automatically, using the Apply Patch function and selecting the <code>belk-sd-boot.patch </code> file provided with the BELK (please refer to the following images):[[File:Patch sd 1.png|thumb|center|600px|Automatic patch applying (1/3)]][[File:Patch sd 2.png|thumb|center|600px|Automatic patch applying (2/3)]][[File:Patch sd 3.png|thumb|center|600px|Automatic patch applying (3/3)]]*once the patch are is applied, rebuild the FSBL project*from the Xilinx Tools menùmenu, select ''Create Zynq Boot Image''*select Create New BIF file and insert path and name of the .bif file
in the Boot image partitions section, click on Add to browse and add the following files:
FSBL in .elf format, with partition type “bootloader”
4,650
edits

Navigation menu