[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [PATCH] runqemu: Change virtio-vga to virtio-gpu.
From:       "Alexander Kanavin" <alex.kanavin () gmail ! com>
Date:       2020-10-31 12:27:14
Message-ID: CANNYZj_7KWx7h=LGJd_zwN3gNEcRY1_i4cOriciQBxCns5mvKA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I think you first need to set up a build directory to use sstate-cache in
some common location, then build-st will pick it up, and you can then
easily delete it without destroying the cache.

Alex

On Fri, 30 Oct 2020 at 13:38, Vasyl Vavrychuk <vvavrychuk@gmail.com> wrote:

> Hi, Alexander,
>
> I am trying to run oe-selftest.
>
> I have one question. Is there a way to run oe-selftest incrementally?
>
> Because for now, if I run oe-selftest second time I get
>
>   oe-selftest - ERROR - Build directory ... already exists, aborting
>
> Then, I should remove build-st, and only after that oe-selftest can
> run second time. But it take a lot of time.
>
> Could you please help me?
>
> Thanks,
> Vasyl
>
> On Sun, Aug 30, 2020 at 11:44 PM Alexander Kanavin
> <alex.kanavin@gmail.com> wrote:
> >
> > Do the virgl selftests still pass with this change? Please run
> >
> > oe-selftest -r runtime_test.TestImage.test_testimage_virgl_gtk_sdl
> >
> > and
> >
> > oe-selftest -r runtime_test.TestImage.test_testimage_virgl_headless
> >
> > Alex
> >
> >
> > On Sun, 30 Aug 2020 at 22:15, Vasyl Vavrychuk <vvavrychuk@gmail.com>
> wrote:
> >>
> >> virtio-vga is available in QEMU only for hppa, i386, and ppc
> >> architectures. On the other hand, virtio-gpu is available for all
> >> architectures.
> >>
> >> Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
> >> ---
> >>  scripts/runqemu | 10 +++++-----
> >>  1 file changed, 5 insertions(+), 5 deletions(-)
> >>
> >> diff --git a/scripts/runqemu b/scripts/runqemu
> >> index 7fb5f7db57..5d6b35ffe4 100755
> >> --- a/scripts/runqemu
> >> +++ b/scripts/runqemu
> >> @@ -461,19 +461,19 @@ class BaseConfig(object):
> >>              elif arg == 'sdl':
> >>                  if 'gl' in sys.argv[1:]:
> >>                      self.set_dri_path()
> >> -                    self.qemu_opt_script += ' -vga virtio -display
> sdl,gl=on,show-cursor=on'
> >> +                    self.qemu_opt_script += ' -device virtio-gpu
> -display sdl,gl=on,show-cursor=on'
> >>                  elif 'gl-es' in sys.argv[1:]:
> >>                      self.set_dri_path()
> >> -                    self.qemu_opt_script += ' -vga virtio -display
> sdl,gl=es,show-cursor=on'
> >> +                    self.qemu_opt_script += ' -device virtio-gpu
> -display sdl,gl=es,show-cursor=on'
> >>                  else:
> >>                      self.qemu_opt_script += ' -display
> sdl,show-cursor=on'
> >>              elif arg == 'gtk':
> >>                  if 'gl' in sys.argv[1:]:
> >>                      self.set_dri_path()
> >> -                    self.qemu_opt_script += ' -vga virtio -display
> gtk,gl=on,show-cursor=on'
> >> +                    self.qemu_opt_script += ' -device virtio-gpu
> -display gtk,gl=on,show-cursor=on'
> >>                  elif 'gl-es' in sys.argv[1:]:
> >>                      self.set_dri_path()
> >> -                    self.qemu_opt_script += ' -vga virtio -display
> gtk,gl=es,show-cursor=on'
> >> +                    self.qemu_opt_script += ' -device virtio-gpu
> -display gtk,gl=es,show-cursor=on'
> >>                  else:
> >>                      self.qemu_opt_script += ' -display
> gtk,show-cursor=on'
> >>              elif arg == 'gl' or arg == 'gl-es':
> >> @@ -482,7 +482,7 @@ class BaseConfig(object):
> >>                      raise RunQemuError('Option %s also needs gtk or
> sdl option.' % (arg))
> >>              elif arg == 'egl-headless':
> >>                  self.set_dri_path()
> >> -                self.qemu_opt_script += ' -vga virtio -display
> egl-headless,show-cursor=on'
> >> +                self.qemu_opt_script += ' -device virtio-gpu -display
> egl-headless,show-cursor=on'
> >>              elif arg == 'serial':
> >>                  self.kernel_cmdline_script += ' console=ttyS0'
> >>                  self.serialconsole = True
> >> --
> >> 2.23.0
> >>
> >> 
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>I think you first need to set up a build directory to use \
sstate-cache in some common location, then build-st will pick it up, and you can then \
easily delete it without destroying the \
cache.<br></div><div><br></div><div>Alex<br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 30 Oct 2020 at 13:38, \
Vasyl Vavrychuk &lt;<a \
href="mailto:vvavrychuk@gmail.com">vvavrychuk@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, Alexander,<br> \
<br> I am trying to run oe-selftest.<br>
<br>
I have one question. Is there a way to run oe-selftest incrementally?<br>
<br>
Because for now, if I run oe-selftest second time I get<br>
<br>
   oe-selftest - ERROR - Build directory ... already exists, aborting<br>
<br>
Then, I should remove build-st, and only after that oe-selftest can<br>
run second time. But it take a lot of time.<br>
<br>
Could you please help me?<br>
<br>
Thanks,<br>
Vasyl<br>
<br>
On Sun, Aug 30, 2020 at 11:44 PM Alexander Kanavin<br>
&lt;<a href="mailto:alex.kanavin@gmail.com" \
target="_blank">alex.kanavin@gmail.com</a>&gt; wrote:<br> &gt;<br>
&gt; Do the virgl selftests still pass with this change? Please run<br>
&gt;<br>
&gt; oe-selftest -r runtime_test.TestImage.test_testimage_virgl_gtk_sdl<br>
&gt;<br>
&gt; and<br>
&gt;<br>
&gt; oe-selftest -r runtime_test.TestImage.test_testimage_virgl_headless<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt;<br>
&gt; On Sun, 30 Aug 2020 at 22:15, Vasyl Vavrychuk &lt;<a \
href="mailto:vvavrychuk@gmail.com" target="_blank">vvavrychuk@gmail.com</a>&gt; \
wrote:<br> &gt;&gt;<br>
&gt;&gt; virtio-vga is available in QEMU only for hppa, i386, and ppc<br>
&gt;&gt; architectures. On the other hand, virtio-gpu is available for all<br>
&gt;&gt; architectures.<br>
&gt;&gt;<br>
&gt;&gt; Signed-off-by: Vasyl Vavrychuk &lt;<a href="mailto:vvavrychuk@gmail.com" \
target="_blank">vvavrychuk@gmail.com</a>&gt;<br> &gt;&gt; ---<br>
&gt;&gt;   scripts/runqemu | 10 +++++-----<br>
&gt;&gt;   1 file changed, 5 insertions(+), 5 deletions(-)<br>
&gt;&gt;<br>
&gt;&gt; diff --git a/scripts/runqemu b/scripts/runqemu<br>
&gt;&gt; index 7fb5f7db57..5d6b35ffe4 100755<br>
&gt;&gt; --- a/scripts/runqemu<br>
&gt;&gt; +++ b/scripts/runqemu<br>
&gt;&gt; @@ -461,19 +461,19 @@ class BaseConfig(object):<br>
&gt;&gt;                     elif arg == &#39;sdl&#39;:<br>
&gt;&gt;                           if &#39;gl&#39; in sys.argv[1:]:<br>
&gt;&gt;                                 self.set_dri_path()<br>
&gt;&gt; -                              self.qemu_opt_script += &#39; -vga virtio \
-display sdl,gl=on,show-cursor=on&#39;<br> &gt;&gt; +                              \
self.qemu_opt_script += &#39; -device virtio-gpu -display \
sdl,gl=on,show-cursor=on&#39;<br> &gt;&gt;                           elif \
&#39;gl-es&#39; in sys.argv[1:]:<br> &gt;&gt;                                 \
self.set_dri_path()<br> &gt;&gt; -                              self.qemu_opt_script \
+= &#39; -vga virtio -display sdl,gl=es,show-cursor=on&#39;<br> &gt;&gt; +            \
self.qemu_opt_script += &#39; -device virtio-gpu -display \
sdl,gl=es,show-cursor=on&#39;<br> &gt;&gt;                           else:<br>
&gt;&gt;                                 self.qemu_opt_script += &#39; -display \
sdl,show-cursor=on&#39;<br> &gt;&gt;                     elif arg == \
&#39;gtk&#39;:<br> &gt;&gt;                           if &#39;gl&#39; in \
sys.argv[1:]:<br> &gt;&gt;                                 self.set_dri_path()<br>
&gt;&gt; -                              self.qemu_opt_script += &#39; -vga virtio \
-display gtk,gl=on,show-cursor=on&#39;<br> &gt;&gt; +                              \
self.qemu_opt_script += &#39; -device virtio-gpu -display \
gtk,gl=on,show-cursor=on&#39;<br> &gt;&gt;                           elif \
&#39;gl-es&#39; in sys.argv[1:]:<br> &gt;&gt;                                 \
self.set_dri_path()<br> &gt;&gt; -                              self.qemu_opt_script \
+= &#39; -vga virtio -display gtk,gl=es,show-cursor=on&#39;<br> &gt;&gt; +            \
self.qemu_opt_script += &#39; -device virtio-gpu -display \
gtk,gl=es,show-cursor=on&#39;<br> &gt;&gt;                           else:<br>
&gt;&gt;                                 self.qemu_opt_script += &#39; -display \
gtk,show-cursor=on&#39;<br> &gt;&gt;                     elif arg == &#39;gl&#39; or \
arg == &#39;gl-es&#39;:<br> &gt;&gt; @@ -482,7 +482,7 @@ class \
BaseConfig(object):<br> &gt;&gt;                                 raise \
RunQemuError(&#39;Option %s also needs gtk or sdl option.&#39; % (arg))<br> &gt;&gt;  \
elif arg == &#39;egl-headless&#39;:<br> &gt;&gt;                           \
self.set_dri_path()<br> &gt;&gt; -                        self.qemu_opt_script += \
&#39; -vga virtio -display egl-headless,show-cursor=on&#39;<br> &gt;&gt; +            \
self.qemu_opt_script += &#39; -device virtio-gpu -display \
egl-headless,show-cursor=on&#39;<br> &gt;&gt;                     elif arg == \
&#39;serial&#39;:<br> &gt;&gt;                           self.kernel_cmdline_script \
+= &#39; console=ttyS0&#39;<br> &gt;&gt;                           self.serialconsole \
= True<br> &gt;&gt; --<br>
&gt;&gt; 2.23.0<br>
&gt;&gt;<br>
&gt;&gt; <br>
</blockquote></div>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144032): https://lists.openembedded.org/g/openembedded-core/message/144032
Mute This Topic: https://lists.openembedded.org/mt/76521246/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic