diskboot on new (udumper fails) cameras - General Discussion and Assistance - CHDK Forum

diskboot on new (udumper fails) cameras

  • 22 Replies
  • 18772 Views
*

Offline reyalp

  • ******
  • 14125
diskboot on new (udumper fails) cameras
« on: 21 / August / 2009, 03:00:11 »
Advertisements
Looking at the sx200 dump, the function that decodes DISKBOOT.BIN appears to be rather different from the previous encoded diskboot cameras.

In the sx200 dump, this is at FF8906C8. The equivalent function in sd990 100e is at FF89809C and the same function appears in sx10 101a at FF89C380.

Note that the functions that calls this (on all of the above cameras) recognizes unencoded diskboots by the "gaonisoy" string, and doesn't try to load/run them. It also checks for images with 4 bytes of zero at the start, and refuses those too. It looks to me like an incorrectly encoded image would get run. This would explain the new cameras loading and then crashing with the old style diskboots, but not to unencoded ones.

I just started looking at the decode functions, if anyone has ideas feel free to speak up :)

edit:
whoops, meant to put this in the development general forum ;)
« Last Edit: 21 / August / 2009, 03:05:29 by reyalp »
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14125
Re: diskboot on new (udumper fails) cameras
« Reply #1 on: 23 / August / 2009, 01:26:04 »
Can someone with one of these cameras try a diskboot encoded using the normal dancing bits, except with
unsigned char _chr_[8] = { 4,6,1,0,7,2,5,3 };
changed to
unsigned char _chr_[8] = {5,3,6,1,2,7,0,4};
?

Don't forget what the H stands for.

*

Offline OldGit

  • ****
  • 303
Re: diskboot on new (udumper fails) cameras
« Reply #2 on: 23 / August / 2009, 01:33:18 »
reyalp,
I'd be happy to but I don't know where to change the setting, I haven't played with this area yet.
If you could advise I'll give it a go on the sx200.
Thanks, OldGit
SX200 IS-100C

*

Offline reyalp

  • ******
  • 14125
Re: diskboot on new (udumper fails) cameras
« Reply #3 on: 23 / August / 2009, 01:38:12 »
edit tools/dancingbits.c

Make a diskboot with NEED_ENCODED_DISKBOOT=yes set in your platforms makefile.inc
Don't forget what the H stands for.

*

Offline OldGit

  • ****
  • 303
Re: diskboot on new (udumper fails) cameras
« Reply #4 on: 23 / August / 2009, 01:42:56 »
Thanks, I give it a now
SX200 IS-100C

*

Offline OldGit

  • ****
  • 303
Re: diskboot on new (udumper fails) cameras
« Reply #5 on: 23 / August / 2009, 01:53:13 »
OK, cam boots, displays splash, says Card Locked but I think that is due to my unfinished port.
Good news, well done.
SX200 IS-100C

*

Offline reyalp

  • ******
  • 14125
Re: diskboot on new (udumper fails) cameras
« Reply #6 on: 23 / August / 2009, 02:08:10 »
Displays CHDK splash ? Or other evidence that your code is actually running (blinking LEDs etc.)

If so, that's great news. They code changed quite a bit but I guess it's still using the same algorithm. Might be worth trying a udumper built this way.

I'll adjust the trunk so dancing bits takes an option to specify which array to use.

edit:
It would also be nice to know if this works on other udumper incompatible cameras. I suppose they could each have their own key.
« Last Edit: 23 / August / 2009, 02:17:37 by reyalp »
Don't forget what the H stands for.

*

Offline OldGit

  • ****
  • 303
Re: diskboot on new (udumper fails) cameras
« Reply #7 on: 23 / August / 2009, 02:26:00 »
Just tried udumper (both Dryos and New Dryos) Dryos says Card Locked, New Dryos stays blank but does not produce strings (dump empty).
Then I woke up, udumper needs to be recompiled to use the "new" code.
OK, I know, I'm stupid.

Thanks for all the work you have done on this, it will be much better for the new cams to use udumper than all the work needed in blinking.

If you need any further testing just let me know.
SX200 IS-100C

*

Offline reyalp

  • ******
  • 14125
Re: diskboot on new (udumper fails) cameras
« Reply #8 on: 24 / August / 2009, 01:15:01 »
Here's a udumper encoded with the new settings. This is known to work on SX200, per http://chdk.setepontos.com/index.php/topic,3994.msg38493.html#msg38493

I would be interested if it works on
- IXUS 95/SD1200 http://chdk.setepontos.com/index.php/topic,3547.0.html
- IXUS 100/SD780 http://chdk.setepontos.com/index.php/topic,3995.0.html
- IXUS 110/SD960 http://chdk.setepontos.com/index.php/topic,3585.15.html
- D10 http://chdk.setepontos.com/index.php/topic,3546.0.html
- A480 http://chdk.setepontos.com/index.php/topic,3598.0.html

Note, to use this the card must be bootable. You can either prepare the card with cardtricks, and then replace the DISKBOOT.BIN with this one, or see http://chdk.wikia.com/wiki/Bootable_SD_card
Don't forget what the H stands for.

*

Offline fvdk

  • ***
  • 146
  • Ixus 70 1.01b / 1.02a & Powershot A590is 1.01b
    • My Flickr photo page
Re: diskboot on new (udumper fails) cameras
« Reply #9 on: 24 / August / 2009, 05:46:55 »
Here's a udumper encoded with the new settings. This is known to work on SX200, per http://chdk.setepontos.com/index.php/topic,3994.msg38493.html#msg38493

I would be interested if it works on
- IXUS 100/SD780 http://chdk.setepontos.com/index.php/topic,3995.0.html

I just tried it with the IXUS 100/SD780 but the dumpfile was still empty.

Frans

 

Related Topics


SimplePortal © 2008-2014, SimplePortal