reverse_engineering:ghidra:create_a_project
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
reverse_engineering:ghidra:create_a_project [2022/03/12 10:22] – created kitor | reverse_engineering:ghidra:create_a_project [2022/04/01 17:46] (current) – [Initial analysis] kitor | ||
---|---|---|---|
Line 8: | Line 8: | ||
What you need: | What you need: | ||
- | * ROM dumps (see: [[reverse_engineering: | + | * ROM dumps (see: [[reverse_engineering: |
* Ghidra installation | * Ghidra installation | ||
- | ==== Loading main ROM image into Ghidra ==== | + | ===== Loading main ROM image into Ghidra |
{{: | {{: | ||
Line 18: | Line 18: | ||
Simply drag and drop ROM file into a project window. Import dialog will pop up. | Simply drag and drop ROM file into a project window. Import dialog will pop up. | ||
- | |||
- | |||
Following settings are required: | Following settings are required: | ||
Line 29: | Line 27: | ||
* Block name: as you wish, but something meaningful is recommended (eg ROM0, ROM1) | * Block name: as you wish, but something meaningful is recommended (eg ROM0, ROM1) | ||
* Base Address: | * Base Address: | ||
- | * Digic 6: ROM1 loads at 0xF0000000 | + | * Digic 6: ROM1 loads at '' |
- | * Digic 7,8,x: ROM0 loads at 0xE0000000 | + | * Digic 7,8,x: ROM0 loads at '' |
* Leave all other options as default. | * Leave all other options as default. | ||
Close by clicking OK on all dialogs, and then acknowledge the import result. File will appear in a project. | Close by clicking OK on all dialogs, and then acknowledge the import result. File will appear in a project. | ||
+ | ===== Project preparation ===== | ||
+ | |||
+ | Click twice on newly imported file. It will bring up "Code Browser" | ||
+ | |||
+ | Ghidra will ask if you want to perform auto analysis now - select **No**. | ||
+ | |||
+ | === Load 2nd ROM file (where applicable) === | ||
+ | |||
+ | Go to '' | ||
+ | |||
+ | Open '' | ||
+ | |||
+ | === Fix memory map === | ||
+ | |||
+ | Navigate to '' | ||
+ | |||
+ | === Add other memory regions === | ||
+ | |||
+ | This topic has a separate Wiki section: [[reverse_engineering: | ||
+ | |||
+ | == Result == | ||
+ | |||
+ | Complete memory map for EOS R 1.8.0 (internal 7.3.9) firmware: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ===== Initial analysis ===== | ||
+ | |||
+ | Project is now ready to start disassembling. | ||
+ | |||
+ | === Configure auto analysis === | ||
+ | |||
+ | Navigate to '' | ||
+ | |||
+ | There' | ||
+ | |||
+ | * Disable " | ||
+ | * Disable " | ||
+ | * Disable " | ||
+ | |||
+ | Click '' | ||
+ | |||
+ | === Run disassembly === | ||
+ | |||
+ | Jump to second level (DryOS) bootloader address (press ' | ||
+ | |||
+ | ^ CPU ^ Address | ||
+ | | Digic 6 | '' | ||
+ | | Digic 7,8 | '' | ||
+ | | Digic X | '' | ||
+ | |||
+ | Press F12 to disassemble in Thumb mode. Wait for Ghidra to finish a task - it will discover a lot of functions so it will take some time. | ||
+ | |||
+ | After it is done, we name that function '' | ||
+ | |||
+ | === Run auto analysis === | ||
+ | Go back to '' | ||
+ | Run the analysis - it will take a long time. After it is done, you may want to run "one shot" analysis for Embedded media and for Create Address Tables - but YMMV. | ||
reverse_engineering/ghidra/create_a_project.1647076964.txt.gz · Last modified: 2022/03/12 10:22 by kitor