【问题标题】:Create a .bif file with TCL script使用 TCL 脚本创建 .bif 文件
【发布时间】:2020-06-08 14:45:27
【问题描述】:

我正在尝试使用 TCL 脚本创建启动映像。如果我通过 SDK 手动创建 fsblTest.bif 文件,我可以创建。我想用 TCL 创建汽车。如何使用 TCL 创建 .bif 文件?
我的代码;

 setws /home/nmi/workspace
    app create -name fsblTest -template {Zynq FSBL} -hw zc702 -proc ps7_cortexa9_0 -os standalone
    app build -name fsblTest
    exec bootgen -arch zynq -image /home/nmi/workspace/fsblTest_system/_ide/bootimage/fsblTest_system.bif -w -o /home/nmi/Desktop/bootD/BOOT.bin

【问题讨论】:

  • 这能回答你的问题吗? Vitis IDE invalid arguments
  • 不,肖恩。我的代码现在正在运行。但我问如何自动创建带有脚本的 .bif 文件。

标签: sdk tcl xilinx vivado


【解决方案1】:

我解决了。 我的代码的最新版本:

setws /home/nmi/workspace
#app create with hardware,processor..
app create -name fsblTest1 -template {Zynq FSBL} -hw zc702 -proc ps7_cortexa9_0 -os standalone
app build -name fsblTest1

set outputFile [open /home/nmi/workspace/fsblTest1_system/fsblTest1.bif w+]

# .bif file content
puts $outputFile "/* /tmp/bootgen_zynq_fsbl_system16600834677826087177/sd_card_temp/boot.bif */ "
puts $outputFile "/* Command to create bitstream .bin file:       */"
puts $outputFile "/*   bootgen -image <bif_file> -split bin -w    */"
puts $outputFile "/* Command to create BOOT.BIN file:             */"
puts $outputFile "/*   bootgen  -image <bif_file> -w -o i BOOT.BIN */"
puts $outputFile "/*zc702*/"
puts $outputFile "the_ROM_image:"
puts $outputFile "{"
puts $outputFile "\[bootloader] /home/nmi/workspace/zc702/export/zc702/sw/zc702/boot/fsbl.elf"
puts $outputFile "/home/nmi/workspace/fsblTest1/Debug/fsblTest1.elf"
puts $outputFile "}"
close $outputFile
#boot.bin file create
exec bootgen -arch zynq -image /home/nmi/workspace/fsblTest1_system/fsblTest1.bif -w -o /home/nmi/Desktop/bootD/BOOT.bin

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多