Hello All, I was testing my core-image-minimal with test-suit and getting error like "need terminal to enter password and set-up tap interface" i am getting few error so i am not able to test my image . I have run following command in order to test my image
*bitbake rpm busybox curl run-postinsts*
*bitbake package-index*
*bitbake core-image-minimal -c testimage -v
* I am getting following error after running last comand . I am also attaching
log file here(see attached file )
ERROR: runqemu exited with code 1
ERROR: Output from runqemu:
runqemu - INFO - Continuing with the following parameters:
KERNEL:
[/home/nikita/yoctoproject/poky/build/tmp/deploy/images/qemux86-64/bzImage--5.4.190+gitAUTOINC+6a12bea731_d9d6c6e0d0-r0-qemux86-64-20220501184705.bin]
MACHINE: [qemux86-64]
FSTYPE: [ext4]
ROOTFS:
[/home/nikita/yoctoproject/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.ext4]
CONFFILE:
[/home/nikita/yoctoproject/poky/build/tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.qemuboot.conf]
runqemu - INFO - Setting up tap interface under sudo
sudo: a terminal is required to read the password; either use the -S option to
read from standard input or configure an askpass helper
sudo: a password is required
runqemu - ERROR - Setting up tap device failed:
Command '('sudo', '/home/nikita/yoctoproject/poky/scripts/runqemu-ifup',
'1000', '1000',
'/home/nikita/yoctoproject/poky/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin')'
returned non-zero exit status 1.
Run runqemu-gen-tapdevs to manually create one.
runqemu - INFO - Cleaning up
[?7h
DEBUG: Sending SIGTERM to runqemu
Output from runqemu:
WARNING: Qemu ended unexpectedly, dump data from host is in
/home/nikita/yoctoproject/poky/build/tmp/log/runtime-hostdump/202207171341_qemu
DEBUG: Sending SIGTERM to runqemu
DEBUG: Sending SIGTERM to runqemu
ERROR: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_testimage(d)
0003:
File: '/home/nikita/yoctoproject/poky/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/nikita/yoctoproject/poky/meta/classes/testimage.bbclass', lineno:
374, function: testimage_main
0370: orig_sigterm_handler = signal.signal(signal.SIGTERM, sigterm_exception)
0371: try:
0372: # We need to check if runqemu ends unexpectedly
0373: # or if the worker send us a SIGTERM
*** 0374: tc.target.start(params=d.getVar("TEST_QEMUPARAMS"),
runqemuparams=d.getVar("TEST_RUNQEMUPARAMS"))
0375: import threading
0376: try:
0377: threading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")),
handle_test_timeout, (int(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()
0378: except ValueError:
File: '/home/nikita/yoctoproject/poky/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
DEBUG: Python function do_testimage finished
*If anyone can help then please do your help will be appreciated . Thanks in
advance*
log.do_testimage.2510
Description: Binary data
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#57556): https://lists.yoctoproject.org/g/yocto/message/57556 Mute This Topic: https://lists.yoctoproject.org/mt/92435401/21656 Mute #linux:https://lists.yoctoproject.org/g/yocto/mutehashtag/linux Mute #warning:https://lists.yoctoproject.org/g/yocto/mutehashtag/warning Mute #toolchain:https://lists.yoctoproject.org/g/yocto/mutehashtag/toolchain Mute #bitbake:https://lists.yoctoproject.org/g/yocto/mutehashtag/bitbake Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Mute #distro:https://lists.yoctoproject.org/g/yocto/mutehashtag/distro Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto Mute #qemu:https://lists.yoctoproject.org/g/yocto/mutehashtag/qemu Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
