A1100 IS Porting thread - page 8 - DryOS Development - CHDK Forum

A1100 IS Porting thread

  • 647 Replies
  • 245025 Views
Re: A1100 IS Porting thread
« Reply #70 on: 24 / April / 2010, 23:02:54 »
Advertisements
Now I get chdk  SpyTask run.At this time I get all task comment out.Then correct the function address in the stubs_entry_2.S
.Then compile.I press the power button.The camera has no response.I press the play back button for just 1~2 seconds. The camera run.Then camera disply some chdk firmware message with out image in the sd card.I dont have the chdk logo.At this time,I press the shutter button.The scene come out.On the screen.It said the card is lock?
So what should the problem?And what should I do next?

Re: A1100 IS Porting thread
« Reply #71 on: 24 / April / 2010, 23:06:46 »
The camera can turn on and off correct.
But if I hook the mykbd_task.Then camera can power on and off correct.But the screen has nothing on it.Any key except power and play back have no response.

*

Offline reyalp

  • ******
  • 14128
Re: A1100 IS Porting thread
« Reply #72 on: 24 / April / 2010, 23:41:13 »
Now I get chdk  SpyTask run.At this time I get all task comment out.Then correct the function address in It said the card is lock?
So what should the problem?
SD card lock override is in kbd.c, mykbd_task.
Quote
And what should I do next?
Fix it ;)

The camera can turn on and off correct.
But if I hook the mykbd_task.Then camera can power on and off correct.But the screen has nothing on it.Any key except power and play back have no response.
If you run without kbd task do you get CHDK OSD ?

If so, use debug display (core/gui.c gui_draw_debug_vals_osd()) to show bits of physw_status, maybe kbd task is overriding wrong bits.
Don't forget what the H stands for.

Re: A1100 IS Porting thread
« Reply #73 on: 25 / April / 2010, 00:10:58 »
AS you say:after run syptask,I must do next
1.I run spytask withou any hook task.I press the play back button.There are message on  screen.Like "chdk firmware ver 0.xxx ".I have no logo of chdk.I do not konw if that is the chdk logo.

*

Offline reyalp

  • ******
  • 14128
Re: A1100 IS Porting thread
« Reply #74 on: 25 / April / 2010, 00:19:04 »
CHDK shows a simple splash screen if it can't find the logo. Logo goes in CHDK/data/logo.dat

Anyway, if you see simple splash, you should be able to display debug information, but you must do it in code because you have no controls until you get kbd task working.
Don't forget what the H stands for.

Re: A1100 IS Porting thread
« Reply #75 on: 25 / April / 2010, 00:23:55 »
Yes I see the chdk logo by copy the chdk/data/logo.dat to my sd card's chdk/data.

Re: A1100 IS Porting thread
« Reply #76 on: 25 / April / 2010, 00:25:37 »
So the next is to hook the get kbd task?Am I right?
How to do it?

Re: A1100 IS Porting thread
« Reply #77 on: 25 / April / 2010, 00:38:34 »
I only hook the kbd task.But after do that.The screen has nothing.camera power on,then lens come out.Any key have no response except the power and playback button.
I do not know why the screen have no message?If I do not hook the mykbd_task.The camera can power on.I can see the chdk logo.

*

Offline reyalp

  • ******
  • 14128
Re: A1100 IS Porting thread
« Reply #78 on: 25 / April / 2010, 03:01:07 »
I only hook the kbd task.But after do that.The screen has nothing.camera power on,then lens come out.Any key have no response except the power and playback button.
I do not know why the screen have no message?If I do not hook the mykbd_task.The camera can power on.I can see the chdk logo.
There is something wrong with your kbd task, you need to debug it. Very unlikely anyone can know what the problem is with just a description.

kbd.c in the platform directory handles the phsw_status bits (buttons, usb power, card lock) and also calls the core/kbd.c stuff to send button presses to CHDK and run script.
Don't forget what the H stands for.

Re: A1100 IS Porting thread
« Reply #79 on: 25 / April / 2010, 03:47:51 »
I correct three function in stubs_min.s.I must need to fixed them all at this time?
DEF(physw_status, 0xC624)//--->fixed
DEF(physw_run, 0x1C18 + 0x0C)//-----fixed----
DEF(enabled_refresh_physical_screen, 0x7610+0x30) //RefreshPhysicalScreen---->fixed

 

Related Topics


SimplePortal © 2008-2014, SimplePortal