From owner-freebsd-arm@freebsd.org Fri Jun 21 19:34:30 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 10A1315BCB94 for ; Fri, 21 Jun 2019 19:34:30 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from mail.myserver.ws (mail.myserver.ws [144.217.111.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.myserver.ws", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B956E7569D for ; Fri, 21 Jun 2019 19:34:28 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from eldorado (50-243-135-133-static.hfc.comcastbusiness.net [50.243.135.133]) (Authenticated sender: sm@ara-ler.com) by mail.myserver.ws (Postfix) with ESMTPSA id 36C01A30D5; Fri, 21 Jun 2019 19:34:22 +0000 (UTC) Date: Fri, 21 Jun 2019 13:34:19 -0600 From: Sergey Manucharian To: Oleksandr Tymoshenko Cc: Vijay Kumar Banerjee , freebsd-arm@freebsd.org Subject: Re: Writing to /dev/fb0 Message-ID: <20190621193419.GG2903@eldorado> References: <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> <20190621190502.GA35692@bluezbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190621190502.GA35692@bluezbox.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Rspamd-Queue-Id: B956E7569D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of sm@ara-ler.com designates 144.217.111.45 as permitted sender) smtp.mailfrom=sm@ara-ler.com X-Spamd-Result: default: False [-2.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.836,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.myserver.ws]; NEURAL_HAM_LONG(-0.99)[-0.995,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[ara-ler.com]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.myserver.ws]; NEURAL_HAM_SHORT(-0.81)[-0.808,0]; IP_SCORE(0.05)[ipnet: 144.217.0.0/16(-0.90), asn: 16276(1.14), country: FR(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:16276, ipnet:144.217.0.0/16, country:FR]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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:34:30 -0000 Excerpts from Oleksandr Tymoshenko's message from Fri 21-Jun-19 12:05: > 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 > > -- Thanks, gonzo! That's really simple! I added "main" and it draws a red rectangle! int main (int argc, char** argv) { open_framebuffer(); setcolor (4, 0xff0000); rect(100, 200, 200, 300, 4); close_framebuffer(); } Vijay, Before compiling remove references to font related stuff like "put_char" and "put_string" since they need linking with a font processing library (not libfreetype). Ϟϻ