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

the sx20 porting thread

  • 1286 Replies
  • 475523 Views
*

Offline f_m_b

  • **
  • 71
Re: the sx20 porting thread
« Reply #1200 on: 15 / April / 2011, 18:42:04 »
Advertisements
But video still over-buffers in default mode... And I know it's not my card's fault, because I'm running a 32GB Class10 that works perfectly when CHDK is not loaded.
Anybody knows about that?

I think the problem of not booting correct was discused here before... I think bernd_r had a "sleep fix" for it?
Greetings Frank
SX20 (1.02b)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: the sx20 porting thread
« Reply #1201 on: 15 / April / 2011, 18:57:58 »
But video still over-buffers in default mode... And I know it's not my card's fault, because I'm running a 32GB Class10 that works perfectly when CHDK is not loaded.
Anybody knows about that?

I think the problem of not booting correct was discused here before... I think bernd_r had a "sleep fix" for it?

From the testing that bdasmith was doing on the 1.02d firmware it looks like the SX20 doesn't like losing 4MB of exmem.

It looks like it is trying to use this memory for buffering the video data being written to the SD card and if it can't get enough it displays the 'buffer warning' indicator (pg 44 of the manual) and stops recording video.

Reducing the CHDK exmem size to 3MB helped; but did not solve the problem - bdasmith was going to retest at 2MB and see what happened.

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 #1202 on: 15 / April / 2011, 19:07:41 »
sorry guys....tested 2mb exmem...video still doesn't want to record.
will occasionally go for a while, but most times cancels right away.

any ideas?
« Last Edit: 15 / April / 2011, 19:09:48 by bdasmith »
sx20is 1.02d

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: the sx20 porting thread
« Reply #1203 on: 15 / April / 2011, 19:38:18 »
sorry guys....tested 2mb exmem...video still doesn't want to record.
will occasionally go for a while, but most times cancels right away.

any ideas?

Can you try this:
- build CHDK without exmem (all the exmem options turned off), turn off games, textreader & calendar as well to keep the size down. Make sure OPT_LUA_CALL_NATIVE is enabled.
- Copy reyalps exmeminf.lua script (attached) to your scripts folder on the SD card.
- Start CHDK and just record a video.
- Run the exmeminf.lua script.
- Post the contents of the EXMEMINF.LOG file that the script creates.

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 #1204 on: 15 / April / 2011, 21:31:47 »
will do!
sx20is 1.02d

Re: the sx20 porting thread
« Reply #1205 on: 15 / April / 2011, 22:00:21 »
Philmoz,

the exmem_alloc that fmb found at 0xFF889D7C sx20 1.02b....should that be the same for the 1.02d?

the stubs_entry_2 file you gave me has the exmem_alloc at :
NHSTUB(exmem_alloc,                  0xFF889DCC)

the file also mentions something about not looking like sx10?

I am confused.
sx20is 1.02d

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: the sx20 porting thread
« Reply #1206 on: 15 / April / 2011, 22:46:32 »
Philmoz,

the exmem_alloc that fmb found at 0xFF889D7C sx20 1.02b....should that be the same for the 1.02d?

the stubs_entry_2 file you gave me has the exmem_alloc at :
NHSTUB(exmem_alloc,                  0xFF889DCC)

the file also mentions something about not looking like sx10?

I am confused.

Firmware addresses often change between versions. If the address of exmem_alloc was wrong it would most likely crash instead of allocating the memory.

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 #1207 on: 15 / April / 2011, 23:08:24 »
thanks for clearing my confusion
:)
sx20is 1.02d


Re: the sx20 porting thread
« Reply #1208 on: 16 / April / 2011, 00:35:13 »
here is the exmem info file....

when i look at it all i see are 0's.....

what did i do wrong?

i took a video, worked great, then ran the script...and saved the file to computer
then i also tryed running the script while video was recording....froze the camera, had to open batt compartment to restart...

edit: 
philmoz: should i be compiling using those files you had modified for me?
« Last Edit: 16 / April / 2011, 00:50:40 by bdasmith »
sx20is 1.02d

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: the sx20 porting thread
« Reply #1209 on: 16 / April / 2011, 00:57:34 »
here is the exmem info file....

when i look at it all i see are 0's.....

what did i do wrong?

i took a video, worked great, then ran the script...and saved the file to computer
then i also tryed running the script while video was recording....froze the camera, had to open batt compartment to restart...

edit:  
philmoz: should i be compiling using those files you had modified for me?

Nothing wrong, I was hoping it might show something; but at least it confirms the memory pools are the same as other cameras.

Attached is a test version that allocates the memory differently. Please try the diskboot.bin from this version and see if you can record a video (exmem is in testing mode with 4MB allocated).

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


SimplePortal 2.3.6 © 2008-2014, SimplePortal