Changes

Jump to: navigation, search

Building U-Boot (BELK/BXELK)

530 bytes added, 14:27, 23 November 2021
no edit summary
{{Applies To Bora}}
{{Applies To BoraX}}
{{Applies To BoraLite}}
{{InfoBoxBottom}}
{{ImportantMessage|text=As the structure of the BELK/BXELK is based on several tools, it is strongly recommended the reading of [[Logical_structure_of_Bora_and_BoraX_Embedded_Linux_Kits_(BORA_SOM/BELK-L/General/BXELK)Logical_structure_of_BELK|this document]] first.
}}
== History ==
!Notes
|-
|[http://wiki.dave.eu/index.php?title=Building_U-Boot_(BELK/BXELK)&{{oldid=|6723 |1.0.0]}}
|November 2015
|[[Bora_Embedded_Linux_Kit_(BELK)/BXELK_software_components#BELK_software_componentsBELK_3.0.0|3.0.0 / N/A]]
|First release
|-
|{{oldid|8999 |2.0.0}}
|July 2017
|[[Bora_Embedded_Linux_Kit_(BELK)/BXELK_software_components#BELK_software_componentsBELK_4.0.0_.2F_BXELK_2.0.0|4.0.0 / 2.0.0]]|Udates Updated for BELK 4.0.0 / BXELK 2.0.0|-|3.0.0|Jan 2020|[[BELK/BXELK_software_components#BELK_4.1.0|4.1.0]]|Updated for BELK/BXELK 4.1.0
|-
|}
<section begin=BELK/>==InstructionsBuilding U-Boot==It is assumed that the development environment has been set up properly as described [[Build_system_(BORA_SOM/BELK)-L/Development/Build_system|here]].
*start the Linux development server and login into the system
*assuming that a local repository has not been created, clone the remote U-Boot git repository (the “-b” option is used to automatically checkout the current branch):
<code>git clone git@git.dave.eu:dave/bora/u-boot-xlnx.git -b bora-4.x.x</code>
*Setup the server environment (please refer to [[Build_system_(BORA_SOM/BELK)-L/Development/Build_system#Pre-built_toolchain|this section]])
*enter the source tree directory and select the desired target by issuing one of the following commands:
** For '''BELK <= 3.0.2''' and '''BXELK <= 1.0.1''': <pre>make bora_qspi_config &#10;make bora_mmc_config &#10;make bora_noflash_config</pre>
** For '''BELK 4.0.0''' or newer and '''BXELK 2.0.0''' or newer: <pre>make bora_qspi_defconfig &#10;make bora_mmc_defconfig &#10;make bora_noflash_defconfig &#10;make borax_qspi_defconfig &#10;make borax_mmc_defconfig &#10;make borax_noflash_defconfig</pre>** '''BELK 4.1.1''' or newer more targets have been added for BoraLite booting from NAND and for the application note [[BELK-AN-006:_Enabling_dual_Gigabit_Ethernet_support_on_BoraEVB/BoraXEVB|AN006]] <pre>make bora_nand_defconfig &#10;make bora_mmc_an006_defconfig</pre>
:<code>bora_qspi</code> and <code>borax_qspi</code>: U-Boot is built to use NOR flashed based environment. The resulting binary files are used to boot from serial NOR flash.
:<code>bora_mmc</code> and <code>borax_mmc</code>: U-Boot environment is placed in SD/MMC card. The resulting binary files are used to boot from SD/MMC card. However, NOR flash and NAND flash are accessible.
:<code>bora_noflash</code> and <code>borax_noflash</code>: U-Boot environment is placed in SD/MMC card. The resulting binary files are used to boot from SD/MMC card. NOR flash and NAND flash are disabled.
:<code>bora_nand_defconfig</code>: U-Boot environment is placed on NAND flash.
* build U-Boot by issuing <code>make</code> command. This will generate U-Boot binary images.
** file extension <code>.elf</code> must be manually added on <code>u-boot</code> if ELF file is required (for example to build <code>boot.imgbin</code> for uSD)
Subsequent builds just require <code>make</code> command, without targets, to update the binary images.
{{ImportantMessage|text=By default, BoraEVB and BoraXEVB are configured to boot from NOR flash. Consequently, the U-Boot image stored in the NOR flash is built with <code>bora_qspibora_qspi_defconfig</code> and <code>borax_qspiborax_qspi_defconfig</code> configuration respectively.
}}
In order to download them to the target via TFPT protocol, once the build process is complete the binary images can be copied to the [[BoraX_Embedded_Linux_Kit_(BXELK)BORA_SOM/BORA_Evaluation_Kit/Getting_started/Connections_and_first_boot#Target_configuration_for_the_development_stage_.28net_nfs.29|tftp root directory]] (e.g. <code>/srv/tftptftpboot/belkbora/</code>) with the following commands:
* For '''BELK 4.0.0''' or newer and '''BXELK 2.0.0''' or newer:
:<pre>cp spl/boot.bin /srvtftpboot/tftp/belkbora/ &#10;cp u-boot.img /srv/tftptftpboot/belkbora/</pre>
* For '''BELK <= 3.0.2''' and '''BXELK <= 1.0.1''' :
:<pre>cp u-boot.bin /srvtftpboot/tftpbora/belk</pre> <section end=BELK/pre>
8,183
edits

Navigation menu