SX40HS porting thread - page 25 - DryOS Development - CHDK Forum

SX40HS porting thread

  • 258 Replies
  • 108407 Views
*

Offline lapser

  • *****
  • 1093
Re: SX40HS porting thread
« Reply #240 on: 22 / March / 2013, 10:11:28 »
Advertisements
Not sure, I have used sdminste.exe and fat32format.exe. No option for block size as far as I know with those two.
fat32format has an option for "allocation unit size". I doubt that alone would cause the delay, but it might change the timing of the boot sequence and lead to something like waterwingz suggested.

You might try formatting both cards with the same allocation unit size, and see if there is still a difference in boot speed.
Quote
>How slow is slow, compared to fast, in seconds >approximately?
about 1 sec.
On the SX50, the screen is dark for 3 or 4 seconds after pressing the power button. Then it takes 2 more seconds until CHDK is ready. This is about the same as my other cameras. I have a 64GB card in the SX50 formatted with FAT32Format with 32768 allocation unit size.

« Last Edit: 22 / March / 2013, 10:13:05 by lapser »
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline dvip

  • ****
  • 451
Re: SX40HS porting thread
« Reply #241 on: 22 / March / 2013, 10:56:31 »
>fat32format has an option for "allocation unit size".

lapser,
What value are you suggesting for allocation unit size?
I entered 8192.

>On the SX50, the screen is dark for 3 or 4 seconds after
>pressing the power button. Then it takes 2 more seconds until
>CHDK is ready.

And I thought my SX40HS was slow...
With a 4GB FAT16 card the SX40SH is ready in less than 2
seconds. If I use FAT32 it takes 3 to 4 seconds. It seems like
you need to press the power button longer.

No big deal, I use the 4GB FAT16 mainly for images. It is nice to
have the SX40SH ready before the birds fly away :)
If I need to shoot video, which I don't too often, then I use the
bigger (slow booting) card.


*

Offline lapser

  • *****
  • 1093
Re: SX40HS porting thread
« Reply #242 on: 22 / March / 2013, 11:27:59 »
lapser,
What value are you suggesting for allocation unit size?
I entered 8192.
If you use the same size allocation unit on both cards, you could eliminate that as a factor and see if they still boot up differently. If so, it could be related to read speed, I suppose.

I hope waterwingz idea turns out to be correct. It would be nice to have CHDK boot faster.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX40HS porting thread
« Reply #243 on: 22 / March / 2013, 17:32:16 »
With a 4GB FAT16 card the SX40SH is ready in less than 2
seconds. If I use FAT32 it takes 3 to 4 seconds. It seems like
you need to press the power button longer.

What firmware is your camera?

My SX40 (1.00g) starts in less than 2 seconds using a 16GB card formatted as FAT32.
(This is powering on to record mode using a long press of the power button).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


*

Offline dvip

  • ****
  • 451
Re: SX40HS porting thread
« Reply #244 on: 22 / March / 2013, 18:34:43 »
Hi Phil,

>What firmware is your camera?

sx40hs - 1.00i

>My SX40 (1.00g) starts in less than 2 seconds using a 16GB
>card formatted as FAT32.
>(This is powering on to record mode using a long press of the
>power button).


Yes, 2  seconds, with a 4GB FAT16 card, powering on to record mode using a long press of the power button. FAT32 with the same card is slower, also if I use the 8GB FAT32 card.

Here is the 8GB SD card, the 4GB is the same type:
 
http://www.amazon.com/gp/product/B007JRB0TC/ref=pd_lpo_k2_dp_sr_1?ie=UTF8&redirect=true


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX40HS porting thread
« Reply #245 on: 22 / March / 2013, 19:02:37 »
If core_spytask_can_start didn't get called, that would slow things down, but I don't see how that would depend on the card format.

That doesn't affect the camera startup time, it only affects the delay before CHDK is ready to do stuff.

If this was the case you can see the effect by turning on the CHDK spash screen.

Normally this shows right after the camera switches to record mode (with a long press of the power button).
If the init_file_modules / code_spytask_can_start code is not working then there is a noticeable delay before the splash screen shows, and the <ALT> button is not active.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX40HS porting thread
« Reply #246 on: 22 / March / 2013, 19:05:36 »
Hi Phil,

>What firmware is your camera?

sx40hs - 1.00i

>My SX40 (1.00g) starts in less than 2 seconds using a 16GB
>card formatted as FAT32.
>(This is powering on to record mode using a long press of the
>power button).


Yes, 2  seconds, with a 4GB FAT16 card, powering on to record mode using a long press of the power button. FAT32 with the same card is slower, also if I use the 8GB FAT32 card.

Here is the 8GB SD card, the 4GB is the same type:
 
http://www.amazon.com/gp/product/B007JRB0TC/ref=pd_lpo_k2_dp_sr_1?ie=UTF8&redirect=true


Can you turn on the CHDK splash screen and take videos of the two different startup behaviours?
This might help determine where the problem lies.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline dvip

  • ****
  • 451
Re: SX40HS porting thread
« Reply #247 on: 22 / March / 2013, 19:45:10 »
@Phil,
I don't think I'll be able to take the videos, short of time for now.
But just to give you an idea, when using the 4GB FAT16 card the camera boots and is ready to shoot about 1-2 seconds faster than when using the 8GB FAT32 card, that's why I don't use the 8GB card much. On the average, I don't take more than 20 pictures when I take the camera out anyway soI don't miss the 8GB card.

I could solve the problem getting a faster card?
If your SX40HS doesn't have a problem with a 16GB FAT32 card, then the problem has to be my card, unless the booting code varies from firmware to firmware.

Please ignore if this sounds silly but, do you have to keep the power button press longer if the card is formatted FAT32? When I try both cards it seems like I need to keep the power button pressed longer for the camera to start if I am using the 8GB FAT32 card. With the 4GB FAT16 card, the camera is on in less than 1 second, and it is ready to shoot in about another second.




Re: SX40HS porting thread
« Reply #248 on: 22 / March / 2013, 20:01:30 »
Please ignore if this sounds silly but, do you have to keep the power button press longer if the card is formatted FAT32? When I try both cards it seems like I need to keep the power button pressed longer for the camera to start if I am using the 8GB FAT32 card. With the 4GB FAT16 card, the camera is on in less than 1 second, and it is ready to shoot in about another second.
Seems like that kind of narrows it down to something at the very start of boot.c then?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline dvip

  • ****
  • 451
Re: SX40HS porting thread
« Reply #249 on: 23 / March / 2013, 00:04:26 »
>Seems like that kind of narrows it down to something at the
>very start of boot.c then?

It could be, waterwingz, I noticed a difference in the amount of
time I need to keep the button pressed to start the camera when
using both cards. The 8GB card still takes a longer time.

But, I got some improvements, now.

Formatted the 8GB card with the SX40HS, and copied chdk
(trunk@2646) to it. Now the SX40HS boots and is ready in 2
seconds, before it was like 3 or 4 seconds. So it must have
been the way the 8GB card was formatted. That's the good
news.

The bad news or good too? :) is that the 4GB FAT16 card is still
faster. I press the power button (record mode) and the SX40HS
is ready to shoot in less than 1.5 seconds! Fast!

 

Related Topics