Because I had much problems to get my CHDK environment running during the last weeks, I started again today and wrote down every step I did. And finally I got my CHDK environment working.
Hopefully my description helps others to setup their CHDK environment as well to start porting for IXUS220HS soon.
I use CHDK-Shell-v338.exe on Windows 7 64Bit
My Camera Firmware version is: 100c
SX220HS was used as basis for my environment setup.
What I did until now:
- get CHDK Trunk revision 1418 (trunk1418 is the root folder of all below paths)
- copy /loader/sx220hs to /loader/ixus220_elph300hs
- copy /platform/sx220hs to /platform/ixus220_elph300hs
- delete /platform/ixus220_elph300hs/sub/101a
- delete /platform/ixus220_elph300hs/sub/101b
- rename /platform/ixus220_elph300hs/sub/100a to /platform/ixus220_elph300hs/sub/100c
- delete /platform/ixus220_elph300hs/sub/100c/stubs_entry.S
- copy PRIMARY.BIN (100c Firmware) to /platform/ixus220_elph300hs/sub/100c/
- change PLATFORMID to PLATFORMID=12841 in line 6 of file /platform/ixus220_elph300hs/sub/100c/makefile.inc
- change ROMBASEADDR to 0xFF810000 in line 19 of file /platform/ixus220_elph300hs/sub/100c/makefile.inc
- add entry "ixus220_elph300hs,100c,ALPHA,," in line 66 to file /camera_list.csv
- add entry " || defined(CAMERA_ixus220_elph300hs)" at end of line 1265 (where sx220hs is also handled) in file /core/gui.c
- add entry " || defined(CAMERA_ixus220_elph300hs)" at end of line 105 in file /core/kbd.c
- changed all "task_RotaryEncoder" entries to "task_PhySw" in file /platform/ixus220_elph300hs/sub/100c/boot.c
After Start of CHDK-Shell-v338.exe I can mark the ixus220_elph300hs entry for compilation and start compilation.
Compilation generates stubs_entry (with size of 18 KB) and stops with following message:
========== D:\CHDK\TRUNK\TRUNK1418\BIN\LOGS\ERR-IXUS220_ELPH300HS-100C.TXT ==========
Time to generate stubs 16.35 seconds
After compilation the following files are available in the /bin folder:
ixus220_elph300hs-100c-0.9.9-r1418.zip (208 KB)
ixus220_elph300hs-100c-0.9.9-r1418-full.zip (576 KB)
Looks good, doesn't it?