lab/x1
Chiharu Shirasaka d194156669 selftest mode caller 2021-12-23 17:54:46 +09:00
..
c Revert "Update x1/c impl" 2021-11-07 22:01:09 +09:00
injector Remove elf 2021-11-07 22:02:32 +09:00
linkerscript x1 experimental libbrain 2021-12-15 01:49:19 +09:00
selftester selftest mode caller 2021-12-23 17:54:46 +09:00
spray Move append_nop.py 2021-11-07 22:08:02 +09:00
Makefile Move append_nop.py 2021-11-07 22:08:02 +09:00
README.md Update README 2021-11-07 22:09:42 +09:00
extract.py Implement memory spray 2021-03-06 17:38:28 +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
return.S Add x1 experiments 2021-03-04 02:15:40 +09:00

README.md

Code

  • mrc.S Read SCTLR (MMU etc.) and return
  • return.S Return immediately
  • extract.py Extract .text
  • memmap.c Analyze page table

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