From owner-freebsd-arm@freebsd.org Fri Nov 25 08:47:47 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 E2C3CC5296A for ; Fri, 25 Nov 2016 08:47:47 +0000 (UTC) (envelope-from hf@dropcut.net) Received: from dropcut.net (dropcut.net [78.46.130.151]) (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 B2A2BA0E for ; Fri, 25 Nov 2016 08:47:47 +0000 (UTC) (envelope-from hf@dropcut.net) Received: by dropcut.net (Postfix, from userid 1001) id 8367F5080C81; Fri, 25 Nov 2016 09:39:03 +0100 (CET) Date: Fri, 25 Nov 2016 09:39:03 +0100 From: c279@dropcut.net To: freebsd-arm@freebsd.org Subject: Re: Raspberry Pi advice Message-ID: <20161125083903.GA25648@dropcut.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 08:47:48 -0000 Hi Oliver, 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 > ... > 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. > - 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]. > - 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. > Best regards and thanks for the help, You're welcome, -hf [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-pi-with-freebsd/ [3] https://vzaigrin.wordpress.com/2015/02/02/web-control-of-raspberry-pi-gpio-in-freebsd/comment-page-1/