lab/x1
2021-03-10 00:32:07 +09:00
..
c Jump 0x0 on exit 2021-03-10 00:30:47 +09:00
injector Disable timer and interrupts 2021-03-10 00:32:07 +09:00
spray Implement bisection 2021-03-06 17:38:28 +09:00
append_nop.py Implement bisection 2021-03-06 17:38:28 +09:00
extract.py Implement memory spray 2021-03-06 17:38:28 +09:00
Makefile Update clean target 2021-03-10 00:30:19 +09:00
memmap.c add memory map finder 2021-03-04 20:18:15 +09:00
mrc.S Add x1 experiments 2021-03-04 02:15:40 +09:00
README.md Update x1 README 2021-03-04 02:19:24 +09:00
return.S Add x1 experiments 2021-03-04 02:15:40 +09:00

Code

  • mrc.S Read SCTLR (MMU etc.) and return
  • return.S Return immediately
  • extract.py Extract .text

Build

apt install gcc-arm-linux-gnueabihf
pip3 install pyelftools
make all

Run

  • Create a directory /path/to/sd/APP/foo
  • Create index.din touch /path/to/sd/APP/foo/index.din
  • Copy and rename the raw executable cp foo.bin /path/to/sd/APP/foo/AppMain.bin