Difference between revisions of "Building U-Boot (BELK/BXELK)"

From DAVE Developer's Wiki
Jump to: navigation, search
(History)
(Instructions)
Line 32: Line 32:
 
*enter the source tree directory and select the desired target by issuing one of the following commands:
 
*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 <= 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''' and '''BXELK-2.0.0''': <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>
+
** 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>
  
 
:<code>bora_qspi</code> and <code>borax_qspi</code>: U-Boot is built to use NOR flashed based environment.
 
:<code>bora_qspi</code> and <code>borax_qspi</code>: U-Boot is built to use NOR flashed based environment.

Revision as of 07:32, 14 July 2017

Info Box
Bora5-small.jpg Applies to Bora
BORA Xpress.png Applies to BORA Xpress

History[edit | edit source]

Version Date BELK/BXELK version Notes
1.0.0 November 2015 3.0.0 / N/A First release
2.0.0 July 2017 3.0.0 / 4.0.0 Udates for BELK 4.0.0 / BXELK 2.0.0

Instructions[edit | edit source]

It is assumed that the development environment has been set up properly as described 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):

git clone git@git.dave.eu:dave/bora/u-boot-xlnx.git -b bora

  • Setup the server environment (please refer to 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:
      make bora_qspi_config 
      make bora_mmc_config 
      make bora_noflash_config
    • For BELK 4.0.0 or newer and BXELK 2.0.0 or newer:
      make bora_qspi_defconfig 
      make bora_mmc_defconfig 
      make bora_noflash_defconfig 
      make borax_qspi_defconfig 
      make borax_mmc_defconfig 
      make borax_noflash_defconfig
bora_qspi and borax_qspi: U-Boot is built to use NOR flashed based environment.
bora_mmc and bora_mmc: U-Boot environment is placed in SD/MMC card.
bora_noflash and bora_noflash: U-Boot environment is placed in SD/MMC card. NOR flash and NAND flash are disabled.
  • build U-Boot by issuing make command. This will generate U-Boot binary images.

Subsequent builds just require make command, without targets, to update the binary images.


200px-Emblem-important.svg.png

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 bora_qspi and borax_qspi 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 tftp root directory (e.g. /srv/tftp/belk/) with the following commands:

  • For BELK-4.0.0 and BXELK-2.0.0 :
cp spl/boot.bin /srv/tftp/belk/ 
cp u-boot.img /srv/tftp/belk/
  • For BELK <= 3.0.2 and BXELK <= 1.0.1 :
cp u-boot.bin /srv/tftp/belk/