Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2019 12:05:02 -0700
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        Vijay Kumar Banerjee <vijaykumar9597@gmail.com>
Cc:        Sergey Manucharian <sm@ara-ler.com>, freebsd-arm@freebsd.org
Subject:   Re: Writing to /dev/fb0
Message-ID:  <20190621190502.GA35692@bluezbox.com>
In-Reply-To: <CAFgkNAmw3cyhacK2RT2bHn=pNjRTE39o=bAR7aeuJPRb6W1dyQ@mail.gmail.com>
References:  <CAFgkNAkVHccLg15aq9RY5CaT1qV=Bku2KpqOZiLjaNhJJF%2B8=A@mail.gmail.com> <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> <CAFgkNAmw3cyhacK2RT2bHn=pNjRTE39o=bAR7aeuJPRb6W1dyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Vijay Kumar Banerjee (vijaykumar9597@gmail.com) wrote:
> On Fri, Jun 21, 2019 at 10:43 PM Sergey Manucharian <sm@ara-ler.com> wrote:
> 
> > Excerpts from Sergey Manucharian's message from Fri 21-Jun-19 11:08:
> > > Excerpts from Vijay Kumar Banerjee's message from Fri 21-Jun-19 22:25:
> > > > `cat /dev/urandom > /dev/fb0`
> > > > But this doesn't work on the FreeBSD. Any suggestions on how to
> > > > test the fb0 device and how to write random pixels, or maybe draw a
> > line?
> > > >
> > >
> > > The easiest thing you can do is using Qt5 – it supports BSD framebuffer
> > > out of the box:
> > >
> > > <qt5_program> -platform: bsdfb:fb=/dev/fb0
> >
> > Sorry for the typo, there is no colon after "platform":
> >
> > <qt5_program> -platform bsdfb:fb=/dev/fb0
> >
> > Hi Sergey,
> 
> Thanks for the quick reply. I'm searching for something even basic
> and simpler. I understand that Qt is very simple to create GUI apps
> but I need something very basic so that it's easy to _debug_ it while
> testing the newly ported drivers. I basically need something where
> I can see all steps from "draw a pixel in the top left corner" to the
> registers in the hardware.
> 
> Also, after the successful run in the FreeBSD, the ultimate goal would
> be to run the test app on RTEMS and I'm not sure about Qt on RTEMS.
> There is definitely some port somewhere but that would give way for
> more bugs and it would be a tough time debugging.
> 
> Is there anything which can be more basic and a simple application instead
> of a graphics library?

Hi Vijay,

You probably can convert this source file from my tslib branch to
standalone app:

https://github.com/gonzoua/tslib/blob/freebsd/tests/fbutils-bsd.c

-- 
gonzo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190621190502.GA35692>