Any suggestions on improving these instructions welcome.
Awesome.
Only one... Put them on the wiki somewhere http://chdk.wikia.com/wiki/CHDK
Camera RAM size can also be determined by looking at the CP15 MPU/cache setup instructions at the very start of the firmware.
Do you know of any good documentation on this? It's one area I haven't much knowledge of.
ROM:FF810040 33 00 A0 E3 MOV R0, #0x33ROM:FF810044 12 0F 06 EE MCR p15, 0, R0,c6,c2ROM:FF810048 CD 01 A0 E3 MOV R0, #0x40000033ROM:FF81004C 13 0F 06 EE MCR p15, 0, R0,c6,c3
Addresses were successfully tested on the bolded firmware versions, by compilingwith OPT_EXMEM_MALLOC & OPT_CHDK_IN_EXMEM selected, on vanilla CHDK trunk1127, except s95 which was tested on vanilla CHDK-DE trunk608.Depending on original memory these cams now show 1.6 - 1.8 MB free memory on a 'clean' card.
Code: [Select]ROM:FF810040 33 00 A0 E3 MOV R0, #0x33ROM:FF810044 12 0F 06 EE MCR p15, 0, R0,c6,c2ROM:FF810048 CD 01 A0 E3 MOV R0, #0x40000033ROM:FF81004C 13 0F 06 EE MCR p15, 0, R0,c6,c3Sets up the cached and uncached regions. Lowest bit is enable, next 5 are region size. So 0x32 => 11001 => my D10 has 64 MB according to Table 4-2
0x3FFFFFF MAXRAMADDR+0x0000001-0x02F7600 EXMEM_HEAP_SKIP-0x0400000 EXMEM_BUFFER_SIZE-0x0000020========= 0x39089E0
@philmoz: Thank you very much for your great instructions. Only point 7 OPT_CHDK_IN_EXMEM doesn't work and crashes the cam (I have to put out the batteries).I think the problem is, that the sx20 only can start chdk while booting from SD-Card. But i am not sure.
On the G12 and SX30 OPT_CHDK_IN_EXMEM works for both manual boot (PS.FI2) and auto boot (DISKBOOT.BIN).
Thanks a lot. I've forgotten to change the boot.c file.Now its work with OPT_CHDK_IN_EXMEM.If you want to, you can write this info in your 7-point-instructions. ;-)
Started by Microfunguy General Discussion and Assistance
Started by mp9_sit Script Writing
Started by Barney Fife Completed and Working Scripts
Started by Lebeau General Discussion and Assistance
Started by CanonBlue General Help and Assistance on using CHDK stable releases