From: "Clément Chigot" <chigot@adacore.com>
To: Faiq Ali Sayed <faiqueali.109@gmail.com>
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
qemu-devel@nongnu.org,
"Alistair Francis" <alistair@alistair23.me>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Stefano Stabellini" <stefano.stabellini@amd.com>
Subject: Re: QNX VM hang on Qemu
Date: Mon, 4 Mar 2024 10:37:46 +0100 [thread overview]
Message-ID: <CAJ307EhpocLQ5p+MU++pTpotMuDTCedzNGWohvm6F02LXkhcrA@mail.gmail.com> (raw)
In-Reply-To: <CAOpGCn+PhxqRb=UjKM=z1q79u_iCH=RKW1=DDGUbWnBf4Q0kog@mail.gmail.com>
On Fri, Mar 1, 2024 at 6:48 PM Faiq Ali Sayed <faiqueali.109@gmail.com> wrote:
>
> Hi Clément,
>
> So the output of the command
> | $ qemu-system-aarch64 -M xlnx-zcu102 -m 4G -no-reboot -nographic
> -kernel qnx.img
> is
>
> $ pulseaudio: set_sink_input_volume() failed
> $ pulseaudio: Reason: Invalid argument
> $ pulseaudio: set_sink_input_mute() failed
> $ pulseaudio: Reason: Invalid argument
>
> I am not using the "mkifs" rather I am using the command below..
I guess we disabled some options when we built our kernels to allow a
simple command line. However, I don't know which ones.
> $ mkqnximage --type=qemu --arch=aarch64le --build --ssh-ident=none
>
> if I use the --run option with the command it creates a VM which is working fine.
> but when I use this image, with qemu command terminal is getting stuck.
I wasn't aware that such a command exists. However, the --run option
seems to call the script "runimage". You might want to take a look at
the options being set or maybe simply retrieve the qemu command line
created by it (if that's not how you created your first command line).
Sorry to not be more helpful.
Clément
> BR!
> Faiq
>
>
>
> On Fri, Mar 1, 2024 at 4:29 PM Clément Chigot <chigot@adacore.com> wrote:
>>
>> Hi Faiq,
>>
>> On Fri, Feb 23, 2024 at 3:55 PM Faiq Ali Sayed <faiqueali.109@gmail.com> wrote:
>> >
>> > So as far as my understanding, we provide these binaries using Qemu command as depicted in the example you provided and there is no way I found to put them into a single image.
>> > Regarding the overlapping space, I don't have much idea but I think we could provide a starting address separately to these images something like addr=0x00100000.
>>
>> Where is this 0x00100000 address coming from ? Could you confirm with
>> "readelf -h" that this is the entry point of your image ?
>>
>> Alternatively and that's what we used locally, qemu is able to guess
>> the entry point of an image, when passed from -kernel. Therefore, our
>> command simply looks like:
>> | $ qemu-system-aarch64 -M xlnx-zcu102 -m 4G -no-reboot -nographic
>> -kernel qnx.img
>>
>> I'm not the one having built the qnx.img we're using. But it looks
>> pretty standard at the first look, made with "mkifs" and the kernel
>> specs from zcu102 evaluation kit.
>>
>> Hope it helps,
>> Clément
>>
>> > So as per your suggestion, I compared my images and I found that the image does not show a virtual disk, and other commands like mkdir, do not have these binaries.
>> > So these binaries are not included at the time of image creation and I don't exactly know that how can we add these binaries into the QNX image.
>> >
>> > The Image that is currently installed in real hardware does not have a debugging symbol, so I can't use GDB to debug that.
>> > Now I am looking for a way to create the correct QNX OS image for Qemu.
>> >
>> > Any lead in this regard will be really helpful :)
>> >
>
>
>
> --
> Kind Regard-
> Faiq Ali Sayed
>
>
next prev parent reply other threads:[~2024-03-04 9:38 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
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 [this message]
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=CAJ307EhpocLQ5p+MU++pTpotMuDTCedzNGWohvm6F02LXkhcrA@mail.gmail.com \
--to=chigot@adacore.com \
--cc=alex.bennee@linaro.org \
--cc=alistair@alistair23.me \
--cc=edgar.iglesias@gmail.com \
--cc=faiqueali.109@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@amd.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).