Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and serial port + clock not holding the time [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
weeroona
n00b
n00b


Joined: 21 Oct 2004
Posts: 13
Location: Pittsburgh

PostPosted: Fri Feb 03, 2006 4:25 am    Post subject: udev and serial port + clock not holding the time [solved] Reply with quote

I've been googling around and searching through the forums to no avail. Maybe I'm not looking for the right thing.

I have a fresh install of Gentoo on a new machine and I have two issues:
1) the date is not being stored after I reboot. It always goes back to Jan 10, 2005. Any thoughts? could it be that I need to get the current bios?

2) I'm trying to hook up a device to the serial port. On my old gentoo system, I had no problem using /dev/ttyS0. however I don't remember if I installed udev on that machine. I don't have access to it anymore. Currently, /dev/ttyS0 symlinks to tts/0 and 0 symlinks to ../ttyS0. It seems odd to me that it is recursive and doesn't go anywhere. I would expect that one of them be a 'character device' or whatever the 'c' stands for in the left column of ls -l.
I just installed udev and the system reboots properly but the serial port situation is still just as confusing. Should I have udev not tarball the /dev and let it create a new directory once then let it tarball it from then on?

My system:
Athlon 64 Sempron (running as x86)
Biostar Tforce 6100 <- a little sketchy but I needed a microATX and it got better reviews than what Asus had to offer.

Please let me know if you need any more info.
Thanks!
-Jeff


Last edited by weeroona on Fri Feb 03, 2006 1:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
Albert_g
n00b
n00b


Joined: 02 Feb 2006
Posts: 60
Location: Somewhere over the ...

PostPosted: Fri Feb 03, 2006 7:20 am    Post subject: Reply with quote

Hi

1) hwclock is your friend
try hwclock and check the time reported by the bios clock
if is ok -> goto 1a)
else, set it with hwclock --systohc
goto 1) :D
1a) try hwclock --hctosys
if the reported time with date is ok -> the bios and the system should be fine
else you have a bios problem

2) dmesg | less and check if the ttyS* ports are detected and what does the kernel with them
could be that you need to use mknod /dev/ttyS0 c 4 64 && mknod /dev/ttyS1 c 4 65

Albert
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Fri Feb 03, 2006 7:21 am    Post subject: Re: udev and serial port + clock not holding the time Reply with quote

weeroona wrote:

1) the date is not being stored after I reboot. It always goes back to Jan 10, 2005. Any thoughts? could it be that I need to get the current bios?


Is the clock init script part of your boot runlevel?

weeroona wrote:

2) -snip- .. I just installed udev and the system reboots properly but the serial port situation is still just as confusing. Should I have udev not tarball the /dev and let it create a new directory once then let it tarball it from then on?


I think that should be ok. But maybe you should take a backup copy of your /dev directory first :)
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
weeroona
n00b
n00b


Joined: 21 Oct 2004
Posts: 13
Location: Pittsburgh

PostPosted: Fri Feb 03, 2006 1:54 pm    Post subject: Reply with quote

clock was being initialized during boot.
The problem was hwclock not being set to system clock. 'hwclock --systohc' solved that issue.

and 'mknod /dev/ttyS0 c 4 64' fixed the serial port problem after I deleted the symlink.
Thanks so much for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum