Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

U-Boot - Make preloader and main bootloader

Mit der Soc EDS shell zum Projekt navigieren -> z.b. Projekt\software\spl_bsp
dort das kommando
[make clean] cd
make UNTER DER PFADANGABE “/usr/bin/make” ausführen (rpeloader in spl_bsp/preloader....bin)
und
make uboot ausführen.
[Alternativer workaround zu /usr/bin/make ist export PATH=/bin:$PATH, funzt nicht richtig]

make erzeugt den preloader und vorher legt es die Uboot Sourcen im Verzeichniss ab
make uboot erzeugt den main Bosotloader

...

Uboot induvidialisieren:
Allgemeine config - socfpga_common.h - unter: ProjekOrdner\software\spl_bsp\uboot-socfpga\include\configs
Z154 - #define CONFIG_BOOTDELAY 5
Ab Z181 - Variablen
Ab Z298 - MMC Uart ... Einstellungen

Spezielle Config - socfpga_cyclone5.h - unter: Projektordner\software\spl_bsp\uboot-socfpga\include\configs

The handoff folder contains now after the previous steps all the sources to compile the booot loaders.

On Windows 10 - Version 1909 - and cygwin - Version 2.0 - all commands which require decompressing of source archives, have to be
pointed into the right folder to be executed from, these commands beginn with    /usr/bin/ . All commands are in italic and bold,
comments to commands are in brackets.

First, the softwarefolder software folder needs to be setup, therefore navigate to it by typing into the prior opened SoC EDS Shell with
administrative privileges
    cd c:                               (Change directory)
followed by
    cd Project/software/spl_bsp
and run two setup commands.
    /usr/bin/make clean
/usr/bin/make configcygwin x86_64 version 2.0.0 - Built with make version 3.81

Win 10 Pro Version 1909

navigate to C:\intelFPGA\18.1\embedded open as admin Embedded_Command_Shell.bat (Linux sh)

cd C:/temp/Project/

     (Cleans the folder from files of a previous build)
    /usr/bin/make clean/usr/bin/make config  – places config    (generates folder:     uboot-socfpga into softwae/spl_bsp)

The following command decompresses and places the general U-Boot source folder inside the folder. In addition it generates
the preloader image - preloader-mkpimage.bin - and some more files.
    /usr/bin/make  –  make              (Places the file:     preloader-mkpimage.bin into softwae/spl_bsp)

make uboot     – Places To generate the main U-Boot boot loader, type:
    make uboot                  (Places the image u-boot.img into into softwae/spl_bsp/uboot-socfpga)


Image Added

Image AddedC:\temp\Project\software\spl_bsp


Device Tree Blob

...

Interface

Linux requires a DTB file to start the Kernel properly

DTB informs the Linux Kernel about the existing Hardware, its Configuration and which driver to use

Generate - ... .dtb file from ... .sopcinfo file



Decompile - ... .dtb to ... .dts

...