Fix inittab back to adding /proc, fops sketch, scripts to automate debugfs

This commit is contained in:
Ciro Santilli
2017-05-12 17:06:34 +01:00
parent 401666d221
commit 2f77a45f63
6 changed files with 44 additions and 14 deletions

12
rootfs_overlay/fops.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -ex
insmod /fops.ko
mkdir -p /fops
mount -t debugfs none /fops
cd /fops/kernel_module_cheat
cat fops
# => open
# => read
# => close
# TODO.
#echo a >fops