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

the sx20 porting thread

  • 1286 Replies
  • 388681 Views
Re: the sx20 porting thread
« Reply #1220 on: 16 / April / 2011, 14:54:01 »
Advertisements
... what does that patch do, f_m_b?
Only the changes i made for the local versions for exmem at: link

I see you checked in the same changes i do, but you have used 4MB and not only 2MB like i do.
Also you set the CAM_STARTUP_CRASH_FILE_OPEN_FIX for 1.02d. EDIT: this is for all sx20. Thanks.

Could you please set CAM_STARTUP_CRASH_FILE_OPEN_FIX also for 1.02b and also the changes for sx20 like there (i tested it with 2MB and 4MB)?

I don't understand the problem with the video.
When i use video with "Video Mode" [Default] and "Video Quality" up to 99 then all works fine. With exmem and without exmem settings.
When i use video with "Video Mode" [Quality] then i have the same problem like bdasmith. With exmem and without exmem settings.

Why do you think, this is a problem with memory?

Frank

SX20 1.02b

the problem i am running into involves:
 "Video Mode" [Default]
"Video Quality" 84   (default)

video works fine on sx20 1.02 d firmware without exmem, but even with exmem set to 2mb buffer and the proper memisostart address, the video does not want to record.

thats why were trying to track down the problem for the d firmware....i am happy that the 1.02 b firmware is working great with this. :)  now want it to work with d to!
sx20is 1.02d

Re: the sx20 porting thread
« Reply #1221 on: 16 / April / 2011, 17:14:06 »
I installed the latest 1146 build this morning and now video work great and the camera doesn't crash either. I think Phil as finally found a fix.  :)

Hey there Wowsers,

yes, Philmoz has completely fixed the startup crashes with the patch that he introduced and is now standard in 1146 for the sx20.

the other thing we are playing with now is Exmem...a different way of the camera using the internal memory.  this is what was causing the video to not want to record.  It is not working smoothly yet but will get there.

Hi bdasmith,

Well, for me, the video feature work perfectly except when I put it to the "quality" mode it doesn't work but this is a feature that never worked before either so I am not worried about that because at the default setting, it is very sharp anyway.

Now the video mode work and there is NO crash. I'm very happy.
SX20 1.02d

*

Offline philmoz

  • *****
  • 3427
    • Photos
Re: the sx20 porting thread
« Reply #1222 on: 16 / April / 2011, 18:38:03 »
here is the new exmeminfo file from the one you gave me last night philmoz

it has some data in it :)

edit: also noted that reyalp put in the exmem files into trunk for sx20 even though i'm not done testing yet....
that won't hurt anything will it?


Thanks, that's what I thought it would give.

Can you try one more test, run the same exmem2.lua script; but this time using exmem with 2MB of exmem and the OPT_EXMEM_TESTING option enabled (OPT_CHDK_IN_EXMEM) disabled.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline f_m_b

  • **
  • 71
Re: the sx20 porting thread
« Reply #1223 on: 16 / April / 2011, 19:15:19 »
the problem i am running into involves:
 "Video Mode" [Default]
"Video Quality" 84   (default)

video works fine on sx20 1.02 d firmware without exmem, but even with exmem set to 2mb buffer and the proper memisostart address, the video does not want to record.

thats why were trying to track down the problem for the d firmware....i am happy that the 1.02 b firmware is working great with this. :)  now want it to work with d to!

ok. Now I understand. (Sorry my English is not so good and I always have to ask twice ;) )
Only one information... I don't know if the following fact could help someone to fix your problem:
Werner_O has tested CHDK-DE revision 626 with 1.02d and 2MB exmem.
Video worked with "Default" and "99".

If you want to try out this German Version which Werner_O has tested, you find the link here Link
Info:
"Basiert auf CHDK-626 (1.02d). Erweiterter Speicher aktiv. Testbetrieb!!!"
-> means OPT_EXMEM_TESTING is active and CHDK_IN_EXMEM is deactivated

"Basiert auf CHDK-626 (1.02d). Erweiterter Speicher aktiv. Realbetrieb!!!"
-> means OPT_EXMEM_TESTING is deactivated and CHDK_IN_EXMEM is active

Frank

SX20 1.02b
Greetings Frank
SX20 (1.02b)


Re: the sx20 porting thread
« Reply #1224 on: 16 / April / 2011, 19:33:32 »
no problem frank, its good were able to get things straightened out!

@philmoz, here is the new exmeminf run...

like i said before, video will record with the 2mb buffer, but not everytime.  sometimes fail right away, other times after several minutes...sometimes will go longer...

hope this helps.
sx20is 1.02d

*

Offline philmoz

  • *****
  • 3427
    • Photos
Re: the sx20 porting thread
« Reply #1225 on: 16 / April / 2011, 19:37:33 »
the problem i am running into involves:
 "Video Mode" [Default]
"Video Quality" 84   (default)

Werner_O has tested CHDK-DE revision 626 with 1.02d and 2MB exmem.
Video worked with "Default" and "99".

Just to clarify (and avoid any confusion), when 'Video Mode' is set to Default then the value of 'Video Quality' is not relevant.

'Video Mode' = Default means let the camera use it's own settings, no override is done.
'Video Mode' = Quality means override the camera quality setting with the value in 'Video Quality'.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline philmoz

  • *****
  • 3427
    • Photos
Re: the sx20 porting thread
« Reply #1226 on: 16 / April / 2011, 20:42:50 »
no problem frank, its good were able to get things straightened out!

@philmoz, here is the new exmeminf run...

like i said before, video will record with the 2mb buffer, but not everytime.  sometimes fail right away, other times after several minutes...sometimes will go longer...

hope this helps.

Hmmm, that would indicate that both CHDK and the movie record are both getting blocks of exmem memory. The movie record is still getting 14MB so I don't understand why the recording stops.

I'd try the CHDK-DE version that f_m_b linked to and see what happens.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: the sx20 porting thread
« Reply #1227 on: 17 / April / 2011, 01:47:36 »
tried the de version that fmb posted and it worked okay....the internal memory bar was displaying but it didn't stop recording...
one time stopped recording 2 seconds into it....

I am recompiling again with trunk 1147, 2mb buffer and exmem all enabled....and will test more.

thanks for your continued help with this.
« Last Edit: 17 / April / 2011, 08:11:42 by bdasmith »
sx20is 1.02d


Re: the sx20 porting thread
« Reply #1228 on: 17 / April / 2011, 02:00:24 »
is stable in all ways except, video is still a bit flaky though...  sometimes will record a second and then stop and save that second, but a large number of times it will continue to record, but the internal memory bar thing will come and go...

as you said Philmoz, it should be getting enough to encode video (one would think)
and the exmem_test showed no corruption of the exmem space in anyway...

so wierd.

is it possible to use only say 1.5 or 1.75 mb of exmem space?

maybe that would make the difference?

or does it maybe have to do with the cacheable vs uncachable thing you posted about?
« Last Edit: 17 / April / 2011, 02:06:48 by bdasmith »
sx20is 1.02d

*

Offline philmoz

  • *****
  • 3427
    • Photos
Re: the sx20 porting thread
« Reply #1229 on: 17 / April / 2011, 03:27:59 »
is stable in all ways except, video is still a bit flaky though...  sometimes will record a second and then stop and save that second, but a large number of times it will continue to record, but the internal memory bar thing will come and go...

as you said Philmoz, it should be getting enough to encode video (one would think)
and the exmem_test showed no corruption of the exmem space in anyway...

so wierd.

is it possible to use only say 1.5 or 1.75 mb of exmem space?

maybe that would make the difference?

or does it maybe have to do with the cacheable vs uncachable thing you posted about?

You can try using smaller amounts of exmem memory (if you don't enable OPT_CHDK_IN_EXMEM then you don't need to change MEMISOSTART, just reduce EXMEM_BUFFER_SIZE). 1MB would be EXMEM_BUFFER_SIZE = 0x100000.
However I don't think it's the size that's causing it; but the fact that we are using exmem itself.

One thing we have not tried is disabling the CHDK movie task code so the camera always uses the firmware movie code (in case there is a problem with this code). To disable this, open the platform/sx20/sub/102d/boot.c file and comment out the line ' if (p[0]==0xFF879084)  p[0]=(int)movie_record_task;' in the taskCreateHook3 function.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics