我是python新手
{a1}我正在尝试执行^脚本:
[root@xilinx tools]# ./zynq-boot-bin.py
test.py -u <inputfile> -o <outputfile>
[root@xilinx tools]# ./zynq-boot-bin.py -u u-boot-spl -o BOOT.BIN
Input file is: u-boot-spl
Output file is: BOOT.BIN
Using /home/Hannan/master-next/u-boot-xlnx/tools/u-boot-spl to get image length - it is 470104 (0x72c58) bytes
Loaded to the OCM image should fit into 3 mapped pages of OCM - 192K (0x30000), specified 0x72c58
Traceback (most recent call last):
File "./zynq-boot-bin.py", line 217, in <module>
0) #start_exec)
File "./zynq-boot-bin.py", line 132, in image_generator
exit (ERROR_DEFS['HEAD'])
NameError: global name 'ERROR_DEFS' is not defined
[root@xilinx tools]#
我如何解决这个问题?在
原因很简单,已经在错误跟踪中说明了。在
变量“ERROR_DEFS”在您使用的代码中,但未声明/设置。在
相关问题 更多 >
编程相关推荐