Rescue - DSLR Hack development - CHDK Forum

Rescue

  • 16 Replies
  • 87906 Views
Rescue
« on: 04 / June / 2008, 19:16:52 »
Advertisements
As jeff666 was saing this: http://chdk.setepontos.com/index.php/topic,1359.msg14550.html#msg14550, he didn't know I would test the @*#$! code one more time - to answere his question properly. Why "@*#$!" ? Becose:

Becose it broke the camera. Propably I pulled out the batteries in the wrong moment (as Seklth - who's camera got it self in service becose of a similar code). To say for my defence: the "wrong moment" is nearly "any moment" in a infinit loop of "Loading ...".

The good news is I learned much more since Seklth camera broke. Good news for my camera - becose my guarantee expired. What I done:

As I said in the other topic, the bootloader is simple. It tries to run a bootable CF card. The "bootable" means it have a "BOOTDISK" at 0x40, and "EOS_DEVELOP" at 0x2B. I didn't made a bootable CF becose I was working on the full reboot as I wrote. But what I done next, what to load the bootloader attached program in to the ram, and run the .fir loading procedure. The orginal .fir didn't work right (buttons didn't work), So I runned my led-dumper to look at the bootloading-flags (look in the "... Runned ..." thread) - They were 0 0 0 -1 in stead of 0 -1 -1 -1. I then loaded the bootloader-attached program and used it this time to write the right bootflags. Then pulled out the battery - and it work's perfectly !

Why I'm writing it? Two reasons:

1. So if you'll break the camera like that, mayby it will help you (attached .fir and AUTOEXEC.BIN)
2. As I said in a other thread: I'm not rich man - I was terrified when It happened (guarantee expired, so much money!), and I had to write somewhere :-)

Re: Rescue
« Reply #1 on: 04 / June / 2008, 19:21:41 »
NOTE: the 0x2B offset of the CF card is not the drive Label !! The card tricks or FAT format don't work to make a bootable CF. (I tried it - but it cannot do it). If anybody want to edit the card tricks program - It'll be great. I have other work now (and I have to slow down my heart rate to normal ;-)

*

ASalina

Re: Rescue
« Reply #2 on: 04 / June / 2008, 19:29:40 »
I'm sweating just thinking about it! I'm glad everything is alright!

*

Offline DataGhost

  • ****
  • 314
  • EOS 40D, S5IS
    • DataGhost.com
Re: Rescue
« Reply #3 on: 05 / June / 2008, 03:10:16 »
You have EOS_DEVELOP and BOOTDISK in the MBR, then? If you put it in the partition bootsector, the thing at 0x2B *IS* the drive label, in case of FAT12/FAT16. For FAT32 it's supposed to be at 0x47, because you'd be overwriting other stuff at 0x2B.

Re: Rescue
« Reply #4 on: 05 / June / 2008, 04:46:10 »
Hmmm, mayby I have a wierd version of Card Tricks, and Windows - but my system and the card tricks only set the partition label - the label at 0x2B is mayby *THE* drive label - but non the less - they left it as "No Name" or something :-) Label or not - drive or partition - moral is this: write it yourself - or modyfie the cardtricks program - if you want to boot :-)

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Rescue
« Reply #5 on: 05 / June / 2008, 13:24:09 »
If necessary I could modify CardTricks (or rather, I suppose, the included bootable.exe)
However, I don't have a DSLR so you guys would have to specify exactly what it is that
you want wriiten to the bootsector.

wim

Re: Rescue
« Reply #6 on: 05 / June / 2008, 13:47:59 »
Thing's simple: for 400D the bootable CF have (for FAT16):
at 0x2B "EOS_DEVELOP"
at 0x40 "BOOTDISK" <- this is writen right

The program is well done - so a DSLR-CF version would be great :-)
I edited my card raw.

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Rescue
« Reply #7 on: 16 / June / 2008, 16:49:54 »
@owerlord

OK, here's a replacement bootable.exe for CardTricks (with source code)

just put it in the CardTricks subdirectory (overwriting original bootable.exe)

I checked its efficacy with HexEdit and card still boots SD Canon P&S cams
as well ! (checked on ixus70_sd1000)

specs: will write
at 0x2B "EOS_DEVELOP"
at 0x40 "BOOTDISK"  for FAT16 only

will check further on P&S cams, and if no problems appear might integrate it
to avoid maintaining 2 versions.

Let me know if it works and/or if you need more mods (what about FAT32 ?)

wim
« Last Edit: 17 / June / 2008, 06:07:03 by whim »

Re: Rescue
« Reply #8 on: 17 / June / 2008, 06:53:43 »
thanks ! it's working.

Re: Rescue
« Reply #9 on: 24 / July / 2008, 00:07:48 »
FAT32 will be really useful!

 

Related Topics


SimplePortal © 2008-2014, SimplePortal