SX430 - This will be my first porting Attempt - page 4 - DryOS Development - CHDK Forum supplierdeeply

SX430 - This will be my first porting Attempt

  • 202 Replies
  • 234957 Views
Re: SX430 - This will be my first porting Attempt
« Reply #30 on: 06 / November / 2018, 01:57:21 »
Advertisements
i wanted to process all the steps in my attempt to port... since BlackHole so graciously provided the source i skipped the essential steps it seems

if successfull i plan to document the steps from a layman's perspective in creating a port - also that would help me redo the efforts for IXUS285 lying with my SX430  :)

i will brief what i did ( i will create an ordered todo later)

i downloaded the following files
Code: [Select]
26/10/18  12:46 AM           405,653 CHDK-Compiler-GUI_r288.zip
26/10/18  12:46 AM           384,846 7za920.zip
26/10/18  12:46 AM        46,825,100 gcc493-host481.7z
26/10/18  01:10 AM         3,084,637 capstone-3.0.5.zip
26/10/18  01:11 AM         2,491,156 capstone-3.0.5-win64.zip
26/10/18  01:13 AM             8,184 cccapstone-master.zip
26/10/18  01:14 AM           217,223 capstone-mingw-chdk-3.0.4-patched-2016-01-11_1.zip
26/10/18  01:29 AM            48,616 CanonFW_A-Series_Signatures_for_IDA.rar
26/10/18  01:33 AM        49,987,162 idafree70_windows.exe
03/11/18  12:30 PM            85,794 sx430is_100b_src.rar
04/11/18  11:42 PM            90,792 sx430is_100b_src-trunk5113.zip
06/11/18  12:04 PM                 0 a.txt

i extracted them in the folder D:\CHDK
(i think capstone 3.0.5 and 3.0.5 win64 - one of them is redundant but .... i will check this when i am doing a proper documentation
( i have absolutely no experience of documenatation or of documenting my code - i know it is bad - but i have been the only one looking at my code ever - so i may sound like a noob sometimes )

Code: [Select]
26/10/18  12:46 AM    <DIR>          Downloads
07/05/16  12:20 PM           424,960 CHDK-Compiler-GUI.exe
26/10/18  01:05 AM    <DIR>          archives
26/10/18  01:05 AM    <DIR>          trunk
26/10/18  01:05 AM    <DIR>          release
06/11/18  12:06 PM               660 CHDK-Compiler-GUI.ini
15/01/16  05:05 AM    <DIR>          gcc493
18/11/10  09:08 AM            91,020 7-zip.chm
18/11/10  09:27 AM           587,776 7za.exe
13/03/10  01:06 AM             1,162 license.txt
18/11/10  09:09 AM             1,254 readme.txt
18/07/18  09:17 AM    <DIR>          capstone-3.0.5
26/10/18  01:11 AM    <DIR>          capstone-3.0.5-win64
11/01/16  10:49 PM    <DIR>          capstone-mingw-chdk-3.0.4
04/11/18  09:55 PM    <DIR>          user-source
04/11/18  10:00 PM    <DIR>          ZMisc
20/01/09  07:16 PM           239,817 CardTricks144.exe
06/11/18  12:06 PM               169 CardTricks144.ini
06/11/18  11:54 AM    <DIR>          ZFirmWare

i have also installed the IDAFree70 windows and have the contents of the firmware dumps and the contents of CanonFW_A-Series_Signatures_for_IDA in a folder ZFirmWare as below

Code: [Select]
06/11/18  11:54 AM        16,711,676 PRIMARY_sx430_100b.bin
21/10/07  04:34 PM    <DIR>          idc
21/10/07  04:34 PM    <DIR>          sig
i am assuming the idc files and sig files together will tell IDA how to interpret the firmware dump and allow it to search for the signatures
but i have never used ida (well once wayyyy back for cracking a small vb6 ocx file  :) ) so i do not know what to do with those files

is there a guide online for the signature generator ?

Re: SX430 - This will be my first porting Attempt
« Reply #31 on: 06 / November / 2018, 02:21:39 »
but i have never used ida (well once wayyyy back for cracking a small vb6 ocx file  :) ) so i do not know what to do with those files
AFAIK nobody uses IDA for CHDK porting anymore. The commercial version is quite expensive and IIRC the free version does not support the ARM processors used in Canon PowerShot cameras. If you search online long enough you might find a bootleg pirated version but that's not recommended.  So the wikia instructions about using IDA are somewhat misleading.

CHDK includes a disassembler in the full build package. It's command line driven so I have a bunch of batch scripts I use to make my life easier when using it.  It will work with the address info specific to the port and its output can be used directly in the port's assembly language files. There was an earlier GUI based version but it's no longer supported.

In addition, srsa_4c has some GNU disassembly stuff that he has documented on the wikia.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline blackhole

  • *****
  • 942
  • A590IS 101b
    • Planetary astrophotography
Re: SX430 - This will be my first porting Attempt
« Reply #32 on: 06 / November / 2018, 02:24:32 »
@ntstatic
Can you try this build. Just to eliminate the existence of any difference in content.
You can also try the "Firmware update method" to load chdk.

EDIT: link removed
« Last Edit: 06 / November / 2018, 02:42:58 by blackhole »

Re: SX430 - This will be my first porting Attempt
« Reply #33 on: 06 / November / 2018, 02:29:11 »
but i have never used ida (well once wayyyy back for cracking a small vb6 ocx file  :) ) so i do not know what to do with those files
AFAIK nobody uses IDA for CHDK porting anymore. The commercial version is quite expensive and IIRC the free version does not support the ARM processors used in Canon PowerShot cameras. If you search online long enough you might find a bootleg pirated version but that's not recommended.  So the wikia instructions about using IDA are somewhat misleading.

CHDK includes a disassembler in the full build package. It's command line driven so I have a bunch of batch scripts I use to make my life easier when using it.  It will work with the address info specific to the port and its output can be used directly in the port's assembly language files. There was an earlier GUI based version but it's no longer supported.

In addition, srsa_4c has some GNU disassembly stuff that he has documented on the wikia.
OMG... thank you for saving me all the unnecessary efforts .... i will search for the command line format for using the disassembler .... or if you remember it could you post the address about the info ....
 
thanks once again


just as a side note it seems @TimPeTow was referred to this thread as a guide as he was attempting a port for the SX730
so for anyone needing quick access to the files i have downloaded i have uploaded them to a google drive and here is the link

my D:\CHDK folder


Re: SX430 - This will be my first porting Attempt
« Reply #34 on: 06 / November / 2018, 02:29:47 »
@ntstatic
Can you try this build. Just to eliminate the existence of any difference in content.
You can also try the "Firmware update method" to load chdk.
https://drive.google.com/open?id=1LhgsDdNigqK2idsqlg_CJst8b8RIE_8Z

downloading....

Re: SX430 - This will be my first porting Attempt
« Reply #35 on: 06 / November / 2018, 02:35:55 »
@ntstatic
Can you try this build. Just to eliminate the existence of any difference in content.
You can also try the "Firmware update method" to load chdk.
https://drive.google.com/open?id=1LhgsDdNigqK2idsqlg_CJst8b8RIE_8Z

Camera Freezes same way ... battery needs to be removed

tried both methods
firmware update method - as soon as i press OK the screen goes blank and the camera freezes - battery needs to be removed
bootable card method - Camera freezes immediately - battery needs to be removed

*

Offline blackhole

  • *****
  • 942
  • A590IS 101b
    • Planetary astrophotography
Re: SX430 - This will be my first porting Attempt
« Reply #36 on: 06 / November / 2018, 02:40:49 »
OK thanks.

*

Offline srsa_4c

  • ******
  • 4451
Re: SX430 - This will be my first porting Attempt
« Reply #37 on: 06 / November / 2018, 11:02:38 »
In case you haven't already, try disabling the compatibility check.
Either tick "DISABLE_COMPAT_CHECK" on the compiler GUI or comment out
BL      check_compat
in loader/sx430is/entry.S.

Have you tried lighting up an LED in the loader somewhere?


*

Offline blackhole

  • *****
  • 942
  • A590IS 101b
    • Planetary astrophotography
Re: SX430 - This will be my first porting Attempt
« Reply #38 on: 07 / November / 2018, 04:26:30 »
Here is a blinker for the AF light. AF led is on the front side of the camera.
Compatibility check is disabled too.

Re: SX430 - This will be my first porting Attempt
« Reply #39 on: 07 / November / 2018, 11:25:49 »
Here is a blinker for the AF light. AF led is on the front side of the camera.
Compatibility check is disabled too.

the AF LED ...
turns on
turns off

and then the camera hangs....

so thats ok

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal