the sx20 porting thread - page 108 - General Discussion and Assistance - CHDK Forum

the sx20 porting thread

  • 1286 Replies
  • 510045 Views
Re: the sx20 porting thread
« Reply #1070 on: 19 / January / 2011, 09:21:15 »
Advertisements
I don't think the problem is SD Partitions, I have a 2GB card without partitions and I had the same problem.

I've not tested holding start button for a while.


*

Offline ultimA

  • ***
  • 137
Re: the sx20 porting thread
« Reply #1071 on: 19 / January / 2011, 10:35:18 »
Maybe it is triggered by some setting(s) in the CHDK configuration. Does anybody remember what settings you changed from the defaults?

Re: the sx20 porting thread
« Reply #1072 on: 19 / January / 2011, 11:44:17 »
Maybe it is triggered by some setting(s) in the CHDK configuration. Does anybody remember what settings you changed from the defaults?

I had thought of that. But I can't remember exactly what I changed. A few days ago, I thought that maybe it had something to do with some scripts that I had installed so when I tested some older builds, I didn't installed those scripts on the card and it still continue to crash. I have never used Zebra and Edge (yet), so it can't be that. Very bizarre conflict to say the least.
SX20 1.02d

*

Offline reyalp

  • ******
  • 14138
Re: the sx20 porting thread
« Reply #1073 on: 19 / January / 2011, 12:11:46 »
Still no romlog ?
Don't forget what the H stands for.

Re: the sx20 porting thread
« Reply #1074 on: 19 / January / 2011, 12:36:22 »
Still no romlog ?

I tried doing exactly that. I Loaded the romlog script. Then the camera froze. Couldn't do anything. So I open the battery compartment door. Restart the camera, camera is still frozen with the actual scene that i'm pointing it too but I cannot shoot, I can't go to review mode...it is frozen. Remove the battery again, still the same. So I then put the card in my laptop, remove that romlog script from all the scripts there. Put it in my camera and now the camera work just fine. I don't think I will experiment with that romlog script ever again UNLESS you can give me some tips on how to make this work without causing the camera to freeze. I have looked in the forums and can't find anything on that.
« Last Edit: 19 / January / 2011, 15:11:15 by wowsers51 »
SX20 1.02d

Re: the sx20 porting thread
« Reply #1075 on: 19 / January / 2011, 13:00:31 »
I have add a sleep(1000) in file core/main.c and use the trunk 1050(1050 crash before too).I think it help, but maybe its too early to say for me.but if you get more often crash, maybe this help you better ?

also a smaller value is possible

void core_spytask() {
    int cnt = 1;
    int i=0;

    raw_need_postprocess = 0;

    spytask_can_start=0;

#ifdef OPT_EXMEM_MALLOC
   exmem_malloc_init();
#endif

#ifdef CAM_CHDK_PTP
    init_chdk_ptp_task();
#endif

    while((i++<400) && !spytask_can_start) msleep(10);
+    msleep(1000);
    started();
    msleep(50);
    finished();
    drv_self_unhide();
« Last Edit: 19 / January / 2011, 13:02:45 by Bernd R »
Ixus 1000 HS

*

Offline ultimA

  • ***
  • 137
Re: the sx20 porting thread
« Reply #1076 on: 19 / January / 2011, 15:18:27 »
Still no romlog ?

I already asked for it recently, nobody gave it to me. wowsers51: Please try the romlogscriptonce more. I've had that problem too previously, but even when the camera freezes from that script, the romlog still gets written to the card. So you can send that to me.

*

Offline reyalp

  • ******
  • 14138
Re: the sx20 porting thread
« Reply #1077 on: 19 / January / 2011, 15:29:56 »
You can use the canon basic romlog script: http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Romlog

See http://chdk.wikia.com/wiki/Canon_Basic/Card_Setup for how configure the card for canon basic, and http://chdk.wikia.com/wiki/Canon_Basic for additional information. You can do this without running CHDK at all.
Don't forget what the H stands for.

Re: the sx20 porting thread
« Reply #1078 on: 19 / January / 2011, 15:36:20 »
Still no romlog ?

I already asked for it recently, nobody gave it to me. wowsers51: Please try the romlogscriptonce more. I've had that problem too previously, but even when the camera freezes from that script, the romlog still gets written to the card. So you can send that to me.

Do I take the script that is already on the camera or is there one that is better that I could d/l? Because if I take the one in the camera, the only way I can make it work is by taking the card to my laptop and remove that log and then put the card back in the camera. Any other way just does not work because I cannot do anything after it is frozen. Even after removing the batteries, it will freeze on restart. Any suggestion?
SX20 1.02d

*

Offline reyalp

  • ******
  • 14138
Re: the sx20 porting thread
« Reply #1079 on: 19 / January / 2011, 15:44:32 »
Any other way just does not work because I cannot do anything after it is frozen. Even after removing the batteries, it will freeze on restart. Any suggestion?
If a crash log is generated, it is stored in the cameras on board flash. The script just copies it to SD card. You do not need to run CHDK at all to use the canon basic script.

Note that if the camera is hanging, rather than crashing, you should let it sit for a few minutes in this state, so it has a chance to generate a watchdog timeout, which will also make a romlog.

edit:
Note that a romlog is much more useful if the core/main.dump from the corresponding build is also available. This can be built after the fact, provided you use exactly the same compiler and options.
« Last Edit: 19 / January / 2011, 16:04:01 by reyalp »
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal