Multi partition support A590 IS - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

Multi partition support A590 IS

  • 29 Replies
  • 9530 Views
*

Offline ftm

  • *
  • 43
Multi partition support A590 IS
« on: 19 / December / 2008, 00:13:10 »
Advertisements
Let me start by thanking the developers of CHDK. I am loving every bit with my new camera.

Single partitions on an 4GB SDHC work fine. I am using a Mac. I tried to make multiple partitions on the card. I am able to boot CHDK OK. It sees the first partition. But it cannot see the second one. On my computer the second partition looks OK. How does one go about using the second partition to store images in the camera?

First partition: 16 MB, FAT16, Bootable
Second Partition: 7.7GB, FAT32

Should I have to make the second partition bootable?

Thanks.

Using: a590-101b-0.8.10-640-full

Re: Multi partition support A590 IS
« Reply #1 on: 25 / December / 2008, 15:45:43 »
I need this as well! Just got an a590 today for christmas and want to put CHDK on it asap.

16GB SDHC card, with a 16mb FAT16 partition and the rest as a FAT32, boots CHDK fine, but I can't use the FAT32 Partition for storing photos on the camera!

Re: Multi partition support A590 IS
« Reply #2 on: 29 / December / 2008, 15:22:48 »
Yes, I tried the same thing, no luck so far.
Here is what I did with ubuntu fdisk.
I created a primary partition(n p), and change id to fat16(t 6).
Then I created an extended part(n e), and a logic part(n l) with the rest of the space.
I changed the logic part to fat32(t b/c), and wrote it back(w).
mkfs.vfat /dev/sdb1; mkfs.vfat /dev/sdb5;
I can mount this two part without problem.
I used cardtricks making it bootable under windows.
The camera boots chdk but sees only the first fat16 part.
I also downloaded and complied the sourcecode myself.
I am pretty sure DataGhost's code is there under chdk/platform/a590/sub/101b/boot.c.
Anyone can point to the right direction?
« Last Edit: 29 / December / 2008, 15:26:21 by betterwang »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Multi partition support A590 IS
« Reply #3 on: 29 / December / 2008, 16:48:04 »
Here is what I did with ubuntu fdisk.
I created a primary partition(n p), and change id to fat16(t 6).
All correct. I used 2Mb partition (FAT12, 0x01 code) in my experiment.
Quote
Then I created an extended part(n e), and a logic part(n l) with the rest of the space.
Wrong! Second partition also must be primary! (n p)
Quote
I changed the logic part to fat32(t b/c), and wrote it back(w).
mkfs.vfat /dev/sdb1; mkfs.vfat /dev/sdb5;
I can mount this two part without problem.
I used cardtricks making it bootable under windows.
The camera boots chdk but sees only the first fat16 part.
I also downloaded and complied the sourcecode myself.
I am pretty sure DataGhost's code is there under chdk/platform/a590/sub/101b/boot.c.
All correct. But chdk/platform/a590/sub/101b/boot.c also can contain errors...
« Last Edit: 29 / December / 2008, 16:50:13 by ewavr »


Re: Multi partition support A590 IS
« Reply #4 on: 29 / December / 2008, 23:09:04 »
Finally, I got this:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1           1        7781    1  FAT12
/dev/sdb2               2        1021     7968240    b  W95 FAT32
CHDK loads but showing only 5M free space.

If I t,1,0,
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1           1        7781    0  Empty
/dev/sdb2               2        1021     7968240    b  W95 FAT32
Samething, CHDK loads but not showing the 8G partition.

I doubt if it is possible for a590 to recognize multi-partition.
Have anyone had a luck on a590?

Re: Multi partition support A590 IS
« Reply #5 on: 01 / January / 2009, 12:37:31 »
Thats too bad. I was hoping to be able to use my full 16GB card......

Now for temporary usage I have just made the largest possible (4GB) FAT16 partition.......
Still good for 416 DNGs :D

Re: Multi partition support A590 IS
« Reply #6 on: 01 / January / 2009, 13:49:11 »
I've got the same problem with an 8gb SDHC card. I created a 4gb fat16 partition just like thearrow and hope that this can be fixed in the future...

Anyways, chdk is a piece of art. I don't know how I could ever life without it! Thanks a lot!

Re: Multi partition support A590 IS
« Reply #7 on: 14 / January / 2009, 18:09:38 »
[UPDATED] I forgot to add some steps, sorry for that

Hi there,

I was successful making my 8Gb card bootable and store my photos on the correct partition, the camera works perfectly with iPhoto08 (yes, another MAC user).

I found myself forced to work on windows as none of the MAC solutions seemed to work for me, so using a Nikon D80 as a sdhc card reader :-)  and working on windows xp with vmware this is what I did:

1. Start the SDM installer (last version: 1.75) and choose the card
2. Make two partitions with the option of the installer, this makes a small 2Mb partition (Fat12) and makes the rest of the card a FAT32 partition.
3. Press the "format" button, and the "make bootable" I think in that order, but not sure.
4. In windows explorer open the card and put the CHDK files there
5. Whithout closing SDM (not important I guess but thats what I did) press "swap partitions"
6. Now hit the "format" button again, as this time it will format the bigger partition
7. A command promt window will appear with information about the process, then you'll have to enter a name, I'm not sure if the name is important for the partition, but just in case I used "CANON_DC" as the camera does when formats a card.
8. Put the CHDK folder in this partition.
9. With SDM swap again the partitions in order to make the primary partition the small one and put there the DISKBOOT.BIN and vers.req files.
10. Close everything
11. Put the card in your camera (remember to "lock" the card with the slider)
12. It works!!! (At least for me)

My camera is the mighty 590 (I love it!!), SDM installer ver. 1.75, CHDK: a590-101b-0.9.1-678-full, with Windows XP Pro SP3 over vmware, The card reader I used... a Nikon D80. I tried to do the same on a Windows Vista PC, with built-in card reader but SDM software wasn't able to make the partitions (nothing happened).

I think thats all.

Please excuse my english, I'm not a native speaker, and my explanations as I'm quite a newbie with this camera and all chdk stuff (1 week with the camera , and this afternoon to make my 1 hour new 8Gb card)


P.S. Thanks a lot to the developers for such a great work!!!
« Last Edit: 17 / January / 2009, 08:25:02 by pepem »


Re: Multi partition support A590 IS
« Reply #8 on: 19 / January / 2009, 04:23:01 »
Here is how to make MacOS X to be able to create dual partitions that work:
After creating new partition layout in MacOS X diskutil, run this sequence of commands:
1. unmount both partition in diskutil
2. fdisk -e /dev/diskX
3. setpid 1 (then enter 1 when prompted for new partition id)
4. write
5. exit
After this point on continue with usual unmounting and making 1st partition bootable as usual.

Re: Multi partition support A590 IS
« Reply #9 on: 19 / January / 2009, 17:19:15 »
Aha!

Thanks pepem, your method works perfectly for me, too!

15+GB free space recognized!

After I had that all set up, I used this hack to view both partitions in windows explorer!:
USB as Local Disk HACK

(If you already used this hack (like I had), the SDM installer won't recognize your card. You have to "uninstall" the driver for your flash reader so it reverts  back to being a removable disk. Then follow pepem's method, get the card set up properly, then re-apply the hack.)

Sweet!
« Last Edit: 19 / January / 2009, 17:30:00 by thearrow »

 

Related Topics