The SX1 IS Porting Thread - page 27 - General Discussion and Assistance - CHDK Forum

The SX1 IS Porting Thread

  • 381 Replies
  • 163273 Views
Re: The SX1 IS Porting Thread
« Reply #260 on: 17 / May / 2009, 11:52:44 »
Advertisements
I am assuming that you are talking about shooting video directly, no scripts or use of the remote?

I am using a class 6 4GB Sandisk that was partitioned.  As far as I understand, it is not strictly necessary to partition up to and including 4GB cards - I did it simply to keep the data recorded in a FAT32 sector, no other reason.

I have shot several HD videos varying from full natural HD to CHDK fully compressed HD (setting at 1) while CHDK is on board the camera (not in alt mode) and I have had no problem like yours.

In your case you must make a separate partition because FAT12/16 cannot work on cards greater than 4GB.  Is it a problem with incorrect card formatting slowing down data speed (just a guess)??

That's correct -- just ordinary video.

It's certainly possible that incorrect formatting is causing the problem.  Any guidelines about how best to format the card?

I suggest you search for sdminste.exe, its a utility belonging to Stereo Data Maker (a cousin of CHDK).  It was the only way I could successfully partition a card in windows.  Download it as part of a package here http://stereo.jpn.org/eng/sdm/file/common_files.zip

Re: The SX1 IS Porting Thread
« Reply #261 on: 17 / May / 2009, 16:44:33 »
It is a pity, but the command does not work:  click "Video"
(uBasic scripts: Video.bas, interval-video.bas) in version 0.9.8b763 for camera SX1.

I have two cameras and I wish to start video shooting synchronously

*

Offline rlk

  • *
  • 9
Re: The SX1 IS Porting Thread
« Reply #262 on: 17 / May / 2009, 18:31:45 »
I am assuming that you are talking about shooting video directly, no scripts or use of the remote?

I am using a class 6 4GB Sandisk that was partitioned.  As far as I understand, it is not strictly necessary to partition up to and including 4GB cards - I did it simply to keep the data recorded in a FAT32 sector, no other reason.

I have shot several HD videos varying from full natural HD to CHDK fully compressed HD (setting at 1) while CHDK is on board the camera (not in alt mode) and I have had no problem like yours.

In your case you must make a separate partition because FAT12/16 cannot work on cards greater than 4GB.  Is it a problem with incorrect card formatting slowing down data speed (just a guess)??

That's correct -- just ordinary video.

It's certainly possible that incorrect formatting is causing the problem.  Any guidelines about how best to format the card?

I suggest you search for sdminste.exe, its a utility belonging to Stereo Data Maker (a cousin of CHDK).  It was the only way I could successfully partition a card in windows.  Download it as part of a package here http://stereo.jpn.org/eng/sdm/file/common_files.zip

Won't do me much good -- I'm running Linux.

I've since found out that if I format the card on my computer it behaves unreliably (same kind of buffer problem, but it takes a bit longer to hit).  Formatted in the camera, no problem.  I do notice that when formatted in the camera it leaves about 2.2 MB free at the start of the card.  I'm trying to use that.  Will keep the group posted...

*

Offline rlk

  • *
  • 9
Re: The SX1 IS Porting Thread
« Reply #263 on: 17 / May / 2009, 19:11:09 »
I've got it -- and the procedure's (on Linux, at any rate) is much simpler, to boot.  It's possible that it will behave differently with different cards, but this worked for me.

It turns out that there's no need at all to reformat the card.  It can be formatted just fine in the camera.  This left me with something like this:


# fdisk /dev/mmcblk0

The number of cylinders for this disk is set to 3625.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/mmcblk0: 8239 MB, 8239710208 bytes
193 heads, 23 sectors/track, 3625 cylinders
Units = cylinders of 4439 * 512 = 2272768 bytes
Disk identifier: 0x00000000

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1               2        3626     8042496    b  W95 FAT32


Notice that the partition starts on track 2.  This leaves some space at the start of the card.  So I created a new partition.  But oops, I can't create partition 1 because it already exists, so it's going to be partition 2:


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1-3625, default 1):
Using default value 1
Command (m for help): t (If you don't do this, the camera won't know that it can boot from this partition)
Partition number (1-4): 2
Hex code (type L to list codes): 4
Changed system type of partition 2 to 4 (FAT16 <32M)

Command (m for help): p

Disk /dev/mmcblk0: 8239 MB, 8239710208 bytes
193 heads, 23 sectors/track, 3625 cylinders
Units = cylinders of 4439 * 512 = 2272768 bytes
Disk identifier: 0x00000000

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1               2        3626     8042496    b  W95 FAT32
/dev/mmcblk0p2               1           1        2208   83  FAT16 <32M

Partition table entries are not in disk order


Oh.  But there's this nice little 'f' command (to fix partition order) expert mode command:


Command (m for help): x

Expert command (m for help): f
Done.

Expert command (m for help): w
The partition table has been altered!


Now with that out of the way, everything's easy:


# mkfatfs -F 16 /dev/mmcblk0p1
# dd if=/dev/mmcblk0p1 of=boot.bin bs=32768

...edit 0x40...

# dd if=boot.bin of=/dev/mmcblk0p1 bs=32768

...remount the card, say on /media/CHDK...

# cp DISKBOOT.BIN vers.req /media/CHDK
# cp -r CHDK /media/CANON_DC (assuming that that's where the primary partition is mounted)


Eject the card, lock it, put it in the camera, and presto!  It works!


*

Offline an0n

  • ***
  • 152
Re: The SX1 IS Porting Thread
« Reply #264 on: 17 / May / 2009, 23:46:56 »
« Last Edit: 18 / May / 2009, 00:02:21 by an0n »
A720IS.

Re: The SX1 IS Porting Thread
« Reply #265 on: 18 / May / 2009, 00:19:34 »

*

Offline an0n

  • ***
  • 152
Re: The SX1 IS Porting Thread
« Reply #266 on: 18 / May / 2009, 01:24:58 »
No problem archiebald, you have contributed, this may lead to rewriting of some pages to avoid confusion.
A720IS.

*

Offline pev69

  • **
  • 55
Re: The SX1 IS Porting Thread
« Reply #267 on: 18 / May / 2009, 02:14:40 »
@ archiebald and an0n:

What a relief, I thought we had another strange issue with the SX1 only :)

And yeah, no problem, it is in my opinion better to report issues even if not entirely sure (or they turn out to be not valid).
« Last Edit: 18 / May / 2009, 02:25:48 by pev69 »


*

Offline pev69

  • **
  • 55
Re: The SX1 IS Porting Thread
« Reply #268 on: 18 / May / 2009, 02:23:30 »
@ rlk:

Yeah, I have also had some odd behaviour with video recording with CHDK the last time I tested it. Did not have time to test further then, but perhaps it is the same thing, card not formatted in the camera. Interesting this unused 2 MB at the start and utilizing it for the boot partition!

Re: The SX1 IS Porting Thread HD Video Help!
« Reply #269 on: 18 / May / 2009, 03:03:49 »
Hi, can anyone develope the code to make possible setting ISO, apaeture & shutter speed during HD Video recording mode? Thanks.  :D

 

Related Topics