what I also tried was to comment following code in entry.S file n loader/ixus200_sd980
B my_restart
just to see whether its loading or restarting camera or not.. but I dont see any changes happening..
Not sure what you expected to happen, but if you do that, it will just wander off into what ever garbage is next in memory, which will also cause the camera to crash.
I would suggest turning on an LED instead, followed by an infinite loop. If the LED doesn't light, then there's something wrong with your build process. The earliest point you can do this is in loader/entry.S
To turn the LED on, you must store 0x46 to that address. Use 0x44 to turn it off.
Some things that can cause crash on startup
- incorrectly encoded diskboot.bin ( only if you are using diskboot, not Firm update. PS.FI2 will be rejected if it is not the right encoding).
- incorrectly configured toolchain. Using one of the pre-built toolchains linked from the wiki will avoid this.
- binary built for the wrong firmware version or camera. However, this should happen quite late, so blinking an LED early in the process should still work.
The version listed in the firm update menu is irrelevant.