~ >: ls -l /var/
lrwxrwxrwx 1 root root 6 Dec 12 2011 cache -> ../tmp
lrwxrwxrwx 1 root root 6 Dec 12 2011 lock -> ../tmp
lrwxrwxrwx 1 root root 6 Dec 12 2011 log -> ../tmp
lrwxrwxrwx 1 root root 6 Dec 12 2011 pcmcia -> ../tmp
lrwxrwxrwx 1 root root 6 Dec 12 2011 run -> ../tmp
lrwxrwxrwx 1 root root 6 Dec 12 2011 spool -> ../tmp
lrwxrwxrwx 1 root root 6 Dec 12 2011 tmp -> ../tmp
WITHOUT THE FOLDER /VAR AND THE FOLLOWING UP SOFT LINK, DEBUG CONSOLE WILL PRINT CONTENT WHICH SHOULD BE STORE IN THE FILE /TMP/messages
localhost login: [ 7.160000] eth0: link up (100/Full)
Jan 1 02:31:51 localhost user.info kernel: [ 7.160000] eth0: link up (100/Full)
Jan 1 02:31:58 localhost user.info dropbear[483]: Child connection from 192.168.200.104:2534
Jan 1 02:32:11 localhost user.notice dropbear[483]: password auth succeeded for 'root' from 192.168.200.104:2534
Jan 1 02:32:11 localhost user.warn dropbear[484]: lastlog_perform_login: Couldn't stat /var/log/lastlog: No such file or directory
Jan 1 02:32:11 localhost user.warn dropbear[484]: lastlog_openseek: /var/log/lastlog is not a file or directory!
Jan 1 02:32:11 localhost user.warn dropbear[484]: wtmp_write: problem writing /var/log/wtmp: No such file or directory
HOW TO SHOW PRINTK MSG AUTOMATIC WHILE DEBUGGING KERNEL SPACE CODE ON EMBEDDED DEVICE WITHOUT CONSOLE CABLE
cat /proc/kmsg
This file is used to hold messages generated by the kernel. These messages are then picked up by other programs, such as /sbin/klogd or /bin/dmesg.
阅读(1519) | 评论(0) | 转发(0) |