You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »



Bootloader ...__________________________________________________________________________________


bsp-editor
eingeben, das Prog öffnet sich
File -> "New HPS BSP" und dann zum Ordner Quartus-Projekt/hps_isw:handoff/HPS_hps_0 zeigen & ok drücken
Unter spl.boot die Bootquelle anklicken/abwählen
Fat_support und die zugehörige Partitionsnummer angeben

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



Infos über uboot

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


Spl and main U-Boot, what are they for

spl - inizialize the hps



BSP Editor


Open a SoC EDS Shell und ...

navigate to C:\intelFPGA\18.1\embedded open open as admin Embedded_Command_Shell.bat (Linux VORGEHEN?!?!?)
Da wird für Uboot gebraucht

run as administrator confirm Notification, type command

bsp-editor.exe window - BSP Editor - opens

In editor File   → New HPS BSP ...   .

     BILD 5

New Window - New BSP - opens, click button ... opens window - open - point the path to handoff folder and select
via one left click, so that in the fild foldre name:
C:\temp\Project\hps_isw_handoff\PlatformEditorHPS_hps_0
zu lesen ist, click Open and in other window OK .

    Bild 6

In BSP Editor, check in the left column under
spl.bbot — that only BOOT_FROM_SDMMC is checked
check FAT_SUPPORT
FAT_BOOT_PARTITION: must be 1
FAT_LOAD_PAYLOAD_NAME: must be u-boot.img

Hit Generate

    Bild 7

Folder has new folder - software

    Bild 8

Make U-Boot - preloader and main bootloader

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

cd C:/temp/Project/


make config

make clean

make

make uboot

run make / make clean
→ On win run Shell must be Admin and instead of make run /usr/bin/make


Device Tree Blob


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



  • No labels