Changes

Jump to: navigation, search

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

1,372 bytes added, 14:43, 24 August 2022
How to configure the system for microSD boot
{{Applies To Bora}}
{{Applies To BoraX}}
{{Applies To BoraLite}}
{{InfoBoxBottom}}
|[[Bora_Embedded_Linux_Kit_(BELK)#BELK_software_components|3.0.0]]
|First release
|-
|2.0.0
|December 2016
|BELK 3.0.1 / BXELK 1.0.0
|Added information about new kits
|-
|3.0.0
|July 2017
|BELK 4.0.0 / BXELK 2.0.0
|Added information about new kits
|-
|}
<section begin=BELK/>=Introduction=System boot and recovery via microSD card==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. 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.[[BORA_SOM/BELK-L/Deployment/Restoring_U-Boot_on_NOR_flash|This article]], for example, shows how to make use of such a card to restore the U-Boot image onto the NOR flash. {{ImportantMessage|text=It is worth remembering that the bootable microSD card described in this article is not configured to perform a full boot sequence, including the operating system bootstrap. The bootable microSD card delivered along with the kit is set up to do a full bootstrap sequence, instead. For more details, please refer to [[Working_with_the_Yocto_build_system#bootscript|this section]].}} ===How to create a bootable MicroSD microSD card=======BELK <= 3.0.2 / BXELK <= 1.0.1====This section describes how to create a new bootable microSD card from scratchfor '''BELK <= 3.0.2''' and '''BXELK <= 1.0.1'''.
The following components must be available:
*FSBL built with Vivado 2014.4 as described [[Creating_and_building_example_Vivado_project_(BORA_SOM/BELK)-L/Development/Creating_and_building_a_Vivado_example|here]]*U-boot built in elf format, as described in [[BORA_SOM/BELK-L/Development/Building_U-Boot_(BELK)Boot|here]]
*FPGA bitstream (optional).
The procedure is the following:
*from the Xilinx Tools 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 ''bootloader'' as partition type “bootloader”**(optional) FPGA bitstream in .bit format, with partition type “datafile”''datafile''**U-boot binary with .elf extension, with partition type “datafile”''datafile''*in the ''Output path '' section, browse and select the path where saving the <code>boot.bin </code> file*on a PC, format the microSD card creating a FAT32 partition*copy the <code>boot.bin </code> file to the microSD card FAT32 partition. ==How ==BELK-4.0.0 / BXELK-2.0.0====This section describes how to configure the system create a new bootable microSD card from scratch for microSD '''BELK-4.0.0''' and '''BXELK-2.0.0'''.The following components must be available:*U-boot SPL and U-boot==second stage built as described in [[BORA_SOM/BELK-L/Development/Building_U-Boot|here]]*FPGA bitstream (optional).The S5 dip-switch procedure is the following:*on a PC, format the BORAEVB carrier board is used for configuring the boot mode. Please refer to microSD card creating a FAT32 partition*copy the following table files to select the MicroSD mode microSD card FAT32 partition:** U-boot SPL: <code>boot.bin</code>** U-boot second stage: <code>u-boot.img</code>** Fpga bitstream .bit (highlighted in greenoptional):<code>fpga.bit</code>
===How to configure the system for microSD boot===
For BORA / BORA Evaluation kit systems please refer to [[BORA_SOM/BORA_Evaluation_Kit/Getting_started/Boot_Configurations|this link]].
For BORA Xpress/ BORA xpress Evaluation kit systems please refer to [[BORA_Xpress_SOM/BORA_Xpress_Evaluation_Kit/Getting_started/Boot_Configurations|this link]].
{For BORA Lite Evaluation kit systems please refer to [[BORA_Lite_SOM/BORA_Lite_Evaluation_Kit/Getting_started/Boot_Configurations| class="wikitable" border="1"this link]].! align="center" rowspan="2"|Boot mode! align="center" colspan="8"|S5 dip switch positions|-| style="text-align:center;"|1{{ImportantMessage||style="text-align:center;"|2||style="textIn case the microSD card provided along with the kit is used, the Programmable Logic is automatically programmed with the [[BORA_SOM/BELK-align:center;"L/Development/Creating_and_building_a_Vivado_example|3||style="text-align:center;"|4||style="text-align:center;"|5||style="text-align:center;"|6||style="text-align:center;"|7||style="text-align:center;"|8example design]] during the boot process.|-}}| style="background-color: green;"|MicroSD||style<section end="background-color: green;"|OFF||style="background-color: green;"|ON||style="background-color: green;"|OFF||style="background-color: green;"|ON||style="background-color: green;"|ON||style="background-color: green;"|OFF||style="background-color: green;"|ON||style="background-color: green;"|OFF|-| NOR SPI||OFF||ON||OFF||ON||ON||ON||ON||OFF|-| NAND||OFF||ON||OFF||ON||ON||OFF||ON||ON|}BELK/>
8,183
edits

Navigation menu