<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Failed to set the system clock]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=17240&amp;type=atom" />
	<updated>2011-10-16T13:58:30Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=17240</id>
		<entry>
			<title type="html"><![CDATA[Re: Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219679#p219679" />
			<content type="html"><![CDATA[<p>Ну и на этом ядре работает?</p>]]></content>
			<author>
				<name><![CDATA[tyrnov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12385</uri>
			</author>
			<updated>2011-10-16T13:58:30Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219679#p219679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219676#p219676" />
			<content type="html"><![CDATA[<p>А... это я последний раз gentoo-sources собирал с конфигом из kernel-seeds ... нафиг...<br />С zen-sources такого никогда не было чтобы такую мелочь забывали.<br />Из git zen-sources 3.06 сейчас забрал (бестолку в portage до сих пор zen 2.6.39)...<br />В конфиге (wget <a href="http://liquorix.net/sources/3.0/config.amd64)">http://liquorix.net/sources/3.0/config.amd64)</a> предусмотренно всё:<br /></p><div class="codebox"><pre><code># grep -i rtc config.amd64 
CONFIG_HPET_EMULATE_RTC=y
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
# CONFIG_RTC_DEBUG is not set
# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
# I2C RTC drivers
CONFIG_RTC_DRV_DS1307=m
CONFIG_RTC_DRV_DS1374=m
CONFIG_RTC_DRV_DS1672=m
CONFIG_RTC_DRV_DS3232=m
CONFIG_RTC_DRV_MAX6900=m
CONFIG_RTC_DRV_RS5C372=m
CONFIG_RTC_DRV_ISL1208=m
CONFIG_RTC_DRV_ISL12022=m
CONFIG_RTC_DRV_X1205=m
CONFIG_RTC_DRV_PCF8563=m
CONFIG_RTC_DRV_PCF8583=m
CONFIG_RTC_DRV_M41T80=m
CONFIG_RTC_DRV_M41T80_WDT=y
CONFIG_RTC_DRV_BQ32K=m
CONFIG_RTC_DRV_S35390A=m
CONFIG_RTC_DRV_FM3130=m
CONFIG_RTC_DRV_RX8581=m
CONFIG_RTC_DRV_RX8025=m
CONFIG_RTC_DRV_EM3027=m
CONFIG_RTC_DRV_RV3029C2=m
# SPI RTC drivers
CONFIG_RTC_DRV_M41T93=m
CONFIG_RTC_DRV_M41T94=m
CONFIG_RTC_DRV_DS1305=m
CONFIG_RTC_DRV_DS1390=m
CONFIG_RTC_DRV_MAX6902=m
CONFIG_RTC_DRV_R9701=m
CONFIG_RTC_DRV_RS5C348=m
CONFIG_RTC_DRV_DS3234=m
CONFIG_RTC_DRV_PCF2123=m
# Platform RTC drivers
CONFIG_RTC_DRV_CMOS=m
CONFIG_RTC_DRV_DS1286=m
CONFIG_RTC_DRV_DS1511=m
CONFIG_RTC_DRV_DS1553=m
CONFIG_RTC_DRV_DS1742=m
CONFIG_RTC_DRV_STK17TA8=m
CONFIG_RTC_DRV_M48T86=m
CONFIG_RTC_DRV_M48T35=m
CONFIG_RTC_DRV_M48T59=m
CONFIG_RTC_DRV_MSM6242=m
CONFIG_RTC_DRV_BQ4802=m
CONFIG_RTC_DRV_RP5C01=m
CONFIG_RTC_DRV_V3020=m
CONFIG_RTC_DRV_WM831X=m
CONFIG_RTC_DRV_PCF50633=m
# on-CPU RTC drivers
CONFIG_RTC_DRV_MC13XXX=m
CONFIG_IIO_PERIODIC_RTC_TRIGGER=m</code></pre></div>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-10-16T10:43:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219676#p219676</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219669#p219669" />
			<content type="html"><![CDATA[<p>Ну и соответственно:<br /></p><div class="codebox"><pre><code>ls -l /dev/rtc
crw------- 1 root root 10, 135 Окт 16  2011 /dev/rtc</code></pre></div>]]></content>
			<author>
				<name><![CDATA[tyrnov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12385</uri>
			</author>
			<updated>2011-10-16T09:21:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219669#p219669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219666#p219666" />
			<content type="html"><![CDATA[<p>У меня теперь не ругается:</p><div class="codebox"><pre><code>zgrep -i rtc /proc/config.gz
CONFIG_HPET_EMULATE_RTC=y
CONFIG_RTC=y
# CONFIG_SND_RTCTIMER is not set
# CONFIG_RTC_CLASS is not set</code></pre></div>]]></content>
			<author>
				<name><![CDATA[tyrnov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12385</uri>
			</author>
			<updated>2011-10-16T09:18:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219666#p219666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219661#p219661" />
			<content type="html"><![CDATA[<p>Так ты что подгружал?<br />У меня проблем с часами нет, но ругается тоже, в конфиге<br /></p><div class="codebox"><pre><code># zgrep -i rtc /proc/config.gz
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_RTC_CLASS is not set</code></pre></div><div class="codebox"><pre><code># ls -l /dev/rtc
ls: невозможно получить доступ к /dev/rtc: Нет такого файла или каталога</code></pre></div>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-10-16T08:50:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219661#p219661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219657#p219657" />
			<content type="html"><![CDATA[<p>Нашел всетаки проблему. Оказывается в ядре было отключенно:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">Device Drivers-&gt;Character devices-&gt;Enhanced Real Time Clock Support</div></p><p>Включил не модулем и проблема решилась.</p><p>hwclock --debug<br />До пересборки ядра выдавало что не может обратится к системным часам. Ну а теперь:</p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">hwclock --debug<br />hwclock из util-linux 2.20<br />Используется /dev interface to clock.<br />Подразумевается, что аппаратные часы выставлены по UTC времени.<br />Ожидается тиканье часов...<br />/dev/rtc не имеет функций прерывания. В цикле ожидается для смены время из /dev/rtc<br />...получено тиканье часов<br />Время, прочитанное с аппаратных часов: 2011/10/16 11:58:47<br />Аппаратное время: 2011/10/16 11:58:47 = 1318766327 секунд с 1969<br />Вск 16 Окт 2011 15:58:47&nbsp; -0.801589 секунд<br /></div></p><br /><p>Ну и еще добавил в конфиг строку <strong>CLOCK_OPTS=&quot;--directisa&quot;</strong> может и без нее работало бы просто увидел такой совет на форуме gentoo</p><p>Можно ставить решено. Разобрался наконец с часами а то достали уже. Столько проблем из за них было</p>]]></content>
			<author>
				<name><![CDATA[tyrnov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12385</uri>
			</author>
			<updated>2011-10-16T08:02:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219657#p219657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Failed to set the system clock]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219653#p219653" />
			<content type="html"><![CDATA[<p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">/etc/init.d/hwclock restart<br /> * WARNING: you are stopping a boot service<br /> * Setting system clock using the hardware clock [Local Time] ...<br />hwclock: Cannot access the Hardware Clock via any known method.<br />hwclock: Use the --debug option to see the details of our search for an access method.<br /> * Failed to set the system clock&nbsp; </div></p><p>При загрузке тоже заметил:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">* Failed to set the system clock</div></p><p>Часы спешат на 4 часа вперед</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">cat /etc/conf.d/hwclock<br /># Set CLOCK to &quot;UTC&quot; if your Hardware Clock is set to UTC (also known as<br /># Greenwich Mean Time).&nbsp; If that clock is set to the local time, then <br /># set CLOCK to &quot;local&quot;.&nbsp; Note that if you dual boot with Windows, then <br /># you should set it to &quot;local&quot;.<br />clock=&quot;local&quot;</p><p># If you want to set the Hardware Clock to the current System Time <br /># (software clock) during shutdown, then say &quot;YES&quot; here.<br /># You normally don&#039;t need to do this if you run a ntp daemon.<br />clock_systohc=&quot;NO&quot;</p><p># If you want to set the system time to the current hardware clock<br /># during bootup, then say &quot;YES&quot; here. You do not need this if you are<br /># running a modern kernel with CONFIG_RTC_HCTOSYS set to y.<br /># Also, be aware that if you set this to &quot;NO&quot;, the system time will<br /># never be saved to the hardware clock unless you set<br /># clock_systohc=&quot;YES&quot; above.<br />clock_hctosys=&quot;YES&quot;</p><p># If you wish to pass any other arguments to hwclock during bootup,<br /># you may do so here. Alpha users may wish to use --arc or --srm here.<br />clock_args=&quot;&quot;</div></p></div></div>]]></content>
			<author>
				<name><![CDATA[tyrnov]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12385</uri>
			</author>
			<updated>2011-10-16T06:13:25Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219653#p219653</id>
		</entry>
</feed>
