SX720 Porting thread - page 4 - DryOS Development - CHDK Forum  

SX720 Porting thread

  • 166 Replies
  • 87921 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #30 on: 28 / March / 2016, 13:28:45 »
Advertisements
Thanks reyalp, closer to boot :D


Also loader\generic\compat_table.h  > needs to be added something or not ?

*

Offline srsa_4c

  • ******
  • 4451
Re: SX720 Porting thread
« Reply #31 on: 28 / March / 2016, 14:11:03 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #32 on: 28 / March / 2016, 14:25:00 »
Thanks srsa_4c

Found the keys, but the FI2KEY dosn't looks like the one at g7x,
Here is something like FC63......4DCD


EDIT: also see new updates in g7x  > trunk-4577 > so will review and update my platform sources too
« Last Edit: 28 / March / 2016, 15:09:11 by asm1989 »

*

Offline reyalp

  • ******
  • 14118
Re: SX720 Porting thread
« Reply #33 on: 28 / March / 2016, 16:37:59 »
Found the keys, but the FI2KEY dosn't looks like the one at g7x,
Here is something like FC63......4DCD
If you mean the values are different, that is expected, the key usually changes every dryos version. The IV doesn't change very often.

For g7x, the dancing bits was the same as a known, pre-digic 6 camera with the same dryos version (sx530) so I didn't actually have to find it.

The g5x is r58 with a different patch level, but I don't see that dancingbits in your dump.
Don't forget what the H stands for.


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #34 on: 29 / March / 2016, 02:47:15 »
yes IV is the same and FI2 is different,  will try g7x dancing bits

*

Offline reyalp

  • ******
  • 14118
Re: SX720 Porting thread
« Reply #35 on: 29 / March / 2016, 03:10:58 »
yes IV is the same and FI2 is different,  will try g7x dancing bits
I'm sure that won't work.

If you want to check whether it is the same as another camera, you can search for the number sequence in the .bin file. The values are 32 bit ints, so in a hex editor like HxD that lets you search for bytes as hex, you would search for something like (using g7x as an example)

07 00 00 00 04 00 00 00 05 00 00 00 ...

In g7x, this appears at
fc0044ec and fc728320
I didn't find any obvious, direct references to these in the ROM code, though they must be referenced indirectly by the diskboot code.

The g5x dancingbits appears at similar, but not identical addresses: fc0044D8 and fc7c1d98

the g5x sequence does not appear in the sx720 dump.


Don't forget what the H stands for.

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #36 on: 29 / March / 2016, 07:05:55 »
Thanks Reyalp you are right a new dancing bits is needed { 1,3,7,4,5,6,0,2 }

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #37 on: 29 / March / 2016, 08:30:00 »

I have a first draft of sources for SX720 based on g7x (attached)


Still din't build well via the GUI it deletes the stubs and fails with gmake[1]: *** [stubs_entry.S] Error 1  , So I may need to do it manually via de CMD


Still somethings missing:


-shooting.c  >  MODES
-platform_kbd.h  > KEYS_MASKs and some other things
-platform_camera.h  >  Probably Propset and maybe Display size and some other tunnings
-main.c > Need to locate Focus length table in firmware > values are wrong  NUM_FL CF_EFL .....
-lib.c > Probably LED_PR
-also did not find yet this buffer >  return (char *)0x46f04300;  //this one is from g7x
kbd.c > Add keys, check jogdial stuff


stubs_entry_2.S  > Looks OK need build to verify
stubs_min.S  > PTE > DEF(focus_len_table,0xfdf2deb4)   //this one is from g7x
bin_comp_fix.h  > Looks OK
boot.c > Looks OK > neeeds test
capt_seq.c > looks OK but different


EDIT: attached correct sources
« Last Edit: 29 / March / 2016, 16:07:05 by asm1989 »


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: SX720 Porting thread
« Reply #38 on: 29 / March / 2016, 09:04:47 »
Here are the build errors with CMD
make rebuild-stubs PLATFORM=sx720hs PLATFORMSUB=100e
make fir PLATFORM=sx720hs PLATFORMSUB=100e

EDIT: some errore maybe because PLATFORMOSVER does not exists
SOLVED
« Last Edit: 30 / March / 2016, 04:10:56 by asm1989 »

*

Offline srsa_4c

  • ******
  • 4451
Re: SX720 Porting thread
« Reply #39 on: 29 / March / 2016, 13:19:10 »

Here are the build errors with CMD
make rebuild-stubs PLATFORM=sx720hs PLATFORMSUB=100e
make fir PLATFORM=sx720hs PLATFORMSUB=100e
Take a look at your platform/sx720hs/sub/100e/Makefile . You have left most of it commented out.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal