the sx20 porting thread - page 70 - General Discussion and Assistance - CHDK Forum

the sx20 porting thread

  • 1286 Replies
  • 501225 Views
*

Offline reyalp

  • ******
  • 14132
Re: the sx20 porting thread
« Reply #690 on: 15 / June / 2010, 00:27:21 »
Advertisements
I tried to use the crash-dump tool, but  I start the script and became following answer: "your CHDK does not support native calls"
So i think the "dump"-script doesn't work with this CHDK. :(

Any Idea?

You need to build it with OPT_LUA_CALL_NATIVE=1 set in your buildconf.inc

Crashing with zebra could be due to lack of free memory.
Don't forget what the H stands for.

*

Offline afrikaa

  • *
  • 21
  • Sx20 - 1.02C
Re: the sx20 porting thread
« Reply #691 on: 16 / June / 2010, 06:15:21 »
I'll do maybe a stupid question, but I wanted to know what is the difference between the various firmvare 100F, 102B, 102C, 102D?
The Canon has corrected the defects?
Sx20 - 1.02C

*

Offline reyalp

  • ******
  • 14132
Re: the sx20 porting thread
« Reply #692 on: 16 / June / 2010, 16:58:51 »
I'll do maybe a stupid question, but I wanted to know what is the difference between the various firmvare 100F, 102B, 102C, 102D?
The Canon has corrected the defects?
Most likely. Other possibilities are hardware changes in production, or adding support for features required for certain markets. They appear to only offer updates to the public if it's a major issue.

The changes between many canon releases are small, sometimes < 100 bytes difference between versions. It shouldn't be too hard to figure out what they did, but no one has bothered that I know of.
Don't forget what the H stands for.

*

Offline f_m_b

  • **
  • 71
Re: the sx20 porting thread
« Reply #693 on: 17 / June / 2010, 18:42:11 »
@reyalp:
Thanks. :-)
You need to build it with OPT_LUA_CALL_NATIVE=1 set in your buildconf.inc

Crashing with zebra could be due to lack of free memory.

OPT_LUA_CALL_NATIVE=1  means, that i have to recompile the chdk?
At the link of acid2000 there are no source-files. Is that correct?
Where can i found it?


:(
Problems i found:

a)
To find out why most of my dng are corrupt, crashes are not useful. So i avoid the crashes by disabling all chdk functions but raw.

I found out that the problem (about 80% of the dng's are corrupt) comes when i disable "RAW file in dir with JPEG".
If i enable that feature, all dng's are non corrupt and readable.

b)
If the first foto after starting the sx20 is shot with enabled dng, the first dng file has a time/date-stamp from 1.1.2000 00:00. Following dng's are set with correct time/date-stamp.
If the first foto after starting the sx20 is shot with disabled dng (only jpg) all following dng's have the correct time/date-stamp.
jpg Files doesn't have this problem.

c)
With the following settings i became every start of the sx20 a new foldernumber and the filecount begins at IMG_0001.jpg:
"create Folder" = daily or month
"file numbering" = continous

d)
In "play"-mode i can't show all fotos which are on the card. Only the newest fotos are visible.


:)
I found a solution for my problem with the neverending partition-swapping on my 8GB-SD card:
I partitioned the SD-card  (and set the bootable flag) with gparted in two 4GB FAT16 partitions.
CHDK is on both of them.
I take fotos on the first partition and without swapping i can read it on the PC (XP).
When the first partion is full i swap to the second partition with "Miscellaneous stuff"->"Swap partitions" in 'ALT'-Mode and can use the next 4GB on the second partition.

Greetings Frank
SX20 (1.02b)

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: the sx20 porting thread
« Reply #694 on: 18 / June / 2010, 01:11:34 »
OPT_LUA_CALL_NATIVE=1  means, that i have to recompile the chdk?
At the link of acid2000 there are no source-files. Is that correct?
Where can i found it?

In the official CHDK trunk:
FYI - the SX20 102B port is in the official CHDK trunk now:
...
To compile a full package (like the packages delivered by the Autobuild Server), simply use the CHDKShell and let the shell download the latest trunk; then edit the makefile - delete the leading # from the lines with "SX20" & save the makefile. Restart the CHDKShell, now the SX20 1.02b will be listed and can be compiled like all the other firmwares...

*

Offline SkyWalker9

  • ****
  • 301
  • SX20 IS (fw 1.02b)
Re: the sx20 porting thread
« Reply #695 on: 18 / June / 2010, 13:23:26 »
I found a solution for my problem with the neverending partition-swapping on my 8GB-SD card:
I partitioned the SD-card  (and set the bootable flag) with gparted in two 4GB FAT16 partitions.
CHDK is on both of them.
I take fotos on the first partition and without swapping i can read it on the PC (XP).
When the first partion is full i swap to the second partition with "Miscellaneous stuff"->"Swap partitions" in 'ALT'-Mode and can use the next 4GB on the second partition.
You mentioned using "gparted" to setup your partitions, but I'm not sure many people would know how to use it. I decided to checkout your "discovery" and modified my previous tutorial to include how to setup an 8G card like you mentioned using the Active@ Partition Manager (free). Here is a link for anyone who is interested in the tutorial: http://rapidshare.com/files/400436852/Installing_CHDK_on_SD_Cards__Windows_OS_.pdf

I have tested your "discovery" and really like what I see so far. The numbering sequences of the photos are correct after swapping and you can use the USB to PC transfers from either partition (JPGs and movies - still not DNGs, etc.) To make sure the photos and movies get placed on the swapped partition, you must power the camera off/on for the camera to recoginize the partition after swapping. This appears to be a handy "discovery" especially if you want to keep events or other things on separate partitions.

This becomes even more important when you consider that if you currently remove the SD card to unload the larger partition of the SD card (DNGs, etc.), you usually are required to do two partition swaps using SDM Installer. With this new setup, you simply remove your SD card, unload then put the SD card back in the camera and you are ready to start again. You don't use the SDM Installer during this process therefore you can unload on a computer without the SDM Installer installed.

Appreciate you sharing this "discovery"!

Update: CHDK estimates show each partition can have approx 1205 JPGs (fine mode) or 180 DNGs (with accompanying JPGs - fine mode) - plenty of room on each partition.
« Last Edit: 18 / June / 2010, 17:40:17 by SkyWalker9 »

Re: the sx20 porting thread
« Reply #696 on: 19 / June / 2010, 09:27:07 »
I guess this trick can't be used for 16GB cards? It's limited to 2 partitions?

*

Offline SkyWalker9

  • ****
  • 301
  • SX20 IS (fw 1.02b)
Re: the sx20 porting thread
« Reply #697 on: 19 / June / 2010, 21:07:30 »
I guess this trick can't be used for 16GB cards? It's limited to 2 partitions?
Interesting question. Using the Active@ Partition Manager you could easily set up four 4G (approx) partitions and possibly format each bootable, FAT16 with the SDM Installer - I haven't tried more than two partitions using the SDM Installer to see if it can handle more than just two.

If you could setup the partitions, then it would be interesting to see what would happen when you used CHDK Misc > Swap. Would it just continue to swap (cycle) through all four partitions and then re-start with the first one again? Would it just swap between the first two partitions ? Lots of questions, but no answers. I'd love to try this just to see what happens but I don't use 16G SD cards.

Update: I tested the SDM Installer using three partitions and it wasn't able to handle more than two partitions, so the SD card would have to be setup using another app.
« Last Edit: 20 / June / 2010, 23:28:43 by SkyWalker9 »

*

Offline reyalp

  • ******
  • 14132
Re: the sx20 porting thread
« Reply #698 on: 19 / June / 2010, 22:54:14 »
My guess is it would just swap the first two. Supporting more shouldn't be too hard.
Don't forget what the H stands for.

Re: the sx20 porting thread
« Reply #699 on: 20 / June / 2010, 00:26:13 »
Also very much looking forward to the 1.02d firmware port....I am excited to try this out...Love this camera, and RAW support would make me love it even more  :)

Thanks to all who are working so hard on all this.   Any way to contribute funds for peoples time or anything?
sx20is 1.02d

 

Related Topics


SimplePortal © 2008-2014, SimplePortal