我正在尝试使用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
我解决了。我的代码的最新版本:
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