IXUS 230 HS - Porting Thread - page 8 - General Discussion and Assistance - CHDK Forum

IXUS 230 HS - Porting Thread

  • 168 Replies
  • 52828 Views
Re: IXUS 230 HS - Porting Thread
« Reply #70 on: 04 / March / 2012, 13:36:21 »
Advertisements
I figured out the undefined reference problem. After looking at how the stubs are generated I fixed it by replacing loc_ with sub_

So now I have all 3 files converted. Photos work fine but camera crashes when I stop shooting a video.

Video bug is possibly related to disassembly problem I have noticed. At the end of the last function in movie_rec.c
The stub generated by chdk-pt has this in it:
Code: [Select]
"    STR     R0, [R1, #0x8C] \n"
"    LDMFD   SP!, {R0-R12,PC} \n"
"    STRVSBT R7, [R8], #-0x66D \n"
Error: [undefined instr     C4B0] Undefined instruction j
"    MULEQ   R0, R10, SP \n"
"dword_FF2E3594  DCD 0xFF2E20E0 \n"
"dword_FF2E3598  DCD 0xEA3 \n"
"dword_FF2E359C  DCD 0x2710 \n"
"dword_FF2E35A0  DCD 0xC318 \n"
"dword_FF2E35A4  DCD 0xFF2E303C \n"
"dword_FF2E35A8  DCD 0x57766F4D \n"
"dword_FF2E35AC  DCD 0x65746972 \n"
"dword_FF2E35B0  DCD 0x0 \n"
"dword_FF2E35B4  DCD 0x346 \n"
"dword_FF2E35B8  DCD 0x7530 \n"
"dword_FF2E35BC  DCD 0x5DC0 \n"
"dword_FF2E35C0  DCD 0x5DC \n"
"dword_FF2E35C4  DCD 0xBB8 \n"
"dword_FF2E35C8  DCD 0x1770 \n"
"dword_FF2E35CC  DCD 0x3A980 \n"
"dword_FF2E35D0  DCD 0x1D4C0 \n"
"dword_FF2E35D4  DCD 0x377 \n"
"dword_FF2E35D8  DCD 0xE0F \n"
"dword_FF2E35DC  DCD 0x7A760 \n"
"dword_FF2E35E0  DCD 0x257 \n"
"dword_FF2E35E4  DCD 0x11DA50 \n"
"dword_FF2E35E8  DCD 0x39F \n"
"dword_FF2E35EC  DCD 0x138D \n"
"dword_FF2E35F0  DCD 0xC498 \n"
"dword_FF2E35F4  DCD 0x15E4BC \n"
"loc_FF2E35F8:\n"
"    ADD     R2, R2, #0x1F \n"

It looks the same in the 100b dump, and the function in the c-file there has just removed the problem parts, so I did the same.

I'm not sure how to continue from here...

I include the two files I have updated since last post
Actually looks okay.  The stuff after the LDMFD is a data table.  The dissassember does not know that as nothing in the code you gave it to dissassemble points there.   Not a problem as execution never gets there - it exits when it hits the LDMFD.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline mrks

  • *
  • 17
Re: IXUS 230 HS - Porting Thread
« Reply #71 on: 04 / March / 2012, 14:29:39 »
Any other suggestions to figure out why it crashes when I stop shooting video?
Does video work for 100b firmware?

Do you know how I can build the ps.fi2 file?
I can't really figure out the keys involved there

Re: IXUS 230 HS - Porting Thread
« Reply #72 on: 01 / April / 2012, 10:05:32 »
I just tested the alpha on the website (ixus230_elph310hs-100b-1.0.0-1781-full_ALPHA). I follow  the readme. I works till "Press your "Set" button, hold it down. While holding down your "Set" button press your "Display" button." I just see the 3D cube clock. Macro and Flash for change the BG Color. When I tried to force update the 1.0.0.0 to 1.1.0.0 (the readme has warned that it is not the correct firmware). The camera is just blank. It will not start. Fortunately after  a while I release the battery and SD Card it work normal again. I am sorry If many of the above is in FAQ. I am willing to be a tester since I own the camera.

Thank you.

Re: IXUS 230 HS - Porting Thread
« Reply #73 on: 09 / April / 2012, 08:09:02 »
Just to let you know... I got an Ixy 600f (the japanese name of the Ixus 230 HS) version 100e (I just bought it to replace my Ixus 100 which died during my trip... I couldn't find anything as small as this Ixus 100). So anyway, I got this camera and I might try to help making CHDK work on it (I modded the camera to take infrared pictures and I really need raw to have the best possible results).

For now I tried to build CHDK but failed (something about interworking) I probably made a mistake somewhere while installing a suitable build environment, but since I'm on a trip, I don't have much time to look into that for now.


*

Offline reyalp

  • ******
  • 13624
Re: IXUS 230 HS - Porting Thread
« Reply #74 on: 10 / April / 2012, 00:08:48 »
For now I tried to build CHDK but failed (something about interworking) I probably made a mistake somewhere while installing a suitable build environment, but since I'm on a trip, I don't have much time to look into that for now.
Yes, this sort of error usually a misconfigured toolchain. If you are using windows, you can get an correctly configured toolchain with CHDKshell.

For linux, you can find some info here http://chdk.wikia.com/wiki/Compiling_CHDK_under_Linux
Don't forget what the H stands for.

*

Offline ramja

  • *
  • 10
Re: IXUS 230 HS - Porting Thread
« Reply #75 on: 10 / April / 2012, 20:09:45 »
re: ixus230_elph310hs-100b-1.0.0-1781-full_ALPHA

My experience is the same as liemfukliang's. (However, I am not holding SET long enough to trigger the tumbling time blocks.). SET + Display does nothing. I can't get the camera version info to come up. I tried every other possible SET+[every button] combination with no success. If I go ahead and load CHDK from firmware update it freezes until I do a battery removal reset.

liemfukliang - Is your IXUS230/ELPH310 a Made in China model? Mine is - I got a silver one last November at Costco as soon as they were available - even went to a store out of my area. A couple of weeks ago I noticed Sam's Club had some blue ELPH310s Made in Japan. I'm guessing the Chinese have 1.00a firmware and the Japanese are 1.00b.

Has anyone been able to load 1781-full_ALPHA onto a Chinese 310?

Has anyone been able to get SET-DISPLAY to show version info on a Chinese 310?

Re: IXUS 230 HS - Porting Thread
« Reply #76 on: 12 / April / 2012, 08:21:30 »
@Ramja, I don't know how to see that? I just buy it from official Canon Indonesia Distributor that is Datascript. There is Made in Japan.

I tried to load play mode without a memory card and hold Set button long. The digital cube clock is still able to display but the extended info cannot appear.

*

Offline fe50

  • ******
  • 3139
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50


*

Offline ramja

  • *
  • 10
Re: IXUS 230 HS - Porting Thread
« Reply #78 on: 19 / April / 2012, 19:16:05 »
fe50 - I'm running CHDK on 3 other PowerShots and know all about ver(s).req. I've tried both ver.req and vers.req with 2 different SD cards and simply cannot find a SET + (button) combination that brings up the version info. The card that works correctly (SET + DISP to immediately bring up version screen) in my SD770 does nothing in the 310.

What is the button combo that is supposed to work on the Elph310 to display version info?

Anyone ... What combo has worked for you?

Re: IXUS 230 HS - Porting Thread
« Reply #79 on: 19 / April / 2012, 19:22:00 »
Anyone ... What combo has worked for you?
This has been reported not to work on some cameras.  Rather that spend more hours working on it,  why not  just use the ACID utility ?
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics