IXUS 1100 HS ELPH 510 Porting Thread - page 6 - DryOS Development - CHDK Forum

IXUS 1100 HS ELPH 510 Porting Thread

  • 89 Replies
  • 43318 Views
Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #50 on: 11 / February / 2014, 18:53:59 »
Advertisements
Okay so I worked with nafraf and got the code to where it will compile,

Not 100% sure how to build this right, because I don't seem to have an fs.fi2 anywhere, nor does it have the other files listed. 

I build a file DISBOOT.BIN, and if I do

make firzip

I get a zipfile in bin, but that file doesn't have what a supported zipfile seems to have:

changelog.txt
CHDK (dir)
DISKBOOT.BIN
PS.FI2
readme.txt
vers.req

Mine only has:
CHDK(dir)
DISKBOOT.BIN

~Phil

Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #51 on: 11 / February / 2014, 20:20:42 »
progress.  I've got a build that compiles, but the actual boot fails.  If I put the card in with the lock on, and push the play button, absolutely nothing happens, the camera just locks up, the green led above the play doesn't light up, no screen activity, and I have to pull the battery to get it to boot.

~Phil

*

Offline nafraf

  • *****
  • 1308
Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #52 on: 12 / February / 2014, 07:32:37 »
If boot fails.. then it's time to debug the code: http://chdk.wikia.com/wiki/Debugging

in boot.c, power on switch is wrong (sub_FF000358_my). I have not found those values.

Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #53 on: 12 / February / 2014, 22:30:05 »
Just looked it over, I think I found it and found why it didn't work.  Oddly it was this:

twice in the assembly the boot.c had a line:

CPSR_cxsf

but in my dissasembly, it was:

CPSR_fsxc,

so I've fixed those and am going to try to rebuild.

endianness maybe?  (reaching for straws here lol)

Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #54 on: 12 / February / 2014, 23:14:12 »
Nope that wasn't it.  Back to the drawing board.

~Phil

*

Offline reyalp

  • ******
  • 14128
Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #55 on: 13 / February / 2014, 00:35:57 »
Incorrect diskboot encoding is a common cause of complete boot failure like this.

If you have found an LED address try turning it on in loader/main.c my_restart(). If you don't have an LED address yet, you can try to find one using canon basic. I'd suggest starting with values from similar cameras released around the same time. See http://chdk.setepontos.com/index.php?topic=11212.msg110078#msg110078 and link in that post.
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #56 on: 13 / February / 2014, 11:23:58 »
Some information about camera LEDs can be found in stubs_entry.S files, the ixus1100/elph510 has this:
// LED table init @ 0xff1309e4
// LED #1: 0xc0223030, offset 0x1d8
// LED #2: 0xc0220138, offset 0x170

So, the power LED's address is likely 0xc0220138.

Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #57 on: 13 / February / 2014, 16:33:15 »
Cool, all great info, I'll give that a try tonight after work.

~Phil

Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #58 on: 14 / February / 2014, 11:50:56 »
Spent several hours monkeying with this last night and still not booting.  I've taken the LED blinking all through the loader code and that works, so I was working through the sub/100b/main.c and it would blink LED's all through until right after sub_FF0011B0_my and if I put the LED blink function at the top of that function, before the assembler, it works, if I put it at the bottom of the function, or in the start of the next, it fails.  I've reviewed that against my dissasembly and can't find anything different, also this file is auto generated from the dump, so it 'should' be right, but nothing.  Any other ideas/input?
« Last Edit: 14 / February / 2014, 11:54:48 by pompeiisneaks »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: IXUS 1100 HS ELPH 510 Porting Thread
« Reply #59 on: 14 / February / 2014, 15:15:25 »
Spent several hours monkeying with this last night and still not booting.  I've taken the LED blinking all through the loader code and that works, so I was working through the sub/100b/main.c and it would blink LED's all through until right after sub_FF0011B0_my and if I put the LED blink function at the top of that function, before the assembler, it works, if I put it at the bottom of the function, or in the start of the next, it fails.  I've reviewed that against my dissasembly and can't find anything different, also this file is auto generated from the dump, so it 'should' be right, but nothing.  Any other ideas/input?

That's a good start; but it would be easier to provide input if we can review the source code.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal