All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] qemuboot-mips: Enable VGA device
@ 2020-01-10 17:29 Khem Raj
  2020-01-10 17:29 ` [PATCH 2/2] busybox: Update inittab Khem Raj
  2020-01-11  9:16 ` [PATCH 1/2] qemuboot-mips: Enable VGA device Richard Purdie
  0 siblings, 2 replies; 8+ messages in thread
From: Khem Raj @ 2020-01-10 17:29 UTC (permalink / raw)
  To: openembedded-core

This helps in booting weston images ( core-image-weston ) with fbdev
backend, without this westons initialization of fbdev backend fails
because it does not get correct frame buffer settings and exits
pre-maturely

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/machine/include/qemuboot-mips.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/conf/machine/include/qemuboot-mips.inc b/meta/conf/machine/include/qemuboot-mips.inc
index 978820a2e0..52cb28a5d2 100644
--- a/meta/conf/machine/include/qemuboot-mips.inc
+++ b/meta/conf/machine/include/qemuboot-mips.inc
@@ -5,3 +5,8 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty"
 QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet"
 # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
 QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
+
+# For graphics to work we need to define the VGA device as well as the necessary USB devices
+QB_OPT_APPEND = "-show-cursor -device VGA,edid=on"
+QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
+
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] busybox: Update inittab
  2020-01-10 17:29 [PATCH 1/2] qemuboot-mips: Enable VGA device Khem Raj
@ 2020-01-10 17:29 ` Khem Raj
  2020-04-03  1:12   ` [OE-core] " Andre McCurdy
  2020-01-11  9:16 ` [PATCH 1/2] qemuboot-mips: Enable VGA device Richard Purdie
  1 sibling, 1 reply; 8+ messages in thread
From: Khem Raj @ 2020-01-10 17:29 UTC (permalink / raw)
  To: openembedded-core

Add stdin/stdout/stderr symlinks in case when not using hotplug
Disable ctrl+alt+del, not used much
Mount swap if defined

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/busybox/files/inittab | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/busybox/files/inittab b/meta/recipes-core/busybox/files/inittab
index 2bc831c7c6..e8ec2ab68e 100644
--- a/meta/recipes-core/busybox/files/inittab
+++ b/meta/recipes-core/busybox/files/inittab
@@ -8,11 +8,17 @@
 ::sysinit:/bin/mkdir -p /dev/pts
 ::sysinit:/bin/mount -t devpts devpts /dev/pts
 ::sysinit:/bin/mount -a
-
+::sysinit:/sbin/swapon -a
+null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
+null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
+null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
+null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
+# set hostname
+null::sysinit:/bin/busybox hostname -F /etc/hostname
 ::sysinit:/etc/init.d/rcS
 
 # Stuff to do before rebooting
-::ctrlaltdel:/sbin/reboot
+#::ctrlaltdel:/sbin/reboot
 ::shutdown:/etc/init.d/rcK
 ::shutdown:/sbin/swapoff -a
 ::shutdown:/bin/umount -a -r
@@ -20,5 +26,3 @@
 # Stuff to do when restarting the init process
 ::restart:/sbin/init
 
-# set hostname
-null::sysinit:/bin/busybox hostname -F /etc/hostname
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] qemuboot-mips: Enable VGA device
  2020-01-10 17:29 [PATCH 1/2] qemuboot-mips: Enable VGA device Khem Raj
  2020-01-10 17:29 ` [PATCH 2/2] busybox: Update inittab Khem Raj
@ 2020-01-11  9:16 ` Richard Purdie
  2020-01-11 20:25   ` Khem Raj
  1 sibling, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2020-01-11  9:16 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

On Fri, 2020-01-10 at 09:29 -0800, Khem Raj wrote:
> This helps in booting weston images ( core-image-weston ) with fbdev
> backend, without this westons initialization of fbdev backend fails
> because it does not get correct frame buffer settings and exits
> pre-maturely
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/conf/machine/include/qemuboot-mips.inc | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/meta/conf/machine/include/qemuboot-mips.inc b/meta/conf/machine/include/qemuboot-mips.inc
> index 978820a2e0..52cb28a5d2 100644
> --- a/meta/conf/machine/include/qemuboot-mips.inc
> +++ b/meta/conf/machine/include/qemuboot-mips.inc
> @@ -5,3 +5,8 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty"
>  QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet"
>  # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
>  QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
> +
> +# For graphics to work we need to define the VGA device as well as the necessary USB devices
> +QB_OPT_APPEND = "-show-cursor -device VGA,edid=on"
> +QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
> +

The change is probably good but it causes consistent failures in out
testimage runs for mips and mips64:

https://autobuilder.yoctoproject.org/typhoon/#/builders/60/builds/1429
https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/196
https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/1431

all due to errors appearing in the logs.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] qemuboot-mips: Enable VGA device
  2020-01-11  9:16 ` [PATCH 1/2] qemuboot-mips: Enable VGA device Richard Purdie
@ 2020-01-11 20:25   ` Khem Raj
  2020-01-11 23:44     ` Richard Purdie
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2020-01-11 20:25 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1894 bytes --]

On Sat, Jan 11, 2020 at 1:16 AM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Fri, 2020-01-10 at 09:29 -0800, Khem Raj wrote:
> > This helps in booting weston images ( core-image-weston ) with fbdev
> > backend, without this westons initialization of fbdev backend fails
> > because it does not get correct frame buffer settings and exits
> > pre-maturely
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/conf/machine/include/qemuboot-mips.inc | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/meta/conf/machine/include/qemuboot-mips.inc
> b/meta/conf/machine/include/qemuboot-mips.inc
> > index 978820a2e0..52cb28a5d2 100644
> > --- a/meta/conf/machine/include/qemuboot-mips.inc
> > +++ b/meta/conf/machine/include/qemuboot-mips.inc
> > @@ -5,3 +5,8 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty"
> >  QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet"
> >  # Add the 'virtio-rng-pci' device otherwise the guest may run out of
> entropy
> >  QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0
> -device virtio-rng-pci,rng=rng0"
> > +
> > +# For graphics to work we need to define the VGA device as well as the
> necessary USB devices
> > +QB_OPT_APPEND = "-show-cursor -device VGA,edid=on"
> > +QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
> > +
>
> The change is probably good but it causes consistent failures in out
> testimage runs for mips and mips64:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/60/builds/1429
> https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/196
> https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/1431
>
> all due to errors appearing in the logs.


Is it due to glibc 2.31 that we were discussing or a separate issue

>
>
> Cheers,
>
> Richard
>
>

[-- Attachment #2: Type: text/html, Size: 2943 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] qemuboot-mips: Enable VGA device
  2020-01-11 20:25   ` Khem Raj
@ 2020-01-11 23:44     ` Richard Purdie
  2020-01-12  4:50       ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2020-01-11 23:44 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On Sat, 2020-01-11 at 12:25 -0800, Khem Raj wrote:
> 
> 
> On Sat, Jan 11, 2020 at 1:16 AM Richard Purdie <
> richard.purdie@linuxfoundation.org> wrote:
> > On Fri, 2020-01-10 at 09:29 -0800, Khem Raj wrote:
> > > This helps in booting weston images ( core-image-weston ) with
> > fbdev
> > > backend, without this westons initialization of fbdev backend
> > fails
> > > because it does not get correct frame buffer settings and exits
> > > pre-maturely
> > > 
> > > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > > ---
> > >  meta/conf/machine/include/qemuboot-mips.inc | 5 +++++
> > >  1 file changed, 5 insertions(+)
> > > 
> > > diff --git a/meta/conf/machine/include/qemuboot-mips.inc
> > b/meta/conf/machine/include/qemuboot-mips.inc
> > > index 978820a2e0..52cb28a5d2 100644
> > > --- a/meta/conf/machine/include/qemuboot-mips.inc
> > > +++ b/meta/conf/machine/include/qemuboot-mips.inc
> > > @@ -5,3 +5,8 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0
> > console=tty"
> > >  QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet"
> > >  # Add the 'virtio-rng-pci' device otherwise the guest may run
> > out of entropy
> > >  QB_OPT_APPEND += "-object rng-
> > random,filename=/dev/urandom,id=rng0 -device virtio-rng-
> > pci,rng=rng0"
> > > +
> > > +# For graphics to work we need to define the VGA device as well
> > as the necessary USB devices
> > > +QB_OPT_APPEND = "-show-cursor -device VGA,edid=on"
> > > +QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device
> > usb-kbd"
> > > +
> > 
> > The change is probably good but it causes consistent failures in
> > out
> > testimage runs for mips and mips64:
> > 
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/60/builds/1429
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/196
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/1431
> > 
> > all due to errors appearing in the logs.
> 
> Is it due to glibc 2.31 that we were discussing or a separate issue 

Separate, there are two issues.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] qemuboot-mips: Enable VGA device
  2020-01-11 23:44     ` Richard Purdie
@ 2020-01-12  4:50       ` Khem Raj
  0 siblings, 0 replies; 8+ messages in thread
From: Khem Raj @ 2020-01-12  4:50 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer

OK I can reproduce atleast couple of them

On Sat, Jan 11, 2020 at 3:44 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Sat, 2020-01-11 at 12:25 -0800, Khem Raj wrote:
> >
> >
> > On Sat, Jan 11, 2020 at 1:16 AM Richard Purdie <
> > richard.purdie@linuxfoundation.org> wrote:
> > > On Fri, 2020-01-10 at 09:29 -0800, Khem Raj wrote:
> > > > This helps in booting weston images ( core-image-weston ) with
> > > fbdev
> > > > backend, without this westons initialization of fbdev backend
> > > fails
> > > > because it does not get correct frame buffer settings and exits
> > > > pre-maturely
> > > >
> > > > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > > > ---
> > > >  meta/conf/machine/include/qemuboot-mips.inc | 5 +++++
> > > >  1 file changed, 5 insertions(+)
> > > >
> > > > diff --git a/meta/conf/machine/include/qemuboot-mips.inc
> > > b/meta/conf/machine/include/qemuboot-mips.inc
> > > > index 978820a2e0..52cb28a5d2 100644
> > > > --- a/meta/conf/machine/include/qemuboot-mips.inc
> > > > +++ b/meta/conf/machine/include/qemuboot-mips.inc
> > > > @@ -5,3 +5,8 @@ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0
> > > console=tty"
> > > >  QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet"
> > > >  # Add the 'virtio-rng-pci' device otherwise the guest may run
> > > out of entropy
> > > >  QB_OPT_APPEND += "-object rng-
> > > random,filename=/dev/urandom,id=rng0 -device virtio-rng-
> > > pci,rng=rng0"
> > > > +
> > > > +# For graphics to work we need to define the VGA device as well
> > > as the necessary USB devices
> > > > +QB_OPT_APPEND = "-show-cursor -device VGA,edid=on"
> > > > +QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device
> > > usb-kbd"
> > > > +
> > >
> > > The change is probably good but it causes consistent failures in
> > > out
> > > testimage runs for mips and mips64:
> > >
> > > https://autobuilder.yoctoproject.org/typhoon/#/builders/60/builds/1429
> > > https://autobuilder.yoctoproject.org/typhoon/#/builders/102/builds/196
> > > https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/1431
> > >
> > > all due to errors appearing in the logs.
> >
> > Is it due to glibc 2.31 that we were discussing or a separate issue
>
> Separate, there are two issues.
>
> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH 2/2] busybox: Update inittab
  2020-01-10 17:29 ` [PATCH 2/2] busybox: Update inittab Khem Raj
@ 2020-04-03  1:12   ` Andre McCurdy
  2020-04-03  1:36     ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Andre McCurdy @ 2020-04-03  1:12 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE Core mailing list

On Fri, Jan 10, 2020 at 9:29 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> Add stdin/stdout/stderr symlinks in case when not using hotplug
> Disable ctrl+alt+del, not used much
> Mount swap if defined
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-core/busybox/files/inittab | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-core/busybox/files/inittab b/meta/recipes-core/busybox/files/inittab
> index 2bc831c7c6..e8ec2ab68e 100644
> --- a/meta/recipes-core/busybox/files/inittab
> +++ b/meta/recipes-core/busybox/files/inittab
> @@ -8,11 +8,17 @@
>  ::sysinit:/bin/mkdir -p /dev/pts
>  ::sysinit:/bin/mount -t devpts devpts /dev/pts
>  ::sysinit:/bin/mount -a
> -
> +::sysinit:/sbin/swapon -a
> +null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
> +null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
> +null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
> +null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
> +# set hostname
> +null::sysinit:/bin/busybox hostname -F /etc/hostname

Trying to send the output of these commands to /dev/null seems to go
against the fix previously made to inittab to stop doing that?

  https://git.openembedded.org/openembedded-core/commit/?id=82de49b899bca915259ea7ea149f50e1401c2426

>  ::sysinit:/etc/init.d/rcS
>
>  # Stuff to do before rebooting
> -::ctrlaltdel:/sbin/reboot
> +#::ctrlaltdel:/sbin/reboot
>  ::shutdown:/etc/init.d/rcK
>  ::shutdown:/sbin/swapoff -a
>  ::shutdown:/bin/umount -a -r
> @@ -20,5 +26,3 @@
>  # Stuff to do when restarting the init process
>  ::restart:/sbin/init
>
> -# set hostname
> -null::sysinit:/bin/busybox hostname -F /etc/hostname
> --
> 2.24.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [OE-core] [PATCH 2/2] busybox: Update inittab
  2020-04-03  1:12   ` [OE-core] " Andre McCurdy
@ 2020-04-03  1:36     ` Khem Raj
  0 siblings, 0 replies; 8+ messages in thread
From: Khem Raj @ 2020-04-03  1:36 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE Core mailing list

On Thu, Apr 2, 2020 at 6:12 PM Andre McCurdy <armccurdy@gmail.com> wrote:
>
> On Fri, Jan 10, 2020 at 9:29 AM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > Add stdin/stdout/stderr symlinks in case when not using hotplug
> > Disable ctrl+alt+del, not used much
> > Mount swap if defined
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/recipes-core/busybox/files/inittab | 12 ++++++++----
> >  1 file changed, 8 insertions(+), 4 deletions(-)
> >
> > diff --git a/meta/recipes-core/busybox/files/inittab b/meta/recipes-core/busybox/files/inittab
> > index 2bc831c7c6..e8ec2ab68e 100644
> > --- a/meta/recipes-core/busybox/files/inittab
> > +++ b/meta/recipes-core/busybox/files/inittab
> > @@ -8,11 +8,17 @@
> >  ::sysinit:/bin/mkdir -p /dev/pts
> >  ::sysinit:/bin/mount -t devpts devpts /dev/pts
> >  ::sysinit:/bin/mount -a
> > -
> > +::sysinit:/sbin/swapon -a
> > +null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
> > +null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
> > +null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
> > +null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
> > +# set hostname
> > +null::sysinit:/bin/busybox hostname -F /etc/hostname
>
> Trying to send the output of these commands to /dev/null seems to go
> against the fix previously made to inittab to stop doing that?
>
>   https://git.openembedded.org/openembedded-core/commit/?id=82de49b899bca915259ea7ea149f50e1401c2426
>

It was to avoid additional messages on stdout, so remove null there
should be ok if it fixes initramfs please send a patch


> >  ::sysinit:/etc/init.d/rcS
> >
> >  # Stuff to do before rebooting
> > -::ctrlaltdel:/sbin/reboot
> > +#::ctrlaltdel:/sbin/reboot
> >  ::shutdown:/etc/init.d/rcK
> >  ::shutdown:/sbin/swapoff -a
> >  ::shutdown:/bin/umount -a -r
> > @@ -20,5 +26,3 @@
> >  # Stuff to do when restarting the init process
> >  ::restart:/sbin/init
> >
> > -# set hostname
> > -null::sysinit:/bin/busybox hostname -F /etc/hostname
> > --
> > 2.24.1
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-03  1:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 17:29 [PATCH 1/2] qemuboot-mips: Enable VGA device Khem Raj
2020-01-10 17:29 ` [PATCH 2/2] busybox: Update inittab Khem Raj
2020-04-03  1:12   ` [OE-core] " Andre McCurdy
2020-04-03  1:36     ` Khem Raj
2020-01-11  9:16 ` [PATCH 1/2] qemuboot-mips: Enable VGA device Richard Purdie
2020-01-11 20:25   ` Khem Raj
2020-01-11 23:44     ` Richard Purdie
2020-01-12  4:50       ` Khem Raj

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.