fi2 encoder/decoder - DryOS Development - CHDK Forum supplierdeeply

fi2 encoder/decoder

  • 100 Replies
  • 71004 Views
*

Offline ewavr

  • ****
  • 1057
  • A710IS
fi2 encoder/decoder
« on: 20 / January / 2009, 18:23:11 »
Advertisements
Good news, user with nick Memset from russian forum post fi2 encoder/decoder sources (VS2008) - http://www.zshare.net/download/5442672723de0f15/ with comment:
Quote
How to get keys:
get somethere G9-100F full dump (8MB) and G10-100F full dump (8MB).
G9: G9-100F (D III key ?)
IV: 16 bytes starting from 0x3154D0 (in FW)
key: 16 bytes starting from 0x7E31F0 (in RomStarter)
G10: G10-100F (D IV key ?)
IV: 16 bytes starting from 0x387A3C (in FW)
key: 16 bytes starting from 0x7E368C (in RomStarter)

Warning: keys in keys.h are invalid (to avoid Canon complaint), read instruction above to get it from dumps.
edit: Link is changed to obtain up-to-date version.
I compiled it and it really works (can decode g9.fi2)!
« Last Edit: 20 / January / 2009, 20:19:48 by ewavr »

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: fi2 encoder/decoder
« Reply #1 on: 20 / January / 2009, 20:20:30 »
@ewavr

that's great news !! that opens up the possibility of having the 'firmware update' CHDK start method
available on all supported DryOS cams too, right ?
And I'm sure - when ready - it will make CHDK less confusing for noobs with new cams & large cards ...

wim 

edit: any idea how difficult it will be to find the addresses for the other DryOS cams ?
« Last Edit: 20 / January / 2009, 20:30:57 by whim »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: fi2 encoder/decoder
« Reply #2 on: 20 / January / 2009, 20:43:41 »
any idea how difficult it will be to find the addresses for the other DryOS cams ?

It is very easy, reference to first key located at beginning of ROMStarter (0xFFFF0004), to find second key search "RSBNE   R1, R1, #0x10" instruction in code and next function uses second key.

I inspected A720 and SX100 firmwares, it have the same keys as for G9.
It is really great job.

Unfortunately I cannot test the packer, because I have VxWorks camera...

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: fi2 encoder/decoder
« Reply #3 on: 21 / January / 2009, 04:19:22 »
finally! great job - to all those involved. now we are nearing 1.0.0 again ;)

in order to avoid canon problems, we *could* set up a system so that the keys are NOT in svn but for example on the autobuild server only - or MAYBE extracted from the bins EACH time compilation is started (this means the keys are NOT permanently stored somewhere, only in RAM).
could you perhaps build a test CHDK *.fi2 for an owner of a dryos device to test?

edit: could you perhaps post a link to the russian forum (pm maybe)? google can translate it for me ;)
« Last Edit: 21 / January / 2009, 04:40:07 by PhyrePhoX »


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: fi2 encoder/decoder
« Reply #4 on: 21 / January / 2009, 04:37:36 »
This encoder/decoder also needs porting to gcc/linux.
Quote
could you perhaps build a test CHDK *.fi2 for an owner of a dryos device to test?
Attached CHDK in fi2 format for G9 (1.00d and 1.00g(=1.00f)).
edit:
Quote
could you perhaps post a link to the russian forum (pm maybe)?
Unfortunately no, it was private correspondence (via PM in ixbt.com forum). Public part of this discussion starts here.
edit2: Unfortunately Google and www.translate.ru cannot translate this page - text remains in Russian.
« Last Edit: 21 / January / 2009, 06:01:51 by ewavr »

Re: fi2 encoder/decoder
« Reply #5 on: 21 / January / 2009, 08:00:00 »
Hi all,
I tested the g9-100g.fi.2, it loads on my 100f!

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: fi2 encoder/decoder
« Reply #6 on: 21 / January / 2009, 08:22:18 »
Quote
could you perhaps post a link to the russian forum (pm maybe)?
Unfortunately no, it was private correspondence (via PM in ixbt.com forum). Public part of this discussion starts here.
edit2: Unfortunately Google and www.translate.ru cannot translate this page - text remains in Russian.

yeah, somehow google doesnt want to translate it. but it works when you cut & paste the text to whatever translating website/tool you are using. it's a funny mix between english & russian words, but you can get the overall meaning. thanks for the link.

Hi all,
I tested the g9-100g.fi.2, it loads on my 100f!


so, CHDK loads? this is great News!

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: fi2 encoder/decoder
« Reply #7 on: 21 / January / 2009, 08:28:20 »
I tested the g9-100g.fi.2, it loads on my 100f!

Well, if it works, I attach compiled binaries here (without any warranties, please perform virus scan before run).
Tuning for different cameras:
 - copy diskboot.bin from CHDK to program folder instead of dummy diskboot.bin (probably not encoded for a590/ixus80)
 - change in my.map value 0x0000315A to real camera PID (0x315A is PID for G9).
 - change in pack.bat "-sys" key value to:
    'G9' for digic3 cameras without diskboot.bin encoding (a650/a720/sx100/s5/g9 etc.)
    'A590' for digic3 cameras with diskboot.bin encoding (a590/ixus80)
    'G10' for digic4 cameras

Then start pack.bat file, copy ps.fi2 file to card and test how "firm update" works...

edit: tested remotely (by e-mail) on SX100 (PID=0x315E), it works!
« Last Edit: 21 / January / 2009, 09:35:11 by ewavr »


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: fi2 encoder/decoder
« Reply #8 on: 21 / January / 2009, 13:35:51 »
great :)
now as i understand it, somebody somehow must translate it so it fits into the chdk toolchain somehow and can be executed on the autobuild servers (of course on local copies as well).
btw hacki and i were wondering in irc why so many great hackers/coders use windows :D

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: fi2 encoder/decoder
« Reply #9 on: 21 / January / 2009, 14:02:19 »
Quote
why so many great hackers/coders use windows

i would say ... because Windows forces you to become a hacker just to keep it running:

if you don't it will run you - that's how it is designed, just take a look under the hood of Vista & 7 ...  :haha

wim

edit: disclaimer: this in no way implies i consider myself great at either hacking or coding  :D
« Last Edit: 21 / January / 2009, 14:26:40 by whim »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal