how make BOOT.BIN, Image,system.dtb from customized HDL

i download ad9361 HDL from 

GitHub - analogdevicesinc/hdl at hdl_2017_r1 

 i customized & changed HDL in vivado,after that i maked "system_top.hdf" & "system_top.bit" by vivado

Now how can I make linux (BOOT.BIN, Image, system.dtb and uEnv.txt)? from vivado output files?

  • You need to source your vivado/settings64.sh script first.

    Then the ATF_PATH must point to your arm-trusted-firmware directory.

    Then your call the script with the path to your .hdf file as the first argument.

    > ./build_boot_bin.sh /foo/bar/system_top.hdf

    -Michael

  • bl31.elf is the arm trusted firmware witch was not build due to this error:

    bash: cd: /media/mazr/1850C3F250C3D4A2/MPSOC_BOOT_BIN/arm-trusted-firmware: No such file or directory

    You need to git clone this repository first:

    > git clone https://github.com/Xilinx/arm-trusted-firmware.git

    Then point the ATF_PATH to it.

    -Michael

  • i download & extract MPSOC_BOOT_BIN.ZIP & copy my "system_top.bit","system_top.hdf" in extracted folder

    then i open build_boot_bin.sh and edit this lines

    ATF_PATH=/media/mazr/1850C3F250C3D4A2/MPSOC_BOOT_BIN

    export PATH=$PATH:/opt/Xilinx/SDK/2017.2/gnu/aarch64/lin/aarch64-linux/bin

    i run build_boot_bin.sh in my Ubuntu 16.4 terminal with this command "source ./build_boot_bin.sh"

    my terminal will be closed automatically after run this file .i comment this command "||exit " in "echo $1 | grep -q ".hdf" || exit"

    and change it to echo $1 | grep -q ".hdf"

    but many errors will be appear after run it

     

    cp: missing destination file operand after 'build/'
    Try 'cp --help' for more information.
    fatal: Not a git repository (or any parent up to mount point /media/mazr/1850C3F250C3D4A2)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    make: *** No rule to make target 'distclean'.  Stop.
    make: *** No targets specified and no makefile found.  Stop.
    No command 'xsdk' found, did you mean:
     Command 'xsd' from package 'mono-devel' (main)
     Command 'xsok' from package 'xsok' (universe)
    xsdk: command not found
    No command 'hsi' found, did you mean:
     Command 'hsc' from package 'hsc' (universe)
     Command 'csi' from package 'chicken-bin' (universe)
     Command 'esi' from package 'atm-tools' (universe)
     Command 'psi' from package 'psi' (universe)
     Command 'gsi' from package 'gambc' (universe)
    hsi: command not found
    cp: cannot stat '/media/mazr/1850C3F250C3D4A2/MPSOC_BOOT_BIN/build/zynqmp/release/bl31/bl31.elf': No such file or directory
    cp: cannot stat 'build/pmufw/executable.elf': No such file or directory
    cp: cannot stat 'build/build/sdk/fsbl/Release/fsbl.elf': No such file or directory
    cp: cannot stat 'build/build/sdk/hw_0/system_top.bit': No such file or directory
    bootgen: command not found

     

    i used Ubuntu 16.4  & vivado/sdk 2017.2

  • thank you for your answer

    i do this and  after compile this error appears

    INFO: [Common 17-206] Exiting hsi at Wed Oct 25 16:48:50 2017...
    [WARNING]: [fsbl_config] a53_x64 | a53_x32 | r5_single | r5_dual will be deprecated, please use 'destination_cpu' attribute of bootloader partition
    [ERROR]  : Can't read file - bl31.elf

    i attached my linux terminal log file

    log_file.zip