failed virt_to_phys attempt

This commit is contained in:
Ciro Santilli
2017-07-14 13:01:24 +01:00
parent 0f1fbaf026
commit 19f5c51b6b
3 changed files with 76 additions and 0 deletions

8
rootfs_overlay/virt_to_phys.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -ex
insmod /virt_to_phys.ko
cat /sys/kernel/debug/lkmc_virt_to_phys
addr=$(grep virt_to_phys /sys/kernel/debug/lkmc_virt_to_phys | cut -d ' ' -f 2)
devmem2 "$addr"
devmem2 "$addr" w 0x87654321
rmmod virt_to_phys