Open main menu

DAVE Developer's Wiki β

Changes

Building U-Boot (BELK/BXELK)

128 bytes added, 14:27, 23 November 2021
no edit summary
{{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 ==
|3.0.0
|Jan 2020
|[[BELK/BXELK_software_components#BELK_4.1.0|4.1.10]]|Updated for BELK/BXELK 4.1.10
|-
|}
<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>
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>/tftpboot/bora/</code>) with the following commands:
* For '''BELK 4.0.0''' or newer and '''BXELK 2.0.0''' or newer:
:<pre>cp spl/boot.bin /tftpboot/bora/ &#10;cp u-boot.img /tftpboot/bora/</pre>
* For '''BELK <= 3.0.2''' and '''BXELK <= 1.0.1''' :
:<pre>cp u-boot.bin /tftpboot/bora/</pre>
 
<section end=BELK/>
8,221
edits