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

From DAVE Developer's Wiki
Jump to: navigation, search
Line 15: Line 15:
 
|[[Bora_Embedded_Linux_Kit_(BELK)#BELK_software_components|3.0.0]]
 
|[[Bora_Embedded_Linux_Kit_(BELK)#BELK_software_components|3.0.0]]
 
|First release
 
|First release
 +
|-
 +
|2.0.0
 +
|July 2017
 +
|[[Bora_Embedded_Linux_Kit_(BELK)#BELK_software_components|3.0.0, 4.0.0]]
 +
|Udates for BELK-4.0.0 / BXELK-2.0.0
 
|-
 
|-
 
|}
 
|}
Line 26: Line 31:
 
*Setup the server environment (please refer to [[Build_system_(BELK)#Pre-built_toolchain|this section]])
 
*Setup the server environment (please refer to [[Build_system_(BELK)#Pre-built_toolchain|this section]])
 
*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:
<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>
make bora_qspi_config
+
** 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>
make bora_mmc_config
+
 
make bora_noflash_config
+
:<code>bora_qspi</code> and <code>borax_qspi</code>: U-Boot is built to use NOR flashed based environment.
</pre>
+
:<code>bora_mmc</code> and <code>bora_mmc</code>: U-Boot environment is placed in SD/MMC card.
:<code>bora_qspi</code>: this target is <u>available for BORA only</u>. U-Boot is built to use NOR flashed based environment.
+
:<code>bora_noflash</code> and <code>bora_noflash</code>: U-Boot environment is placed in SD/MMC card. NOR flash and NAND flash are disabled.
:<code>bora_mmc</code>: this target is <u>available for BORA only</u>. U-Boot environment is placed in SD/MMC card.
 
:<code>bora_noflash</code>: this target is <u>available for BORA and BORAX</u>. U-Boot environment is placed in SD/MMC card. NOR flash and NAND flash are disabled.
 
 
* build U-Boot by issuing <code>make</code> command. This will generate U-Boot binary images.
 
* build U-Boot by issuing <code>make</code> command. This will generate U-Boot binary images.
  
Subsequent builds just require <code>make</code> command, without targets, to update the binary images. Once the build process is complete, the binary images can be copied to the tftp root directory (eg. <code>/srv/tftp/belk/</code>) with the following command: <code>cp u-boot.bin /srv/tftp/belk/</code>.
+
Subsequent builds just require <code>make</code> command, without targets, to update the binary images. Once the build process is complete, the binary images can be copied to the tftp root directory (eg. <code>/srv/tftp/belk/</code>) with the following commands:
 +
* For '''BELK <= 3.0.2''' and '''BXELK <= 1.0.1''' :
 +
:<pre>cp u-boot.bin /srv/tftp/belk/</pre>
 +
* For '''BELK-4.0.0''' and '''BXELK-2.0.0''' :
 +
:<pre>cp spl/boot.bin /srv/tftp/belk/ &#10;cp u-boot.img /srv/tftp/belk/</pre>

Revision as of 13:40, 29 June 2017

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

History[edit | edit source]

Version Date BELK version Notes
1.0.0 November 2015 3.0.0 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 and BXELK-2.0.0:
      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. Once the build process is complete, the binary images can be copied to the tftp root directory (eg. /srv/tftp/belk/) with the following commands:

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