CHDK loads "slowly" - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

CHDK loads "slowly"

  • 13 Replies
  • 2986 Views
*

Offline srsa_4c

  • ******
  • 4426
Re: CHDK loads "slowly"
« Reply #10 on: 08 / March / 2021, 16:48:34 »
Advertisements
Try this. At least two ports from same generation place two task hooks. I checked a470 and this ixus960, 0x1934 appears to be used similarly in both firmwares.
Code: [Select]
Index: platform/ixus960_sd950/sub/100d/boot.c
===================================================================
--- platform/ixus960_sd950/sub/100d/boot.c (revision 5780)
+++ platform/ixus960_sd950/sub/100d/boot.c (working copy)
@@ -64,6 +64,7 @@
 void __attribute__((naked,noinline)) sub_FF8101A4_my() {
     //http://chdk.setepontos.com/index.php/topic,4194.0.html
     *(int*)0x1930=(int)taskCreateHook;
+    *(int*)0x1934=(int)taskCreateHook;
 
     // replacement of sub_FF844050 for correct power-on.
     //(short press = playback mode, long press = record mode)

*

Offline Caefix

  • *****
  • 610
  • Sorry, busy deleting test shots...
Re: CHDK loads "slowly"
« Reply #11 on: 09 / March / 2021, 10:40:32 »
 8) diskboot.bin is fast with that line.

Edit: Maybe Ix85, 90 & 970 need the same?
« Last Edit: 09 / March / 2021, 12:12:33 by Caefix »
All lifetime is a loan from eternity.

*

Offline srsa_4c

  • ******
  • 4426
Re: CHDK loads "slowly"
« Reply #12 on: 09 / March / 2021, 12:25:03 »
8) diskboot.bin is fast with that line.
Thanks.
Quote
Maybe Ix85, 90 & 970 need the same?
Do you have any of those? If not, maybe we should place a note somewhere.

*

Offline Caefix

  • *****
  • 610
  • Sorry, busy deleting test shots...
Re: CHDK loads "slowly"
« Reply #13 on: 09 / March / 2021, 12:49:14 »
 :) Somewhere is a Ix970 (only), maybe a ball for @koshy?
Code: [Select]
   *(int*)0x1930=(int)taskCreateHook;
   *(int*)0x1934=(int)taskCreateHook;
are paired lines in a lot of ports. Probably the 2nd is just missing.

Edit: Found Ix970 & got ix90, both booting fast without modification.  8)
Ix80 left to test...(?)
« Last Edit: 24 / March / 2021, 12:38:07 by Caefix »
All lifetime is a loan from eternity.


 

Related Topics