TX-1 - loading to IDA and porting... - page 4 - General Discussion and Assistance - CHDK Forum

TX-1 - loading to IDA and porting...

  • 88 Replies
  • 27943 Views
Re: TX-1 - loading to IDA and porting...
« Reply #30 on: 15 / March / 2008, 11:38:38 »
Advertisements
~~~~~~~~~~~~~~~~~~~~~

<")%%%><<

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: TX-1 - loading to IDA and porting...
« Reply #31 on: 15 / March / 2008, 13:26:57 »
"Power LED blinks twice. Camera shuts down."
is due to
I have not altered capt_seq yet.
CHDK Developer.

Re: TX-1 - loading to IDA and porting...
« Reply #32 on: 15 / March / 2008, 13:31:28 »

is due to

I have not altered capt_seq yet.


OK, I have been given conflicting information about this so I will take your word for it   :)

Strange that the capture-sequence has to work just to power-up the camera.


David

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: TX-1 - loading to IDA and porting...
« Reply #33 on: 15 / March / 2008, 13:50:51 »
Strange that the capture-sequence has to work just to power-up the camera.

Because that file contains one of important task procedure created on camera startup.
CHDK Developer.


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: TX-1 - loading to IDA and porting...
« Reply #34 on: 15 / March / 2008, 14:24:49 »
Small hint: if kbd.c, capt_seq.c, movie_rec.c are not rewritten yet, in file platform/<camera>/main.c  simply disable lines:

// *entry = (long)physw_hook;

// *entry = (long)capt_seq_hook;

// *entry = (long)movie_record_hook;

Re: TX-1 - loading to IDA and porting...
« Reply #35 on: 15 / March / 2008, 14:43:48 »
Small hint: if kbd.c, capt_seq.c, movie_rec.c are not rewritten yet, in file platform/<camera>/main.c  simply disable lines:

// *entry = (long)physw_hook;

// *entry = (long)capt_seq_hook;

// *entry = (long)movie_record_hook;


Thanks, I will try that to save time.


David

Re: TX-1 - loading to IDA and porting...
« Reply #36 on: 15 / March / 2008, 17:23:24 »
Small hint: if kbd.c, capt_seq.c, movie_rec.c are not rewritten yet, in file platform/<camera>/main.c  simply disable lines:

// *entry = (long)physw_hook;

// *entry = (long)capt_seq_hook;

// *entry = (long)movie_record_hook;

Big hint !

We now have the splashscreen displayed and the CHDK folder and sub-folders created.

(apparently the splashscreen was covered in 'bands').

I guess that I now have to get the keyboard working somehow.


David

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: TX-1 - loading to IDA and porting...
« Reply #37 on: 15 / March / 2008, 19:00:03 »
We now have the splashscreen displayed and the CHDK folder and sub-folders created.

I guess that I now have to get the keyboard working somehow.

Great!
I see that keyboard is very similar to other cameras, but not uses kbd_pwr_on() and kbd_pwr_off() functions....


Re: TX-1 - loading to IDA and porting...
« Reply #38 on: 15 / March / 2008, 19:06:34 »
I see that keyboard is very similar to other cameras, but not uses kbd_pwr_on() and kbd_pwr_off() functions....


Well, I enabled the create keyboard task and of course the camera crashed and locked-up.

For no particular reason, I use the ixus55  kbd.c.

So, what do I do now   ;)

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: TX-1 - loading to IDA and porting...
« Reply #39 on: 16 / March / 2008, 05:38:17 »
It seems that kbd.c from A570 is better solution.

Please check in CHDK following ROM addresses:
0xFFA433D0 kbd_p2_f
0xFFA42FB4 kbd_p1_f_cont
0xFFA4457C kbd_read_keys_r2

And RAM adresses:

physw_status 0x64E00
physw_run 0x8738

Do no use kbd_pwr_on() and kbd_pwr_off()  function, because TX1 do not have it.

If camera boots, enable showing of "misc values" in OSD and adjust keyboard map and KEYS_MASKn by pressing all keys.

 

Related Topics