Skip to contentSkip to conversation

Error while testing "core-image-base" through "bitbake core-image-base -c testimage -v" #bitbake #dunfell

DISCUSSION [email protected] 3 participants 7 messages Jun 14, 2023

lore
Share & tools
lore
#0 lore raw

Hi all,

I was testing my *core-image-base -c testimage* with test-suit and getting error:-

*ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:*
*runqemu - WARNING - /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist* *ls: cannot access '/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf': No such file or directory* *runqemu - ERROR - Command 'ls -t /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2.* *runqemu - INFO - Cleaning up*

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended unexpectedly, dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu
ERROR: core-image-base-1.0-r0 do_testimage: 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_testimage(d)
0003:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 129, function: do_testimage 0125:    netstat -an
0126:}
0127:
0128:python do_testimage() {
*** 0129:    testimage_main(d)
0130:}
0131:
0132:addtask testimage
0133:do_testimage[nostamp] = "1"
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 371, function: testimage_main 0367:    orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0368:    try:
0369:        # We need to check if runqemu ends unexpectedly
0370:        # or if the worker send us a SIGTERM
*** 0371:        tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS")) 0372:        import threading
0373:        try:
0374:            threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start() 0375:        except ValueError:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py', lineno: 67, function: start 0063:            if self.runner.server_ip:
0064:                self.server_ip = self.runner.server_ip
0065:        else:
0066:            self.stop()
*** 0067:            raise RuntimeError("FAILED to start qemu - check the task log and the boot log")
0068:
0069:    def stop(self):
0070:        self.runner.stop()
Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log

ERROR: Logfile of failure stored in: /home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255
ERROR: Task (/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

#1 lore raw

You need to first build the image (bitbake core-image-base), then run the testimage task as a separate bitbake invocation.

Alex

Quoted 69 lines · On Wed, 14 Jun 2023 at 08:50, <[email protected]> wrote:

Hi all,

I was testing my core-image-base -c testimage with test-suit and getting error:-

ERROR: core-image-base-1.0-r0 do_testimage: Output from runqemu:
runqemu - WARNING - /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/core-image-base-board.qemuboot.conf doesn't exist
ls: cannot access '/home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf': No such file or directory runqemu - ERROR - Command 'ls -t /home/kush/khu/sources/build/tmp-glibc/deploy/images/board/*.qemuboot.conf' returned non-zero exit status 2. runqemu - INFO - Cleaning up

WARNING: core-image-base-1.0-r0 do_testimage: Qemu ended unexpectedly, dump data from host is in /home/integration-team/kush/khu/sources/build/tmp-glibc/log/runtime-hostdump/202306141146_qemu
ERROR: core-image-base-1.0-r0 do_testimage: 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_testimage(d)
     0003:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 129, function: do_testimage
     0125:    netstat -an
     0126:}
     0127:
     0128:python do_testimage() {
 *** 0129:    testimage_main(d)
     0130:}
     0131:
     0132:addtask testimage
     0133:do_testimage[nostamp] = "1"

File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/classes/testimage.bbclass', lineno: 371, function: testimage_main
0367: orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0368: try:
0369: # We need to check if runqemu ends unexpectedly
0370: # or if the worker send us a SIGTERM

 *** 0371:        tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))
     0372:        import threading
     0373:        try:

0374: threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()
0375: except ValueError:
File: '/home/integration-team/kush/khu/sources/openembedded-core/meta/lib/oeqa/core/target/qemu.py', lineno: 67, function: start
0063: if self.runner.server_ip:
0064: self.server_ip = self.runner.server_ip
0065: else:
0066: self.stop()
*** 0067: raise RuntimeError("FAILED to start qemu - check the task log and the boot log")

     0068:
     0069:    def stop(self):
     0070:        self.runner.stop()

Exception: RuntimeError: FAILED to start qemu - check the task log and the boot log

ERROR: Logfile of failure stored in: /home/kush/khu/sources/build/tmp-glibc/work/board-oe-linux/core-image-base/1.0-r0/temp/log.do_testimage.17255
ERROR: Task (/home/kush/khu/sources/meta-exaleap/recipes-images/images/core-image-base.bb:do_testimage) failed with exit code '1'

Can anyone help me in this, where i am doing wrong.

T&R
luvkhush

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60285): https://lists.yoctoproject.org/g/yocto/message/60285
Mute This Topic: https://lists.yoctoproject.org/mt/99522880/1686489
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Re: Error while testing "core-image-base" through "bitbake core-image-base -c testimage -v" #dunfell

Hi Alex,

I successfully builded image with using command- "core-image-base" after that I am running command "bitbake core-image-base -c testimage -v"

then i am facing above mentioned issue.

#3 lore raw

Re: [yocto] Error while testing "core-image-base" through "bitbake core-image-base -c testimage -v" #dunfell

To be able to use testimage with qemu you need to set MACHINE to one of the qemu targets (you can see them in comments in local.conf.sample). It's not going to work if MACHINE is set to your board.

Alex

Quoted 16 lines · On Wed, 14 Jun 2023 at 11:09, <[email protected]> wrote:

Hi Alex,

I successfully builded image with using command- "core-image-base" after that I am running command "bitbake core-image-base -c testimage -v"

then i am facing above mentioned issue.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60292): https://lists.yoctoproject.org/g/yocto/message/60292
Mute This Topic: https://lists.yoctoproject.org/mt/99522880/1686489
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: Error while testing "core-image-base" through "bitbake core-image-base -c testimage -v" #dunfell

I donot want testimage with qemu, i am using my own custom, automatically it is taking qemu, how can i stop qemu.

#5 lore raw

Re: [yocto] Error while testing "core-image-base" through "bitbake core-image-base -c testimage -v" #dunfell

Quoted 2 lines · On 14 Jun 2023, at 10:47, lavkhush2208 via lists.yoctoproject.org…

I donot want testimage with qemu, i am using my own custom, automatically it is taking qemu, how can i stop qemu.

Can you share the configuration you have so far? If you’re not using qemu to emulate the machine, what are you using: a different emulator, or physical hardware?

Ross

#6 lore raw

Re: [yocto] Error while testing "core-image-base" through "bitbake core-image-base -c testimage -v" #dunfell

In reply to [email protected]

Using your own custom what? Can we see that please?

Alex

Quoted 15 lines · On Wed 14. Jun 2023 at 11.47, <[email protected]> wrote:

I donot want testimage with qemu, i am using my own custom, automatically it is taking qemu, how can i stop qemu.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#60294):
https://lists.yoctoproject.org/g/yocto/message/60294
Mute This Topic: https://lists.yoctoproject.org/mt/99522880/1686489
Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-