A580 porting - minor progress - page 10 - General Discussion and Assistance - CHDK Forum
supplierdeeply

A580 porting - minor progress

  • 125 Replies
  • 41092 Views
*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: A580 porting - minor progress
« Reply #90 on: 27 / February / 2009, 20:13:46 »
Advertisements
Assuming the bit is in the 3rd word of physw_status (it appears to be, based on sub_FFC31838), then you just need to define SD_READONLY_FLAG correctly.

Strange function sub_FFC31838, in a720 it was simpler  :)

int GetSDProtect (int *a){
 static char mask=0x51;  //@ 0xFFE5C62C + 0x138
 return ( a[mask>>5] & (1<<(mask & 0x1F)) ) !=0;
}

indeed, physw[2]  and 0x20000.

Re: A580 porting - minor progress
« Reply #91 on: 27 / February / 2009, 20:31:29 »
So it should be the same, 0x20000, right ? If it is, then how come the camera still reports it as locked?
I even tried doing that & ~ stuff right at the start but still shows it as protected.

Uhm... I'm actually trying to open the file handle in core_spytask which is called before the key task... maybe if i call it after that it works.. have to check it out.

You just made me delete 10 minutes worth of typing because I previewed the text and saw you replied. but it's ok, thanks for answering, was just listing asm from both firmwares and mentioning that 0x51 and the next bytes being the same in both firmwares.


*

Offline reyalp

  • ******
  • 12302
Re: A580 porting - minor progress
« Reply #92 on: 27 / February / 2009, 21:03:40 »
So it should be the same, 0x20000, right ? If it is, then how come the camera still reports it as locked?
It sounds like you are doing something else wrong in your physw task then.
Don't forget what the H stands for.

Re: A580 porting - minor progress
« Reply #93 on: 05 / March / 2009, 13:05:17 »
Hello, any progress? Keep up the good work!


Re: A580 porting - minor progress
« Reply #94 on: 05 / March / 2009, 20:51:06 »
Didn't give up on it, just very busy these days to do anything CHDK related.

Re: A580 porting - minor progress
« Reply #95 on: 11 / March / 2009, 23:29:28 »
My PSU broke down, I just got it replaced.  That should explain why I haven't been doing anything relating CHDK for a while. Please don't ask why I didn't get it replaced before.   ???

RL is consuming considerably more time right now though, but I hope to be able to contribute eventually.  :xmas

Until then, Happy Hacking!

Re: A580 porting - minor progress
« Reply #96 on: 03 / April / 2009, 07:45:52 »
waiting for your kind helping

Re: A580 porting - minor progress
« Reply #97 on: 03 / April / 2009, 20:45:25 »
For real life reasons, I don't know when I will look at CHDK code again. 

However, I haven't contributed to the port.

So far I have just been trying out some of the work Mariush posted, I set up my own build environment, and added some to the wiki.

So I guess a good checkpoint would be to look up the code that Mariush posted, hack around, post your findings, and ask questions here, that neither the wiki nor searching in this forum answers.  I think people got rather far, as in cracking the shell of the nut.  CHDK starts booting, and I think you can even make it do stuff.  There is still lot of work left though, in mapping the reminding calls and possibly the hardware (MMIO) addresses.

Good luck!


Re: A580 porting - minor progress
« Reply #98 on: 04 / April / 2009, 20:08:13 »
The only function that I can think off that could cause problems (and that I see used in the code) is MakeAFScan. I couldn't find it.

The other functions I saw that were in A720 and not in A580 are these below (I'm not 100% sure)

NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00958) // NOT FOUND, set to nullsub
NHSTUB(PostLEDMessage, 0xFFC00958)   // FFC30AFC ? NOT FOUND, look around FFC30FE8, maybe 0xFFC366B8 ?

and some functions related to powering off the keyboard.

There's nothing I can contribute in addition to what already is on the thread here, so feel free to piece together everything and experiment. I just don't have time right now to edit code, compile and try compiled stuff on the camera... probably same as Dabian.
Maybe this will change in a week or so.

*

violinrecital

Re: A580 porting - minor progress
« Reply #99 on: 25 / April / 2009, 08:56:09 »
Rather than wait after others for a A580 chdk port I decided to take look at it. I've downloaded the work of mariush and tried to run it but without success: the camera freeze. So, I've added some debug code. HwSetup_my is never reached. Also, I've been unable get the rom out of my own camera using cardtricks. Can my SD card be in cause? I have a 4go sdhc(formatted fat 16)... What can be wrong? Somebody got an idea?

 

Related Topics