ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Speccyfighter <zxwarior@yandex.ru>
To: community@lists.altlinux.org
Subject: [Comm] Сборка своего ядра
Date: Sun, 20 May 2018 15:40:33 +0300
Message-ID: <6441851526820033@web10o.yandex.ru> (raw)

Есть ли у нас где-то howto по сборке своего ядра с подробным детальным описанием?

Причина необходимости сборки своего ядра:

- На некоторых архитектурах, ядро собранное с CONFIG_WDAT_WDT вызывает конфликт RTC и WDAT
https://bugzilla.kernel.org/show_bug.cgi?id=199033#c5
Это вызывает отказ hwclock на чтение/запись.
Если системное время в localtime, это вызывает постоянный дрифт системного времени после загрузки.
- Но это полбеды.
Беда в том, что замечено:
что на таких архитектурах, все ядра собранные с CONFIG_WDAT_WDT приводят к рандомному зависанию ядра,
что ставит под сомнение возможности использования Линукс на таких архитектурах.
Ранее, в течение длительного времени (например на ядрах 4.4.x) не наблюдалась, поскольку эти ядра собраны
без CONFIG_WDAT_WDT.
Также важный комментарий начиная со слов I don't think:
https://bugzilla.kernel.org/show_bug.cgi?id=199033#c68
Альтовый багрепорт переведён с normal на major, но рандомное зависание ядер с CONFIG_WDAT_WDT, требует
перевода этого багрепорта в статус critical, из-за рандомного отказа системы при зависании ядра.

Лог в этом случае содержит:

# dmesg | grep rtc
[    0.740734] rtc_cmos 00:01: RTC can wake from S4
[    0.740747] rtc_cmos: probe of 00:01 failed with error -16
[    0.742344] Using IPI No-Shortcut mode
[    0.743974] hctosys: unable to open rtc device (rtc0)

Багрепорты отправлены:
https://bugzilla.kernel.org/show_bug.cgi?id=199033#c72
https://bugzilla.altlinux.org/show_bug.cgi?id=34926


Возникшая задача:

- Собрать полный аналог ядра(дер) std-{def,pae} без CONFIG_WDAT_WDT и восстановить функциональность системы
на Lenovo G50-80.

Эта ошибка конфликта RTC и WDAT как минимум затрагивает Broadwell-U и Haswell-ULT:
https://bugzilla.kernel.org/show_bug.cgi?id=199033#c2
https://bugzilla.kernel.org/show_bug.cgi?id=199033#c3
Lenovo G50-80, это Broadwell-U.
Также ошибка в ядре затрагивает ноутбуки других производителей.

Временно на Broadwell-U можно откатиться на ядра 4.4.x-std-{def,pae} из p8/c8,
но это временное решение проблемы и не уверен что это может быть рекомендовано для новых архитектур,
требующих новых версий ядер.

-- 
Лучшее - враг хорошего!
(Спектрумовский фольклор)


             reply	other threads:[~2018-05-20 12:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-20 12:40 Speccyfighter [this message]
2018-05-20 22:32   ` Evgeny Sinelnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6441851526820033@web10o.yandex.ru \
    --to=zxwarior@yandex.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git