SX170 porting - page 6 - DryOS Development - CHDK Forum supplierdeeply

SX170 porting

  • 266 Replies
  • 97673 Views
Re: SX170 porting
« Reply #50 on: 18 / August / 2014, 21:46:30 »
Advertisements
I think you mean gen_code_en.txt. It is Attached.
That's possible. But that's not the filename you specified in the command line you posted :

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

It's also not the filename of the file you attached ?

Regardless,  the file looks fine.  It seems you are not getting a good stubs_entry.S file from the sigfinder.  Which suggests you build directory structure might be wrong or the sigfinder is not finding PRIMARY.BIN where it expects it, or PRIMARY.BIN does not exist (as anything other than a zero length file).
« Last Edit: 18 / August / 2014, 21:50:05 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX170 porting
« Reply #51 on: 19 / August / 2014, 04:38:36 »
Sorry waterwingz. The file name was incorrect.

The PRIMARY.BIN is in the same direcotry that I ran code_gen and it is 8.232.068 bytes. The command line was: "code_gen 0xFF810000 code_gen.txt PRIMARY.BIN ".

The where I run the command contains:

C:\Desenv\CHDK_SHELL\trunk\trunk3582\platform\sx170is\sub\101a

18/08/2014  20:14    <DIR>          .
18/08/2014  20:14    <DIR>          ..
06/07/2014  12:29             9.321 code_gen.txt
19/08/2014  05:37                 0 debug.txt
18/12/2013  09:19               260 Info.txt
18/08/2014  16:28               371 lista.txt
06/07/2014  12:29               243 Makefile
09/07/2014  05:09               358 makefile.inc
18/12/2013  09:18         8.323.068 PRIMARY.BIN
18/08/2014  15:27                 6 run-code-gen
18/12/2013  09:19         1.519.887 Strings.txt
07/07/2014  04:42               671 stubs_entry_2.S
08/07/2014  14:49             1.188 stubs_min.S

Thanks


Re: SX170 porting
« Reply #52 on: 19 / August / 2014, 07:30:07 »
I am stuck in the SX170IS code_gen issue. The PRIMARY.BIN exists and I still cannot generate boot.c. Any advice?

Re: SX170 porting
« Reply #53 on: 19 / August / 2014, 08:27:48 »
I am stuck in the SX170IS code_gen issue. The PRIMARY.BIN exists and I still cannot generate boot.c. Any advice?
You can't get code_gen to work because you don't have a stubs_entry.S file.   And you can't compile for the SX170 and make a stubs_entry.S file because you have not created boot.c, capt_seq.c. and movie_rec.c.  And you don't have the .c files because you can't run code_gen.

Catch 22.

So, my suggestion would be to "borrow" the boot.c, capt_seq.c. and movie_rec.c files from the SX160is (or pretty much any other recent camera) and get a complete build for the SX170 to compile all the way through.  The resulting CHDK build files will be useless but you don't care about that as you will have a working stubs_entry.S file. 

Now run code_gen and then rerun the complete build with the newly created boot.c, capt_seq.c. and movie_rec.c files.

Done.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: SX170 porting
« Reply #54 on: 19 / August / 2014, 10:40:12 »
thanks  waterwingz

I followed yoir suggestion and I managed to compile the code. Howerver I had to remove the files generic\shooting.c and generic\wrappers.c. Otherwise the compiling failed.

CHDK-SHELL is complaining that main.bin does not exist and is not generating sx170 files in the bin directory.

I wonder if I have the right source files.

Re: SX170 porting
« Reply #55 on: 19 / August / 2014, 17:00:39 »
I followed yoir suggestion and I managed to compile the code. Howerver I had to remove the files generic\shooting.c and generic\wrappers.c. Otherwise the compiling failed.
What did it say when it failed ?

Quote
I wonder if I have the right source files.
That's a good question too.  What verion of CHDK are you trying to compile and what version is nafraf's source expecting ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX170 porting
« Reply #56 on: 19 / August / 2014, 21:07:51 »
Thanks again!
What did it say when it failed ?

>> Entering to loader/sx170is
../../makefile.inc:362: warning: overriding recipe for target `Makefile'
../../makefile.inc:361: warning: ignoring old recipe for target `Makefile'
main.c \-> main.o
lib.c \-> lib.o
gmake[1]: *** No rule to make target `../generic/wrappers.c', needed by `wrapper
s.o'.  Stop.
gmake: *** [all-recursive] Error 1

C:\Desenv\CHDK_SHELL\trunk\trunk3582>
Quote
That's a good question too.  What verion of CHDK are you trying to compile and what version is nafraf's source expecting ?
I am using the version janeoyuri posted on 07th January and Trunk 3582.

Re: SX170 porting
« Reply #57 on: 19 / August / 2014, 22:57:24 »
Thanks again!
I am using the version janeoyuri posted on 07th January and Trunk 3582.
I downloaded those files and also the PRIMARY.BIN file for the sx170is 101a,  followed the procedure that I outlined above, compiled a release for the camera,  and made trunk patch file of the results.

Attached is a patch file for the 1.3.0 trunk that you should be able to apply and build :
-> sx170is-101a-1.3.0-3585-full.zip
-> sx170is-101a-1.3.0-3585.zip

I have no way to test how well it works but the patch file is complete and works with not extra steps.  Just patch and build.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: SX170 porting
« Reply #58 on: 20 / August / 2014, 07:39:19 »
Hi

I applied the patch and it did not work. Errors below.

Makefile:8: ../../../../platform/makefile_sub.inc: No such file or directory
Makefile:12: ../../makefile.inc: No such file or directory
Makefile:34: ../../makefile.inc: No such file or directory
Makefile:53: warning: overriding commands for target `clean'
Makefile:30: warning: ignoring old commands for target `clean'
Makefile:58: ../../bottom.inc: No such file or directory
gmake: *** No rule to make target `../../bottom.inc'.  Stop.
Makefile:8: ../../../../platform/makefile_sub.inc: No such file or directory
Makefile:12: ../../makefile.inc: No such file or directory
Makefile:34: ../../makefile.inc: No such file or directory
Makefile:53: warning: overriding commands for target `clean'
Makefile:30: warning: ignoring old commands for target `clean'
Makefile:58: ../../bottom.inc: No such file or directory
gmake: *** No rule to make target `../../bottom.inc'.  Stop.


Re: SX170 porting
« Reply #59 on: 20 / August / 2014, 07:52:04 »
I applied the patch and it did not work. Errors below.
The patch was designed to go into this directory structure :

trunk/platform/sx170is/..
trunk/platform/sx170is/..

and I see in previous posts you have

C:\Desenv\CHDK_SHELL\trunk\trunk3582\platform\sx170is

Did you succeed in getting the patched files into the right subdirectories ?

I've attached a zipped version of the two directories if that helps?
« Last Edit: 20 / August / 2014, 07:58:00 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal