Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C15BCC433EF for ; Tue, 19 Jul 2022 18:30:20 +0000 (UTC) Subject: Re: Error while testing "core-image-minimal" through "bitbake core-image-minimal -c testimage -v" #linux #warning #toolchain #dunfell To: yocto@lists.yoctoproject.org From: "Nikita Gupta" X-Originating-Location: Pune, Maharashtra, IN (152.57.207.206) X-Originating-Platform: Linux Chrome 103 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 19 Jul 2022 11:30:11 -0700 References: In-Reply-To: Message-ID: <11765.1658255411754201332@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="KO22uiPjnKdjGSlI9pux" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 19 Jul 2022 18:30:20 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/57573 --KO22uiPjnKdjGSlI9pux Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Alexander, Thanks for your precious time . I applied you suggestion and it worked and i setup tap interface with follo= wing command: *sudo /home/nikita/yoctoproject/poky/scripts/runqemu-gen-tapdevs 1000 1000 = 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin * but after that i am getting some warning like fail to start qemu and afte= r that i am getting errors which is due to failure in starting qemu: WARNING: core-image-minimal-1.0-r0 do_testimage: Last 25 lines of text: [=C2=A0 =C2=A0 2.372775] Key type asymmetric registered [=C2=A0 =C2=A0 2.375200] Asymmetric key parser 'x509' registered [=C2=A0 =C2=A0 2.389021] Block layer SCSI generic (bsg) driver version 0.4 = loaded (major 251) [=C2=A0 =C2=A0 2.389290] io scheduler mq-deadline registered [=C2=A0 =C2=A0 2.389459] io scheduler kyber registered [=C2=A0 =C2=A0 2.389570] input: Power Button as /devices/LNXSYSTM:00/LNXPWR= BN:00/input/input0 [=C2=A0 =C2=A0 2.405464] ACPI: Power Button [PWRF] [=C2=A0 =C2=A0 2.659671] PCI Interrupt Link [LNKC] enabled at IRQ 10 [=C2=A0 =C2=A0 3.142802] PCI Interrupt Link [LNKA] enabled at IRQ 10 [=C2=A0 =C2=A0 3.146178] Serial: 8250/16550 driver, 4 ports, IRQ sharing di= sabled [=C2=A0 =C2=A0 3.187185] 00:05: ttyS0 at I/O 0x3f8 (irq =3D 4, base_baud = =3D 115200) is a 16550A [=C2=A0 =C2=A0 3.229110] 00:06: ttyS1 at I/O 0x2f8 (irq =3D 3, base_baud = =3D 115200) is a 16550A [=C2=A0 =C2=A0 3.250602] Linux agpgart interface v0.103 [=C2=A0 =C2=A0 3.258767] crng init done [=C2=A0 =C2=A0 3.262616] bochs-drm 0000:00:02.0: remove_conflicting_pci_fra= mebuffers: bar 0: 0xfd000000 -> 0xfdffffff [=C2=A0 =C2=A0 3.266483] bochs-drm 0000:00:02.0: remove_conflicting_pci_fra= mebuffers: bar 2: 0xfebd0000 -> 0xfebd0fff [=C2=A0 =C2=A0 3.267730] bochs-drm 0000:00:02.0: vgaarb: deactivate vga con= sole [=C2=A0 =C2=A0 3.270600] Console: switching to colour dummy device 80x25 [=C2=A0 =C2=A0 3.274496] [drm] Found bochs VGA, ID 0xb0c0. [=C2=A0 =C2=A0 3.275895] [drm] Framebuffer size 16384 kB @ 0xfd000000, mmio= @ 0xfebd0000. [=C2=A0 =C2=A0 3.279874] [TTM] Zone=C2=A0 kernel: Available graphics memory= : 116092 KiB [=C2=A0 =C2=A0 3.299694] [TTM] Initializing pool allocator [=C2=A0 =C2=A0 3.299943] [TTM] Initializing DMA pool allocator [=C2=A0 =C2=A0 3.300480] [drm] Found EDID data blob. [=C2=A0 =C2=A0 3.312971] [drm] Initialized bochs-drm 1.0.0 20130925 for 000= 0:00:02.0 on minor 0 WARNING: core-image-minimal-1.0-r0 do_testimage: Check full boot log: /home= /nikita/yoctoproject/poky/build/tmp/work/qemux86_64-poky-linux/core-image-m= inimal/1.0-r0/testimage/qemu_boot_log.20220719154118 WARNING: core-image-minimal-1.0-r0 do_testimage: Qemu ended unexpectedly, d= ump data from host is in /home/nikita/yoctoproject/poky/build/tmp/log/runti= me-hostdump/202207192111_qemu WARNING: core-image-minimal-1.0-r0 do_testimage: qemu-system ended unexpect= edly Output from runqemu: runqemu - ERROR - Failed to run qemu: X Error:=C2=A0 BadValue Request Major code 130 (MIT-SHM) Request Minor code 3 () Value 0x3bc Error Serial #2663 Current Serial #2664 runqemu - INFO - Cleaning up ERROR: core-image-minimal-1.0-r0 do_testimage: Error executing a python fun= ction 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: 0001: *** 0002:do_testimage(d) 0003: File: '/home/nikita/yoctoproject/poky/meta/classes/testimage.bbclass', line= no: 129, function: do_testimage 0125:=C2=A0 =C2=A0 netstat -an 0126:} 0127: 0128:python do_testimage() { *** 0129:=C2=A0 =C2=A0 testimage_main(d) 0130:} 0131: 0132:addtask testimage 0133:do_testimage[nostamp] =3D "1" File: '/home/nikita/yoctoproject/poky/meta/classes/testimage.bbclass', line= no: 374, function: testimage_main 0370:=C2=A0 =C2=A0 orig_sigterm_handler =3D signal.signal(signal.SIGTERM, s= igterm_exception) 0371:=C2=A0 =C2=A0 try: 0372:=C2=A0 =C2=A0 =C2=A0 =C2=A0 # We need to check if runqemu ends unexpec= tedly 0373:=C2=A0 =C2=A0 =C2=A0 =C2=A0 # or if the worker send us a SIGTERM *** 0374:=C2=A0 =C2=A0 =C2=A0 =C2=A0 tc.target.start(params=3Dd.getVar("TES= T_QEMUPARAMS"), runqemuparams=3Dd.getVar("TEST_RUNQEMUPARAMS")) 0375:=C2=A0 =C2=A0 =C2=A0 =C2=A0 import threading 0376:=C2=A0 =C2=A0 =C2=A0 =C2=A0 try: 0377:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 threading.Timer(int(d.getVar= ("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (int(d.getVar("TEST_OVERALL= _TIMEOUT")),)).start() 0378:=C2=A0 =C2=A0 =C2=A0 =C2=A0 except ValueError: File: '/home/nikita/yoctoproject/poky/meta/lib/oeqa/core/target/qemu.py', l= ineno: 67, function: start 0063:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if self.runner.server_ip: 0064:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.server_ip= =3D self.runner.server_ip 0065:=C2=A0 =C2=A0 =C2=A0 =C2=A0 else: 0066:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.stop() *** 0067:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 raise RuntimeError("FAIL= ED to start qemu - check the task log and the boot log") 0068: 0069:=C2=A0 =C2=A0 def stop(self): 0070:=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.runner.stop() Exception: RuntimeError: FAILED to start qemu - check the task log and the = boot log ERROR: Logfile of failure stored in: /home/nikita/yoctoproject/poky/build/t= mp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_testima= ge.7780 ERROR: Task (/home/nikita/yoctoproject/poky/meta/recipes-core/images/core-i= mage-minimal.bb:do_testimage) failed with exit code '1' --KO22uiPjnKdjGSlI9pux Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Alexander, 

Thanks for your precious time . 

I applied you suggestion and it worked and i setup tap interface wi= th following command:

sudo /home/nikita/yoctoproject/poky/scripts/runqemu-gen-tapdev= s 1000 1000 4 tmp/sysroots-components/x86_64/qemu-helper-native/usr/bin
but after that i am getting some warning like fail to start qemu= and after that i am getting errors which is due to failure in starting qem= u: 

WARNING: core-image-minimal-1.0-r0 do_testimage: Last 25 lines of text= :
[    2.372775] Key type asymmetric registered
[    2.375200] Asymmetric key parser 'x509' registered
[    2.389021] Block layer SCSI generic (bsg) driver version= 0.4 loaded (major 251)
[    2.389290] io scheduler mq-deadline registered
[    2.389459] io scheduler kyber registered
[    2.389570] input: Power Button as /devices/LNXSYSTM:00/L= NXPWRBN:00/input/input0
[    2.405464] ACPI: Power Button [PWRF]
[    2.659671] PCI Interrupt Link [LNKC] enabled at IRQ 10
[    3.142802] PCI Interrupt Link [LNKA] enabled at IRQ 10
[    3.146178] Serial: 8250/16550 driver, 4 ports, IRQ shari= ng disabled
[    3.187185] 00:05: ttyS0 at I/O 0x3f8 (irq =3D 4, base_ba= ud =3D 115200) is a 16550A
[    3.229110] 00:06: ttyS1 at I/O 0x2f8 (irq =3D 3, base_ba= ud =3D 115200) is a 16550A
[    3.250602] Linux agpgart interface v0.103
[    3.258767] crng init done
[    3.262616] bochs-drm 0000:00:02.0: remove_conflicting_pc= i_framebuffers: bar 0: 0xfd000000 -> 0xfdffffff
[    3.266483] bochs-drm 0000:00:02.0: remove_conflicting_pc= i_framebuffers: bar 2: 0xfebd0000 -> 0xfebd0fff
[    3.267730] bochs-drm 0000:00:02.0: vgaarb: deactivate vg= a console
[    3.270600] Console: switching to colour dummy device 80x= 25
[    3.274496] [drm] Found bochs VGA, ID 0xb0c0.
[    3.275895] [drm] Framebuffer size 16384 kB @ 0xfd000000,= mmio @ 0xfebd0000.
[    3.279874] [TTM] Zone  kernel: Available graphics m= emory: 116092 KiB
[    3.299694] [TTM] Initializing pool allocator
[    3.299943] [TTM] Initializing DMA pool allocator
[    3.300480] [drm] Found EDID data blob.
[    3.312971] [drm] Initialized bochs-drm 1.0.0 20130925 fo= r 0000:00:02.0 on minor 0
WARNING: core-image-minimal-1.0-r0 do_testimage: Check full boot log: = /home/nikita/yoctoproject/poky/build/tmp/work/qemux86_64-poky-linux/core-im= age-minimal/1.0-r0/testimage/qemu_boot_log.20220719154118
WARNING: core-image-minimal-1.0-r0 do_testimage: Qemu ended unexpected= ly, dump data from host is in /home/nikita/yoctoproject/poky/build/tmp/log/= runtime-hostdump/202207192111_qemu
WARNING: core-image-minimal-1.0-r0 do_testimage: qemu-system ended une= xpectedly
Output from runqemu:
runqemu - ERROR - Failed to run qemu: X Error:  BadValue
  Request Major code 130 (MIT-SHM)
  Request Minor code 3 ()
  Value 0x3bc
  Error Serial #2663
  Current Serial #2664
 
runqemu - INFO - Cleaning up
 
ERROR: core-image-minimal-1.0-r0 do_testimage: Error executing a pytho= n function in exec_func_python() autogenerated:
 
The stack trace of python calls that resulted in this exception/failur= e was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <mod= ule>
     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] =3D "1"
File: '/home/nikita/yoctoproject/poky/meta/classes/testimage.bbclass',= lineno: 374, function: testimage_main
     0370:    orig_sigterm_handler =3D signal= .signal(signal.SIGTERM, sigterm_exception)
     0371:    try:
     0372:        # We need to chec= k if runqemu ends unexpectedly
     0373:        # or if the worke= r send us a SIGTERM
 *** 0374:        tc.target.start(params=3Dd.= getVar("TEST_QEMUPARAMS"), runqemuparams=3Dd.getVar("TEST_RUNQEMUPARAMS"))<= /div>
     0375:        import threading<= /div>
     0376:        try:
     0377:            thr= eading.Timer(int(d.getVar("TEST_OVERALL_TIMEOUT")), handle_test_timeout, (i= nt(d.getVar("TEST_OVERALL_TIMEOUT")),)).start()
     0378:        except ValueError= :
File: '/home/nikita/yoctoproject/poky/meta/lib/oeqa/core/target/qemu.p= y', lineno: 67, function: start
     0063:            if = self.runner.server_ip:
     0064:            &nb= sp;   self.server_ip =3D self.runner.server_ip
     0065:        else:
     0066:            sel= f.stop()
 *** 0067:            raise Runtime= Error("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/nikita/yoctoproject/poky/bu= ild/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_te= stimage.7780
ERROR: Task (/home/nikita/yoctoproject/poky/meta/recipes-core/images/c= ore-image-minimal.bb:do_testimage) failed with exit code '1'
 
 
--KO22uiPjnKdjGSlI9pux--