add debug for uclibc

This commit is contained in:
Alfonso Gamboa 2022-04-30 06:26:24 -07:00
parent 04392d29dd
commit 826f01d8c4
3 changed files with 15 additions and 0 deletions

View File

@ -13,3 +13,9 @@ if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_ENABLED\=") == "RTSP_ENABLED\=\
insmod /opt/wz_mini/lib/modules/v4l2loopback.ko video_nr=1
fi
##LIBRARY DEBUG
#cp /opt/wz_mini/lib/uClibc.tar /tmp
#tar -xf /tmp/uClibc.tar -C /tmp
#mount --bind /tmp/lib /lib
#cp /system/bin/iCamera /opt/wz_mini/tmp/.storage/
#mount -o ro,bind /opt/wz_mini/usr/bin/iCamera-dbg /system/bin/iCamera

BIN
SD_ROOT/wz_mini/lib/uClibc.tar Executable file

Binary file not shown.

View File

@ -0,0 +1,9 @@
#!/bin/sh
set -x
echo "inject callback library and run"
export LD_LIBRARY_PATH='/thirdlib:/system/lib:/opt/wz_mini/lib'
LD_DEBUG_OUTPUT=/tmp/icam1.log LD_DEBUG=bindings /opt/wz_mini/tmp/.storage/iCamera