A1000 - Problem bei Start, Blende

CHDK-Skripte, CHDK-Entwicklung, PC-Zusatzprogramme, Informationen für Tüftler

A1000 - Problem bei Start, Blende

Beitragvon Nando » 12.02.2012, 09:27

Hallo srsa.4c, hallo miteinander,
bei der Canon PowerShot A1000IS gibt es des öfteren Probleme beim Start mit CHDK.

Es wäre schön, wenn wir das Problem beseitigen können.

Eine zweite Sache noch. Habe ich das richtig gelesen? Die A1000 hat keine Einstellung der Blende in CHDK? Das Menü fehlt.
Ich kann nur über den ND filter zwei Werte setzen (ND filter off -> F2.8 und ND filter active -> F8.0)?!
Re: A1000IS porting...
http://chdk.wikia.com/wiki/ND_Filter

ROMLOG.LOG
Code: Alles auswählen
ASSERT!! FsIoNotify.c Line 451
Occured Time  2012:02:12 09:01:05
Task ID: 1441797
Task name: SpyTask
SP: 0x0027CD60
StackDump:
0x00000000
0x7CAB0000
0x40444044
0x40448135
0x00000000
0x00000019
0x00000080
0x000D500D
0x00000000
0xFFC0236C
0x60000013
0x0027AF40
0x00002000
0x000008BC
0x0027CD58
0x0010DFAB
0x0027CD60
0xFFC3D404
0x000001C3
0x00000000
0x00000003
0x00000000
0x0011139C
0x19980218
0x19980218
0x19980218
0x19980218
0xFFC3D528
0x00000003
0x0011139C
0x00000000
0x0011139C
ShootConDump:
0f 0f 0f 0f 0f 0f 0f 0f 0f 0f
CameraConDump:
08 0f 0f 0f 0f 0f 0f 0f 0f 0f
00000050: *** Camera Log Start ***

00000060: UI:_BeforeCBRForPlay

00000060: UI:_AfterCBRForPlay

00000060: UI:DSIC:54,0

00000060: UI:LogicalEvent:0x5003:adr:0,Para:0

00000070: UI:LogicalEvent:0x1165:adr:0,Para:0

00000070: UI:_StartupImage

00000070: UI:SetPanelBrightnessToLcdController

00000070: UI:SetDisplayType

00000070: UI:TurnOnDisplayForStartup

00000070: UI:LogicalEvent:0x5007:adr:0,Para:0

00000090: SS:StartupImageCreated

00000090: UI:DispSwCon_TurnOnBackLight

00000090: UI:TurnOnBackLight

00000110: UI:LogicalEvent:0x5001:adr:0,Para:0

00000260: UI:LogicalEvent:0x5006:adr:0,Para:0

00000260: UI:DispSwCon_MuteOffPhysicalScreen

00000260: UI:MuteOffPhysicalScreen

00000270: UI:ScreenLock

00000280: UI:ScreenUnLock

00000280: UI:LogicalEvent:0x300a:adr:0,Para:0

00000280: UI:CreatePBController

00000280: UI:PB.Create

00000280: UI:LogicalEvent:0x3138:adr:0,Para:0

00000440: UI:LogicalEvent:0x112c:adr:0,Para:0

00000480: UI:PB.CreateE

00000480: UI:AC:StartPB

00000480: UI:DispSwCon_TurnOnDisplayDevice

00000480: UI:AC:EBtn

00000480: UI:PB.Start

00000480: UI:DSIC:46,0



bis dann,
Nando
Canon PowerShot SX200 IS 100D (seit Mitte Nov 2009), Canon PowerShot A1000 IS 100b
Nando
CHDK-Begeisterter
CHDK-Begeisterter
 
Beiträge: 257
Registriert: 11.11.2009, 15:55

Re: A1000 - Problem bei Start, Blende

Beitragvon msl » 12.02.2012, 10:49

Hallo,

Da die A1000 keine Iris-Blende hat, gibt es auch keinen Menüpunkt zum Überschreiben der Blendenwerte. Hier kommt der wie vielen anderen Kameras der ND-Filter zum Einsatz. Je nach dem, ob dieser Filter ein- oder ausgeschwenkt ist, rechnet die Kamera mit einem großen oder kleinen Blendenwert. Der Wert ändert sich auch in Abhängigkeit der Brennweite.

Gruß msl
Benutzeravatar
msl
Super-Mod
Super-Mod
 
Beiträge: 4567
Bilder: 271
Registriert: 22.02.2008, 11:47
Wohnort: Leipzig
Kamera(s): A720 1.00c
SX220 1.01a

Re: A1000 - Problem bei Start, Blende

Beitragvon Nando » 12.02.2012, 12:22

Hallo msl,
danke für die Info, alles klar in Sachen Blendwert!

bis dann,
Nando
Canon PowerShot SX200 IS 100D (seit Mitte Nov 2009), Canon PowerShot A1000 IS 100b
Nando
CHDK-Begeisterter
CHDK-Begeisterter
 
Beiträge: 257
Registriert: 11.11.2009, 15:55

Re: A1000 - Problem bei Start, Blende

Beitragvon srsa.4c » 13.02.2012, 19:32

Hallo Nando,

darf ich fragen, welche Firmware deine Kamera hat? Der Port benutzt einige Addressen, die wahrscheinlich inkorrekt sind. Ich würde gerne diese auch testen lassen :)

MfG.
srsa.4c
CHDK-Einsteiger
CHDK-Einsteiger
 
Beiträge: 49
Registriert: 15.01.2012, 16:31
Kamera(s): a410, ...

Re: A1000 - Problem bei Start, Blende

Beitragvon Nando » 13.02.2012, 20:35

Hallo srsa.4,
mein Firmware ist die a1000-100b.

bis dann,
Nando
Canon PowerShot SX200 IS 100D (seit Mitte Nov 2009), Canon PowerShot A1000 IS 100b
Nando
CHDK-Begeisterter
CHDK-Begeisterter
 
Beiträge: 257
Registriert: 11.11.2009, 15:55

Re: A1000 - Problem bei Start, Blende

Beitragvon srsa.4c » 14.02.2012, 18:38

Hallo Nando,

dein ROMLOG zeigt den gut bekannten "FsIONotify" Fehler. Den wird die Definition CAM_STARTUP_CRASH_FILE_OPEN_FIX höchst wahrscheinlich verhindern.

Ich habe auch weitere Änderungen nach der automatisch generierten Datei stubs_entry.S vorgenommen (entschuldige die technische Details):
- ExpCtrlTool_StopContiAE: die Adresse hatte einen Schreibfehler
Testen: Ich denke die Funktion wird beim Videoaufnahme benutzt (manuale Exposition), weiß nicht, ob CHDK die Videoaufnahme unterstützt
- Lseek: vorher war auch korrekt, Änderung nicht bemerkbar
- FlashParamsTable: die Adresse war falsch
- movie_status: angeblich war die Adresse falsch
Testen: wenn diese falsch ist, bemerkt CHDK den Status der Videoaufnahme nicht richtig
- canon_shoot_menu_active: angeblich war die Adresse falsch
Testen: wenn diese falsch ist, können die CHDK-Anzeigen unerwartet verschwinden
- recreview_hold: angeblich war die Adresse falsch
Testen: wenn diese falsch ist, können die CHDK-Anzeigen unerwartet verschwinden
- zoom_busy, focus_busy: angeblich waren die Adressen falsch
Testen: Verschiedene Einstellungen -> Debugging-Einstellungen -> Zeige verschiedene Werte aktivieren. Beim Zoomen soll "ZB: 1" angezeigt werden, wenn fokussiert wird, soll "FB: 1" angezeigt werden.
- nrflag: angeblich war die Adresse falsch
Testen: Nachsehen, ob RAW-Einstellungen -> Rausch-Reduktion wie erwartet funktioniert, das Resultat ist bestens bei langen Belichtungszeiten bemerkbar(RAW zu aktivieren ist nicht nötig).

Testversion im Anhang. Wenn die gut (ich meine besser) funktioniert, kann die andere Firmware-Variante auch angepaßt werden.

@msl: diese Korrekturen können natürlich warten

Syntax: [ Download ] [ Verstecken ]
Benutze Diff Syntax Highlighting
Index: platform/a1000/platform_camera.h
===================================================================
--- platform/a1000/platform_camera.h    (revision 957)
+++ platform/a1000/platform_camera.h    (working copy)
@@ -53,4 +53,5 @@
     #define CAM_ACTIVE_AREA_Y1              8
     #define CAM_ACTIVE_AREA_X2              3682
     #define CAM_ACTIVE_AREA_Y2              2764
+    #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1
 //----------------------------------------------------------
Index: platform/a1000/sub/100b/capt_seq.c
===================================================================
--- platform/a1000/sub/100b/capt_seq.c  (revision 957)
+++ platform/a1000/sub/100b/capt_seq.c  (working copy)
@@ -9,7 +9,7 @@
 #define NR_OFF (1)
 static long raw_save_stage;
 
-static long *nrflag = (long*)0x9F90;
+static long *nrflag = (long*)0x8594;
 #define RAWDATA_AVAILABLE (1)
 #define RAWDATA_SAVED (2)
 
Index: platform/a1000/sub/100b/stubs_entry.S
===================================================================
--- platform/a1000/sub/100b/stubs_entry.S   (revision 957)
+++ platform/a1000/sub/100b/stubs_entry.S   (working copy)
@@ -14,8 +14,6 @@
 
 // Stubs below should be checked. Stub not matched 100%, or difference found to current 'stubs_entry_2.S'
 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
-//NSTUB(ExpCtrlTool_StopContiAE               ,0xffc1fbac) //104        *** != 0xffc1fabc
-//NSTUB(Lseek                                 ,0xffc13484) //101        *** != 0xffc1354c
 //NSTUB(PT_PlaySound                          ,0xffc48c7c) //102        *** != 0xffc48fbc
 //NSTUB(SetAE_ShutterSpeed                    ,0xffe42b88) //102        *** != 0xffe3de6c
 //NSTUB(kbd_pwr_off                           ,0xffc3163c) //  2 64%    *** != 0xffc3164c
@@ -33,10 +31,10 @@
 DEF(physw_status                            ,0x0000f3f8) // Found @0xffc113ec
 DEF(physw_run                               ,0x00001be4) // Found @0xffc11064
 DEF(levent_table                            ,0xffeab474) // Found @0xffeab474
-//DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c, ** != ** stubs_min = 0xffeca0bc (0xFFECA0BC)
-//DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8, ** != ** stubs_min = 0x000058a0 (0x5868+0x38)
+DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c
+DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8
 DEF(canon_menu_active                       ,0x00005480) // Found @0xffc59fb8
-//DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670, ** != ** stubs_min = 0x0000c05d (0xC05D)
+DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670
 DEF(playrec_mode                            ,0x00005228) // Found @0xffc4ec4c
 DEF(zoom_status                             ,0x0000c0a4) // Found @0xffdfc7b0
 DEF(some_flag_for_af_scan                   ,0x000085a8) // Found @0xffd0a65c
@@ -44,9 +42,9 @@
 // each entry contains 3 int value(s), the first is the zoom focus length.
 // there are 8 entries in the table - set NUM_FL to 8
 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
-//DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034, ** != ** stubs_min = 0x0000b4a4 (0xB4A4)
-//DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4, ** != ** stubs_min = 0x00007ee8 (0x7EE8)
-//DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c, ** != ** stubs_min = 0x000094c8 (0x94C8)
+DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034
+DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4
+DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c
 
 // Values below go in 'lib.c':
 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc2ce78
@@ -103,10 +101,11 @@
 NSTUB(DeleteFile_Fut                          ,0xffc12bf0) //112
 NSTUB(DoAFLock                                ,0xffc14d9c) //102
 NSTUB(EnterToCompensationEVF                  ,0xffc14fec) //104
-NSTUB(ExecuteEventProcedure                   ,0xffc55764) //  1
+NSTUB(ExecuteEventProcedure                   ,0xffc55764) //  2
 NSTUB(ExitFromCompensationEVF                 ,0xffc15030) //104
 NSTUB(ExitTask                                ,0xffc0bb50) //101
 NSTUB(ExpCtrlTool_StartContiAE                ,0xffc1fa68) //104
+NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc1fbac) //104
 NSTUB(Fclose_Fut                              ,0xffc12d6c) //101
 NSTUB(Feof_Fut                                ,0xffc12f58) //  1
 NSTUB(Fflush_Fut                              ,0xffc12f94) //  1
@@ -138,6 +137,7 @@
 NSTUB(LEDDrive                                ,0xffc30c9c) //103
 NSTUB(LocalTime                               ,0xffc53768) //  1
 NSTUB(LockMainPower                           ,0xffc5cdd0) //103
+NSTUB(Lseek                                   ,0xffc13484) //101
 NSTUB(MakeDirectory_Fut                       ,0xffc12c64) //  1
 NSTUB(MoveFocusLensToDistance                 ,0xffe403bc) //102
 NSTUB(MoveIrisWithAv                          ,0xffdec64c) //102
Index: platform/a1000/sub/100b/stubs_entry_2.S
===================================================================
--- platform/a1000/sub/100b/stubs_entry_2.S (revision 957)
+++ platform/a1000/sub/100b/stubs_entry_2.S (working copy)
@@ -2,8 +2,8 @@
 #define NULL_SUB 0xFFC00940
 
 // Override stubs_entry.S
-NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC)
-NHSTUB(Lseek,                       0xffc1354c)
+//NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC)
+//NHSTUB(Lseek,                       0xffc1354c)
 NHSTUB(PT_PlaySound,                0xFFC48FBC)
 NHSTUB(SetAE_ShutterSpeed,          0xFFE3DE6C)
 NHSTUB(kbd_pwr_off,                 0xFFC3164C)
Index: platform/a1000/sub/100b/stubs_min.S
===================================================================
--- platform/a1000/sub/100b/stubs_min.S (revision 957)
+++ platform/a1000/sub/100b/stubs_min.S (working copy)
@@ -11,9 +11,6 @@
 // ROM:FF84CCFC   STR     R0, [R4,#4]     @ Store the address of the LED table (base+4)
 DEF(led_table,                          0x2290) // 0x270C + 4
 
-//ROM:FFA0AFB8(a1000) // old - found at ROM:FFA4503C
-DEF(FlashParamsTable,                   0xFFECA0BC)
-
 // found in sub_FF957174 (called from MoveZoomLensWithPoint (sub_FF957B34))
 // ROM:FF957178   LDR     R4, =0xB37C
 // ..
@@ -22,7 +19,7 @@
 // ROM:FF9571C4   MOVNE   R1, #0xE0
 // ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c"
 // ROM:FF9571CC   BLNE    assert
-DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34
+//DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34
 
 // Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408
 //                                    <- MoveFocusLensToDistance (sub_FFA0D41C))
@@ -33,7 +30,7 @@
 // ROM:FF950778   MOVNE   R1, #0x90
 // ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c"
 // ROM:FF950780   BLNE    assert
-DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4
+//DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4
 
 // Same as previous variable, unusable. Originally found it by peeking through
 // memory and it looked suitable at first. This address along with 0xBE64
@@ -46,7 +43,7 @@
 // ROM:FF982314   MOV     R0, #0
 // ROM:FF982318   STRB    R0, [R1]
 // ROM:FF98231C   STRB    R0, [R1,#1]
-DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1
+//DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1
 
 // Found in sub_FF9754AC. Again, ewavr found this one, he did supply one pointer
 // &#39;search for LDR R12, =0x3007&#39;. I guess this is the right one then <img src="./images/smilies/smile.gif" alt=":)" title="Smile" />
@@ -54,6 +51,6 @@
 // ROM:FF9754B0 008                 LDR     R1, =0xBD60
 // ROM:FF9754B4 008                 LDR     R12, =0x3007
 // ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC]
-DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC
-DEF(movie_status,                       0x5868 + 0x38)
+//DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC
+//DEF(movie_status,                       0x5868 + 0x38)
 DEF(mode_magic,                         0x58D4)
Erstellt in 0.026 Sekunden, mit GeSHi 1.0.8.9


MfG.

Kompiliert mit gcc 4.5.3 + binutils 2.18, linux
Dateianhänge
CHDK-DE-a1000-100b-1.1.0.zip
(206.57 KiB) 393-mal heruntergeladen
srsa.4c
CHDK-Einsteiger
CHDK-Einsteiger
 
Beiträge: 49
Registriert: 15.01.2012, 16:31
Kamera(s): a410, ...

Re: A1000 - Problem bei Start, Blende

Beitragvon Nando » 14.02.2012, 20:11

Hallo srsa.4,
da hast du Fehler gefunden, die ich gar nicht erwähnt habe. ;)

Ich habe vor der Testversion, nochmal mit CHDK-DE Rev 957 probiert, um Fehler zu produzieren.

a1000-100b-1.1.0-full_ALPHA_rev_957:

Videoaufnahme -> Absturz (ohne CHDK geht die Aufnahme)
vorherige OSD-Anzeigen von CHDK bleiben erhalten -> Ãœberlagerungen
zeige verschiedene Werte aktiviert -> MEM: 0x362b96c3, FB: 0, ZB: 0, USB:0 -> keine Änderung bei Zoom/Fokus
Rausch-Reduktion aktiviert/deaktiviert -> Fehlpixel

Testvesion:

Videoaufnahme -> funktioniert
vorherige OSD-Anzeigen von CHDK bleiben erhalten -> Überlagerungen (keine Änderung)
Zeige verschiedene Werte aktiviert -> MEM: 0x766b96c3, FB: 0, ZB: 0, USB:0 -> Änderung bei Zoom - FB: 1, ZB: 1 -> Änderung bei Fokus - FB: 1
Rausch-Reduktion aktiviert -> Fehlpixel verschwinden

vielen Dank, :)
Nando
Canon PowerShot SX200 IS 100D (seit Mitte Nov 2009), Canon PowerShot A1000 IS 100b
Nando
CHDK-Begeisterter
CHDK-Begeisterter
 
Beiträge: 257
Registriert: 11.11.2009, 15:55

Re: A1000 - Problem bei Start, Blende

Beitragvon srsa.4c » 15.02.2012, 18:22

Hallo Nando,


wenn du zurück bist, gibt's was zu testen.

Änderungen:
- vid_bitmap_refresh() implementiert (wie in anderen Kameras)
Testen: Wenn es gut funktioniert, werden die OSD_Anzeigen sich besser benehmen.
- Die Adresse in vid_get_viewport_fb_d() wurde verändert (neuer Wert aus stubs_entry.S genommen)
Testen: In Wiedergabe-Modus soll damit Histogramm, Zebra besser aussehen.

Wenn die Testen gut laufen, werde ich auch die andere Firmware-Variante anpassen.


MfG.

Syntax: [ Download ] [ Verstecken ]
Benutze Diff Syntax Highlighting
Index: platform/a1000/platform_camera.h
===================================================================
--- platform/a1000/platform_camera.h    (revision 957)
+++ platform/a1000/platform_camera.h    (working copy)
@@ -53,4 +53,5 @@
     #define CAM_ACTIVE_AREA_Y1              8
     #define CAM_ACTIVE_AREA_X2              3682
     #define CAM_ACTIVE_AREA_Y2              2764
+    #define CAM_STARTUP_CRASH_FILE_OPEN_FIX 1
 //----------------------------------------------------------
Index: platform/a1000/lib.c
===================================================================
--- platform/a1000/lib.c    (revision 957)
+++ platform/a1000/lib.c    (working copy)
@@ -54,3 +54,10 @@
         led_c.blink_count=255;
         _PostLEDMessage(&led_c);
 }
+
+void vid_bitmap_refresh() //as used in other models
+{
+        extern int enabled_refresh_physical_screen;
+        enabled_refresh_physical_screen=1;
+        _RefreshPhysicalScreen(1);
+}
Index: platform/a1000/sub/100b/capt_seq.c
===================================================================
--- platform/a1000/sub/100b/capt_seq.c  (revision 957)
+++ platform/a1000/sub/100b/capt_seq.c  (working copy)
@@ -9,7 +9,7 @@
 #define NR_OFF (1)
 static long raw_save_stage;
 
-static long *nrflag = (long*)0x9F90;
+static long *nrflag = (long*)0x8594;
 #define RAWDATA_AVAILABLE (1)
 #define RAWDATA_SAVED (2)
 
Index: platform/a1000/sub/100b/stubs_entry.S
===================================================================
--- platform/a1000/sub/100b/stubs_entry.S   (revision 957)
+++ platform/a1000/sub/100b/stubs_entry.S   (working copy)
@@ -14,8 +14,6 @@
 
 // Stubs below should be checked. Stub not matched 100%, or difference found to current &#39;stubs_entry_2.S&#39;
 //    Name                                     Address      Rule  %  Comp to stubs_entry_2.S
-//NSTUB(ExpCtrlTool_StopContiAE               ,0xffc1fbac) //104        *** != 0xffc1fabc
-//NSTUB(Lseek                                 ,0xffc13484) //101        *** != 0xffc1354c
 //NSTUB(PT_PlaySound                          ,0xffc48c7c) //102        *** != 0xffc48fbc
 //NSTUB(SetAE_ShutterSpeed                    ,0xffe42b88) //102        *** != 0xffe3de6c
 //NSTUB(kbd_pwr_off                           ,0xffc3163c) //  2 64%    *** != 0xffc3164c
@@ -33,10 +31,10 @@
 DEF(physw_status                            ,0x0000f3f8) // Found @0xffc113ec
 DEF(physw_run                               ,0x00001be4) // Found @0xffc11064
 DEF(levent_table                            ,0xffeab474) // Found @0xffeab474
-//DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c, ** != ** stubs_min = 0xffeca0bc (0xFFECA0BC)
-//DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8, ** != ** stubs_min = 0x000058a0 (0x5868+0x38)
+DEF(FlashParamsTable                        ,0xffec9f7c) // Found @0xffec9f7c
+DEF(movie_status                            ,0x000050a0) // Found @0xffc47cf8
 DEF(canon_menu_active                       ,0x00005480) // Found @0xffc59fb8
-//DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670, ** != ** stubs_min = 0x0000c05d (0xC05D)
+DEF(canon_shoot_menu_active                 ,0x00009735) // Found @0xffd3b670
 DEF(playrec_mode                            ,0x00005228) // Found @0xffc4ec4c
 DEF(zoom_status                             ,0x0000c0a4) // Found @0xffdfc7b0
 DEF(some_flag_for_af_scan                   ,0x000085a8) // Found @0xffd0a65c
@@ -44,9 +42,9 @@
 // each entry contains 3 int value(s), the first is the zoom focus length.
 // there are 8 entries in the table - set NUM_FL to 8
 DEF(focus_len_table                         ,0xfffe297c) // Found @0xfffe297c
-//DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034, ** != ** stubs_min = 0x0000b4a4 (0xB4A4)
-//DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4, ** != ** stubs_min = 0x00007ee8 (0x7EE8)
-//DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c, ** != ** stubs_min = 0x000094c8 (0x94C8)
+DEF(zoom_busy                               ,0x00007fdc) // Found @0xffd03034
+DEF(focus_busy                              ,0x00007ee4) // Found @0xffcfebb4
+DEF(recreview_hold                          ,0x000059e4) // Found @0xffc65b4c
 
 // Values below go in &#39;lib.c&#39;:
 //void *vid_get_bitmap_fb()        { return (void*)0x10361000; }             // Found @0xffc2ce78
@@ -103,10 +101,11 @@
 NSTUB(DeleteFile_Fut                          ,0xffc12bf0) //112
 NSTUB(DoAFLock                                ,0xffc14d9c) //102
 NSTUB(EnterToCompensationEVF                  ,0xffc14fec) //104
-NSTUB(ExecuteEventProcedure                   ,0xffc55764) //  1
+NSTUB(ExecuteEventProcedure                   ,0xffc55764) //  2
 NSTUB(ExitFromCompensationEVF                 ,0xffc15030) //104
 NSTUB(ExitTask                                ,0xffc0bb50) //101
 NSTUB(ExpCtrlTool_StartContiAE                ,0xffc1fa68) //104
+NSTUB(ExpCtrlTool_StopContiAE                 ,0xffc1fbac) //104
 NSTUB(Fclose_Fut                              ,0xffc12d6c) //101
 NSTUB(Feof_Fut                                ,0xffc12f58) //  1
 NSTUB(Fflush_Fut                              ,0xffc12f94) //  1
@@ -138,6 +137,7 @@
 NSTUB(LEDDrive                                ,0xffc30c9c) //103
 NSTUB(LocalTime                               ,0xffc53768) //  1
 NSTUB(LockMainPower                           ,0xffc5cdd0) //103
+NSTUB(Lseek                                   ,0xffc13484) //101
 NSTUB(MakeDirectory_Fut                       ,0xffc12c64) //  1
 NSTUB(MoveFocusLensToDistance                 ,0xffe403bc) //102
 NSTUB(MoveIrisWithAv                          ,0xffdec64c) //102
Index: platform/a1000/sub/100b/stubs_entry_2.S
===================================================================
--- platform/a1000/sub/100b/stubs_entry_2.S (revision 957)
+++ platform/a1000/sub/100b/stubs_entry_2.S (working copy)
@@ -2,8 +2,8 @@
 #define NULL_SUB 0xFFC00940
 
 // Override stubs_entry.S
-NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC)
-NHSTUB(Lseek,                       0xffc1354c)
+//NHSTUB(ExpCtrlTool_StopContiAE,     0xFFC1FABC)
+//NHSTUB(Lseek,                       0xffc1354c)
 NHSTUB(PT_PlaySound,                0xFFC48FBC)
 NHSTUB(SetAE_ShutterSpeed,          0xFFE3DE6C)
 NHSTUB(kbd_pwr_off,                 0xFFC3164C)
Index: platform/a1000/sub/100b/stubs_min.S
===================================================================
--- platform/a1000/sub/100b/stubs_min.S (revision 957)
+++ platform/a1000/sub/100b/stubs_min.S (working copy)
@@ -11,9 +11,6 @@
 // ROM:FF84CCFC   STR     R0, [R4,#4]     @ Store the address of the LED table (base+4)
 DEF(led_table,                          0x2290) // 0x270C + 4
 
-//ROM:FFA0AFB8(a1000) // old - found at ROM:FFA4503C
-DEF(FlashParamsTable,                   0xFFECA0BC)
-
 // found in sub_FF957174 (called from MoveZoomLensWithPoint (sub_FF957B34))
 // ROM:FF957178   LDR     R4, =0xB37C
 // ..
@@ -22,7 +19,7 @@
 // ROM:FF9571C4   MOVNE   R1, #0xE0
 // ROM:FF9571C8   ADRNE   R0, aZoomlenscontro @ "ZoomLensController.c"
 // ROM:FF9571CC   BLNE    assert
-DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34
+//DEF(zoom_busy,                          0xB4A4) //0xB37C + 0x34
 
 // Found in sub_FF950718 (<- sub_FFA0D148 <- sub_FFA0D394 <- sub_FFA0D408
 //                                    <- MoveFocusLensToDistance (sub_FFA0D41C))
@@ -33,7 +30,7 @@
 // ROM:FF950778   MOVNE   R1, #0x90
 // ROM:FF95077C   ADRNE   R0, aFocuslenscontr @ "FocusLensController.c"
 // ROM:FF950780   BLNE    assert
-DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4
+//DEF(focus_busy,                         0x7EE8) //0xB274 + 8 or 7fd4
 
 // Same as previous variable, unusable. Originally found it by peeking through
 // memory and it looked suitable at first. This address along with 0xBE64
@@ -46,7 +43,7 @@
 // ROM:FF982314   MOV     R0, #0
 // ROM:FF982318   STRB    R0, [R1]
 // ROM:FF98231C   STRB    R0, [R1,#1]
-DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1
+//DEF(canon_shoot_menu_active,            0xC05D) // 0xC05C + 1
 
 // Found in sub_FF9754AC. Again, ewavr found this one, he did supply one pointer
 // &#39;search for LDR R12, =0x3007&#39;. I guess this is the right one then <img src="./images/smilies/smile.gif" alt=":)" title="Smile" />
@@ -54,6 +51,7 @@
 // ROM:FF9754B0 008                 LDR     R1, =0xBD60
 // ROM:FF9754B4 008                 LDR     R12, =0x3007
 // ROM:FF9754B8 008                 LDR     R2, [R1,#0xCC]
-DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC
-DEF(movie_status,                       0x5868 + 0x38)
+//DEF(recreview_hold,                     0x94C8) // 0xBD60 + 0xCC
+//DEF(movie_status,                       0x5868 + 0x38)
 DEF(mode_magic,                         0x58D4)
+DEF(enabled_refresh_physical_screen,    0xa460 + 0x30) // found in sub_ffd7a308
Index: platform/a1000/sub/100b/lib.c
===================================================================
--- platform/a1000/sub/100b/lib.c   (revision 957)
+++ platform/a1000/sub/100b/lib.c   (working copy)
@@ -39,7 +39,7 @@
 
 void *vid_get_viewport_fb_d()
 {
-   return (void*)(*(int*)0x4F30); // 0x4EE8 + 0x50
+   return (void*)(*(int*)0x4F3C);
 }
 
 long vid_get_bitmap_width()
Erstellt in 0.022 Sekunden, mit GeSHi 1.0.8.9
Dateianhänge
CHDK-DE-a1000-100b-1.1.0.zip
(206.59 KiB) 397-mal heruntergeladen
srsa.4c
CHDK-Einsteiger
CHDK-Einsteiger
 
Beiträge: 49
Registriert: 15.01.2012, 16:31
Kamera(s): a410, ...

Re: A1000 - Problem bei Start, Blende

Beitragvon Nando » 24.02.2012, 22:07

Hallo srsa.4,
es funktioniert, vielen Dank! :)

Das OSD sieht jetzt gut aus (Menü, Anzeigewerte, Histogramm).
Es lässt sich durch die Menüs von CHDK navigieren, ohne dass sich das alte und neue OSD überlagern.

Sollte mir noch etwas auffallen, schreibe ich es.

bis dann,
Nando
Canon PowerShot SX200 IS 100D (seit Mitte Nov 2009), Canon PowerShot A1000 IS 100b
Nando
CHDK-Begeisterter
CHDK-Begeisterter
 
Beiträge: 257
Registriert: 11.11.2009, 15:55

Re: A1000 - Problem bei Start, Blende

Beitragvon srsa.4c » 26.02.2012, 02:13

Hallo Nando,

danke für deine Meldung. Ich habe den Patch in das internationale Forum geschickt. http://chdk.setepontos.com/index.php?to ... 5#msg81931


MfG.
srsa.4c
CHDK-Einsteiger
CHDK-Einsteiger
 
Beiträge: 49
Registriert: 15.01.2012, 16:31
Kamera(s): a410, ...


Zurück zu Code-Ecke

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 14 Gäste

cron