Are ROM and RAM addresses the same thing but with an offset ?
I'm not sure what you're asking. ROM is in the same address space as RAM, with a camera specific start address. In CHDK, this is platform ROMBASEADDR, but be aware this is not actually the start of flash memory in all cases. Actually communicating with the flash IC appears to be done through some special addresses, usually(?) in the ROM address range.
You can also examples in the firmware where WriteToRom (or underlying functions) are called. I'd suggest spending some time with Ghidra and the firmware of your camera before attempting to modify ROM.
Surely it's possible to create a proper ROM writing function that first makes a copy of all the sectors a desired write would affect (however that is done, from RAM or directly from ROM if that's possible), then inserts the data we want to add in to that copy, erases those sectors from ROM with EraseSectorOfRom, and then writes the entire modified data back in using WriteToRom...
And does anyone know what the C function definition of EraseSectorOfRom would look like?
Surely it's possible to create a proper ROM writing function that first makes a copy of all the sectors a desired write would affect (however that is done, from RAM or directly from ROM if that's possible), then inserts the data we want to add in to that copy, erases those sectors from ROM with EraseSectorOfRom, and then writes the entire modified data back in using WriteToRom...This function would be difficult to implement
Also what is the rom sector size.
I know you can access the ROM data using pointer addresseses starting at something like 0xF0000000 (camera specific I guess) - so I was wondering how those addresses map to what you would pass to WriteToRom.
Does anyone here have experience with WriteToRom? What kind of addresses does it take?Are ROM and RAM addresses the same thing but with an offset ?
Started by Adama « 1 2 3 4 » Feature Requests
Started by asm1989 Feature Requests
Started by ndsticky General Discussion and Assistance
Started by Kestrel1978 Creative Uses of CHDK
Started by srsa_4c Hotwire! Hardware Mods, Accessories and Insights