Skip to content

Instantly share code, notes, and snippets.

@rogeliodh
Last active February 12, 2019 09:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogeliodh/5d70a6cf2a9db99828b3a393340821d3 to your computer and use it in GitHub Desktop.
Save rogeliodh/5d70a6cf2a9db99828b3a393340821d3 to your computer and use it in GitHub Desktop.
[x1ii] custom script to extract some info from x1ii
#!/bin/sh
SD=/mnt/mmc/debug
mkdir -p "$SD"
main() {
sleep 3
/bin/mount
/bin/dmesg
ls -lR /proc/
ls -lR /dev/
ls -lR /sys/
INTERESTING="cmdline cpuinfo devices fb filesystems
interrupts iomem ioports meminfo misc modules mounts
partitions tty/drivers tty/ldiscs version yaffs zoneinfo
jz/gpio/pin jz/gpio/status"
for i in $INTERESTING; do
echo === /proc/$i ===
cat /proc/$i
done
}
DATE=`date +%Y%m%d_%H%M%S`
main 2>&1 > "$SD/custom_$DATE.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment