Images (DICM) Stored on Wrong Partition - Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) - CHDK Forum
supplierdeeply

Images (DICM) Stored on Wrong Partition

  • 32 Replies
  • 5818 Views
Images (DICM) Stored on Wrong Partition
« on: 14 / September / 2012, 23:41:20 »
Advertisements
I used SDMInst - an installer for SDM (and CHDK) under Mac OSX to format the SD card and install CHDK. The camera boots into CHDK and everything seems to work.

Except, the camera put the DICM folder onto the first (FAT16) partition and not on the second (FAT32) partition.

How can I fix that?

Re: Images (DICM) Stored on Wrong Partition
« Reply #1 on: 15 / September / 2012, 06:56:16 »
According to this chart:



my camera, which was released before 2011, should support multiple partitions and should be able to have a small FAT16 partition and a large FAT32 partition.

I can't get it to work. I have tried installing both manually and using SDMinst. Both worked in that the camera booted into CHDK, but the camera never sees or uses the FAT32 partition.

Any ideas?

*

Offline srsa_4c

  • ******
  • 4046
Re: Images (DICM) Stored on Wrong Partition
« Reply #2 on: 15 / September / 2012, 07:20:12 »
my camera, which was released before 2011, should support multiple partitions
Unfortunately, this port is unfinished. The partition support code is missing, so you are limited to 4GB FAT16 partitions if you want to use autoboot. Here's the porting thread for the camera, for information: http://chdk.setepontos.com/index.php?topic=2654.0

Re: Images (DICM) Stored on Wrong Partition
« Reply #3 on: 15 / September / 2012, 07:28:50 »
Well, then, I guess I wasted a lot of time and a little money. I only use this camera for underwater photography.

On a single dive I probably power cycle the camera ten or fifteen times. Auto boot is the only option when you're underwater using an unwieldy housing. And, 4GB is nowhere near enough space for a four or five day trip with four dives per day.

I guess if I want to shoot RAW a new camera is in order.

It would have been nice if I'd known this limitation in advance. Perhaps the chart I posted above needs a very big asterisk.


Re: Images (DICM) Stored on Wrong Partition
« Reply #4 on: 15 / September / 2012, 11:21:18 »
It would have been nice if I'd known this limitation in advance. Perhaps the chart I posted above needs a very big asterisk.
There are currently exactly 100 cameras ported and able to use CHDK and several more in active development.  When you take into account the different firmware versions the number approaches 300.  Many of them have "quirks" - they were almost all ported by a different person. An asterisk to mention every variation would probably be unpractical but I did add a warning note based on your comment.  Its usually worth checking the wiki page and forum thread for a camera you are thinking about purchasing. 

FWIW I took a quick look at the A1000 code for boot.c and the multipartition support is in there.  When I get a minute I'll check the porting thread and see if I can determine why its not working.

« Last Edit: 15 / September / 2012, 13:16:33 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Images (DICM) Stored on Wrong Partition
« Reply #5 on: 15 / September / 2012, 18:09:53 »
Thank you. First time I'd seen that page. Until I read your post, I didn't even know that each camera had its own wiki page.

Sorry.

Re: Images (DICM) Stored on Wrong Partition
« Reply #6 on: 15 / September / 2012, 18:50:35 »
Well, then, I guess I wasted a lot of time and a little money. I only use this camera for underwater photography.

If you are willing to "waste" a little more time,  I enabled the existing dual partition code in boot.c for your camera,  added the necessary #define to the platform_camera.h file and rebuilt the whole thing.

a1000-100b-1.1.0-full

Use the dual partition card that you had previously prepared.  There are four possible outcomes :

1) Camera will not boot - the disabled dual partition code was disabled for a reason.
2) Camera boots but still does not use the bigger partition to store pictures
3) Camera boots but does not properly store pictures at all
4) Camera boots and successfully stores pictures on the larger partition.

The code quality in the port looks pretty good.  Its possible the original porter just never got around to enabling dual partitions before he ran out of time. The half hour I spent scrolling through the english and german forums didn't tell me anything one way or the other.
« Last Edit: 15 / September / 2012, 18:59:08 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Images (DICM) Stored on Wrong Partition
« Reply #7 on: 15 / September / 2012, 19:15:20 »
As a retired, cranky old man I always have some time to waste.

The winner was Option Number 1.

The camera turns on, fails to boot and shuts off.

Code: [Select]
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *8.0 GB     disk2
   1:                 DOS_FAT_16 CHDK                    16.0 MB    disk2s1
   2:                 DOS_FAT_32 PICS                    7.9 GB     disk2s2

Code: [Select]
bleach:volumes mnewman$ cd CHDK
bleach:CHDK mnewman$ ls -la
total 480
drwxrwxrwx   1 mnewman  staff   16384 Sep 16 06:06 .
drwxrwxrwt@ 10 root     admin     340 Sep 16 06:07 ..
drwxrwxrwx@  1 mnewman  staff    1024 Sep 16 06:05 .Trashes
-rwxrwxrwx   1 mnewman  staff    4096 Sep 16 06:05 ._.Trashes
-rwxrwxrwx   1 mnewman  staff  223609 Sep 16 06:05 DISKBOOT.BIN
bleach:CHDK mnewman$ cd /Volumes/PICS
bleach:PICS mnewman$ ls -la
total 88
drwxrwxrwx   1 mnewman  staff   4096 Sep 16 06:06 .
drwxrwxrwt@ 10 root     admin    340 Sep 16 06:07 ..
drwxrwxrwx   1 mnewman  staff   4096 Sep 16 06:05 .Spotlight-V100
drwxrwxrwx@  1 mnewman  staff   4096 Sep 16 06:05 .Trashes
-rwxrwxrwx   1 mnewman  staff   4096 Sep 16 06:05 ._.Trashes
drwxrwxrwx   1 mnewman  staff   4096 Sep 16 06:06 CHDK
-rwxrwxrwx   1 mnewman  staff    450 Sep 16 06:06 changelog.txt
-rwxrwxrwx   1 mnewman  staff  14240 Sep 16 06:06 readme.txt
-rwxrwxrwx   1 mnewman  staff    107 Sep 16 06:06 vers.req


Re: Images (DICM) Stored on Wrong Partition
« Reply #8 on: 15 / September / 2012, 19:18:31 »
As a retired, cranky old man I always have some time to waste.
If you're retired and still diving life must be good.

Quote
The winner was Option Number 1.
Well, it was worth a shot.   I'll take a few minutes to compare the "new" code to a comparable port and check the addresses he used with CHDK-PT.  If you have the time to test,  I can enable successive steps in the code to narrow down where the problem is.


Ported :   A1200    SD940   G10    Powershot N    G16

Re: Images (DICM) Stored on Wrong Partition
« Reply #9 on: 15 / September / 2012, 19:19:36 »
Yep, I have time to dive, time to test, and more....

 

Related Topics