From owner-freebsd-arm@freebsd.org Fri Jun 21 19:05:12 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C176B15BBFB6 for ; Fri, 21 Jun 2019 19:05:12 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0726A745F8 for ; Fri, 21 Jun 2019 19:05:10 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from localhost ([127.0.0.1] helo=id.bluezbox.com) by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1heOqN-0009I6-6r; Fri, 21 Jun 2019 12:05:03 -0700 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id x5LJ52Jm035717; Fri, 21 Jun 2019 12:05:02 -0700 (PDT) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Fri, 21 Jun 2019 12:05:02 -0700 From: Oleksandr Tymoshenko To: Vijay Kumar Banerjee Cc: Sergey Manucharian , freebsd-arm@freebsd.org Subject: Re: Writing to /dev/fb0 Message-ID: <20190621190502.GA35692@bluezbox.com> References: <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD/11.2-RELEASE-p10 (amd64) User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Vijay Kumar Banerjee (vijaykumar9597@gmail.com) wrote: > On Fri, Jun 21, 2019 at 10:43 PM Sergey Manucharian wrote: > > > Excerpts from Sergey Manucharian's message from Fri 21-Jun-19 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Rspamd-Queue-Id: 0726A745F8 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of gonzo@bluezbox.com designates 45.55.20.155 as permitted sender) smtp.mailfrom=gonzo@bluezbox.com X-Spamd-Result: default: False [-5.51 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; HAS_XAW(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[bluezbox.com]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mx.bluezbox.com]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; IP_SCORE(-2.24)[ip: (-8.18), ipnet: 45.55.0.0/19(-4.09), asn: 14061(1.14), country: US(-0.06)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14061, ipnet:45.55.0.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jun 2019 19:05:13 -0000 Vijay Kumar Banerjee (vijaykumar9597@gmail.com) wrote: > On Fri, Jun 21, 2019 at 10:43 PM Sergey Manucharian 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: > > > > > > -platform: bsdfb:fb=/dev/fb0 > > > > Sorry for the typo, there is no colon after "platform": > > > > -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