From owner-freebsd-arm@freebsd.org Fri Jun 21 18:44:53 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 A8EBD15BB770 for ; Fri, 21 Jun 2019 18:44:53 +0000 (UTC) (envelope-from vijaykumar9597@gmail.com) Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A505F734B8 for ; Fri, 21 Jun 2019 18:44:52 +0000 (UTC) (envelope-from vijaykumar9597@gmail.com) Received: by mail-io1-xd42.google.com with SMTP id e5so1162772iok.4 for ; Fri, 21 Jun 2019 11:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dNXM8l4QYuNU04w51LbneqAOxGAzgXvMue06wbHEofc=; b=DQ1vsdjd114Htm1yQG08GjMpDA+oDe9K9+zNXl/AN+RRYCaHLqxu5bFcwN1du5lbtV KSijWVEVQF33RytqvOoghkF+YixtzlkmbTUh7jMYypqx7hDzCt+gmplnUd49QsZMn2lE 3ADJG9CCBVsYujpxt5X9Sci4s/Ud+zXeN1kN2k70/17QHlgtZbX9sttnlLZXwnnE6HyG Q9Y9HbMIhO5koFN85aUBJfuc9dqeFHQ0CL3usHkOwQ+2nIIZC7o4sOVh0TbFIxBhUgC6 pzonlcn1OF9uzQfPdlsoKcsQExN9yZ7Ri73494b/jC2hd3uRD0+lgrn3SE5PBkhmEhvZ Vi3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dNXM8l4QYuNU04w51LbneqAOxGAzgXvMue06wbHEofc=; b=KY6XbvXckplq+IQM6ap2ftyUfBD92TFTeTmfE6nA5awugdM9JDqf5HqWjbeKSL9FAs /d1sJ8LPpQ2CFExU+9aARbT1IpZxM55+ZFL66m3ijxhRQJEI6YPt03pU4UPvOIDwsie8 XODesJNXwai4FVn8uLtMLXQ/HCuxAneQpWIDcBLflQvC2NPDEptqJUJ2RLj85PXaaHv+ e+vf1JYEzDhSu67gl6PU7F3xuhtKBpTUNYXCJoYZ/AG3H0REqdWbvOxZl8uTXRdU+6Lt exweCOEMa5brfeDqAPD81o5FUyA7kWcXc7JbJwq46xyWDm5OlTsT12JoHxRAA/h7oq3W tX8g== X-Gm-Message-State: APjAAAVpUsoMVyx/2+qiBiUphuy1zreigpp8FgtoiC07drIgofQz5Roz p2Uhfa3JtCjG9jJfHIoyKn1p4Ftciv9dugRNDMs= X-Google-Smtp-Source: APXvYqzoEec0n2MMo83s+ACLab2bY6k2EzkQIXhF77m+R7C6BkvCPNDb4IykiAWBEDTxQ/eWFgH9XeZxzj9gVhWQyio= X-Received: by 2002:a02:a07:: with SMTP id 7mr16516868jaw.65.1561142691435; Fri, 21 Jun 2019 11:44:51 -0700 (PDT) MIME-Version: 1.0 References: <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> In-Reply-To: <20190621171343.GE2903@eldorado> From: Vijay Kumar Banerjee Date: Sat, 22 Jun 2019 00:14:40 +0530 Message-ID: Subject: Re: Writing to /dev/fb0 To: Sergey Manucharian Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: A505F734B8 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DQ1vsdjd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of vijaykumar9597@gmail.com designates 2607:f8b0:4864:20::d42 as permitted sender) smtp.mailfrom=vijaykumar9597@gmail.com X-Spamd-Result: default: False [-4.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.89)[-0.892,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.78)[ip: (1.64), ipnet: 2607:f8b0::/32(-3.15), asn: 15169(-2.33), country: US(-0.06)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 18:44:53 -0000 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 =E2=80=93 it supports BSD fra= mebuffer > > out of the box: > > > > -platform: bsdfb:fb=3D/dev/fb0 > > Sorry for the typo, there is no colon after "platform": > > -platform bsdfb:fb=3D/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? Best regards, Vijay > > =CF=9E=CF=BB > >