fcam - n900 - mysterious reboot
I wrote an application to take pictures and well it takes pictures, but it also randomly 开发者_开发知识库reboots.
How can I determine what caused it? Do I need to observe FCam events or can I just write a simple application that takes pictures?
Walter
there are few causes of reboots and hints where to look for, related to camera on N900/Maemo5:
- (huge) memory leaks mentioned above by Walter may drain your swap and cause reboot
- there is HW watchdog which fires when some binary app messes heavily with pointers, array boundaries, etc and hangs CPU on itself (then process, which resets HW WD periodically, does not reset it and HW WD pulls power off)
- DSP/ISP subsystem may still be less than perfect, coupled with own DMA it might cause interesting, entertaining sometimes, behavior.
- xwindow/SGX can have interesting behavior along camera working.
now, this is still Debian machine only ARM not x86 - enable R&D mode and get syslog giving you some info to start analysis
精彩评论