Update Time Before Systemd Starts

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

Update Time Before Systemd Starts

Postby steadybright » Thu Apr 03, 2014 9:53 pm

Hello All,

This post is a continuation of an ARMv6 thread titled "ntp before anything else," which is now locked.

I run ntpd service at start and it seems to update my system time within two minutes or so of boot/re-boot, which is fine. I am looking for a way to delay Systemd starting until ntpd has updated the system time. I found a way to do just that in the Raspberry Pi (ARMv6) section of this forum.

In that conversation, cetu86 offered a solution (http://archlinuxarm.org/forum/viewtopic.php?f=31&t=6037#p34228) to setting the system time before Systemd is started. I would like to try this solution on my Pogoplug V2.

However, in cetu86's solution he uses /boot/cmdline.txt, which the ARMv5 doesn't seem to employ (at least I don't have a file by that name in my /boot directory).

Is the ARMv6 solution mentioned above "translatable" into an ARMv5 solution? If so, how?

If not, is there another solution for the ARMv5 devices (Pogoplug V2, in my case) that can accomplish the same result?

Thanks,

steady
Last edited by steadybright on Fri Apr 04, 2014 8:03 pm, edited 1 time in total.
People are illogical, unreasonable, and self-centered. Love them anyway.
steadybright
 
Posts: 53
Joined: Thu Aug 29, 2013 4:08 am

Re: Update Time Before Systemd Starts

Postby WarheadsSE » Thu Apr 03, 2014 10:41 pm

That is mildly dangerous, but you could do this from u-boot, and only safely if you have serial or netconsole working, since if it craps, you're screwed.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Update Time Before Systemd Starts

Postby steadybright » Fri Apr 04, 2014 4:35 pm

Thanks. I have tested the serial connection.

My Pogo supports my learning; it does not provide any service that I rely on, so if it tanks, it only provides me another opportunity to work on it.

So, how would I employ the fix on my Pogoplug V2 that cetu86 devised for his Raspberry Pi?

steady
Last edited by steadybright on Fri Apr 04, 2014 8:04 pm, edited 1 time in total.
People are illogical, unreasonable, and self-centered. Love them anyway.
steadybright
 
Posts: 53
Joined: Thu Aug 29, 2013 4:08 am

Re: Update Time Before Systemd Starts

Postby WarheadsSE » Fri Apr 04, 2014 4:51 pm

By editing the bootargs in u-boot, that are used for the cmdline of the kernel
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Update Time Before Systemd Starts

Postby steadybright » Fri Apr 04, 2014 5:56 pm

A suggestion on where to start (specific man pages, documentation, etc., to learn about bootargs and uboot applicable to the Pogoplug V2 environment) would save me a little time (while still allowing me the satisfaction of catching my own fish) and be most welcome.

steady
People are illogical, unreasonable, and self-centered. Love them anyway.
steadybright
 
Posts: 53
Joined: Thu Aug 29, 2013 4:08 am

Re: Update Time Before Systemd Starts

Postby moonman » Sat Apr 05, 2014 1:06 am

Your best guide would be stydying the uboot environment.

The manual is here, specifically section 5.9:
http://www.denx.de/wiki/DULG/Manual
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: Update Time Before Systemd Starts

Postby steadybright » Sat Apr 05, 2014 2:01 am

moonman,

Thank you for the link. I noticed that the guide is specific to the Canyonlands board, of which I am not familiar. Is the Canyonlands the Pogoplug V2 board?

Are there any pitfalls/uniqueness with respect to uboot and Arch Linux ARM on the Pogoplug?

I could not find much material on this topic specific to ARMv5 in the forum.

steady
People are illogical, unreasonable, and self-centered. Love them anyway.
steadybright
 
Posts: 53
Joined: Thu Aug 29, 2013 4:08 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests