Difference between revisions of "DHCOM STM32MP1 Bootloader U-Boot"

From Wiki-DB
Jump to navigation Jump to search
(Created page with "== How to build U-Boot== {| class="wikitable" align="center" | style="width: 98%; background: #f3f3f3;" valign="top" | | Get sources from Github {| class="wikitable" style="w...")
 
Line 14: Line 14:
4. <tt>''ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make stm32mp15_dhcom_basic_defconfig''</tt><br/>
4. <tt>''ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make stm32mp15_dhcom_basic_defconfig''</tt><br/>
5. <tt>''ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make -j`nproc`</tt>
5. <tt>''ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make -j`nproc`</tt>
|}
==U-boot console commands==
=== SPI Flash ===
:'''SPI Flash Init'''
:{| class="wikitable"
|''<code>sf probe</code>''
|}
:Example: <code>sf probe</code>
:Description: Initializes the OnBoard SPI Flash
:'''SPI Flash Read'''
:{| class="wikitable"
|''<code>sf read <SDRAM address> <SPI Flash address> <Bytes></code>''
|}
|}

Revision as of 13:53, 3 December 2021

How to build U-Boot

Get sources from Github

1. Start the Console on Linux
2. git clone https://github.com/dh-electronics/u-boot-stm32mp1.git --branch dev/2021.01_dhsom
3. cd u-boot-stm32mp1

Configure and build the Device Tree + Kernel

4. ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make stm32mp15_dhcom_basic_defconfig
5. ARCH=arm CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- make -j`nproc`

U-boot console commands

SPI Flash

SPI Flash Init
sf probe
Example: sf probe
Description: Initializes the OnBoard SPI Flash
SPI Flash Read
sf read <SDRAM address> <SPI Flash address> <Bytes>