All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Gallagher <greg@embeddedgreg.com>
To: 77dab@tiscali.it
Cc: xenomai@xenomai.org
Subject: Re: Raspberry pi 4 second monitor problem on xeno3
Date: Mon, 28 Jun 2021 07:33:00 -0400	[thread overview]
Message-ID: <CALLqZ8QOZS9mJBsFcU6uZWVDOHXhC4QsYLstb7hxFOg1wf3C7w@mail.gmail.com> (raw)
In-Reply-To: <c6eea2e7c5c83292853a70c76a951cfe@tiscali.it>

On Mon, Jun 28, 2021 at 4:30 AM davide via Xenomai <xenomai@xenomai.org>
wrote:

>
> Hi, Found out it's using iPipe here.
> Is there something I can look
> for to understand why it doesn't work?
>
> Il 26.06.2021 15:09 Greg
> Gallagher ha scritto:
>
> > On Sat, Jun 26, 2021 at 9:06 AM davide via
> Xenomai wrote:
> >
> >> Hi, it is the first time I ask for an help on this
> mailing list.
> >> My
> >> setup:
> >> -Raspberry Pi 4, 4gb ram (forced to
> 3gb) running debian buster
> >> 64bit.
> >>
> >> pi@picat:~ $ uname -a
> >>
> Linux picat 4.19.126-v8-xeno3+ #1 SMP
> >> PREEMPT Wed Mar 24 12:53:24 +07
> 2021 aarch64 GNU/Linux
> >>
> >> pi@picat:~ $
> >> hostnamectl
> >>
> >>
> ...cut...
> >> Operating System: Debian GNU/Linux 10 (buster)
> >>
> >>
> Kernel: Linux 4.19.126-v8-xeno3+
> >> Architecture: arm64
> >>
> >> - two
> HDMI
> >> identical monitor connected . 1920x1080 60Hz 148.6 MHz clock.
> >>
>
> >> My
> >> propblem:
> >> on a clean raspbian 64bit, with 5.x kernel both
> monitors work
> >> as expected.
> >> I'm working on a prebuilt image to use
> as an Ethercat
> >> Master, Picat4, from simplerobot.org [1], which has
> this kernel, and what
> >> happens is that at booting both monitors start,
> I see booting info on
> >> second monitor for 2-3 seconds, after that
> image get frozen on the
> >> second monitor and the first starts as
> expected with the system running
> >> fine.
> >>
> >> this is an extract of
> dmesg:
> >>
> >> pi@picat:~ $ dmesg | grep fb
> >> [
> >> 0.000000] Kernel
> command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M
> >>
> bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1
> >>
> smsc95xx.macaddr=DC:A6:32:F5:24:DE vc_mem.mem_base=0x3ec00000
> >>
> vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1
> >>
> root=PARTUUID=84c8ffd9-02 rootfstype=ext4 elevator=deadline
> >>
> fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
> >>
> isolcpus=2,3 xenomai.supported_cpus=0xC
> >> [ 0.172711] pci_bus
> 0000:00:
> >> root bus resource [mem 0x600000000-0x603ffffff] (bus
> address
> >> [0xf8000000-0xfbffffff])
> >> [ 0.176577] bcm2708_fb soc:fb: FB
> found 2
> >> display(s)
> >> [ 0.209547] bcm2708_fb soc:fb: Registered
> framebuffer for
> >> display 0, size 1920x1080
> >> [ 0.233066] bcm2708_fb
> soc:fb: Registered
> >> framebuffer for display 1, size 1920x1080
> >>
> >>
> from those commands I confirm
> >> monitors are recognized:
> >>
> >>
> pi@picat:~ $ tvservice -l
> >> 2 attached
> >> device(s), display ID's are :
>
> >> Display Number 2, type HDMI 0
> >> Display
> >> Number 7, type HDMI 1
> >>
> pi@picat:~ $ tvservice -v 2 -s
> >> state 0xa [HDMI CEA
> >> (16) RGB lim
> 16:9], 1920x1080 @ 60.00Hz, progressive
> >> pi@picat:~ $
> >> tvservice -v
> 7 -s
> >> state 0xa [HDMI CEA (16) RGB lim 16:9], 1920x1080 @
> >> 60.00Hz,
> progressive
> >>
> >> ...and 2 framebuffers are created:
> >>
> >> pi@picat:~
> $
> >> ls /dev/fb*
> >> /dev/fb0 /dev/fb1
> >>
> >> BUT xrandr give me this:
> >>
>
> >> pi@picat:~ $
> >> xrandr
> >> xrandr: Failed to get size of gamma for
> output default
> >> Screen 0:
> >> minimum 1920 x 1080, current 1920 x 1080,
> maximum 1920 x 1080
> >> default
> >> connected 1920x1080+0+0 0mm x 0mm
> >>
> 1920x1080 0.00*
> >>
> >> only one
> >> monitor...
> >>
> >> I know that's a
> Raspberry, and I have to expect strange
> >> behave, but it looks
> promising that at booting both monitors work,
> >> so..
> >>
> >> Can you
> point me in the right direction to look where, when and
> >> why the
> second monitor stops to work?
> >>
> >> Thanks, Davide.
> >>
> >> Con Tiscali
> Mobile Smart 70 hai 70 GB in 4G, minuti illimitati e 100 SMS a soli
> 7,99EUR al mese http://tisca.li/Smart70 [2]
> >
> > Hi,
> > Are you using
> ipipe or dovetail? This may not be a xenomai issue, how do you build
> your kernel?
> > Thanks
> > Greg
>
>
>
> Con Tiscali Mobile Smart 70 hai 70 GB in 4G, minuti illimitati e 100 SMS a
> soli 7,99€ al mese http://tisca.li/Smart70


It’s possible the drivers aren’t working in the kernel without ipipe,
you’ll want to confirm that first.  If you didn’t compile the kernel
yourself you’ll want to find the sources so you can debug..

Greg

> <http://tisca.li/Smart70>
>
>

  reply	other threads:[~2021-06-28 11:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26 13:06 Raspberry pi 4 second monitor problem on xeno3 77dab
2021-06-26 13:09 ` Greg Gallagher
2021-06-28  8:29   ` 77dab
2021-06-28 11:33     ` Greg Gallagher [this message]
2021-06-28 12:11       ` 77dab
2021-06-28 12:17         ` Greg Gallagher
2021-06-28 13:01           ` 77dab
2021-06-28 13:49             ` Greg Gallagher
2021-06-28 15:38               ` 77dab

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=CALLqZ8QOZS9mJBsFcU6uZWVDOHXhC4QsYLstb7hxFOg1wf3C7w@mail.gmail.com \
    --to=greg@embeddedgreg.com \
    --cc=77dab@tiscali.it \
    --cc=xenomai@xenomai.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.