名称错误:未定义全局名称“ERROR\u DEFS”

2024-09-28 05:17:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我是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]#

我如何解决这个问题?在


Tags: topyimagebinisroottoolsspl

热门问题