PowerShot SX210 IS - Porting Thread - page 15 - General Discussion and Assistance - CHDK Forum

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 297981 Views
*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: PowerShot SX210 IS - Porting Thread
« Reply #140 on: 25 / August / 2010, 07:42:29 »
Advertisements
In order to compile, I was unable to generate the new signatures I introduce in boot.c  for the file stubs_auto.S,
I have the primary.bin in the folder, but I keep getting undefined reference to .... , I partialy solve it including the new references manually to stubs_auto.S, but It rewrites them regularly, and Its a time waster.
--> http://chdk.wikia.com/wiki/Signature_finder

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #141 on: 25 / August / 2010, 07:44:43 »
Thanks,

The reference firmware for sig_ref_dryos_3   is ixus200 sd980-100c 

And there is anyone for sig_ref_dryos_4 ?

« Last Edit: 25 / August / 2010, 07:59:41 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #142 on: 25 / August / 2010, 11:19:43 »
13) Back to platform\sx210is\sub\100c\boot.c

Well I get to finish the task_Startup_my, included a doble blink of the print button just for testing

Here is the last code, I included a full compile so you can test in your cammeras de firmaware upgrade and the double print led blink, a small step ahead!!
 8)
http://www.zshare.net/download/79707634e88b7a5d/

> next step CreateTask_spytask

*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: PowerShot SX210 IS - Porting Thread
« Reply #143 on: 25 / August / 2010, 13:14:21 »
And there is anyone for sig_ref_dryos_4 ?
No, not yet; since the changes in the last DryOS revision steps seem to be not very eminent, i guess there's no need for an additional sig ref for now...


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #144 on: 25 / August / 2010, 13:55:08 »
Thanks fe50

14) Back to platform\sx210is\sub\100c\boot.c

Finished most of ,  init_file_modules_task(), at least it dosnt crash,
http://www.zshare.net/download/79712370696fb25d/

-> Now try to work out CreateTask_spytask, when uncommented the camare reboots

Then towards the keyboard and JogDial_task_my


« Last Edit: 25 / August / 2010, 14:38:57 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #145 on: 26 / August / 2010, 06:14:58 »
15) Full platform\sx210is  code

Here you have v.01 of all the source files from the platform folder

http://es.drop.io/sx210is_platformv01

Still work in progess

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #146 on: 26 / August / 2010, 12:17:30 »
I'm stuck right now with a unexpect restart, handling the lang_init(GUI_LANG_ITEMS);  in core  lang.c,

probably a memory issue?

It fails in this function

Code: [Select]
static void lang_add_string(int num, const char *str) {
    int f=0;
    char *p;
    if (strings && num<count) {
       if (strings[num]) ufree(strings[num]);
       p = strings[num] = umalloc(strlen(str)+1);
       if (p) {
           for (; *str; ++str) {
                if (f) {
                    if (*str == '"' || *str == '\\') *(p-1)=*str;
                    else if (*str == 'n') *(p-1)='\n';
                    else *p++=*str;
                    f = 0;
                } else {
                    *p++=*str;
                    if (*str == '\\') {
                        f = 1;
                    }
                }
           }
           *p=0;
       }
    }
}

It's a standar function from core Any clue?
« Last Edit: 26 / August / 2010, 12:29:43 by asm1989 »

*

Offline whoever

  • ****
  • 280
  • IXUS950
Re: PowerShot SX210 IS - Porting Thread
« Reply #147 on: 26 / August / 2010, 12:34:37 »
It's a standar function from core Any clue?
It may mean then that one (some) of the called functions (strtol, strpbrk, etc.) are not identified correctly.
edit: you have now edited your post and say that you have narrowed it down to lang_add_string() -- how? are ufree and umalloc correct?
« Last Edit: 26 / August / 2010, 12:43:44 by whoever »


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #148 on: 26 / August / 2010, 12:45:08 »
Sorry I narrowed the error to the other fuction,

but yes looks like this,
If understand it correcty:
umalloc  is NHSTUB(AllocateUncacheableMemory, ..
ufree  is NHSTUB(FreeUncacheableMemory,.....

and the others:
NSTUB(strlen,....
NSTUB(strpbrk,...
NSTUB(strtol,...

Am I right?

*

Offline whoever

  • ****
  • 280
  • IXUS950
Re: PowerShot SX210 IS - Porting Thread
« Reply #149 on: 26 / August / 2010, 12:56:17 »
If understand it correcty:
umalloc  is NHSTUB(AllocateUncacheableMemory, ..
...
NSTUB(strlen,....
...
Am I right?
Yes.
I would suggest you double check that all of them are correctly identified in stubs*.s

 

Related Topics