qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QNX in qemu


From: Krishna Gururaj
Subject: Re: QNX in qemu
Date: Wed, 8 May 2024 16:14:08 +0530

Hello All,


Can somebody please address my question, I am already thankful for the help and support.

Regards,
Krishna G.

On Mon, May 6, 2024 at 7:00 AM Krishna Gururaj <krishna125g@gmail.com> wrote:
Hello,



I request somebody to please respond to my query.

Regards,
Krishna G

Sent from my iPhone

On 03-May-2024, at 15:14, Krishna Gururaj <krishna125g@gmail.com> wrote:


Hello,

     Firstly thank you for the response. Now when I remove the -nographic option a gtk screen opens and it displays that ' Guest has not initialized the display (yet) and in the log I see this : (qemu:15068): Gtk-WARNING **: 10:54:03.341: Could not load a pixbuf from icon theme.This may indicate that pixbuf loaders or the mime database could not be found. 

QNX is not getting loaded when I remove this option.


I think the below logs might help you help me better :

I get this when I run this command 'qemu-system-aarch64.exe -machine vexpress-a15 -cpu cortex-a57 -smp 4 -m 30G -kernel ifs.bin -drive file=disk-qemu.vmdk,if=none,id=drv0 -device virtio-blk-device,drive=drv0 -netdev tap,id=mynet0,ifname=TAP_Ethernet,script=no,downscript=no -device virtio-net-device,netdev=mynet0,mac=52:55:00:d1:55:01 -device virtio-rng-device -nographic'

---> Starting slogger2
---> Starting PCI Services
---> Starting devb
Path=0 -
 target=0 lun=0     Direct-Access(0) - VIRTIO  Rev:
---> Mounting file systems
---> Mounting file systems
◄---> Starting Networking
# net.inet.icmp.bmcastecho: 0 -> 1
qnx.kern.droproot: 0 -> 1
---> Starting sshd
---> Starting misc
-U deprecated, use security policies.
pps: NOTICE: PPS initializing
pps: NOTICE: PPS attaching /pps
pps: NOTICE: PPS attached /pps major 2 minor 6
---> Starting graphics
io_hid_dlopen, devh-ps2ser-vm.so DLL Error Library cannot be found
libkhronos: dlopen() err No valid library found, path: '/system/graphics/vmwgfx-drm/libwfdcfg-vmwgfx-generic.so'
libkhronos: dlopen() err Library cannot be found, path: 'libwfdcfg-vmwgfx-generic.so'
libkhronos: Ensure directory containing graphics libraries is appended to LD_LIBRARY_PATH envar.
Unable to access /dev/screen 
Process count: 26
Startup complete
QNX noname 7.1.0 2020/06/13-20:07:59EDT ARMv8_Foundation_Model aarch64le


I am configuring the screen with the follwoing command after boot up : 

screen -c /system/lib/graphics/swiftshader/graphics.conf


graphics.conf :

begin khronos
  begin egl display 1
    vk-icds = vk_swiftshader_icd.json
    egl-dlls = libEGL_Angle.so
    glesv2-dlls = libGLESv2_Angle.so
  end egl display

  begin wfd device 1
    pipeline-ids = 1
    display-ids = 1
    wfd-dlls = libwfdcfg-sample.so libWFDdummy.so
  end wfd device
end khronos

begin winmgr
  begin globals
    default-display = 1
    alloc-config = stdbuf
    stack-size = 65536
    blit-config = sw
    input = keyboard,mouse
    requests-logsize = 65536
    blits-logsize = 4096
  end globals

  begin display 1
   formats = rgba8888
   force-composition = true
   video-mode = 1920 x 1080 @ 60
   stack-size = 65536
  end display

  begin class framebuffer1
    display = 1
    pipeline = 1
    format = rgba8888
    usage = sw
  end class

end winmgr


Thank You, 
Krishna G.



Regards,
Krishna Gururaj.

On Mon, Apr 29, 2024 at 8:56 PM Peter Maydell <peter.maydell@linaro.org> wrote:
On Mon, 29 Apr 2024 at 13:26, Krishna Gururaj <krishna125g@gmail.com> wrote:
>
> Hello,
>
> I am trying to run the gles2-gears binary in qnx with the following configuration :
>
> qemu-system-aarch64.exe -machine vexpress-a15 -cpu cortex-a57 -smp 4 -m 30G -kernel ifs.bin -drive file=disk-qemu.vmdk,if=none,id=drv0 -device virtio-blk-device,drive=drv0 -netdev tap,id=mynet0,ifname=TAP_Ethernet,script=no,downscript=no -device virtio-net-device,netdev=mynet0,mac=52:55:00:d1:55:01 -device virtio-rng-device -nographic

This command line is not correct, because it takes a machine
that is only supposed to work with a Cortex-A15 ("vexpress-a15")
and tries to create a Cortex-A57 CPU with it. This will either
ignore the -cpu option or create something weird and unsupported,
I forget which. You should either fix the machine type or the
CPU type.

That's unrelated to your graphics question -- the answer there
is that you say "-nographic" which means "I don't want to see
a GUI window". If you do that then you obviously won't see any
graphics. (Beyond that, the guest OS will need to have support
for whatever graphics device/framebuffer the machine provides.)

thanks
-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]