Code: Select all
raspistill -t 2000 -o image.jpg -n
Code: Select all
mmal: Unknown status error
mmal: main: Failed to connect camera to preview
mmal: Unknown status error
Segmentation fault
Code: Select all
raspistill -t 2000 -o image.jpg -n
Code: Select all
mmal: Unknown status error
mmal: main: Failed to connect camera to preview
mmal: Unknown status error
Segmentation fault
Code: Select all
MMAL_STATUS_T status = MMAL_SUCCESS;
Code: Select all
{
MMAL_STATUS_T status;
Code: Select all
{
MMAL_STATUS_T status = MMAL_SUCCESS;
Code: Select all
[ 95%] Building C object host_applications/linux/apps/raspicam/CMakeFiles/raspistill.dir/RaspiStill.c.o
/home/pi/work/userland/host_applications/linux/apps/raspicam/RaspiStill.c: In function âencoder_buffer_callbackâ:
/home/pi/work/userland/host_applications/linux/apps/raspicam/RaspiStill.c:549:33: warning: âstatusâ may be used uninitialized in this function [-Wuninitialized]
Code: Select all
[email protected] ~/work $ ./raspistill -n -v -o test.jpg
RaspiStill Camera App
=====================
Width 2592, Height 1944, quality 85, filename test.jpg
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Preview No, Full screen Yes
Preview window 0,0,1024,768
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 400, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
Camera component done
Encoder component done
Starting component connection stage
mmal: Unknown status error
mmal: main: Failed to connect camera to preview
mmal: Unknown status error
Closing down
Segmentation fault
Code: Select all
MMAL_STATUS_T status = -1;
Weird that it's got -1 and it's on a different line, that means my source tree is out of date, and yet is supposed to be the main dev tree....leol wrote:Seems to be line 1034 and in my copy it is:I have changed the source but unfortunately my pi with the camera attached has crashed and I can't get to it until this evening. (I'm at work and Pi is at home!)Code: Select all
MMAL_STATUS_T status = -1;
I'm getting these crashes quite a lot. Reading other threads I think it is a power issue. I will investigate this weekend.
Leo
Code: Select all
sudo apt-get install git gcc build-essential cmake
git clone git://github.com/raspberrypi/userland.git
cd userland
sed -i 's/if (DEFINED CMAKE_TOOLCHAIN_FILE)/if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)/g' makefiles/cmake/arm-linux.cmake
Code: Select all
MMAL_STATUS_T status = MMAL_SUCCESS;
Code: Select all
mkdir build
cd build
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo make
sudo make install
Code: Select all
sudo apt-get install cmake
Code: Select all
sudo make install
Code: Select all
wget https://www.dropbox.com/s/cu3aviqktx7xru9/raspistill
sudo cp /opt/vc/bin/raspistill /opt/vc/bin/raspistill.orig
sudo cp raspistill /opt/vc/bin/
Not that unusual, I set up Eclipse to do cross compilation using the Linaro tools from the github tools, then tweaked all the includes and libraries in Eclipse to use github userland. The Foundation doesn't work that way, so it 'unusual' to them, just not to me! Problem is it doesn't move from machine to machine well due to Eclipse not allowing relative paths for tool chains (as far as I can tell)tvjon wrote:
jamesh, thanks for the fix. Can you elaborate on your "unusual" cross compilation technique, or is it secret?
a simple solution to the flickering on the screen (because -nopreview is broken) is to make the preview size very small and place it to the left and above the screen so only ONE pixel is updated on the console like so
/opt/vc/bin/raspistill -t 0 -w 1024 -h 768 -p -31,-23,32,24 -o -
Do as above, buttowolf wrote:raspivid has the same problem, how does the fix for that one look?
Code: Select all
MMAL_STATUS_T status = MMAL_SUCCESS;