CHDK Forum

Using CHDK => General Help and Assistance on using CHDK stable releases => Topic started by: wobbegong on 07 / March / 2009, 16:38:31

Title: G9 and 16GB SDHC dual partition boot problem
Post by: wobbegong on 07 / March / 2009, 16:38:31
Hi,

anybody working with a G9 and the dual partition boot option? On my Camera (FW version H) I'm able to manually load CHDK from a FAT32 16GB SDHC card and from a FAT16 4GB card even the automatic loading works. However, if I partition the 16GB card as advised (sdb1 16M, sdb2 ~16G), CHDK loads on camera startup but it seems not to switch to the big (2nd primary) partition. The message on the display is MEMORY CARD FULL. If I use "Switch partitions" from the CHDK menu is says "there is only one partition".
Any suggetions?

Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: wobbegong on 11 / March / 2009, 19:35:03
Hi,

anybody working with a G9

...

Any suggetions?

Nothing so far?
Did anybody try two partitions on a G9 recently?
How could I find out whats going wrong?
I tried it on a smaller (4G) card with two FAT16 partitions. Same result. Is there any log or so I could check?
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: ewavr on 11 / March / 2009, 20:03:00
I tried it on a smaller (4G) card with two FAT16 partitions. Same result. Is there any log or so I could check?

Second partition must be also 'primary' (not 'extended').
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: wobbegong on 12 / March / 2009, 08:07:12
I tried it on a smaller (4G) card with two FAT16 partitions. Same result. Is there any log or so I could check?

Second partition must be also 'primary' (not 'extended').

It is. (Under Linux sdx2. AFAIK it would be sdx5 or higher if in extended partition)
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: ewavr on 16 / March / 2009, 06:44:13
@wobbegong: some questions:
- Firmware version of your G9?
- time between camera startup (in playback mode) and blue LED blinking?
-
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: wobbegong on 16 / March / 2009, 18:14:06
Firmware GM1.00H

When the camera is switched on in playback mode it takes less than a second for the blue LED to be switched on shortly and off again and then ~2 sec before the blue LED blinks and the CHDK startup screen is visible.
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: ewavr on 16 / March / 2009, 19:11:41
Firmware GM1.00H
Well, RAW shooting and variable bitrate in video works?
If yes, try test version (attached to this post).
Please also test how other  bug is fixed - in old CHDK version G9 exits from "C" shooting mode, if <alt> mode is active.

Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: wobbegong on 17 / March / 2009, 17:26:58
the test version did the trick :-)
RAW works, variable bitrate seems to work (I can see the bitrate beeing calculated while shooting. How do I check if the resulting AVI is variable bitrate?)
Camera stays in "C" after <alt>

AND ... switching of partitions works like a charm!!

The Camera FW is still 1.00H. CHDK seem to be made for 1.00I. Do you know of issues from that?
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: whim on 17 / March / 2009, 17:44:37
Quote
How do I check if the resulting AVI is variable bitrate?

Not sure if that's what you mean, but under Windows you can use codec info tools like http://www.headbands.com/gspot/ (http://www.headbands.com/gspot/) or  http://mediainfo.sourceforge.net (http://mediainfo.sourceforge.net)

hth,

wim
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: ewavr on 17 / March / 2009, 18:20:46
AND ... switching of partitions works like a charm!!
Great, in trunk now (#722).

Quote
The Camera FW is still 1.00H. CHDK seem to be made for 1.00I. Do you know of issues from that?
CHDK for 1.00H is just copy of CHDK for 1.00I.
Title: Re: G9 and 16GB SDHC dual partition boot problem
Post by: wobbegong on 17 / March / 2009, 18:49:20
@wim: that was exactly what I was looking for, only for linux :-) It finally came back, haven't been doing this for some time. One test would be

tcprobe -i file.avi 

The result with my AVI is:
$> tcprobe -i MVI_0566.AVI
[tcprobe] RIFF data, AVI video
[avilib] V: 15.000 fps, codec=MJPG, frames=263, width=1024, height=768
[avilib] A: 44100 Hz, format=0x01, bits=16, channels=1, bitrate=705 kbps,
[avilib]    18 chunks, 1546440 bytes, CBR
[tcprobe] summary for MVI_0566.AVI, (*) = not default, 0 = not detected
import frame size: -g 1024x768 [720x576] (*)
       frame rate: -f 15.000 [25.000] frc=0 (*)
      audio track: -a 0
                   bitrate=705 kbps
           length: 263 frames, frame_time=66 msec, duration=0:00:17.533

So for me it looks like CBR, not VBR. Maybe I did something wrong in CHDK?  Normally I don`t take videos. It`s showing different bitrates while recording though.

@ewavr: Thanks for the clarification. The camera will stay 1.00H for now.