I just wanted to report an issue using the CSI camera module and a "slow" SD card or a USB stick. I use a Class 6 SD card with 8 GB capacity and Raspian (apt-get update/upgraded today - i.e. May 24th; uname -a: Linux raspberrypi 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l GNU/Linux). I have a Raspberry Pi Model B with 256 MB (the old version). When I do the following:
raspivid -o test.h264 -t 20000 -hf
I can crash the Pi by adding more load, e.g. by trying to connect to it via SSH. Screen goes blank and and Pi reboots. If I use a USB 3.0 USB stick as target for the file, the crash happens even without adding load, just after a few seconds. I checked the following things:
- Power - I attached even two power supplies adding up to 3 A of availabe power (although I admit not testing T1/T2)
- Overclocking - I removed any overclocking directives from config.txt
- Double-check that GPU mem is 128 MB (64 was also crashing Pi when capturing video)
Then I did the following:
raspivid --demo -t 20000 -hf
Then I can add as much load as I like, the Pi is stable, even using my overclocking settings.
What I can see also is, that when I really write the video-file, the CPU load is at 100%. When I do the demo, CPU is nearly idle.
So I guess it is something with IO, DMA, buffer overrun or whatever. The next thing I will try to get a class 10 or better SD card just to see what happens. I'll keep you posted.
Of course, any hints are welcome