You cannot just copy a port and expect it to work. Please read http://chdk.wikia.com/wiki/Adding_support_of_a_new_camera carefully.
It's needless to say i don't expect to work.
Can you please give me a hint, how to find those signatures functions less the 100% match?
The mentioned manual only says:
1. Any function with less than 100% match in stubs_entry.S should be manually checked
2. functions that are completely missed by the automatic detection .... These should also be manually added to stubs_entry_2.S
Here is my stubs_entry.S after autodetection:
// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
#include "stubs_asm.h"
NSTUB(AllocateMemory, 0xffa9b5e0)
// Best match: 56%
NSTUB(AllocateUncacheableMemory, 0xff838df4)
// ERROR: Close is not found!
NSTUB(CreateTask, 0xff81e5b4)
NSTUB(DeleteFile_Fut, 0xff834c08)
// ERROR: EnterToCompensationEVF is not found!
NSTUB(ExecuteEventProcedure, 0xff88b5c0)
// ERROR: ExitFromCompensationEVF is not found!
// Best match: 57%
NSTUB(ExitTask, 0xff81e844)
NSTUB(Fclose_Fut, 0xff834d84)
NSTUB(Feof_Fut, 0xff834f70)
NSTUB(Fflush_Fut, 0xff834fac)
NSTUB(Fgets_Fut, 0xff834ed8)
NSTUB(Fopen_Fut, 0xff834d44)
NSTUB(Fread_Fut, 0xff834e30)
NSTUB(FreeMemory, 0xffa9b5d8)
// Best match: 91%
NSTUB(FreeUncacheableMemory, 0xff838e28)
NSTUB(Fseek_Fut, 0xff834f24)
NSTUB(Fwrite_Fut, 0xff834e84)
// ERROR: GetBatteryTemperature is not found!
// ERROR: GetCCDTemperature is not found!
// Best match: 85%
NSTUB(GetCurrentAvValue, 0xff952548)
// Best match: 64%
NSTUB(GetCurrentTargetDistance, 0xff950a3c)
// ERROR: GetDrive_ClusterSize is not found!
// ERROR: GetDrive_FreeClusters is not found!
// ERROR: GetDrive_TotalClusters is not found!
// Best match: 56%
NSTUB(GetFocusLensSubjectDistance, 0xffa96d98)
// ERROR: GetOpticalTemperature is not found!
// Best match: 66%
NSTUB(GetParameterData, 0xff990610)
// Best match: 68%
NSTUB(GetPropertyCase, 0xff88f2dc)
// Best match: 96%
NSTUB(GetSystemTime, 0xffa9b638)
// ERROR: GetZoomLensCurrentPoint is not found!
// ERROR: GetZoomLensCurrentPosition is not found!
// Best match: 58%
NSTUB(IsStrobeChargeCompleted, 0xff8ce3ac)
NSTUB(LocalTime, 0xff888ebc)
// Best match: 93%
NSTUB(LockMainPower, 0xff896eac)
// ERROR: Lseek is not found!
// Best match: 92%
NSTUB(MakeDirectory_Fut, 0xff834c7c)
// Best match: 69%
NSTUB(MoveFocusLensToDistance, 0xffaff4c8)
// Best match: 58%
NSTUB(MoveZoomLensWithPoint, 0xffa97688)
// Best match: 62%
NSTUB(NewTaskShell, 0xff88eda0)
// ERROR: Open is not found!
// ERROR: PT_PlaySound is not found!
NSTUB(Read, 0xff81ab78)
// ERROR: ReadFastDir is not found!
// ERROR: RefreshPhysicalScreen is not found!
// ERROR: Remove is not found!
// Best match: 53%
NSTUB(RenameFile_Fut, 0xff834d40)
// ALT: NSTUB(RenameFile_Fut, 0xffa697d4) // 8/7
// ALT: NSTUB(RenameFile_Fut, 0xffa69824) // 8/7
// Best match: 93%
NSTUB(SetAutoShutdownTime, 0xff896f20)
// Best match: 55%
NSTUB(SetFileTimeStamp, 0xff93fd38)
// Best match: 68%
NSTUB(SetParameterData, 0xff9904ec)
// Best match: 84%
NSTUB(SetPropertyCase, 0xff879530)
// Best match: 92%
NSTUB(SleepTask, 0xff838a6c)
// Best match: 60%
NSTUB(TakeSemaphore, 0xff838734)
// ERROR: TurnOffBackLight is not found!
// Best match: 54%
NSTUB(TurnOnBackLight, 0xff8a5ac8)
// ERROR: UIFS_WriteFirmInfoToFile is not found!
// Best match: 93%
NSTUB(UnlockMainPower, 0xff896e00)
// ERROR: UpdateMBROnFlash is not found!
// ERROR: VbattGet is not found!
// ERROR: Write is not found!
NSTUB(_log, 0xffb37c90)
NSTUB(_log10, 0xffb36bd4)
NSTUB(_pow, 0xffb36d44)
NSTUB(_sqrt, 0xffb38ff8)
NSTUB(close, 0xff81a990)
// Best match: 71%
NSTUB(closedir, 0xffa7d628)
// Best match: 71%
NSTUB(closefastdir, 0xffa7d628)
// ERROR: free is not found!
// Best match: 86%
NSTUB(kbd_p1_f, 0xff833498)
// Best match: 86%
NSTUB(kbd_p1_f_cont, 0xff8334a4)
// ERROR: kbd_p2_f is not found!
// ERROR: kbd_pwr_off is not found!
// ERROR: kbd_pwr_on is not found!
// ERROR: kbd_read_keys is not found!
// Best match: 69%
NSTUB(kbd_read_keys_r2, 0xff85e86c)
// ERROR: lseek is not found!
// ERROR: malloc is not found!
NSTUB(memcmp, 0xff8203d8)
NSTUB(memcpy, 0xff83e458)
NSTUB(memset, 0xffa07108)
// ERROR: mkdir is not found!
NSTUB(mktime_ext, 0xff8ad0d0)
NSTUB(open, 0xff81a8e0)
// ERROR: opendir is not found!
// ERROR: openfastdir is not found!
// ERROR: qsort is not found!
// Best match: 95%
NSTUB(rand, 0xff8204e0)
NSTUB(read, 0xff81ab78)
// ERROR: readfastdir is not found!
// ERROR: rename is not found!
// Best match: 95%
NSTUB(srand, 0xff8204d4)
// ERROR: stat is not found!
// Best match: 61%
NSTUB(strcat, 0xff813f38)
// Best match: 56%
NSTUB(strchr, 0xff813fc0)
// ERROR: strcmp is not found!
// Best match: 77%
NSTUB(strcpy, 0xff813f20)
NSTUB(strftime, 0xff8acad8)
// Best match: 79%
NSTUB(strlen, 0xff8203b4)
NSTUB(strncmp, 0xff813f74)
// Best match: 73%
NSTUB(strncpy, 0xff813f38)
// Best match: 71%
NSTUB(strrchr, 0xff83e430)
// ALT: NSTUB(strrchr, 0xff8ac8a0) // 18/8
// Best match: 96%
NSTUB(strtol, 0xff83e738)
// Best match: 86%
NSTUB(time, 0xff889434)
// ERROR: vsprintf is not found!
NSTUB(write, 0xff81abd8)