1 |
On 03/30/2011 04:59 AM, Wolfgang Denk wrote: |
2 |
> Dear Joe Sapp, |
3 |
> |
4 |
> In message <4D92902B.5000300@g.o> you wrote: |
5 |
>> |
6 |
>> I've got a board with no RTC so there are some problems during boot. |
7 |
>> Currently there's a hack in the udev init script to get the time from the |
8 |
>> network (via ntp or rdate), but I'm wondering if somebody else has solved |
9 |
>> this in a better way. Any ideas? |
10 |
> |
11 |
> If your board uses U-Boot as boot loader, you can enable SNTP support |
12 |
> in U-Boot and get and set the time already there, before you even boot |
13 |
> into Linux. |
14 |
|
15 |
It does use U-Boot, so maybe a combination of this and swclock (from |
16 |
sys-apps/openrc) is the most reliable way to set the time for my application. |
17 |
|
18 |
Thanks all for the ideas. |
19 |
|
20 |
Joe |