SX400IS porting thread - page 7 - DryOS Development - CHDK Forum  

SX400IS porting thread

  • 64 Replies
  • 67139 Views
Re: SX400IS porting thread
« Reply #60 on: 11 / November / 2018, 21:52:01 »
Advertisements
Great, thanks a ton

*

Offline srsa_4c

  • ******
  • 4451
Re: SX400IS porting thread
« Reply #61 on: 15 / April / 2020, 12:22:46 »
I sent you a new version, please check the power up behavior.
Thank you, the power up behavior works as you described.
Unless I'm horribly wrong, the power up mode check is not done correctly in this port.
The following patch is only for trial purposes (as this is a code_gen port).
Code: [Select]
Index: platform/sx400is/sub/100b/boot.c
===================================================================
--- platform/sx400is/sub/100b/boot.c (revision 5462)
+++ platform/sx400is/sub/100b/boot.c (working copy)
@@ -210,7 +210,7 @@
     // Similar to ixus160: http://chdk.setepontos.com/index.php?topic=12321.msg123724#msg123724
     // look at power-on switch sub_FF86AE74 (FF8687CC)
     // value and pointer from sub_FF86A770
-    *(int*)(0x2978+0x4) = (*(int*)0xC022F484)&0x20000 ? 0x400000 : 0x200000;
+    *(int*)(0x2978+0x4) = (*(int*)0xC022F48C)&0x100000 ? 0x400000 : 0x200000;
 
 asm volatile (
 "    LDR     R0, =0xFF82043C \n"
If someone is willing to try, a test build can be provided.

*

Offline reyalp

  • ******
  • 14118
Re: SX400IS porting thread
« Reply #62 on: 12 / November / 2020, 00:59:11 »
ping @koshy

Test build attached. Behavior should be the usual short press on power button or play button, start in playback mode. Long press on power button, start in rec mode.
Don't forget what the H stands for.

*

Offline koshy

  • *****
  • 1096
Re: SX400IS porting thread
« Reply #63 on: 12 / November / 2020, 08:43:41 »
Test build attached. Behavior should be the usual short press on power button or play button, start in playback mode. Long press on power button, start in rec mode.
Confirmed, that's what it does.
Koshy had a little ELPH which wasn't white as snow but everywhere that Koshy went the ELPH was sure to go. (actually an SD, but that detail ruins the rhyme...)


*

Offline reyalp

  • ******
  • 14118
Re: SX400IS porting thread
« Reply #64 on: 13 / November / 2020, 00:26:12 »
Confirmed, that's what it does.
Thanks. Trunk updated and alpha tag removed.
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal