The main thing here is trace.so
, which can be LD_PRELOAD
-ed into the
fullfw
process running on Dell boards, to trace interesting ioctls.
Building with a toolchain that uses a recent glibc will not work, because
trace.so
will contain references to symbol version not present in Dell
firmware (e.g. printf@GLIBC_2.4
on my system).
Building with a musl-based toolchain will work fairly well, but you may have to
fix the binary with patchelf --replace-needed libc.so libc.so.6 trace.so
.
make CC=/path/to/arm-linux-gcc
/tmp/DellFS
is a good place to put trace.so. You can upload it withmake uuencode
anduudecode && gunzip trace.so.gz
.killall fullfw && LD_PRELOAD=/path/to/trace.so fullfw
- TODO: appease the
AppMonitor
- read traces from
/tmp/trace*.log