Hi, I am trying to work out the missing functions in the stubs_entry_2.S on the
SX10 (1.01A).
I'm starting with Mount_FileSystem by looking for references to WriteSDCard (0xFF92A9A4) because in cameras for which Mount_FileSystem has been found, the routine contains a reference to WriteSDCard (.e.g.
https://chdk.setepontos.com/d/2903/2).
I've disassembled the source code and the only 2 references to the WriteSDCard address I've found are listed below and the routines do not resemble the Mount_FileSystem routine in the linked post above. Could anyone give me any hints about what to look for and perhaps what the second code listing does? Also, what is "mounter.c"? Is this something that might mount the file system?
Many thanks.
[tt]
ROM:FFC4A5C8 sub_FFC4A5C8 ; CODE XREF: sub_FFC4AB08+Cp
ROM:FFC4A5C8 ; sub_FFC4AC18+28p
ROM:FFC4A5C8 LDR R1, =0x2A70
ROM:FFC4A5CC LDR R1, [R1,#0x10]
ROM:FFC4A5D0 CMP R1, #0
ROM:FFC4A5D4 CMPEQ R0, #0
ROM:FFC4A5D8 BXNE LR
ROM:FFC4A5DC MOV R1, #0
ROM:FFC4A5E0 LDR R0, =0x1A784
ROM:FFC4A5E4 STR R1, [R0,#0x34]
ROM:FFC4A5E8 STR R1, [R0,#0x38]
ROM:FFC4A5EC MOV R1, #3
ROM:FFC4A5F0 STR R1, [R0,#0x3C]
ROM:FFC4A5F4 LDR R1, =0xFF92A7C4
ROM:FFC4A5F8 STR R1, [R0,#0x4C]
ROM:FFC4A5FC LDR R1, =0xFF92A9A4
ROM:FFC4A600 STR R1, [R0,#0x50]
ROM:FFC4A604 BX LR
ROM:FFC4A604 ; End of function sub_FFC4A5C8
[/tt]
and
[tt]
ROM:FFC4A698 ; -- -------------------------------------------------------------------------
ROM:FFC4A69C dword_FFC4A69C DCD 0x2A70 ; DATA XREF: sub_FFC4A138+1Cr
ROM:FFC4A69C ; sub_FFC4A1D0+8r ...
ROM:FFC4A6A0 dword_FFC4A6A0 DCD 0x10B4 ; DATA XREF: sub_FFC4A138+30r
ROM:FFC4A6A4 dword_FFC4A6A4 DCD 0x1A784 ; DATA XREF: sub_FFC4A18C+10r
ROM:FFC4A6A4 ; sub_FFC4A1D0+68r ...
ROM:FFC4A6A8 dword_FFC4A6A8 DCD 0x1A7E0 ; DATA XREF: sub_FFC4A18C+14r
ROM:FFC4A6A8 ; sub_FFC4A1D0+4r ...
ROM:FFC4A6AC aBootdisk DCB "BOOTDISK",0 ; DATA XREF: sub_FFC4A284+204o
ROM:FFC4A6B5 DCB 0
ROM:FFC4A6B6 DCB 0
ROM:FFC4A6B7 DCB 0
ROM:FFC4A6B8 aScript DCB "SCRIPT",0 ; DATA XREF: sub_FFC4A284+220o
ROM:FFC4A6BF DCB 0
ROM:FFC4A6C0 dword_FFC4A6C0 DCD 0xFF92A7C4 ; DATA XREF: sub_FFC4A5C8+2Cr
ROM:FFC4A6C4 dword_FFC4A6C4 DCD 0xFF92A9A4 ; DATA XREF: sub_FFC4A5C8+34r
ROM:FFC4A6C8 aMounter_c DCB "Mounter.c",0 ; DATA XREF: _sub_FFC4A608__Mounter.c__824+70o
ROM:FFC4A6C8 ; _sub_FFC4A6D4__Mounter.c__0+150o ...
ROM:FFC4A6D2 DCB 0
ROM:FFC4A6D3 DCB 0
ROM:FFC4A6D4
ROM:FFC4A6D4 ; =============== S U B R O U T I N E =======================================
ROM:FFC4A6D4
ROM:FFC4A6D4 ; LOCATION: Mounter.c:0
[/tt]