A590IS Porting, who's with me? - page 5 - DryOS Development - CHDK Forum

A590IS Porting, who's with me?

  • 65 Replies
  • 40133 Views
Re: A590IS Porting, who's with me?
« Reply #40 on: 06 / October / 2008, 14:33:17 »
Advertisements
Of course you can help! if you have already setup the compiling ambient for a590, i can post my progresses, that r stuck for the moment at the booting process.

I don't have any of the tools yet. Where can I go to download them?

It sounds like you are trying to identify standard entry points within the dumped version of the firmware. Is that right? Do you have a list of points that have been found/need finding? How do you know when you've got the right address?

Karen

*

Offline ma_jk

  • **
  • 60
Re: A590IS Porting, who's with me?
« Reply #41 on: 06 / October / 2008, 14:38:48 »
the Wiki has a good amount of infos to start with
http://chdk.wikia.com/wiki/GPL_Tools

My problem right now is debugging (applying modifications and swap SD is not properly comfortable. Im setting up a virtual linux machine for this purpose) the boot sequence, which gets stuck at the function i wrote in the previous post.

*

Offline gho

  • *
  • 37
Re: A590IS Porting, who's with me?
« Reply #42 on: 06 / October / 2008, 18:28:07 »
I don't have any of the tools yet. Where can I go to download them?

It sounds like you are trying to identify standard entry points within the dumped version of the firmware. Is that right? Do you have a list of points that have been found/need finding? How do you know when you've got the right address?

Karen


Hi, I ordered an A590IS today and am willing to help in the porting process as much as I can, at least morally ;-). I must admit, I am not a good coder. I know a bit C and that's all.

I think the first task would be setting up an environment for cross compiling.  Some infos for Linux, Mac and Windows are here:

For Developers - CHDK Wiki

If I understood it correctly, the linux variant involves compiling gcc from source with arm cross - compilation enabled. The windows environment seems easier to set up. Any recommendations which way to go?

Since I have discovered this forum only yesterday, I am not quite sure, what the difference between the A570 and the A590 is except that the A590 refuses to boot the custom firmware binary by the standard method. 

whim suggested that the A590is is somehow similar to the ixus80? They are making great progress over there, so there is hope.
« Last Edit: 06 / October / 2008, 18:30:14 by gho »

*

Offline x286

  • *
  • 16
Re: A590IS Porting, who's with me?
« Reply #43 on: 07 / October / 2008, 03:20:00 »
Since I have discovered this forum only yesterday, I am not quite sure, what the difference between the A570 and the A590 is except that the A590 refuses to boot the custom firmware binary by the standard method. 

Except from the physical differences:
The A570 uses VxWorks.
The A590 uses DryOS.



Re: A590IS Porting, who's with me?
« Reply #44 on: 07 / October / 2008, 22:08:36 »
Hi i'm already have the a590is, i want to help but i'm newbie on this, so if you can said to me what to do i will be happy to help on the process

*

Offline 73113

  • *
  • 25
  • Canon Powershot A590 IS
Re: A590IS Porting, who's with me?
« Reply #45 on: 08 / October / 2008, 06:25:29 »
« Last Edit: 08 / October / 2008, 06:28:25 by 73113 »
getting started with chdk Basic articles

*

Offline gho

  • *
  • 37
Re: A590IS Porting, who's with me?
« Reply #46 on: 08 / October / 2008, 15:05:46 »
The camera arrived today. I dumped the firmware (Firmware Ver GM1.01B) with cardtricks (NewDryOS?) and set up the development environment for windows. The default build  (s3is-100a) compiled without problems. What next? I think I will have a look at the GPL tool section at the wiki...but before I have to check that camera out...

Edit: The camera is fine! Switched to the GNU/Linux variant for compiling, because I was too stupid to get hexdump working properly in the windows environment. And no perl, subversion and quemu there too. Of course one could set it up, but apt-get is way easier.

« Last Edit: 09 / October / 2008, 16:39:53 by gho »

*

Offline gho

  • *
  • 37
Re: A590IS Porting, who's with me?
« Reply #47 on: 09 / October / 2008, 17:30:19 »

Hi.
I stumbled upon another problem on boot.c

Code: [Select]
...
                "BL      sub_FFC0BECC\n"

It stucks on this last call, which is related to memory allocation. In fact, from IDA

Code: [Select]

ROM:FFC0BBEC                 STMFD   SP!, {R4,LR}
ROM:FFC0BBF0                 BL      sub_FFC179F4    //inside here malloc is called
ROM:FFC0BBF4                 CMP     R0, #5            //code doesnt execute this
...

So it freezes at FFC0BBF0. I Really cant get past it..


Hi, isn't the last call calling 0xFFC0BECC and not 0xFFC0BBEC? Or did I get something wrong?

At 0xFFC0BECC i get:
Code: [Select]
ffc0becc:       1a00003e        bne     ffc0bfcc <_binary_dump_bin_start+0xbfcc>
ffc0bed0:       e59f0158        ldr     r0, [pc, #344]  ; ffc0c030: (00001b38)
ffc0bed4:       e5901004        ldr     r1, [r0, #4]
ffc0bed8:       e1510000        cmp     r1, r0
ffc0bedc:       0a00003a        beq     ffc0bfcc <_binary_dump_bin_start+0xbfcc>
ffc0bee0:       e59d0004        ldr     r0, [sp, #4]
ffc0bee4:       e3500007        cmp     r0, #7  ; 0x7
ffc0bee8:       908ff100        addls   pc, pc, r0, lsl #2

I have no idea what that means, but looks interesting...a branch or something?
« Last Edit: 09 / October / 2008, 17:33:05 by gho »


*

Offline gho

  • *
  • 37
Re: A590IS Porting, who's with me?
« Reply #48 on: 10 / October / 2008, 13:40:21 »
Have you seen this?

Code: [Select]
ffe69f58 DRYOS version 2.3, release #0023

Exactly the same as in the IXUS80! Does it make sense to add just the offset difference to get the right entry points? Would be too easy, I guess.

I have been trying to set up a directory structure for porting based on chr's efforts, but it did not compile. Problems with gensigs.sh. Is it supposed to find entry points automagically based on a reference firmware?




*

Offline whim

  • ******
  • 2041
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS Porting, who's with me?
« Reply #49 on: 10 / October / 2008, 13:57:40 »
@gho

no g(h)o !

even early, 'normal' dryos cams (A720, S5IS) have this string in their firmware ...

sorry,

wim

 

Related Topics