Page History
...
To generate the main U-Boot boot loader, type:
make uboot (Places the image u-boot.img into softwae/spl_bsp/uboot-socfpga)
Device Tree Blob
Interface
Linux requires a DTB file to start the Kernel properly
Lastly, the Device Tree Blob must be generated, whereby Linux can start automated without user interaction.
It acts as an Interface from the board hardware to the Linux Kernel. The .dtb file DTB informs the Linux Kernel about the existing Hardware,
its Configuration and which driver to use for controlling it.
Generate - .dtb or .dts file from .sopcinfo file
C:\intelFPGA\18.1\embedded\examples\hardware\cv_soc_devkit_ghrd\tgz\soc_system_18_1_09132018_94307.tar.gz
Extract to your project folder via:
mkdir c:/temp/Project/ghrd_cyc5
cp c:/intelFPGA/18.1/embedded/examples/hardware/cv_soc_devkit_ghrd/tgz/soc_system_18_1_09132018_94307.tar.gz c:/temp/Project/ghrd_cyc5
cd c:/temp/Project/ghrd_cyc5
tar xvf soc_system_18_1_09132018_94307.tar.gz
Das Programm "Device Tree Generator" / sopc2dts erzeugt ihn.
Unter "C:\intelFPGA\18.1\embedded\examples\hardware" findet sich das ghrd / Golden hardware standard
nach z.b.
driveLetter/PathToFolder/cv_soc_devkit_ghrd
entpacken
Aus dem Projekt nach nutzung des "Platform designers" , die erzeugt ....sopinfo in den Ordner kopieren.
Soc EDS Shell öffnen [Normal user is sufficient]
cd driveLetter:
cd driveLetter/PathToFolder/cv_soc_devkit_ghrd
k.jahn@PC02758 /cygdrive/d/ENTW/TEI0022/Spl-Uboot_V1.2/DTB/cv_soc_devkit_ghrd
sopc2dts --input HPS.sopcinfo --output DTBsocfpga.dtb --type dtb --board hps_common_board_info.xml --bridge-removal all --clocks
Kurzform:
sopc2dts -i HPS.sopcinfo -o DTBsocfpga.dtb -t dtb --board hps_common_board_info.xml --bridge-removal all --clocks
dts anstatt dtb erzeugen:
$ sopc2dts -i HPS.sopcinfo -o DTBsocfpga.dts -t dts --board hps_common_board_info.xml --bridge-removal all --clocks
Decompile - .dtb file to .dts file
C:\intelFPGA\18.1\embedded\host_tools\gnu\dtc\ dtc.exe
cd /cygdrive/c/intelFPGA/18.1/embedded/host_tools/gnu/dtc
dtc -I dts -O dtb -o device-tree.dtb devicetree.dts
Generate - .dts file to .dtb file
cd /cygdrive/c/intelFPGA/18.1/embedded/host_tools/gnu/dtc
dtc -I dtb -O dts -o devicetree.dts soc_system.dtb