Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sotaoverride/b39579154d2bd376e5ca2510444c64dc to your computer and use it in GitHub Desktop.
Save sotaoverride/b39579154d2bd376e5ca2510444c64dc to your computer and use it in GitHub Desktop.
python error while doing an OpenBMC build
ERROR: obmc-phosphor-image-1.0-r0 do_generate_static: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_generate_static(d)
0003:
File: '/home/aatir/openbmc/meta-phosphor/classes/image_types_phosphor.bbclass', lineno: 212, function: do_generate_static
0208:
0209: _append_image(os.path.join(d.getVar('DEPLOY_DIR_IMAGE', True),
0210: 'u-boot.%s' % d.getVar('UBOOT_SUFFIX',True)),
0211: int(d.getVar('FLASH_UBOOT_OFFSET', True)),
*** 0212: int(d.getVar('FLASH_KERNEL_OFFSET', True)))
0213:
0214: _append_image(os.path.join(d.getVar('DEPLOY_DIR_IMAGE', True),
0215: d.getVar('FLASH_KERNEL_IMAGE', True)),
0216: int(d.getVar('FLASH_KERNEL_OFFSET', True)),
File: '/home/aatir/openbmc/meta-phosphor/classes/image_types_phosphor.bbclass', lineno: 200, function: _append_image
0196: nor_image = os.path.join(d.getVar('IMGDEPLOYDIR', True),
0197: '%s.static.mtd' % d.getVar('IMAGE_NAME', True))
0198:
0199: def _append_image(imgpath, start_kb, finish_kb):
*** 0200: imgsize = os.path.getsize(imgpath)
0201: if imgsize > (finish_kb - start_kb) * 1024:
0202: bb.fatal("Image '%s' is too large!" % imgpath)
0203:
0204: subprocess.check_call(['dd', 'bs=1k', 'conv=notrunc',
File: '/usr/lib/python3.6/genericpath.py', lineno: 50, function: getsize
0046:
0047:
0048:def getsize(filename):
0049: """Return the size of a file, reported by os.stat()."""
*** 0050: return os.stat(filename).st_size
0051:
0052:
0053:def getmtime(filename):
0054: """Return the last modification time of a file, reported by os.stat()."""
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/aatir/openbmc/build/tmp/deploy/images/palmetto/u-boot.bin'
ERROR: obmc-phosphor-image-1.0-r0 do_generate_static: [Errno 2] No such file or directory: '/home/aatir/openbmc/build/tmp/deploy/images/palmetto/u-boot.bin'
ERROR: obmc-phosphor-image-1.0-r0 do_generate_static: Function failed: do_generate_static
ERROR: Logfile of failure stored in: /home/aatir/openbmc/build/tmp/work/palmetto-openbmc-linux-gnueabi/obmc-phosphor-image/1.0-r0/temp/log.do_generate_static.13640
ERROR: Task (/home/aatir/openbmc/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb:do_generate_static) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4109 tasks of which 10 didn't need to be rerun and 1 failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment