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

the sx20 porting thread

  • 1286 Replies
  • 482667 Views
Re: the sx20 porting thread
« Reply #1160 on: 22 / February / 2011, 07:30:12 »
Advertisements
Hi bdasmith, Bernd R

I can do romlog compiling with "opt_lua_call_native" in compile options.
Case can serve, leave file version with "main.c" original (with boot problem).


« Last Edit: 22 / February / 2011, 07:33:32 by NEZtron »
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1161 on: 22 / February / 2011, 07:38:40 »
Hi bdasmith
I pass for you "Lightning Fast MD 080914.bas" is really very good script!
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1162 on: 22 / February / 2011, 07:50:23 »
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1163 on: 22 / February / 2011, 09:51:41 »
>I can do romlog compiling with "opt_lua_call_native" in compile options.

I see in the screenshot of compiler options that 4.5.1 is use.can you switch to 3.4.6, and compile again,  if that work ?

also you can try to increase the buffer of readdir(the last romlog post show something fail in dir read.maybe such a call trash other global variable and it depend on compiler and code if some important is trash or not.

now increase the variable space.

 static char de[40];

to

 static char de[100];



look in file trunk/platform/generic/wrappers.c

the function now should look as this.

no explode possible, because you give the variable more space.nobody know if the ReadFastDir on newer camera need maybe more space.

Code: [Select]
void* readdir(void *d) {
# if !CAM_DRYOS
    return _readdir(d);
#else
// for DRYOS cameras  A650, A720  do something with this!  - sizeof(de[]) must be >= sizeof(struct dirent): 'static char de[40];'
  static char de[100];
  _ReadFastDir(d, &de);
  return de[0]? &de : (void*)0;
#endif
}
« Last Edit: 22 / February / 2011, 09:55:49 by Bernd R »
Ixus 1000 HS

Re: the sx20 porting thread
« Reply #1164 on: 22 / February / 2011, 10:30:55 »
@Bernd R

>>I see in the screenshot of compiler options that 4.5.1 is use.can you switch to 3.4.6, and compile again,  if that work ?

I pass to you romlog.log with compiler 3.4.6

>>also you can try to increase the buffer of readdir(the last romlog post show something fail in dir read.maybe such a call trash other global variable and it depend on compiler and code if some important is trash or not.

I'm compiling and test thanks.
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1165 on: 22 / February / 2011, 10:48:07 »
@Bernd R
>>also you can try to increase the buffer of readdir....     compiler 3.4.6

Standar with static char de[100]

« Last Edit: 22 / February / 2011, 10:49:49 by NEZtron »
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1166 on: 22 / February / 2011, 11:16:16 »
@Bernd R

Seems to work well, I use standar or original main.c with wrappers.c ---> (static char de[100]; ), I have to do  more test.

thanks Bernd R for your work!
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1167 on: 22 / February / 2011, 13:09:47 »
@SX20 firmware 1.0.2b and 1.0.2d

THANKS TO Bernd R
Combining changes in "wrappers.c" and "main.c" (very stable!), no start problem! TO TEST.
-allows romlog.lua
-compiled with GCC 3.4.6

sx20-102b-102d-0.9.9-1067-full-main.c-wrappers.c.zip

http://www.megaupload.com/?d=3W3IX8QM

leave files with change (wrappers.c    main.c)
« Last Edit: 22 / February / 2011, 13:17:17 by NEZtron »
Canon SX20 is 1.02b CHDK

Re: the sx20 porting thread
« Reply #1168 on: 22 / February / 2011, 14:05:22 »
@SX20 firmware 1.0.2b and 1.0.2d

THANKS TO Bernd R
Combining changes in "wrappers.c" and "main.c" (very stable!), no start problem! TO TEST.
-allows romlog.lua
-compiled with GCC 3.4.6

sx20-102b-102d-0.9.9-1067-full-main.c-wrappers.c.zip

http://www.megaupload.com/?d=3W3IX8QM

leave files with change (wrappers.c    main.c)


does now mint.lua work ?
the wrappers.c fix does not help on start problem.its only a guess if it can help on mint.lua.
I still have no mint.lua file.where i can download and test ?

BTW: if somebody get a reproducable or random crash on series shoot with RAW (when press and hold shoot button) with dark light (so darkframe subtraction is do) there is a fix too that work on Ixus 1000.

http://chdk.setepontos.com/index.php?topic=6057.0


 
Ixus 1000 HS

Re: the sx20 porting thread
« Reply #1169 on: 22 / February / 2011, 17:47:19 »
Bernd R

the link for  mint.lua is in one of my previous posts.

thanks for helpin us :)

also, whats the difference between the GCC versions??
« Last Edit: 22 / February / 2011, 18:00:01 by bdasmith »
sx20is 1.02d

 

Related Topics


SimplePortal © 2008-2014, SimplePortal