Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script) - page 4 - General Discussion and Assistance - CHDK Forum

Clean Canon overlays (G7X II, G5X; EOS M10, M3, also M5, M6, M100 via script)

  • 189 Replies
  • 141214 Views
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #30 on: 28 / September / 2019, 20:35:27 »
Advertisements


This looks quite useful, so I added this as an action in CHIMP.
I know that I'm nagging, but being able to load unofficial build would be useful too.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #31 on: 29 / September / 2019, 06:28:47 »
I know that I'm nagging, but being able to load unofficial build would be useful too.

I'll see if I can fit that in 0.9.6.

In the meantime, I updated the overlay branch and binary.

Edit: Added screenshots.
« Last Edit: 30 / September / 2019, 10:23:26 by dmitrys »
Author of CHIMP, Canon Hack Installation and Management Platform

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #32 on: 07 / October / 2019, 10:36:48 »
Side note: the scripts posted here will need an update in future as Canon plans to release firmware updates to all cams mentioned here.

This makes me wonder. The script as produced by CHIMP ATM has this simplified check:

Code: [Select]
public sub check_compat()
    if Peek16(0xe1f20270) = {platform_id} then
        check_compat = 1
    else
        check_compat = 0
    end if
end sub

AFAIK the PID address is constant, but the revision addresses change across platforms (and revisions???). Is there any way to glean those from CHDK code? CHDK itself doesn't seem to validate the revision when it starts.
Author of CHIMP, Canon Hack Installation and Management Platform

*

Offline srsa_4c

  • ******
  • 4451
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #33 on: 07 / October / 2019, 12:58:31 »
AFAIK the PID address is constant,
It is, for a range of models.
Quote
Is there any way to glean those from CHDK code?
Not really as the script is for unported cameras. There is an event procedure that can get the firmware version: GetInternalFirmwareVersion . It can be added to the script if necessary.
Quote
CHDK itself doesn't seem to validate the revision when it starts.
For most ports, it does. See loader/generic/*


Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #34 on: 08 / October / 2019, 10:28:55 »
For most ports, it does. See loader/generic/*

Ah, didn't see that, thanks!

Quote from: compat_table.h
// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!

What is it generated from? I only found a couple bin_comp_fix.h files under platforms/*/sub/

Quote
There is an event procedure that can get the firmware version: GetInternalFirmwareVersion . It can be added to the script if necessary.

If it works on all platforms, that would be perfect (I'm looking to support m3 and m10 as well).
Author of CHIMP, Canon Hack Installation and Management Platform

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #35 on: 08 / October / 2019, 12:27:43 »
Quote from: compat_table.h
// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
What is it generated from? I only found a couple bin_comp_fix.h files under platforms/*/sub/
compatbuilder.sh in the tools subdirectory?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #36 on: 09 / October / 2019, 13:35:06 »
@waterwingz Thank you!

At long last, I have all the pieces of the puzzle, so the final check_compat for m100 becomes:

Code: [Select]
public sub check_compat()
    if Peek16(0xe1f20270) = 0x32d1 then
        check_compat = 1
    else
        check_compat = 0
    end if
    if strcmp("1.00A", 0xe047b5b3) <> 0 then
        check_compat = 0
    end if
end sub
Author of CHIMP, Canon Hack Installation and Management Platform

Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #37 on: 09 / October / 2019, 14:17:16 »
Here's the updated build.

In addition to the fixed compatibility check, it features a list of supported revisions if the current revision is unsupported (see screenshot).

Edit: Removed, newer version below.
« Last Edit: 12 / October / 2019, 08:28:46 by dmitrys »
Author of CHIMP, Canon Hack Installation and Management Platform


Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #38 on: 11 / October / 2019, 07:05:55 »
Now, I'm wondering if the same script would work for other cameras.

The attached screenshot (not the actual CHIMP beta) contains a partial list.
Author of CHIMP, Canon Hack Installation and Management Platform

*

Offline srsa_4c

  • ******
  • 4451
Re: Clean Canon overlays (M10, M3, also M6, M100 via script)
« Reply #39 on: 11 / October / 2019, 12:11:10 »
Now, I'm wondering if the same script would work for other cameras.
Two things.
1) The method used in the script is only usable on DIGIC 6 and 7 cameras.
2) There aren't too many cameras where the HDMI is enabled in rec mode. All of them are DIGIC 6 or 7.

 

Related Topics