From owner-freebsd-arm@FreeBSD.ORG Thu Feb 19 06:47:40 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFCCF29E for ; Thu, 19 Feb 2015 06:47:40 +0000 (UTC) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6149765D for ; Thu, 19 Feb 2015 06:47:39 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Thu, 19 Feb 2015 07:47:36 +0100 id 0036FD74.54E58708.0000286D Date: Thu, 19 Feb 2015 07:47:36 +0100 From: Milan Obuch To: Oleksandr Tymoshenko Subject: Re: Raspberry Pi Videocore interfaces question - Raspberry Camera Message-ID: <20150219074736.7bf9b106@zeta.dino.sk> In-Reply-To: References: <20150216083503.7789c619@zeta.dino.sk> <0B74DE06-1F46-49E0-B27D-EABFAB1104E3@bluezbox.com> <20150216101651.630cfc2b@zeta.dino.sk> <20150219001203.7a1ae3e9@zeta.dino.sk> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 06:47:40 -0000 On Wed, 18 Feb 2015 15:46:27 -0800 Oleksandr Tymoshenko wrote: > > On Feb 18, 2015, at 3:12 PM, Milan Obuch > > wrote: > >=20 > > On Mon, 16 Feb 2015 10:20:20 +0100 > > Mika=C3=ABl Urankar wrote: [ snip ] > >> Hi, > >>=20 > >> I've made a port for raspberrypi-userland based on NetBSD one: > >> http://mikael.urankar.free.fr/FreeBSD/raspberrypi-userland.shar > >=20 > > Hello, > >=20 > > I was able to build and install this port with no trouble, but it > > does not work for me. As I am interested now in camera, I tried > > raspistill first, which gives me following > >=20 > > assertion > > failure:/usr/ports/misc/raspberrypi-userland/work/gonzoua-userland-11ff= c75/interface/vmcs_host/vc_vchi_dispmanx.c:200:vc_vchi_dispmanx_init():succ= ess > > =3D=3D 0 > >=20 > > While it does clearly indicate where the error occurs, I have > > absolutelly no idea now what could be wrong and how to fix it. > > So if you think you know what I should try, please let me know. > >=20 > > Just if it could be relevant - I used 11-CURRENT r278801, kernel is > > stock RPI-B. In my /etc/src.conf I have following options set: >=20 > I do not have device handy to test it right now but I=E2=80=99ll do it so= on. >=20 > For now could you try /opt/vc/src/hello_pi/hello_dispmanx to check if > it works? > Unfortunatelly I can't - I used Mika=C3=ABl's port to compile the 'userland' utilities and examples are not compiled and for some reason my attempt to compile them failed. I'll investigate this if time permits. > Also how much memory did you assign to GPU? I saw OpenGL ES > stuff failing to initialized due to low GPU memory. May be it=E2=80=99s t= he > case with camera too?=20 >=20 Yes, that's definitely the case. After some guesswork and testing I found minimum GPU for camera is 128 MB. It is still not working, but fails in other way. raspistill -o test.jpg mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) mmal: Failed to create camera component mmal: main: Failed to create camera component mmal: Camera is not enabled in this build. Try running "sudo raspi-config" and ensure that "camera" has been enabled I have new board, the B+ one I will setup now, so I plan repeating Raspbian setup I did already, just not with SD card but microSD, and I will check what changes to videocore boot files in fat partition does 'sudo raspi-config'. Again, some time is necessary. Thanks for all the help provided so far. Regards, Milan