A1100 IS Porting thread - page 57 - DryOS Development - CHDK Forum

A1100 IS Porting thread

  • 647 Replies
  • 245012 Views
*

Offline nafraf

  • *****
  • 1308
Re: A1100 IS Porting thread
« Reply #560 on: 26 / June / 2013, 14:09:31 »
Advertisements
@Switch01
How did you get "sub_FFDBE6A8_my 0xFFDEECB4 57" ?
According to labels in sub_ffdbe6a8 it start at 0xffdbe6a8.

Additionally, in firmware 100c, movie_rec task is disabled on boot.c, maybe there are errors on that implementation and it was disabled.

Re: A1100 IS Porting thread
« Reply #561 on: 26 / June / 2013, 15:30:59 »
Thanks for the help Waterwingz, that code worked perfectly! :)
Tomorrow i'll try to redownload the program and rebuild the code.

Now when i compile from CHDK-SHELL it gives me that error:

Code: [Select]
========== D:\NUOVAARTELLA\TRUNK\TRUNK2889\BIN\LOGS\ERR-A1100-100A.TXT ==========

firmware_load.c: In function `load_firmware':
firmware_load.c:834: warning: left-hand operand of comma expression has no effect
../platform/a1100/libplatform.a(wrappers.o): In function `lens_set_zoom_speed':
wrappers.c:(.text+0x105c): undefined reference to `_SetZoomActuatorSpeedPercent'
collect2: ld returned 1 exit status
D:\Nuovaartella\gcc4\bin\gmake.exe[1]: *** [main.elf] Error 1
gmake: *** [all-recursive] Error 1


How can i fix that?

@nafraf: I got it analyzing 0xFFCF7DE0 in CHDK-PT and checking what address was substituted by sub_FFDBE6A8_my

Re: A1100 IS Porting thread
« Reply #562 on: 27 / June / 2013, 06:49:25 »
I tried many things but i still can't figure out how to fix that error :(

Code: [Select]
firmware_load.c: In function `load_firmware':
firmware_load.c:835: warning: left-hand operand of comma expression has no effect
../../../../tools/finsig_dryos.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
D:\Nuovaartella\gcc4\bin\gmake.exe[1]: *** [../../../../tools/finsig_dryos] Error 1
gmake: *** [all-recursive] Error 1


@Waterwingz
Redownloaded CHDK-PT, and rebuilt the file:

Convert --> Address List

Code: [Select]
//** sub_FFDBE6A8_my  @ 0xFFDEEC34
Analyze --> Address List

Code: [Select]
//** sub_FFDBE6A8_my  @ 0xFFDEECB4


« Last Edit: 27 / June / 2013, 06:59:41 by Switch01 »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: A1100 IS Porting thread
« Reply #563 on: 27 / June / 2013, 08:04:20 »
I tried many things but i still can't figure out how to fix that error :(

Code: [Select]
firmware_load.c: In function `load_firmware':
firmware_load.c:835: warning: left-hand operand of comma expression has no effect
../../../../tools/finsig_dryos.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
D:\Nuovaartella\gcc4\bin\gmake.exe[1]: *** [../../../../tools/finsig_dryos] Error 1
gmake: *** [all-recursive] Error 1



Get the latest version from SVN.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: A1100 IS Porting thread
« Reply #564 on: 27 / June / 2013, 10:03:38 »

Get the latest version from SVN.

Phil.

I redownloaded it from

Code: [Select]
svn checkout https://tools.assembla.com/svn/chdk/trunk chdk
But i still get the same error

Code: [Select]
<< Leaving platform/a1100
>> Entering to platform/a1100/sub/100a
boot.c -> boot.o
stubs_min.S -> stubs_min.o
stubs_auto.S -> stubs_auto.o
../../../../tools/finsig_dryos.o: file not recognized: File format not recognize
d
collect2: ld returned 1 exit status
C:\chdk\gcc451\bin\gmake.exe[1]: *** [../../../../tools/finsig_dryos] Error 1
gmake: *** [all-recursive] Error 1

C:\chdk\src\chdk>gmake PLATFORM=a1100 PLATFORMSUB=100a fir

EDIT:I've tried to compile the 100c firmware and it works.
« Last Edit: 27 / June / 2013, 10:16:32 by Switch01 »

Re: A1100 IS Porting thread
« Reply #565 on: 27 / June / 2013, 10:36:01 »
@Waterwingz
Redownloaded CHDK-PT, and rebuilt the file:

Convert --> Address List

Code: [Select]
//** sub_FFDBE6A8_my  @ 0xFFDEEC34
Analyze --> Address List

Code: [Select]
//** sub_FFDBE6A8_my  @ 0xFFDEECB4
Sounds like you are confused about what Convert does vs what Analyze does?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A1100 IS Porting thread
« Reply #566 on: 27 / June / 2013, 10:45:43 »
Sounds like you are confused about what Convert does vs what Analyze does?
I'm pointing at the fact that the Analyze function reads my address.txt correctly, while the Convert function doesn't.

Re: A1100 IS Porting thread
« Reply #567 on: 27 / June / 2013, 10:53:26 »
Sounds like you are confused about what Convert does vs what Analyze does?
I'm pointing at the fact that the Analyze function reads my address.txt correctly, while the Convert function doesn't.
Okay - I'll take a look at that.  Convert takes the address.txt file for one firmware version,  looks at that function in that firmware version and then tries to find the same code in a different firmware version.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A1100 IS Porting thread
« Reply #568 on: 27 / June / 2013, 11:29:13 »
Okay - I'll take a look at that.  Convert takes the address.txt file for one firmware version,  looks at that function in that firmware version and then tries to find the same code in a different firmware version.
There's no hurry, i've used the code that you have posted a while back.

Anyway, i think i don't really understood this paragraph of the guide: "Converting lib.c and stubs_min.S". Is it mandatory?

Re: A1100 IS Porting thread
« Reply #569 on: 29 / June / 2013, 04:48:46 »
Anyone can help me with the compiling?

 

Related Topics


SimplePortal © 2008-2014, SimplePortal