capturing console (/dev/ttyS1) logs
Hi,
I have been trying to capture console logs from the init script. When the ramfs is mounted, i check if usb is connected , if conncted, i mount it and redirected the console logs like so: Code:
cat & /dev/ttyS1 >> /mnt/logs.txt Code:
/bin/sh : /dev/ttyS1 :permission denied I also tried sudo, and found out that our ramfs does not support this command. The console logs are still being printed on the monitor. Please suggest a solution. Thanks. |
Does your distro have a boot logging facility such as bootlogd?
|
This is on an embedded device, and these logs come from ramfs.
|
Quote:
AFAIK from studying bootlogd source code too long ago for memory to serve well, intercepting writes to the console is non-trivial. I had a look for the bootlogd source code to refresh memory but could not find it. |
Thank you the speedy response and your precious time.
Quote:
Code:
cat /dev/ttyS1 >> sample.txt Also in our ramfs, we are printing logs to screen using DEBUG1L(); function. Capturing this is my ultimate aim. Also any suggestion to diagnose this problem better is welcome. |
Quote:
Ideas for a solution could come from the bootlogd source code .. but where is it?! |
All times are GMT -5. The time now is 09:02 AM. |