From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7013677320161460224 Date: Thu, 30 Sep 2021 03:50:04 -0700 (PDT) From: Srinuvasan A To: isar-users Message-Id: <5ed36530-f7d3-4672-96ce-479f68d00b96n@googlegroups.com> Subject: Builds get fails when we append SWUPDATE yml file MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1264_2117464572.1632999004349" X-TUID: ddY3WHSx9v7h ------=_Part_1264_2117464572.1632999004349 Content-Type: multipart/alternative; boundary="----=_Part_1265_1928407783.1632999004349" ------=_Part_1265_1928407783.1632999004349 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi All and Henning, Our downstream project isar-siemens SLLL and isar-cip-core get build failure when we include this commit 6fa0197 . The build get fails when we append SWUPDATE yml file. this will add the KERNEL_IMAGE and INITRD_IMAGE variable, this will defined in sw-description.tmpl file TEMPLATE_VARS += "PN ROOTFS_PARTITION_NAME KERNEL_IMAGE INITRD_IMAGE" SWU_ADDITIONAL_FILES += "${INITRD_IMAGE} ${KERNEL_IMAGE} ${ROOTFS_PARTITION_NAME}" when we add kas/opt/ebg-swu.yml file this will take the " https://gitlab.com/cip-project/cip-core/isar-cip-core/-/blob/next/wic/simatic-ipc227e-efibootguard.wks" file. this will configure the wic pulgin as "part --source efibootguard-boot", in this script it is expecting those KERNEL_IMAGE and INITRD_IMAGE or otherwise it throws the error. Failure logs below: `DEBUG: Executing python function do_wic_image DEBUG: Executing shell function generate_wic_image INFO: Creating image(s)... WARNING: KERNEL_IMAGE not set. Use default: WARNING: INITRD_IMAGE not set ERROR: file vmlinuz not found in directory /build/tmp/deploy/images/simatic-ipc227e WARNING: exit code 1 from a shell command. ERROR: 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: 0001: *** 0002:do_wic_image(d) 0003: File: '/work/isar/meta/classes/wic-img.bbclass', lineno: 141, function: do_wic_image 0137:} 0138: 0139:do_wic_image[file-checksums] += "${WKS_FILE_CHECKSUM}" 0140:python do_wic_image() { *** 0141: bb.build.exec_func("generate_wic_image", d) 0142: bb.build.exec_func("check_for_wic_warnings", d) 0143:} 0144:addtask wic_image before do_image after do_image_tools 0145: File: '/work/isar/bitbake/lib/bb/build.py', lineno: 251, function: exec_func 0247: with bb.utils.fileslocked(lockfiles): 0248: if ispython: 0249: exec_func_python(func, d, runfile, cwd=adir) 0250: else: *** 0251: exec_func_shell(func, d, runfile, cwd=adir) 0252: 0253: try: 0254: curcwd = os.getcwd() 0255: except: File: '/work/isar/bitbake/lib/bb/build.py', lineno: 452, function: exec_func_shell 0448: with open(fifopath, 'r+b', buffering=0) as fifo: 0449: try: 0450: bb.debug(2, "Executing shell function %s" % func) 0451: with open(os.devnull, 'r+') as stdin, logfile: *** 0452: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)]) 0453: finally: 0454: os.unlink(fifopath) 0455: 0456: bb.debug(2, "Shell function %s finished" % func) File: '/work/isar/bitbake/lib/bb/process.py', lineno: 182, function: run 0178: if not stderr is None: 0179: stderr = stderr.decode("utf-8") 0180: 0181: if pipe.returncode != 0: *** 0182: raise ExecutionError(cmd, pipe.returncode, stdout, stderr) 0183: return stdout, stderr Exception: bb.process.ExecutionError: Execution of '/build/tmp/work/ebsy-buster-amd64/ebsy-image-reference-simatic-ipc227e-wic-swu-img/1.0-r0/temp/run.generate_wic_image.157804' failed with exit code 1: INFO: Creating image(s)... WARNING: KERNEL_IMAGE not set. Use default: WARNING: INITRD_IMAGE not set ERROR: file vmlinuz not found in directory /build/tmp/deploy/images/simatic-ipc227e WARNING: exit code 1 from a shell command. DEBUG: Python function do_wic_image finished ` Please revert back this commit. Thanks, Srinuvasan.A ------=_Part_1265_1928407783.1632999004349 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi All and Henning,

Our downstream project isar-siemens SLLL and i= sar-cip-core get build failure when we include this commit 6fa0197. The build get fails when we append SWUPDATE yml file.
= this will add the KERNEL_IMAGE and INITRD_IMAGE variable, this will defined= in sw-description.tmpl file

TEMPLATE_VARS +=3D "PN ROOTFS_PARTITION_= NAME KERNEL_IMAGE INITRD_IMAGE"
SWU_ADDITIONAL_FILES +=3D "${INITRD_IMAG= E} ${KERNEL_IMAGE} ${ROOTFS_PARTITION_NAME}"

when we add kas/opt/ebg-= swu.yml file this will take the "ht= tps://gitlab.com/cip-project/cip-core/isar-cip-core/-/blob/next/wic/simatic= -ipc227e-efibootguard.wks" file.
this will configure the wic pulgin = as "part --source efibootguard-boot", in this script it is expecting those = KERNEL_IMAGE and INITRD_IMAGE or otherwise it throws the error.

Failu= re logs below:

`DEBUG: Executing python function do_wic_image
DEBU= G: Executing shell function generate_wic_image
INFO: Creating image(s)..= .

WARNING: KERNEL_IMAGE not set. Use default:
WARNING: INITRD_IMAG= E not set

ERROR: file vmlinuz not found in directory /build/tmp/deplo= y/images/simatic-ipc227e
WARNING: exit code 1 from a shell command.
E= RROR: Error executing a python function in exec_python_func() autogenerated= :

The stack trace of python calls that resulted in this exception/fai= lure was:
File: 'exec_python_func() autogenerated', lineno: 2, function:=
0001:
*** 0002:do_wic_image(d)
0003:
File: '/work/isar/meta/cl= asses/wic-img.bbclass', lineno: 141, function: do_wic_image
0137:}
01= 38:
0139:do_wic_image[file-checksums] +=3D "${WKS_FILE_CHECKSUM}"
014= 0:python do_wic_image() {
*** 0141: bb.build.exec_func("generate_wic_ima= ge", d)
0142: bb.build.exec_func("check_for_wic_warnings", d)
0143:}<= br>0144:addtask wic_image before do_image after do_image_tools
0145:
= File: '/work/isar/bitbake/lib/bb/build.py', lineno: 251, function: exec_fun= c
0247: with bb.utils.fileslocked(lockfiles):
0248: if ispython:
0= 249: exec_func_python(func, d, runfile, cwd=3Dadir)
0250: else:
*** 0= 251: exec_func_shell(func, d, runfile, cwd=3Dadir)
0252:
0253: try:0254: curcwd =3D os.getcwd()
0255: except:
File: '/work/isar/bitbak= e/lib/bb/build.py', lineno: 452, function: exec_func_shell
0448: with op= en(fifopath, 'r+b', buffering=3D0) as fifo:
0449: try:
0450: bb.debug= (2, "Executing shell function %s" % func)
0451: with open(os.devnull, 'r= +') as stdin, logfile:
*** 0452: bb.process.run(cmd, shell=3DFalse, stdi= n=3Dstdin, log=3Dlogfile, extrafiles=3D[(fifo,readfifo)])
0453: finally:=
0454: os.unlink(fifopath)
0455:
0456: bb.debug(2, "Shell function= %s finished" % func)
File: '/work/isar/bitbake/lib/bb/process.py', line= no: 182, function: run
0178: if not stderr is None:
0179: stderr =3D = stderr.decode("utf-8")
0180:
0181: if pipe.returncode !=3D 0:
*** = 0182: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
0183: r= eturn stdout, stderr
Exception: bb.process.ExecutionError: Execution of = '/build/tmp/work/ebsy-buster-amd64/ebsy-image-reference-simatic-ipc227e-wic= -swu-img/1.0-r0/temp/run.generate_wic_image.157804' failed with exit code 1= :
INFO: Creating image(s)...

WARNING: KERNEL_IMAGE not set. Use de= fault:
WARNING: INITRD_IMAGE not set

ERROR: file vmlinuz not found= in directory /build/tmp/deploy/images/simatic-ipc227e
WARNING: exit cod= e 1 from a shell command.

DEBUG: Python function do_wic_image finishe= d
`

Please revert back this commit.

Thanks,
Srinuvasan.A<= /p> ------=_Part_1265_1928407783.1632999004349-- ------=_Part_1264_2117464572.1632999004349--