ROM Corruption message - General Discussion and Assistance - CHDK Forum supplierdeeply

ROM Corruption message

  • 12 Replies
  • 428 Views
ROM Corruption message
« on: 14 / November / 2021, 03:23:01 »
Advertisements
Hi,
I was trying to load up CHDK on my A530 I haven't used in years, and I got a message about ROM corruption I have a PRIMARY.BIN file and UpgradeLog.txt on the card now, I've attached the upgrade log, I put the PRIMARY.BIN file here if it's needed: http://entropy.tmok.com/~gauze/PRIMARY.BIN

Any help is appreciated. Thanks.

*

Online reyalp

  • ******
  • 13454
Re: ROM Corruption message
« Reply #1 on: 14 / November / 2021, 14:21:19 »
Hi,
I was trying to load up CHDK on my A530 I haven't used in years, and I got a message about ROM corruption I have a PRIMARY.BIN file and UpgradeLog.txt on the card now, I've attached the upgrade log, I put the PRIMARY.BIN file here if it's needed: http://entropy.tmok.com/~gauze/PRIMARY.BIN
Thanks for reporting. Does the camera show any obvious problems?

UpgradeLog.txt is produced by the normal firmware when you load a FIR file, so not related to the (reported) corruption.

Comparing your dump with our reference dump, the first difference is at ffc26c00. This address is inside the main code of ROM, so it shouldn't vary between firmware.

Oddly, the reference dump contains a long run of zeros starting at this address up to ffc27000, while yours does not.

There are additional runs of zeros, with the next one at ffc2cc00 up to ffc2d000

From a quick look at the disassembly of the reference dump at those location, it's virtually certain that the reference dump is corrupt :o

Your firmware appears to have valid code at those locations, so is probably OK.

I checked a fresh download from the archive to confirm the corruption is not something that happened on my system.

ping @koshy and/or @waterwingz I think you have a530s, can you check whether the firmware CRC check reports corruption? no longer needed, thx blackhole.
 
Requires CHDK 1.5.1 or later, if the check doesn't run on boot, go to tools->checksum ROM
Posting a dump would help confirm this diagnosis.

edit:
building stubs with gauze's dump produces identical results to what's currently checked in, so I guess we got "lucky" that corruption in the dump isn't anywhere we use directly.
« Last Edit: 14 / November / 2021, 18:33:18 by reyalp »
Don't forget what the H stands for.

*

Offline blackhole

  • *****
  • 844
  • A590IS 101b
    • Planetary astrophotography
Re: ROM Corruption message
« Reply #2 on: 14 / November / 2021, 15:55:05 »
After several years I turned on my a530 and it also seems to have faulty firmware.  :D I don't see any problems with the camera.

EDIT: link removed
« Last Edit: 14 / November / 2021, 16:41:01 by blackhole »

*

Online reyalp

  • ******
  • 13454
Re: ROM Corruption message
« Reply #3 on: 14 / November / 2021, 16:13:17 »
After several years I turned on my a530 and it also seems to have faulty firmware.  :D I don't see any problems with the camera.
Thanks for confirming.
Quote
ROM dump is on this link: https://www.4shared.com/s/frd0gYjSPiq
Maybe I'm missing something, but I couldn't find any link on that page that isn't a ****ware ad or a dodgy login prompt
Don't forget what the H stands for.


*

Offline blackhole

  • *****
  • 844
  • A590IS 101b
    • Planetary astrophotography
Re: ROM Corruption message
« Reply #4 on: 14 / November / 2021, 16:28:52 »
Maybe I'm missing something, but I couldn't find any link on that page that isn't a ****ware ad or a dodgy login prompt
Maybe you need to have an account on 4shared to download, it doesn't matter, here's a link to google drive: https://drive.google.com/file/d/1HWNZ8aApfai4sU-jVncSzzgKZt8rld1V/view?usp=sharing

*

Online reyalp

  • ******
  • 13454
Re: ROM Corruption message
« Reply #5 on: 14 / November / 2021, 18:27:01 »
Maybe you need to have an account on 4shared to download, it doesn't matter, here's a link to google drive: https://drive.google.com/file/d/1HWNZ8aApfai4sU-jVncSzzgKZt8rld1V/view?usp=sharing
Thanks. The first difference between your dump and the one from gauze is at fffe0060, which is in the adjustment data area (string "Ver.002.004" at fffe0000).

IMO, this confirms the old one is bad, and both of yours are almost certainly good. I've updated the CRC in the autobuilds, will be fixed in r6022 and later.

@fe50 when you have a chance, please replace the a530 dump in the archive with gauze or blackhole's file.
Don't forget what the H stands for.

*

Offline koshy

  • *****
  • 1065
Re: ROM Corruption message
« Reply #6 on: 14 / November / 2021, 18:42:09 »
ping @koshy and/or @waterwingz I think you have a530s, can you check whether the firmware CRC check reports corruption?
Nice reading from you reyalp ;-), I got the camera off the shelf, it too does report a possible FW corruption. Dump enclosed.
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 koshy

  • *****
  • 1065
Re: ROM Corruption message
« Reply #7 on: 14 / November / 2021, 18:45:39 »
@reyalp I see what's been happening since I dug the camera out. Good. In respect to the Flash memory decay and all I have been wanting to re-dump all my cameras for reference one of these days (which has become one of these years, I guess, but 2022 for sure). That should spot any other faulty CRCs in case I happen to have still good FWs...
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...)


*

Online reyalp

  • ******
  • 13454
Re: ROM Corruption message
« Reply #8 on: 14 / November / 2021, 19:17:27 »
Nice reading from you reyalp ;-), I got the camera off the shelf, it too does report a possible FW corruption. Dump enclosed.
Thanks. The first difference between yours and blackhole and gauze's dumps is at the same location in the adjustment area, so it appears fine.

In respect to the Flash memory decay and all I have been wanting to re-dump all my cameras for reference one of these days (which has become one of these years, I guess, but 2022 for sure). That should spot any other faulty CRCs in case I happen to have still good FWs...
That would be useful. I doubt corrupted dumps like this are common, but there's definitely potential in the ones from the early days of LED blinking and diskboot dumpers.

If you find more damaged ones in your collection, it could also tell us something about the frequency of bit rot.
Don't forget what the H stands for.

Re: ROM Corruption message
« Reply #9 on: 14 / November / 2021, 19:45:21 »
FWIW, my only really old camera is an A560.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics