All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Faiq Ali Sayed <faiqueali.109@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: QNX VM hang on Qemu
Date: Tue, 20 Feb 2024 14:41:24 +0000	[thread overview]
Message-ID: <87a5nvci5n.fsf@draig.linaro.org> (raw)
In-Reply-To: <CAOpGCn+KdhjnXRHup6GXVbkoZkUBc7f-2urNzmvLjK1To_pp0A@mail.gmail.com> (Faiq Ali Sayed's message of "Tue, 20 Feb 2024 14:31:46 +0100")

Faiq Ali Sayed <faiqueali.109@gmail.com> writes:

> Hi everyone, 
> I am facing an issue during booting QNX VM using Qemu,
> I have an image to Boot the VM. and when I trigger a Qemu command to create a VM it is stuck.
> I also used a debugger to investigate but I can not see any result by GDB.
>
> Here is the output of first windows
>
> qemu-system-aarch64 -M xlnx-zcu102 -m 16G -serial mon:stdio -display none -device
> loader,file=QNX-IFS,addr=0x00100000,cpu-num=0 -drive
> file=/home/faiq/Downloads/install/BootSD/qemu-boot_sd.img,if=sd,format=raw,index=1 -boot mode=5 -net
> nic,model=cadence_gem -net nic,model=cadence_gem -net nic,model=cadence_gem -net
> nic,model=cadence_gem,netdev=xzynq0 -netdev user,id=xzynq0,tftp=/tftpboot  -nographic -global
> xlnx,zynqmp-boot.cpu-num=0 -global 'xlnx,zynqmp-boot.use-pmufw=true' -s -S
>
> qemu-system-aarch64: warning: hub 0 is not connected to host network

Is this QNX VM image built for the xlnx-zcu102 board?

> on the other hand, here is the output of GDB:
>
> (gdb) target remote :1234
> Remote debugging using :1234
> warning: No executable has been specified and target does not support
> determining executable automatically.  Try using the "file" command.
> 0x0000000000100000 in ?? ()
> (gdb) c
> Continuing.

You'll either want the debug symbols for your image or tell GDB what the
target arch is. Check you are somewhere sane by doing:

  x/10i $pc

and step through the instructions and see where it goes. If you hit
Ctrl-C are you executing nonsense instructions or in a tight loop
hanging?


-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2024-02-20 14:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20 13:31 QNX VM hang on Qemu Faiq Ali Sayed
2024-02-20 14:41 ` Alex Bennée [this message]
2024-02-20 16:33   ` Faiq Ali Sayed
2024-02-20 17:14     ` Alex Bennée
2024-02-20 20:55       ` Faiq Ali Sayed
2024-02-20 21:24         ` Peter Maydell
2024-02-20 22:22           ` Faiq Ali Sayed
2024-02-21 13:27             ` Faiq Ali Sayed
2024-02-21 16:02             ` Peter Maydell
2024-02-21 18:20               ` Faiq Ali Sayed
2024-02-22  9:45                 ` Peter Maydell
2024-02-22 10:55                   ` Alex Bennée
2024-02-23 14:38                     ` Faiq Ali Sayed
2024-03-01 15:28                       ` Clément Chigot
2024-03-01 17:47                         ` Faiq Ali Sayed
2024-03-04  9:37                           ` Clément Chigot
2024-03-04 15:48                             ` Faiq Ali Sayed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5nvci5n.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=faiqueali.109@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.