Card Tricks - a small utility to help manage SD cards - page 8 - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

Card Tricks - a small utility to help manage SD cards

  • 209 Replies
  • 296343 Views
*

Offline wind

  • *
  • 11
Re: Card Tricks - a small utility to help manage SD cards
« Reply #70 on: 06 / August / 2008, 13:32:12 »
Advertisements
deleted

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #71 on: 11 / August / 2008, 12:50:35 »
CardTricks v1.36  cardtricks136.exe - 0.40MB

  Slightly too late to celebrate 10k+ downloads for version 1.34  :haha, but:

- support for udumper2008 (thanks, chr) --- this should mean that there's a fair chance that
  owners of the NewDryOS generation cams (anybody got a better name?) can dump their firmware.
  (that should mean (roughly) A580 & later, ixus80_sd1100 and later)
 
- updated bootable.exe to be usable for Canon DSLR users: besides the 'BOOTDISK' stamp at
  0x40 in the 1st sector, it now additionally writes 'EOS_DEVELOP' at 0x24.
  This has caused no problems on my VxWorks cams so far (A620, A630, and ixus70_sd1000).
  Please report if you're sure it doesn't work for your cam.
  (Note: previous version of 'bootable.exe'is also included in the CardTricks directory
  (just rename bootable.exe -> bootable.exe.new and bootable.exe.org -> bootable.exe
   to restore previous version)

- improved detection of an already running CardTricks.

enjoy,

wim

Re: Card Tricks - a small utility to help manage SD cards
« Reply #72 on: 11 / August / 2008, 15:00:31 »
Quote
CardTricks v1.36  cardtricks136.exe - 0.40MB

  Slightly too late to celebrate 10k+ downloads for version 1.34  Grin, but:

- support for udumper2008 (thanks, chr) --- this should mean that there's a fair chance that
  owners of the NewDryOS generation cams (anybody got a better name?) can dump their firmware.
  (that should mean (roughly) A580 & later, ixus80_sd1100 and later)
 
- updated bootable.exe to be usable for Canon DSLR users: besides the 'BOOTDISK' stamp at
  0x40 in the 1st sector, it now additionally writes 'EOS_DEVELOP' at 0x24.
  This has caused no problems on my VxWorks cams so far (A620, A630, and ixus70_sd1000).
  Please report if you're sure it doesn't work for your cam.
  (Note: previous version of 'bootable.exe'is also included in the CardTricks directory
  (just rename bootable.exe -> bootable.exe.new and bootable.exe.org -> bootable.exe
   to restore previous version)

- improved detection of an already running CardTricks.

enjoy,

wim

Has anyboy tested, if CardTricks is working on Linux with Wine?
That would be a quite easy way for me, without starting MS-Windows.
Thanks for answer (and sorry for bad english)

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #73 on: 11 / August / 2008, 15:27:59 »
Hi Postfach777 !

Not sure if anybody tested it, but CT uses Win32 cmdline commands for all the 'real' work.
If Wine can handle that, I'd say your chances are decent. The GUI stuff is done in AutoIt,
and I read several topics in it's forum that claimed simple AutoIt progs worked.
Sorry, I realise that's kind of vague, but it's the best I can do for the moment.

Another approach would be to install a slimmed down Windows in a virtual machine
like VirtualBox to do the job (ideally Win2000, that's relatively small)

wim


*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Card Tricks - a small utility to help manage SD cards
« Reply #74 on: 11 / August / 2008, 16:37:33 »
Hmm well a quick test: Pretty much all I could get CardTricks to do under wine was to unzip a pre-downloaded chdk zip and install it to a formatted card. Everything that needs to format the card didn't work. Also downloading failed but that could be a problem of my wine setup. CHDK->Custom didn't seem to work either.

It says "set bootable" succeeds but it have my doubts since formatting doesn't work (didn't test the card, it was actually already bootable).

I had to mount the card before CardTricks noticed it. I ran it without root priviliges but gave myself write permissions to the device.

Re: Card Tricks - a small utility to help manage SD cards
« Reply #75 on: 11 / August / 2008, 18:43:26 »
Quote
Hi Postfach777 !

Not sure if anybody tested it, but CT uses Win32 cmdline commands for all the 'real' work.
If Wine can handle that, I'd say your chances are decent. The GUI stuff is done in AutoIt,
and I read several topics in it's forum that claimed simple AutoIt progs worked.
Sorry, I realise that's kind of vague, but it's the best I can do for the moment.

Another approach would be to install a slimmed down Windows in a virtual machine
like VirtualBox to do the job (ideally Win2000, that's relatively small)

wim

Hi,
here's the result of my short test:
With CardTricks 1.36 under Wine (running on sidux) it was the same as fudgey already wrote:
detecting the card was ok, formatting not possible (message: locked card, although
it was unlocked),  extract and write an previously downloaded juciphox-zip on the card worked.

Then I tried with W2K on Sun xVM (VirtualBox) and all functions seems to work as they should
(didn't try any dump and chdk-download)

Thank you for building this tool!

postfach777

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #76 on: 28 / August / 2008, 15:06:01 »
New version cardtricks137.exe - 0.39MB

- Improved universal dumper support: now has a button to clean your dump
  (will auto-remove leading and trailing zeros, and remind you to give it a useful name)

have fun,

wim

edit: almost forgot: added CHDK icon on title bar
« Last Edit: 28 / August / 2008, 16:31:16 by whim »

*

bugmenot

Re: Card Tricks - a small utility to help manage SD cards
« Reply #77 on: 04 / September / 2008, 15:32:59 »
CardTricks is a bit slow to startup... maybe the antivirus is scanning it. its sluggishness could be a bit more userfriendly towards noooob giving some  kind of indicator like a progress bar on the splash screen or some kind of movement on splash screen - heck anything would do - some of my friends always manage to start 4 copies of that beautiful program, and then think that the OK message that says another cardtricks is running is some kind of error message!  :haha

may i suggest another improvement ? the place where you check if cardtricks is running or not, if you just exit instead of displaying a dialouge box saying another cardtricks is running would be good.
« Last Edit: 04 / September / 2008, 15:35:12 by bugmenot »


*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Card Tricks - a small utility to help manage SD cards
« Reply #78 on: 05 / September / 2008, 04:30:30 »
@bugmenot

cardtricks138.exe - 0.39MB Will this do ?  :D
thanks for your input !

@all

  • If other CT running, bring that to the front, then exit
  • little splashscreen (should only be visible on first run)
  • added checkbox to control tooltips

enjoy,

wim

Re: Card Tricks - a small utility to help manage SD cards
« Reply #79 on: 09 / September / 2008, 11:22:55 »
hello whim,
I own a powershot g9 and I've used successfully the previous version of your cardtricks, thanks!

The chdk's port for the powershot is blocked, something is missed but it seems very difficult to find out what.
In the discussion about the porting on the g9 jeff666 wrote:

So -- putting more of the firmware into CHDK hasn't helped and neither has putting less of it in.  I'm fresh out of ideas.  Anybody out there have a new approach?  :'(

Sorry for replying so late.

Observation:
* you have a program and expect it to behave in a specific way
* this program behaves differently than you expected.
* you (i.e. we) are sure that our little devices do exactly what they're told to do

Conclusion 1: The device executes a program that differs from what you have developed.
Conclusion 2: The program you developed is changed at some point, most probably on the device.

Resolution: Test what the device actually executes and fix your program if necessary.


You may want to use the function WriteSDCard which is used for the udumper, as well. It writes a portion of memory to a specific sector on the SD. WriteSDCard is part of the official firmware. Ask if you have trouble locating it.

Syntax: WriteSDCard(int drive, int startsector, int sectorcount, int memstart);
drive is always 0
startsector is the first sector on the SD that is written
sectorcount is the number of sectors that are written (1sector = 512bytes)
memstart is the first byte of memory that has to be written.

You may have trouble writing the first few bytes of memory. In case your dump doesn't work, try 0x1900 as memory start:

WriteSDCard(0, 1024, 2048, 0x1900);

Writes 1mb (2048 sectors) of memory, starting at 0x1900 to the sd starting at sector 1024.
Make sure your card is empty so you don't overwrite data you still need.

further code example:
typedef int (*f_w)(int, int, int, int); // drive(?), start sector, number of sectors, address
f_w WriteSDCard; // "variable" declaration
WriteSDCard=(f_w)(0xFFxxxxxx); // set function pointer, use firmware-specific address


After you have the memory extracted, load it in IDA as additional file to the firmware. Now you can check if the device executes exactly the same code that you have written.

Cheers.

Do you think possible to implent this function in cardtricks?


bye and thanks for all you've already done!
« Last Edit: 09 / September / 2008, 11:24:37 by bongo_bingo »

 

Related Topics