SX170 porting - page 5 - DryOS Development - CHDK Forum

SX170 porting

  • 266 Replies
  • 96350 Views
Re: SX170 porting
« Reply #40 on: 18 / August / 2014, 06:40:25 »
Advertisements
Thanks srsa_4c but I couldnĀ“t find any PRIMARY.BIN file in the sx170 files.

*

Offline srsa_4c

  • ******
  • 4451
Re: SX170 porting
« Reply #41 on: 18 / August / 2014, 13:10:30 »
Thanks srsa_4c but I couldnĀ“t find any PRIMARY.BIN file in the sx170 files.
PRIMARY.BIN is a copy of the camera's firmware. You can either get it from your camera (recommended), or you can download it from http://tinyurl.com/chdkfiles2 .

Re: SX170 porting
« Reply #42 on: 18 / August / 2014, 15:02:08 »
http://tinyurl.com / chdkfiles2 / P&S FW Dumps / SX Series / sx170 :D

Re: SX170 porting
« Reply #43 on: 18 / August / 2014, 15:36:25 »
Thanks . Now I getting the following error running "gmake run-code-gen".

process_begin: CreateProcess(NULL, uname -s, ...) failed.
process_begin: CreateProcess(NULL, arm-elf-gcc -dumpversion, ...) failed.
process_begin: CreateProcess(NULL, arm-elf-gcc -dumpversion, ...) failed.
../../../../makefile.inc:362: warning: overriding recipe for target `Makefile'
../../../../makefile.inc:361: warning: ignoring old recipe for target `Makefile'

I am running from the command prompt window.

If I run from the CHDK-SHELL command Windows nothing happens. The target sx170IS sub 101a is supported since I have done all  the steps necessary to include the platform in CHDK_SHELL


*

Offline srsa_4c

  • ******
  • 4451
Re: SX170 porting
« Reply #44 on: 18 / August / 2014, 17:03:24 »
Thanks . Now I getting the following error running "gmake run-code-gen".

process_begin: CreateProcess(NULL, uname -s, ...) failed.
process_begin: CreateProcess(NULL, arm-elf-gcc -dumpversion, ...) failed.
process_begin: CreateProcess(NULL, arm-elf-gcc -dumpversion, ...) failed.
../../../../makefile.inc:362: warning: overriding recipe for target `Makefile'
../../../../makefile.inc:361: warning: ignoring old recipe for target `Makefile'

I am running from the command prompt window.
I'm not on Windows, so I don't know CHDK-SHELL very well. You should get a command prompt with the arm-elf toolchain on PATH. Navigate to the CHDK source root directory before executing that gmake command. You'll obviously need to specify the PLATFORM and PLATFORMSUB environment variables somehow (either on the commandline or in localbuildconf.inc).
A possible localbuildconf.inc:
Code: [Select]
PLATFORM=sx170is
PLATFORMSUB=101a
localbuildconf.inc should reside in the source root.

Re: SX170 porting
« Reply #45 on: 18 / August / 2014, 18:23:15 »
Hi Srsa


I have include arm-elf tools in the PATH and now the script "run-code-gen" runs without error.
The command below is ran in the window prompt.

gmake PLATFORM=sx170is PLATFORMSUB=101A run-code-gen

But boot.c is not being generated still.

C:\Desenv\CHDK_SHELL\gcc4\bin\gmake.exe[1]: *** No rule to make target `boot.c', needed by `boot.o'.  Stop.
gmake: *** [all-recursive] Error 1

I have looked at the code-gen file and its content is:
 \-\

Thanks




Re: SX170 porting
« Reply #46 on: 18 / August / 2014, 18:28:56 »
Hi Srsa


I have include arm-elf tools in the PATH and now the script "run-code-gen" runs without error.
The command below is ran in the window prompt.

gmake PLATFORM=sx170is PLATFORMSUB=101A run-code-gen

But boot.c is not being generated still.

C:\Desenv\CHDK_SHELL\gcc4\bin\gmake.exe[1]: *** No rule to make target `boot.c', needed by `boot.o'.  Stop.
gmake: *** [all-recursive] Error 1

I have looked at the code-gen file and its content is:
 \-\

If you build any other CHDK version and it completes,  the code_gen utility should be in the tools directory.  You can run it from the command line. If you run with no parameters it will tell you what it needs.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX170 porting
« Reply #47 on: 18 / August / 2014, 19:18:07 »
Hi waterwingz

I ran code_gen 0xFF810000  code_gen.txt PRIMARY.BIN  and I got;

ERROR - Can't find firmware function for 'sig='
LINE - 32, SOURCE - FUNC sig=hook_CreateTask name=CreateTask_my

Thanks



Re: SX170 porting
« Reply #48 on: 18 / August / 2014, 19:25:10 »
ERROR - Can't find firmware function for 'sig='
LINE - 32, SOURCE - FUNC sig=hook_CreateTask name=CreateTask_my
nafraf or philmoz can probably answer this one faster than me.  But attach the code_get.txt file in case they are not around and I will take a look ?

My first guess would be that the sigfinder has not created a good stubs_entry.S file for the port.  Did it run against the correct PRIMARY.BIN ?
« Last Edit: 18 / August / 2014, 19:26:44 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX170 porting
« Reply #49 on: 18 / August / 2014, 20:12:30 »
I think you mean gen_code_en.txt. It is Attached.

Thanks

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal