LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-08-2013, 03:38 PM   #1
sapril1229
LQ Newbie
 
Registered: Jan 2012
Location: Massachusetts
Distribution: Fedora
Posts: 2

Rep: Reputation: Disabled
Cool Does anyone have experience hacking uptime?


Hello,

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?
 
Old 07-08-2013, 03:54 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,093

Rep: Reputation: 197Reputation: 197
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?)
 
Old 07-08-2013, 10:30 PM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,512
Blog Entries: 2

Rep: Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038
Did someone set Kalarm-or-such\tasks to mess with you?

Got my nephews computer saying "feed dog" every day @4:30 could be shutdown command if he's not careful.

Last edited by jamison20000e; 07-09-2013 at 12:08 AM.
 
Old 07-09-2013, 10:53 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
You might also look into the "watchdog" timer in the kernel. It is supposed to detect the times the kernel gets hung.

Reference: http://stackoverflow.com/questions/2...chdog-in-linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Uptime damgar Slackware 21 07-15-2012 09:51 PM
init uptime longer than system uptime? m4rtin Linux - Server 1 09-15-2010 07:45 AM
uptime. alex9510 Linux - Newbie 3 05-02-2008 07:35 AM
Uptime: 2.4 vs 2.6 Synesthesia Linux - General 4 10-17-2005 03:23 PM
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 02:44 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration