nccgroup / depthcharge

A U-Boot hacking toolkit for security researchers and tinkerers
https://depthcharge.readthedocs.io
BSD 3-Clause "New" or "Revised" License
257 stars 14 forks source link

ARM: U-Boot circa 2012/2013 used r8 for GD pointer #89

Open jynik opened 2 years ago

jynik commented 2 years ago

In arm.py we currently use r9, as modern U-Boot versions do. This was not always the case, so we need some means to switch between r8/r9 based upon version info, inference, or user override.

Example can be found in 2012.10 version I've seen in the wild, from: http://arago-project.org/git/meta-arago.git?p=meta-arago.git;a=blob;f=meta-arago-distro/recipes-bsp/u-boot/u-boot_2012.10-psp05.06.00.00.bb;h=fa2183e5bd3639252ef337777d504161a0f6251b;hb=093a05bb850c8d6a1922acf996f57fce20a6cd0d