Setting time on PogoPlug Mobile

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Setting time on PogoPlug Mobile

Postby christianwaite » Sun Sep 02, 2012 8:07 pm

Hey everyone
I've been setting up ArchLinuxArm on a PogoPlugMobile over the weekend, great nerdy fun, pretty much got everything I need setup apart from NFS, I'm stuck trying to set time/date. I've tried ntp etc but just can't seem to get it to work and I'm not sure where to go from here.

"hwclock --debug" gives me this:
hwclock from util-linux 2.21.2
hwclock: Open of /dev/rtc failed: No such file or directory
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.

I'm presuming I need to set HWClock bfore ntp can be set?
Any advice is much appreciated.
Apart from this, I'm loving a little headless archlinux server, perfect!
Christian
christianwaite
 
Posts: 9
Joined: Sun Sep 02, 2012 7:53 pm

Re: Setting time on PogoPlug Mobile

Postby sambul13 » Sun Sep 02, 2012 8:45 pm

What it says, you don't have hardware supported clock in your device (the one with battery we all used to have on a PC Mobo). Look at local Guides for some setup ideas. I also stumbled upon this issue. :lol:
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Setting time on PogoPlug Mobile

Postby bodhi » Sun Sep 02, 2012 9:28 pm

No hardware clock :-)

- Install ntp
#pacman -S ntp

- Modify /etc/rc.conf
DAEMONS=(!hwclock syslog-ng network netfs crond sshd ntpd)

Wait for a little bit after the system is up for ntp to work!
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Setting time on PogoPlug Mobile

Postby christianwaite » Sun Sep 02, 2012 9:56 pm

Ahh maybe it's my impatientness that has fouled me up then! I'll set it up again tonight and check it out tomorrow.
Thanks!
C
christianwaite
 
Posts: 9
Joined: Sun Sep 02, 2012 7:53 pm

Re: Setting time on PogoPlug Mobile

Postby moonman » Sun Sep 02, 2012 10:32 pm

Just a little suggestion/modification to bodhi's post. Put ntpd first on the list of daemons so that it gets loaded first oterwise your timestamps in logs will be messed up at the beginning. $this->bbcode_second_pass_code('', 'DAEMONS=(!hwclock ntpd syslog-ng network netfs crond sshd)')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Setting time on PogoPlug Mobile

Postby christianwaite » Sun Sep 02, 2012 10:52 pm

Ok I removed anything else I tried (opentpd), simply "pacman -S ntp" added "ntpd" as the first entry of the deamons and my location at the top of "rc.conf" is set to "London".

I've rebooted and will check it out tomorrow and see if it's hooked up with the server.
Is there not a command to force it and also to check what the current time/date it is set too?

Thanks for the info, it's good to know that ntp is the right way to go and it's not necessary for HWCLOCK.
C
christianwaite
 
Posts: 9
Joined: Sun Sep 02, 2012 7:53 pm

Re: Setting time on PogoPlug Mobile

Postby moonman » Mon Sep 03, 2012 1:50 am

The command to check time is "date". To force it you can run "ntpdate 0.us.pool.ntp.org" or whatever ntp server is the closest to you.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Setting time on PogoPlug Mobile

Postby christianwaite » Mon Sep 03, 2012 7:39 am

Hmmm, ok so if I kill ntpd Daemon:
/etc/rc.d/ntpd stop

Run ntpdate with the uk pool (added these to rc.conf as well)
ntpdate 0.uk.pool.ntp.org

Output:
3 Sep 02:32:54 ntpdate[765]: adjust time server 82.219.4.30 offset -0.167242 sec

Running date then still doesn't return the correct time (08.35am):
Mon Sep 3 02:35:12 CDT 2012

The joy of Linux eh! When something as "simple" as setting time and date is a battle :)
C
christianwaite
 
Posts: 9
Joined: Sun Sep 02, 2012 7:53 pm

Re: Setting time on PogoPlug Mobile

Postby moonman » Mon Sep 03, 2012 9:06 am

Your time zone is wrong. CDT is -5 hours (+/- daylight saving?) from GMT. If you are in UK set Timezone to GMT or GB. (I assume GB stands for Great Britain )

$this->bbcode_second_pass_code('', 'nano /etc/rc.conf')

Either scroll down to timezone or CTRL+W and search for "Timezone"

$this->bbcode_second_pass_code('', 'TIMEZONE="GB"')

You don't have to kill ntpd daemon.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Setting time on PogoPlug Mobile

Postby sambul13 » Mon Sep 03, 2012 12:40 pm

$this->bbcode_second_pass_quote('christianwaite', 'i')t's good to know that ntp is the right way to go and it's not necessary for HWCLOCK.

More accurately, hwclock feature is not available, but user replaceable in Plugs with ntp.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 40 guests