Ultimate Intervalometer - intermittent reboot faiure (powershot D10) - page 3 - Completed and Working Scripts - CHDK Forum  

Ultimate Intervalometer - intermittent reboot faiure (powershot D10)

  • 63 Replies
  • 15256 Views
Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #20 on: 28 / January / 2014, 20:02:03 »
Advertisements
Don't know if this helps. I am using my own CHDK version with a little tweaks, I built the last one this morning.

I am working with two cameras, and I know that both of them had problems to start several times. Now I rebuilt the same version I used today, this time keeping the main.bin.dump, it is attached together with the ROM logs of both cameras.

If this doesn't help I'll try to reproduce the error again, at the moment it seems completely gone, although I am trying very hard. I am afraid it isn't.

Thank you very much, I really appreciate your help!
« Last Edit: 28 / January / 2014, 20:05:38 by Karmaschinken »

Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #21 on: 28 / January / 2014, 20:09:51 »
If this doesn't help I'll try to reproduce the error again, at the moment it seems completely gone, although I am trying very hard. I am afraid it isn't.
Does your SD card have a lot of images ( 500+ )  ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #22 on: 28 / January / 2014, 20:19:26 »
No, absolutely not. Actually I download every single image immediately and then delete it.

Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #23 on: 28 / January / 2014, 20:28:51 »
No, absolutely not. Actually I download every single image immediately and then delete it.
Well,  if you want to trigger the crash,  putting a lot of images on the SD card seems to precipitate it.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline srsa_4c

  • ******
  • 4285
Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #24 on: 29 / January / 2014, 17:11:08 »
Don't know if this helps. I am using my own CHDK version with a little tweaks, I built the last one this morning.
The romlog addresses and main.bin.dump seem to match. But that's all the good news I have. I can't figure out what might be going on. Last log entry is 610 msecs after (re)start. The only thing that seems to be sure is that the assert was triggered inside the firmware's Open() function, but I have no idea what was the caller. Due to configuration, CHDK doesn't call that directly, so it's something else.

You could try commenting out those mkdir() calls in core/main.c (but make sure the directories exist on the card).

Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #25 on: 29 / January / 2014, 18:31:11 »
Thanks a lot for watching and helping with this issue! Hope I can help with that for others too a little.

I commented out all mkdir() in main core, means in core_spytask() and dump_memory(), then compiled successfully. Then packed the card with images until it was almost full. And indeed I at least got one time the failure again.

Attached are the new main.bin.dump and the romlog.log.

Thank you very much!
« Last Edit: 29 / January / 2014, 18:33:41 by Karmaschinken »

*

Offline srsa_4c

  • ******
  • 4285
Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #26 on: 29 / January / 2014, 19:18:32 »
I commented out all mkdir() in main core, means in core_spytask() and dump_memory(), then compiled successfully. Then packed the card with images until it was almost full. And indeed I at least got one time the failure again.
The only thing that changed is the timing.
After taking a look at some fw routines it looks like mkdir() and stat() don't use Open(), but Fopen_Fut() does. So, CHDK is trying to open something with fopen() - I think reyalp suspected this.

Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #27 on: 29 / January / 2014, 19:34:20 »
Don't know what that means because I don't know the internals of chdk until now. Maybe I will some time, but for now I only can offer to try more things you propose. So please tell me if I can do anything else. Thanks!


Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #28 on: 30 / January / 2014, 03:06:38 »
Don't know if it helps? But here is another one. Still with the mkdir() commented out.

*

Offline srsa_4c

  • ******
  • 4285
Re: Ultimate Intervalometer - intermittent reboot faiure (powershot D10)
« Reply #29 on: 30 / January / 2014, 16:14:41 »
Still with the mkdir() commented out.
Please undo the main.c change and add the following line to platform/sx200is/sub/100c/stubs_entry_2.S:

NHSTUB(Fopen_Fut, 0xFF8564D8)

This will make CHDK use a lower level function instead of Fopen_Fut() as fopen(). The substitution seems to work on the a3200, but I haven't done any heavy testing.

 

Related Topics