I find CHDK extremely interesting. However there is much of it I don't understand.
the fundamental question is:
- how does CHDK get loaded and started? can anyone please explain this?
I put DISKBOOT.BIN and PS.FIR in the root directory of my SD card.
Then this causes a new menu function appear ("update firmware" or similar)
- can anyone explain what is happening here?
I invoke the menu function, and the camera restarts with CHDK running -
how does this happen?
What is the meaning and function of the 2 files DISKBOOT.BIN and PS.FIR?
Why are 2 required?
If I make the SD card bootable, CHDK can run automatically on power-on -
how does this work?
The instructions say to lock the SD card, with the little switch - why is
this necessary?
What is the first thing that gets run on startup?
(I am using a PS A540).
In src/core/entry.S: is some assmbler code, marked '.section .entry'
which jumps to startup. This looks like it gets run pretty early.
and in src/loader/a540/entry.S is similar code, it jumps to my_restart
my_restart basically does a copy and restart operation.
Any info much appreciated!