Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
trouble with raspberrypi camera module and userland
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
brendlefly62
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2009
Posts: 133

PostPosted: Sun May 04, 2014 3:50 am    Post subject: trouble with raspberrypi camera module and userland Reply with quote

Looking for help -- I've tried to follow a number of suggestions and have emerged raspberrypi-userland a number of times, but raspistill and raspivid still returns error:

Code:
$ raspistill -o image.jpg
raspistill: symbol lookup error: /opt/vc/lib/libGLESv2.so: undefined symbol: client_tls


Is this maybe a toolchain issue? The same hardware works fine with a rasbian image, though I notice the github userland (https://github.com/raspberrypi/userland) expects to compile with arm-linux-gnueabihf-gcc, and the closest reference to my problem (http://www.raspberrypi.org/forums/viewtopic.php?f=54&t=50037) refers to gcc/armv6j-hardfloat-linux-gnueabi/4.6.3 -- whereas I'm on gcc-4.7.3 and glibc-2.17

here's some addtional maybe-relevant background:
Code:
# uname -a
Linux Raspberry06 3.12.17-raspberrypi+ #2 PREEMPT Sat Apr 26 09:00:40 EDT 2014 armv6l BCM2708 GNU/Linux

# gcc-config -l
 [1] armv6j-hardfloat-linux-gnueabi-4.7.3 *

binutils-config -l
 [1] armv6j-hardfloat-linux-gnueabi-2.23.2 *

# emerge -pv glibc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R    ] sys-libs/glibc-2.17:2.2  USE="-debug -gd (-hardened) (-multilib) -nscd -profile (-selinux) -suid -systemtap -vanilla" 0 kB
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun May 04, 2014 1:27 pm    Post subject: Re: trouble with raspberrypi camera module and userland Reply with quote

brendlefly62 wrote:
Code:
$ raspistill -o image.jpg
raspistill: symbol lookup error: /opt/vc/lib/libGLESv2.so: undefined symbol: client_tls

brendlefly62 ... try with:

Code:
% LD_LIBRARY_PATH=/opt/vc/lib raspistill -o image.jpg

brendlefly62 wrote:
Is this maybe a toolchain issue?

Well, looks like an ldpath issue, but I don't have a raspberry_pi so I can't look and see ...

best ... khay
Back to top
View user's profile Send private message
brendlefly62
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2009
Posts: 133

PostPosted: Sun May 04, 2014 9:34 pm    Post subject: Reply with quote

Many thanks, khayyam. Like that, raspistill also returns errors, but it does actually capture an image! :o
Code:
# LD_LIBRARY_PATH=/opt/vc/lib raspistill -o image.jpg
mmal: mmal_vc_port_parameter_set: failed to set port parameter 64:0:ENOSYS
mmal: Function not implemented
mmal: mmal_vc_port_parameter_set: failed to set port parameter 64:0:ENOSYS
mmal: Out of memory
mmal: Unable to set shutter speed

raspivid returns the similar errors, but captures no video: :?
Code:
# raspivid -fps 10 -w 640 -h 360 -vf -hf -t 10 -o video.h264mmal: mmal_vc_port_parameter_set: failed to set port parameter 64:0:ENOSYS
mmal: Function not implemented
mmal: mmal_vc_port_parameter_set: failed to set port parameter 48:2:ENOSYS
mmal: failed to set INLINE HEADER FLAG parameters

Are there perhaps some things I should be dong to set up the environment differently?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun May 04, 2014 10:00 pm    Post subject: Reply with quote

brendlefly62 wrote:
Are there perhaps some things I should be dong to set up the environment differently?

brendlefly62 ... you mean as far as the ldpath is concerned or these applications not behaving? As far as the former goes you could add the path to /etc/ld.so.conf.d/06-raspberrypi-userland.conf and run 'ldconfig' ... though looking at the ebuild the author (chithanh) is looking to have everything under /opt/vc moved to / (which would certainly resolve the ldpath issue).

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum