From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-3899-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Q5GfY-0004B0-6g
	for garchives@archives.gentoo.org; Thu, 31 Mar 2011 12:08:08 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id CA5E81C0CA
	for <garchives@archives.gentoo.org>; Thu, 31 Mar 2011 12:08:07 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 9D06A1C0AD
	for <gentoo-embedded@lists.gentoo.org>; Thu, 31 Mar 2011 11:54:54 +0000 (UTC)
Received: from [192.168.11.199] (68-118-247-159.dhcp.oxfr.ma.charter.com [68.118.247.159])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: nixphoeni)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 981021B4117
	for <gentoo-embedded@lists.gentoo.org>; Thu, 31 Mar 2011 11:54:53 +0000 (UTC)
Message-ID: <4D946B97.4080701@gentoo.org>
Date: Thu, 31 Mar 2011 07:55:03 -0400
From: Joe Sapp <nixphoeni@gentoo.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101222 Lightning/1.0b3pre Thunderbird/3.1.7
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Getting network time early in boot
References: <4D92902B.5000300@gentoo.org> <20110330085958.11A65EDFFD0@gemini.denx.de>
In-Reply-To: <20110330085958.11A65EDFFD0@gemini.denx.de>
X-Enigmail-Version: 1.1.2
X-TagToolbar-Keys: D20110331075503204
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 
X-Archives-Hash: 78f5cdce43fcdef2e35d93a51095800e

On 03/30/2011 04:59 AM, Wolfgang Denk wrote:
> Dear Joe Sapp,
> 
> In message <4D92902B.5000300@gentoo.org> you wrote:
>>
>> I've got a board with no RTC so there are some problems during boot.
>> Currently there's a hack in the udev init script to get the time from the
>> network (via ntp or rdate), but I'm wondering if somebody else has solved
>> this in a better way.  Any ideas?
> 
> If your board uses U-Boot as boot loader, you can enable SNTP support
> in U-Boot and get and set the time already there, before you even boot
> into Linux.

It does use U-Boot, so maybe a combination of this and swclock (from
sys-apps/openrc) is the most reliable way to set the time for my application.

Thanks all for the ideas.

Joe