Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I researched this a bit and saw that most of the responses were negative and not helpful. I will try one more time.
GNU Linux 2.6 kernel
Embedded system with many custom drivers
Problem: Every 12 hours and 39 minutes the system cold boots with no trace logs, nothing.
I need to instrument up this system but waiting half a day is killing me. If there is indeed some driver or driver induced bus problem, then I would like to see if hacking the uptime will make it happen sooner. This will make it possible to fix in a "jiffy" if you know what I mean. Any ideas?
I suspect the reason you found only negative and not helpful answers is because the idea doesn't really make sense.
Uptime is kept track of in /proc/uptime it's read only, you cannot write to it. I think the closest you could get to what you want to do would be to replace the 'uptime' command with a simple script which outputs whatever value you want.
The time after which the reboot occurs is a symptom, not the cause. It's not going to be the case that some process says "Oh hey the system has been up for 12 hours and 39 minutes, I think I'll cause the system to crash and reboot now". Some condition is being reached once the system has been up for a certain time, like something runs out of memory. You can't fake that short of a time machine. Could it be a hardware problem? Maybe it's overheating and tripping some sort of inbuilt protection? How certain are you that the problem occurs at intervals of 12 hours and 39 minutes? (You say there are no logs, so how do you know how often the problem occurs?)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.