A800 Porting Thread - page 10 - DryOS Development - CHDK Forum
supplierdeeply

A800 Porting Thread

  • 277 Replies
  • 110201 Views
*

Offline reyalp

  • ******
  • 14118
Re: A800 Porting Thread
« Reply #90 on: 11 / March / 2012, 16:25:49 »
Advertisements
I believe GetBatteryTemperature is intentionally disabled because it exists in the canon firmware but crashes. Its overridden in lib.c
I looked at the stubs_entry.S file and there are a couple of interesting things in there :

Code: [Select]
//NSTUB(GetBatteryTemperature                 ,0xffc45dec) //102        *** != 0x00000000
edit:
And yes, 90k is not enough. Each file opened with fopen takes 32k....
Don't forget what the H stands for.

Re: A800 Porting Thread
« Reply #91 on: 11 / March / 2012, 16:55:56 »
With an EXMEM version from waterwingz I run lua lib test and it seems to complete successfully :) The log file from it is fairly long so I put it in a pastebin: http://pastebin.com/geNWhCLN

The set mode test runs but says something about "4 FAILED check log" and gives this in the log:
Code: [Select]
a800 100c CHDK 1.0.0 Mar 11 2012 15:07:27 dryos 0x3226
START                        |                 AUTO   1 32768 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  360ms OK
TRY                    P   2 |                 AUTO   1 32768 STL  320ms CHANGE FAIL req   2 got   1
TRY            VIDEO_STD   9 |                 AUTO   1 32768 STL  320ms CHANGE FAIL req   9 got   1
TRY        SCN_KIDS_PETS  33 |                 AUTO   1 32768 STL  290ms CHANGE FAIL req  33 got   1
TRY         SCN_PORTRAIT  41 |                 AUTO   1 32768 STL  300ms CHANGE FAIL req  41 got   1
TRY           SCN_SUNSET  55 |           SCN_SUNSET  55 16404 STL  300ms OK
TRY     SCN_LONG_SHUTTER  60 |     SCN_LONG_SHUTTER  60 16390 STL  300ms OK
TRY         SCN_LOWLIGHT  64 |         SCN_LOWLIGHT  64 16417 STL  280ms OK
TRY  SCN_FACE_SELF_TIMER  78 |  SCN_FACE_SELF_TIMER  78 16936 STL  240ms OK
TRY          SUPER_VIVID  83 |          SUPER_VIVID  83 16934 STL  250ms OK
TRY        POSTER_EFFECT  84 |        POSTER_EFFECT  84 16935 STL  220ms OK
TRY                BEACH  87 |                BEACH  87 16407 STL  230ms OK
TRY              FOLIAGE  88 |              FOLIAGE  88 16405 STL  240ms OK
TRY                 SNOW  89 |                 SNOW  89 16406 STL  260ms OK
TRY             FIREWORK  90 |             FIREWORK  90 16408 STL  420ms OK
TRY       BLUR_REDUCTION  93 |       BLUR_REDUCTION  93 16435 STL  280ms OK
TRY                 AUTO   1 |                 AUTO   1 32768 STL  300ms OK
At least it gets far enough to give a .log file this time :)

For what it's worth, the show memory size under misc options shows Free Memory 369736 bytes and CHDK size 272800 bytes and loaded at 0x1F5FFE0.

UPDATE: setmode.lua with the 3rd waterwingz modification (with 'fixed stubs') gives 15 failed, so perhaps the 'fix' wasn't so good after all?
« Last Edit: 11 / March / 2012, 17:03:16 by Qanthelas »

*

Offline reyalp

  • ******
  • 14118
Re: A800 Porting Thread
« Reply #92 on: 11 / March / 2012, 17:45:38 »
UPDATE: setmode.lua with the 3rd waterwingz modification (with 'fixed stubs') gives 15 failed, so perhaps the 'fix' wasn't so good after all?
I'm quite sure it's unrelated. Try increasing the delay option in the setmode script.
Don't forget what the H stands for.

Re: A800 Porting Thread
« Reply #93 on: 11 / March / 2012, 18:24:21 »
UPDATE: setmode.lua with the 3rd waterwingz modification (with 'fixed stubs') gives 15 failed, so perhaps the 'fix' wasn't so good after all?
I'm quite sure it's unrelated. Try increasing the delay option in the setmode script.
Especially as the 2nd and 3rd build were the same (I accidentally patched the stub_entry_2.S in the main trunk and then built the stable).

Also, I decided to leave out any changes to stubs_entry_2.S in the patch file I submitted.


Ported :   A1200    SD940   G10    Powershot N    G16


Re: A800 Porting Thread
« Reply #94 on: 16 / March / 2012, 15:00:06 »
I got a bit lost, what is it that I should test next?

Re: A800 Porting Thread
« Reply #95 on: 16 / March / 2012, 15:33:21 »
hi everyone. thanks a lot for spending so much time with scripting and coding!
i bought a a800 yesterday to make a long hdr timelaps movie from some nice snowy mountains.

now i see, that i cant use a multiple partition card at the moment. is this planed/ possible in the future?
i am using a 16GB card, first 8MB fat, second 15 GB and fat32.

the card works in my sx1 and sx1 CHDK perfectly. the miscellaneous options swap partitions show me [   1/0]

tell me what can i test with this new version to find out possible bugs.

and sry for my horrible english :-) :blink:

*

Offline reyalp

  • ******
  • 14118
Re: A800 Porting Thread
« Reply #96 on: 16 / March / 2012, 15:37:40 »
I got a bit lost, what is it that I should test next?

I'm quite sure it's unrelated. Try increasing the delay option in the setmode script.
Don't forget what the H stands for.

Re: A800 Porting Thread
« Reply #97 on: 16 / March / 2012, 15:56:01 »
hi everyone. thanks a lot for spending so much time with scripting and coding!
i bought a a800 yesterday to make a long hdr timelaps movie from some nice snowy mountains.

now i see, that i cant use a multiple partition card at the moment. is this planed/ possible in the future?
i am using a 16GB card, first 8MB fat, second 15 GB and fat32.

the card works in my sx1 and sx1 CHDK perfectly. the miscellaneous options swap partitions show me [   1/0]

tell me what can i test with this new version to find out possible bugs.

and sry for my horrible english :-) :blink:
The A800 will work with a single FAT32 partition set to the maximum size of the SD card.   So there is no reason to have multiple partitions.  Thus, it seems unlikely that anyone will put any time into adding that to the code. 

I guess the only reason you would want partition support for the A800 would be so that you can swap cards with older cameras without reformatting ? 
 
« Last Edit: 16 / March / 2012, 15:57:36 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: A800 Porting Thread
« Reply #98 on: 17 / March / 2012, 00:21:33 »
Alright, with the last waterwingz build still on my camera, I increased the setmode.lua 'mode change delay, ms' delay from 10 to 20 and it errored out with this:

Code: [Select]
a800 100c CHDK 1.0.0 Mar 11 2012 15:25:37 dryos 0x3226
START                        |                 AUTO   1 32768 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  330ms OK
TRY                    P   2 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req   2 got   1
TRY            VIDEO_STD   9 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req   9 got   1
TRY        SCN_KIDS_PETS  33 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  33 got   1
TRY         SCN_PORTRAIT  41 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  41 got   1
TRY           SCN_SUNSET  55 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  55 got   1
TRY     SCN_LONG_SHUTTER  60 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  60 got   1
TRY         SCN_LOWLIGHT  64 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  64 got   1
TRY  SCN_FACE_SELF_TIMER  78 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  78 got   1
TRY          SUPER_VIVID  83 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  83 got   1
TRY        POSTER_EFFECT  84 |                 AUTO   1 32768 STL  230ms CHANGE FAIL req  84 got   1
TRY                BEACH  87 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  87 got   1
TRY              FOLIAGE  88 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  88 got   1
TRY                 SNOW  89 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  89 got   1
TRY             FIREWORK  90 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  90 got   1
TRY       BLUR_REDUCTION  93 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  93 got   1
TRY                 AUTO   1 |                 AUTO   1 32768 STL  240ms OK

Deleted everything on the card, copied over the full for the 2nd build from waterwingz, again bumped 'mode change delay, ms' up to 20, get this on the screen:
Code: [Select]
***STARTED***
BATCH: log A/setmode.log
15 FAILED check log
press a key
***FINISHED***
This is the setmode.log:
Code: [Select]
a800 100c CHDK 1.0.0 Mar 11 2012 15:07:27 dryos 0x3226
START                        |                 AUTO   1 32768 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  330ms OK
TRY                    P   2 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req   2 got   1
TRY            VIDEO_STD   9 |                 AUTO   1 32768 STL  240ms CHANGE FAIL req   9 got   1
TRY        SCN_KIDS_PETS  33 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  33 got   1
TRY         SCN_PORTRAIT  41 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  41 got   1
TRY           SCN_SUNSET  55 |                 AUTO   1 32768 STL  240ms CHANGE FAIL req  55 got   1
TRY     SCN_LONG_SHUTTER  60 |                 AUTO   1 32768 STL  240ms CHANGE FAIL req  60 got   1
TRY         SCN_LOWLIGHT  64 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  64 got   1
TRY  SCN_FACE_SELF_TIMER  78 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  78 got   1
TRY          SUPER_VIVID  83 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  83 got   1
TRY        POSTER_EFFECT  84 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  84 got   1
TRY                BEACH  87 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  87 got   1
TRY              FOLIAGE  88 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  88 got   1
TRY                 SNOW  89 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  89 got   1
TRY             FIREWORK  90 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  90 got   1
TRY       BLUR_REDUCTION  93 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  93 got   1
TRY                 AUTO   1 |                 AUTO   1 32768 STL  250ms OK

Realized that there is also a "Script Shoot Delay (.1s)" and that perhaps this is what you meant, I used the 2nd waterwingz build and turned this up to 5.  Same 15 errors message on the camera screen and this in the setmode.log file:
Code: [Select]
a800 100c CHDK 1.0.0 Mar 11 2012 15:07:27 dryos 0x3226
START                        |                 AUTO   1 32768 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  300ms OK
TRY                    P   2 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req   2 got   1
TRY            VIDEO_STD   9 |                 AUTO   1 32768 STL  280ms CHANGE FAIL req   9 got   1
TRY        SCN_KIDS_PETS  33 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  33 got   1
TRY         SCN_PORTRAIT  41 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  41 got   1
TRY           SCN_SUNSET  55 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  55 got   1
TRY     SCN_LONG_SHUTTER  60 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  60 got   1
TRY         SCN_LOWLIGHT  64 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  64 got   1
TRY  SCN_FACE_SELF_TIMER  78 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  78 got   1
TRY          SUPER_VIVID  83 |                 AUTO   1 32768 STL  280ms CHANGE FAIL req  83 got   1
TRY        POSTER_EFFECT  84 |                 AUTO   1 32768 STL  250ms CHANGE FAIL req  84 got   1
TRY                BEACH  87 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  87 got   1
TRY              FOLIAGE  88 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  88 got   1
TRY                 SNOW  89 |                 AUTO   1 32768 STL  260ms CHANGE FAIL req  89 got   1
TRY             FIREWORK  90 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  90 got   1
TRY       BLUR_REDUCTION  93 |                 AUTO   1 32768 STL  270ms CHANGE FAIL req  93 got   1
TRY                 AUTO   1 |                 AUTO   1 32768 STL  280ms OK
« Last Edit: 17 / March / 2012, 00:28:49 by Qanthelas »

*

Offline reyalp

  • ******
  • 14118
Re: A800 Porting Thread
« Reply #99 on: 17 / March / 2012, 03:53:29 »
I meant 'mode change delay, ms'

Try something big, like 500ms.
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal