From owner-freebsd-arm@freebsd.org Fri Nov 25 09:13:59 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D68AAC5356A for ; Fri, 25 Nov 2016 09:13:59 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-35.reflexion.net [208.70.210.35]) (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 8A635CB8 for ; Fri, 25 Nov 2016 09:13:58 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 13985 invoked from network); 25 Nov 2016 09:13:37 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 25 Nov 2016 09:13:37 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.20.0) with SMTP; Fri, 25 Nov 2016 04:14:03 -0500 (EST) Received: (qmail 3687 invoked from network); 25 Nov 2016 09:14:02 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 25 Nov 2016 09:14:02 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id ABF5FEC9024; Fri, 25 Nov 2016 01:13:51 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: Raspberry Pi advice [RPI2B V1.2 is not ARMv7A but Cortex-A53, I'm afraid; slower than RPI3B, no WiFi/Bluetooth] From: Mark Millard In-Reply-To: <20161125083903.GA25648@dropcut.net> Date: Fri, 25 Nov 2016 01:13:51 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0292B13C-7E72-49F0-AC24-FC0B5496E7DC@dsl-only.net> References: <20161125083903.GA25648@dropcut.net> To: c279@dropcut.net, Olivier X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 09:13:59 -0000 On 2016-Nov-25, at 12:39 AM, c279 at dropcut.net wrote: > Hi Oliver, >=20 > On Fri, Nov 25, 2016 at 10:26:20AM +0700, Olivier wrote: >> I am not sure I am on the right list, if not, please help and point = me >> to the correct one. > This mailing list is primarily for individuals working to port FreeBSD > to new ARM-based systems and improve existing support. > General resources for the Raspberry Pi might be: > * https://www.raspberrypi.org/resources/ > * = https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/robot/buttons_and_= switches/ > * https://learn.adafruit.com/category/raspberry-pi >=20 >> ...=20 >> My questions are the following: >> - which version buying? 2B or 3B? > The Raspberry Pi 2 has the best support[0] as of today. You can roll > your own image for the Raspberry Pi 3[1] if you need to. I personally > would choose an RPi2 for FreeBSD at this point. RPI2B V1.1 and before I think that is. The information I've found on ordering a RPI2B V1.2 indicates is is now also a (slower) 64-bit arm (Cortex-A53 quad core in a BCM2837), like the RPI3B. For example: = https://www.raspberrypi.org/forums/viewtopic.php?f=3D63&t=3D163856 (=46rom= Oct.) And: = https://www.element14.com/community/community/raspberry-pi/raspberrypi2 And: = http://www.cnx-software.com/2016/11/21/raspberry-pi-2-gets-an-upgrade-to-6= 4-bit-broadcom-bcm2837-processor-with-pcb-version-1-2/ (You can find more.) "Previous versions of Raspberry Pi 2 Model B use the BCM2836 SoC, which contains a quad-core ARM Cortex-A7 processor. The Raspberry Pi 2 Model B v1.2 board uses BCM2837, which contains a quad-core ARM Cortex-A53 = processor." (This is from the element14 page.) RPI2B V1.1 is out of production from what I can tell, although one might still be able to find one. It gets harder to find one over time. RPI2B V1.2 does not have WiFi/Bluetooth built in. It is too bad that they did not at least name it Raspberry Pi 2C. >> - how GPIO does GPIO work? I need one input to generate interupts and >> the other one to generate interupts but that I can also be able to >> pull the value when there has been no interrupt. Is that possible? > Yes. Here[2] is an example in C and in Python[3]. >=20 >> - would it be possible to use the GPIO to generate a signal to sound >> like a siren? > Yes, but you can also attach speakers to the 3.5mm jack. This might be > easier than fiddeling with GPIO fpr this purpose. >=20 >=20 >> Best regards and thanks for the help, > You're welcome, >=20 > -hf >=20 >=20 >=20 > [0] https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi > [1] https://github.com/zxombie/freebsd/tree/arm64-rpi3 > [2] = https://vzaigrin.wordpress.com/2014/04/18/working-with-gpio-on-raspberry-p= i-with-freebsd/ > [3] = https://vzaigrin.wordpress.com/2015/02/02/web-control-of-raspberry-pi-gpio= -in-freebsd/comment-page-1/ =3D=3D=3D Mark Millard markmi at dsl-only.net