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

ELPH 340 (IXUS 265)

  • 174 Replies
  • 94980 Views
*

Offline d27_

  • *
  • 10
Re: ELPH 340 (IXUS 265)
« Reply #60 on: 13 / August / 2015, 02:59:13 »
Advertisements
Ok, I think I managed to get DISKBOOT.BIN loading using the bootable SD card method (http://chdk.wikia.com/wiki/Bootable_SD_card#Bootable_SD_Card_Method). When I put the card in the camera and switch it on nothing happens. I then need to take out the battery & SD card before I can switch it on again. Does that mean DISKBOOT.BIN was loaded and the camera hangs.

The next step is to get some LEDs flashing?

*

Offline adong

  • **
  • 66
Re: ELPH 340 (IXUS 265)
« Reply #61 on: 13 / August / 2015, 03:15:51 »
Last time I tried with my ixus 160 it did not work, and I'm pretty sure I got the right keys and all.

*

Offline srsa_4c

  • ******
  • 4451
Re: ELPH 340 (IXUS 265)
« Reply #62 on: 13 / August / 2015, 17:42:21 »
Last time I tried with my ixus 160 it did not work, and I'm pretty sure I got the right keys and all.
Thanks, found the bug in fi2enc, fixed it in trunk.

Does that mean DISKBOOT.BIN was loaded and the camera hangs.
Yes. (Check if you're using the correct dancingbits encoding, to be sure.)
Quote
The next step is to get some LEDs flashing?
Yes. See debug_led() here for DIGIC 4+ compatible LED control. You can find LED addresses in stubs_entry.S.
Once you get CHDK to run (and display on the screen), you'll need to find most buttons manually as the sigfinder's results are bogus on DryOS r54+ cams.
« Last Edit: 13 / August / 2015, 18:18:53 by srsa_4c »

*

Offline d27_

  • *
  • 10
Re: ELPH 340 (IXUS 265)
« Reply #63 on: 13 / August / 2015, 21:37:20 »
Thanks! I updated the code and using the firmware load method now works!

I also managed to get the front green LED blinking using debug_pisca_led() from https://www.assembla.com/spaces/chdk/subversion/source/HEAD/trunk/loader/sx530hs/main.c

I'm not sure where to go from here? I only have the bare minimum in platform/isux260_elph340hs/ that was required to compile. Should I copy files from the ixus160_elph160 port or from the sx530hs port or should I use code_gen?


*

Offline reyalp

  • ******
  • 14118
Re: ELPH 340 (IXUS 265)
« Reply #64 on: 13 / August / 2015, 22:38:30 »
I'm not sure where to go from here? I only have the bare minimum in platform/isux260_elph340hs/ that was required to compile. Should I copy files from the ixus160_elph160 port or from the sx530hs port or should I use code_gen?
You should use code-gen, but the code_gen.txt files for those ports may be a useful example.

Generally it's a good idea to get the spytask (responsible for much of CHDK UI) and physw_task (aka kbd_task) running before you worry about the other hooks.
Don't forget what the H stands for.

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: ELPH 340 (IXUS 265)
« Reply #65 on: 23 / August / 2015, 13:39:41 »
Added the
  • IXUS 265 / ELPH 340 1.00C
full 32MB dump by d27_ from this forum post to the CHDK P&S FW dumps repository.
« Last Edit: 23 / August / 2015, 13:55:17 by fe50 »

*

Offline reyalp

  • ******
  • 14118
Re: ELPH 340 (IXUS 265)
« Reply #66 on: 23 / August / 2015, 16:06:19 »
Moved thread to development section.
Don't forget what the H stands for.

*

Offline d27_

  • *
  • 10
Re: ELPH 340 (IXUS 265)
« Reply #67 on: 01 / September / 2015, 22:53:15 »
Ok, I managed to get some tasks running and some leds blinking after calls to spytask and taskcreatePhySw, but then the camera just does and powers on normally when I press the power button. I've commented out some stuff, so I'm not sure if that may we causing the problems?

I'm attaching the platform directory with my work to date, I'm not sure if there is a better way of sharing the code? At what point should it be added to SVN?

ps. I'm using codegen, although I added LED debugging manually
« Last Edit: 01 / September / 2015, 22:58:32 by d27_ »


*

Offline srsa_4c

  • ******
  • 4451
Re: ELPH 340 (IXUS 265)
« Reply #68 on: 02 / September / 2015, 18:55:26 »
but then the camera just does and powers on normally when I press the power button.
Can you rephrase this and describe more precisely what's happening? Which method are you using to start CHDK (diskboot or firmware update)?
Quote
I'm attaching the platform directory with my work to date, I'm not sure if there is a better way of sharing the code?
You could register on assembla and make a development repository.
Quote
At what point should it be added to SVN?
It should be a bit more mature :) and contain less unchanged copy&pasted files.

edit:
If the camera is crashing and CHDK isn't usable yet, you can use this Canon Basic script to retrieve the romlog: http://chdk.wikia.com/wiki/Canon_Basic/Scripts/Romlog
« Last Edit: 02 / September / 2015, 18:58:37 by srsa_4c »

*

Offline d27_

  • *
  • 10
Re: ELPH 340 (IXUS 265)
« Reply #69 on: 02 / September / 2015, 23:34:49 »
Can you rephrase this and describe more precisely what's happening? Which method are you using to start CHDK (diskboot or firmware update)?

Sorry, that was a typo. Meant to say the camera dies. I'm loading CHDK using the firmware update method. 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. If I push the power button it will turn back on and function normally and if I push the play button I can load CHDK again using the firmware upgrade method (with the same result).

I'll try the Romlog, thanks!

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal