Talk:Troubleshooting boot issues

(New page: Might be useful to add ideas from http://www.internettablettalk.com/forums/showthread.php?t=16056 here)
(reboot analyse script: new section)
Line 1: Line 1:
Might be useful to add ideas from http://www.internettablettalk.com/forums/showthread.php?t=16056 here
Might be useful to add ideas from http://www.internettablettalk.com/forums/showthread.php?t=16056 here
 +
 +
== reboot analyse script ==
 +
 +
I've just written a script to help analyse an unexpected reboot:
 +
 +
# cat debug_n900_reboots.sh
 +
#!/bin/sh
 +
debug_dir="$(pwd)"
 +
dt=$(date +%Y%m%d_%H%M)
 +
mkdir -p /dev/shm/debug_script/$dt
 +
cd /dev/shm/debug_script/$dt
 +
cat /proc/bootreason > "$(pwd)/bootreason"
 +
cat /dev/mtd2 > "$(pwd)/mtd2"
 +
dmesg > "$(pwd)/dmesg"
 +
cp -r /var/lib/dsme/stats "$(pwd)"
 +
cd "$debug_dir"
 +
tar -cjf "$debug_dir/$dt.tar.bz2" /dev/shm/debug_script/$dt
 +
ls -lh $dt.tar.bz2
 +
 +
 +
+ See http://talk.maemo.org/showthread.php?p=1092902#post1092902
 +
 +
Also I suggest adding "reboot" to the page title.

Revision as of 23:30, 20 September 2011

Might be useful to add ideas from http://www.internettablettalk.com/forums/showthread.php?t=16056 here

reboot analyse script

I've just written a script to help analyse an unexpected reboot:

  1. cat debug_n900_reboots.sh
  2. !/bin/sh

debug_dir="$(pwd)" dt=$(date +%Y%m%d_%H%M) mkdir -p /dev/shm/debug_script/$dt cd /dev/shm/debug_script/$dt cat /proc/bootreason > "$(pwd)/bootreason" cat /dev/mtd2 > "$(pwd)/mtd2" dmesg > "$(pwd)/dmesg" cp -r /var/lib/dsme/stats "$(pwd)" cd "$debug_dir" tar -cjf "$debug_dir/$dt.tar.bz2" /dev/shm/debug_script/$dt ls -lh $dt.tar.bz2


+ See http://talk.maemo.org/showthread.php?p=1092902#post1092902

Also I suggest adding "reboot" to the page title.