Another confirmed case of firmware bit rot - page 3 - General Discussion and Assistance - CHDK Forum supplierdeeply

Another confirmed case of firmware bit rot

  • 22 Replies
  • 1007 Views
*

Online reyalp

  • ******
  • 12649
Re: Another confirmed case of firmware bit rot
« Reply #20 on: 02 / July / 2020, 00:44:11 »
Advertisements
Updated patch
* Moved the important messages to lang strings
* Add a dummy firmware_crc_desc to core/firmware_crc_data.c, which can be used by defining FIRMWARE_CRC_DISABLED in platform / sub / firmware_crc_data.h. This allows building in cases where the real data isn't available. I didn't make it an OPT_ since it's meant to be a temporary, port specific workaround. The check will still be run, it will just check 0 blocks.

I think this is pretty much done, so I'll plan to check it in if there aren't objections. I successfully did a batch build.
Don't forget what the H stands for.

*

Online reyalp

  • ******
  • 12649
Re: Another confirmed case of firmware bit rot
« Reply #21 on: 03 / July / 2020, 00:27:57 »
Checked in, trunk 5535.

If you update, the check should run on the first boot, since even though it's not a clean install, the config value is new and starts with the default value.

I would obviously be interested to know if it breaks anything, or if anyone sees checksum failures.

For developers:
The rebuild-firmware-crc rule should only need to be run if a new port is added or additional ranges are added to the checks. If you run batch-rebuild-firmware-crc, you should watch out (check svn diff) for subs added or removed due to not having the same set of dumps that I had.

The script requires python3. It shouldn't require any nonstandard packages or have other unusual requirements. If you don't have python available (it could be inconvenient on windows) and need to build a new port, you can create a firmware_crc_data.h with just #define FIRMWARE_CRC_DISABLED 1. You should not copy a firmware_crc_data.h from another port.
Don't forget what the H stands for.

*

Online reyalp

  • ******
  • 12649
Re: Another confirmed case of firmware bit rot
« Reply #22 on: 03 / July / 2020, 21:00:38 »
I added a page to the wiki https://chdk.fandom.com/wiki/Canon_Firmware_Corruption mainly to be able to link it from the FAQ and give people a better chance of finding useful results in search.
Don't forget what the H stands for.

 

Related Topics