ELPH 340 (IXUS 265) - page 8 - DryOS Development - CHDK Forum

ELPH 340 (IXUS 265)

  • 174 Replies
  • 93979 Views
Re: ELPH 340 (IXUS 265)
« Reply #70 on: 02 / September / 2015, 23:55:32 »
Advertisements
I've put 5 LED flashes when booting start & then 3 quick LED flashes after the boot sequence finishes in boot.c. It seems like the camera makes it all the way through - I see the LED blinking 8 times, but nothing appears on the screen and it just seems to be powered off like normal.

Hmmm ..  earlier you said :

Ok, I managed to get some tasks running and some leds blinking after calls to spytask and taskcreatePhySw,

but if I now understand you,  what you meant is that you got past the start for  spy task and keyboard task in boot.c but you have never actually seen the camera stay running long enough for them to do anything  ( i.e. you are not cleanly making it out of boot.c ?)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline d27_

  • *
  • 10
Re: ELPH 340 (IXUS 265)
« Reply #71 on: 03 / September / 2015, 00:39:03 »
Yes, that sounds about right.

Here is the Romlog that I get

Re: ELPH 340 (IXUS 265)
« Reply #72 on: 03 / September / 2015, 09:08:37 »
Yes, that sounds about right.
What happens if you modify boot.c so that it mimics a normal camera startup ( i.e. you use the exact code from the firmware) and does not hijack any tasks or create any new ones?   If everything is correct,  it should just start the camera normally (maybe flashing some LED's so you know it's actually there).

Once you get to that step,  start switching over to the CHDK hijacks one by one to narrow down the problem?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: ELPH 340 (IXUS 265)
« Reply #73 on: 03 / September / 2015, 10:56:39 »
sub_FF02BC5C_my is cut short in boot.c, the last instruction of the original function is @ 0xff02bccc. Also, startupchecks is in sub_FF06E0EC. Please modify code_gen.txt and re-generate boot.c . (Did not look further, there may be other issues.)


*

Offline d27_

  • *
  • 10
Re: ELPH 340 (IXUS 265)
« Reply #74 on: 04 / September / 2015, 00:46:40 »
I managed to get camera to boot normally using just the code copied from firmware without any changes. I could take photos, etc. After this I tried putting back spytask - this caused the camera to start up and then fail on an exception after a few seconds. I'll attach the Romlog.

I also tried putting back the CreateTask patch, but this caused camera to hang when loading CHDK. What is the CreateTask patch supposed to do?

Thanks
d

*

Offline srsa_4c

  • ******
  • 4451
Re: ELPH 340 (IXUS 265)
« Reply #75 on: 04 / September / 2015, 14:17:22 »
After this I tried putting back spytask - this caused the camera to start up and then fail on an exception after a few seconds. I'll attach the Romlog.
Do you have the file "main.bin.dump" for the build that crashed right before you retrieved the romlog? You can find it in the platform/(camera)/sub/(fw)/ directory after build.
If not (and you changed the source since then), please make another build, copy main.bin.dump to a safe place, crash the cam with the new build and get a new romlog. Then, upload both files.

Note that I don't know what you changed since the last published source. Did you fix sub_FF02BC5C_my?

Quote
I also tried putting back the CreateTask patch, but this caused camera to hang when loading CHDK. What is the CreateTask patch supposed to do?
The CreateTask patch makes it possible to replace certain firmware tasks with our slightly modified versions. If the latest source is valid, the only replaced task is the InitFileModules task.

Re: ELPH 340 (IXUS 265)
« Reply #76 on: 04 / January / 2016, 01:55:51 »
IXUS 265 Porting Attempt UpDate

Attached is a work-in progress for the IXUS 265-100a and IXUS 265-100c source code.
I do have several IXUS 265-100a cameras and will continue with this porting attempt

Also see here http://chdk.setepontos.com/index.php?topic=12385.msg126220#msg126220

H-H
« Last Edit: 04 / January / 2016, 02:32:53 by Hardware_Hacker »

Re: ELPH 340 (IXUS 265)
« Reply #77 on: 26 / May / 2016, 15:51:00 »
Thank You for working on this port :) I love this little camera but wow it would be amazing with CHDK  8)
I only have 1 ELPH 340 currently, which I rely on, but if I can be of assistance for non-dangerous bug testing (or any bug testing if I get a second one) I'd be happy to help, altho I'm not a coder.
Cheers :)


Re: ELPH 340 (IXUS 265)
« Reply #78 on: 22 / August / 2016, 18:27:38 »
Hello,
Maybe You have compiled chdk for Ixus 265 HS for testing? I wanna run remote control by usb cable. Thx for help:)

Re: ELPH 340 (IXUS 265)
« Reply #79 on: 23 / August / 2016, 02:55:04 »
Maybe You have compiled chdk for Ixus 265 HS for testing? I wanna run remote control by usb cable. Thx for help:)
There have been some minor updates and fixes for the Ixus 265-100a HS and Ixus 265-100c HS cameras  porting attempt.
But as far as I can recall there is still more work to be done on these cameras.

( My Laptop only has versions back to 10-04-2016 which was then at trunk-4585, so will have to look in my archives.)

H-H
« Last Edit: 23 / August / 2016, 02:59:00 by Hardware_Hacker »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal