arm-none-eabi-gcc --versionarm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]Copyright (C) 2019 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I picked up a newer 32GB card and it should arrive tomorrow so I can test that as well with the same steps. Still, this seems like it should work with my 8GB card.
One strange thing I just noticed is that, at random times, the "BOOTDISK" string seems to be replaced with spaces at the 0x1E0 location and moved to the 0x05C location. I have no idea how this is happening because I lock the SD card as soon as I remove it from my PC before I insert it into the camera.
I can't figure out how to reproduce this behavior. Anyways, I have confirmed that the "BOOTDISK" string is in the 0x1E0 location before and after booting my camera so it seems like there is something else I am missing here. If I were to try another incompatible firmware (Say a G1X or SX700HS firmware), would I be able to verify that the SD card is bootable by crashing the camera?
Regarding the arm compiler version, it looks like I am running 9.2.1 in my WSL distro:Code: [Select]arm-none-eabi-gcc --versionarm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
arm-none-eabi-gcc --versionarm-none-eabi-gcc (15:9-2019-q4-0ubuntu1) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
One strange thing I just noticed is that, at random times, the "BOOTDISK" string seems to be replaced with spaces at the 0x1E0 location and moved to the 0x05C location.
After our discussion on IRC I tried following the SD card preparation procedure a few more times from scratch and I was still unable to get any response from the camera on boot. I picked up a newer 32GB card and it should arrive tomorrow so I can test that as well with the same steps. Still, this seems like it should work with my 8GB card.
Also, on a side note, I am currently tracking my code revisions using a local git repo. I just wanted a simple way to view all my changes in a historical tree. I used to use SVN but it has been awhile so I just used git for now since it's familiar. I don't have a remote setup so this is all just local (I do have local backups). However, I am curious what the next step is to get this code in the correct repository and branch.
SVN_REV="5729"PATCH_DATE="$(date "+%Y-%m-%d")"PATCH_ZIP="CHDK-g1x2-120a_svn-${SVN_REV}_${PATCH_DATE}.patch.zip"rm *.patchgit format-patch -p master..HEADzip "${PATCH_ZIP}" *.patchrm *.patch
rm *.patchunzip CHDK-g1x2-120a_svn-5729_2021-02-16.patch.zipfor p in *.patch; do patch -p1 < "${p}"donerm *.patchrm .gitignore
Here is the most up-to-date patch files for the code.
Regarding the current status, I am a bit stuck on what to do next. I suspect that I need to use Ghidra a bit more to search for the correct address values to use that are currently NULL_SUBs or FAKEDEFs. I may get around to digging through the decompiled original FW a bit more this week to try to locate some of these addresses
Started by alphalx DSLR Hack development
Started by netsky1 Firmware Dumping
Started by macielbassp General Help and Assistance on using CHDK stable releases
Started by c_joerg Firmware Dumping
Started by Dave92F1 General Help and Assistance on using CHDK stable releases