<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Подробнейшая инструкция по сборке ядра]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=17165&amp;type=atom" />
	<updated>2011-10-14T13:41:15Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=17165</id>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219443#p219443" />
			<content type="html"><![CDATA[<p>Я собирал по этому мануалу) <a href="http://habrahabr.ru/blogs/linux/82600/">http://habrahabr.ru/blogs/linux/82600/</a> очень подробный)&nbsp; smile</p>]]></content>
			<author>
				<name><![CDATA[NуроFеn]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13501</uri>
			</author>
			<updated>2011-10-14T13:41:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219443#p219443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219117#p219117" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Termo пишет:</cite><blockquote><p>а после копирования конфига сразу начинаю сборку ядра, так?</p></blockquote></div><p>Да, все так.</p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-10-13T10:27:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219117#p219117</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=219013#p219013" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>newzenon пишет:</cite><blockquote><p>из make menuconfig можно не меняя ничего выйти</p></blockquote></div><p>тогда какой смысл в него заходить?<br />давай еще раз - если я не хочу ничего менять в файле config, то я в menuconfig не захожу<br />а после копирования конфига сразу начинаю сборку ядра, так? или не так?</p>]]></content>
			<author>
				<name><![CDATA[Termo]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4469</uri>
			</author>
			<updated>2011-10-13T04:06:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=219013#p219013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218988#p218988" />
			<content type="html"><![CDATA[<p><strong>Termo</strong>, из make menuconfig можно не меняя ничего выйти, или пропустить этот момент.<br />Я кроме Zen ядра в Debian больше ничего не собирал за не надобностью.<br />Конфиг от него брал тут: <a href="http://liquorix.net/sources/">http://liquorix.net/sources/</a><br />На amd <a href="http://liquorix.net/sources/3.0/config.amd64">http://liquorix.net/sources/3.0/config.amd64</a></p><p>Собирать ядро не обязательно в корне, главное потом установочные deb файлы получить.<br />Например zen в home:<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">mkdir /home/tmp<br />cd /home/tmp<br /></div><br />Git&#039;ом скачиваем исходники:<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"># git clone --depth 1 git://zen-kernel.org/kernel/zen-stable.git linux-2.6-zen<br />Cloning into linux-2.6-zen...<br />remote: Counting objects: 83556, done.<br />remote: Compressing objects: 100% (73545/73545), done.<br />remote: Total 83556 (delta 43722), reused 35239 (delta 8989)<br />Receiving objects: 100% (83556/83556), 126.18 MiB | 2.20 MiB/s, done.<br />Resolving deltas: 100% (43722/43722), done.</div><br />Вот они:<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"># cd linux-2.6-zen<br /># ls<br />COPYING&nbsp; Documentation/&nbsp; Kconfig&nbsp; &nbsp; &nbsp; Makefile&nbsp; REPORTING-BUGS&nbsp; block/&nbsp; &nbsp;drivers/&nbsp; &nbsp;fs/&nbsp; &nbsp; &nbsp; &nbsp;init/&nbsp; kernel/&nbsp; mm/&nbsp; &nbsp;samples/&nbsp; security/&nbsp; tools/&nbsp; virt/<br />CREDITS&nbsp; Kbuild&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MAINTAINERS&nbsp; README&nbsp; &nbsp; arch/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;crypto/&nbsp; firmware/&nbsp; include/&nbsp; ipc/&nbsp; &nbsp;lib/&nbsp; &nbsp; &nbsp;net/&nbsp; scripts/&nbsp; sound/&nbsp; &nbsp; &nbsp;usr/</div><br />Скачиваем конфиг liquorix.net:<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"># wget <a href="http://liquorix.net/sources/3.0/config.amd64">http://liquorix.net/sources/3.0/config.amd64</a><br />--2011-10-13 02:57:52--&nbsp; <a href="http://liquorix.net/sources/3.0/config.amd64">http://liquorix.net/sources/3.0/config.amd64</a><br />Распознаётся liquorix.net... 174.120.170.208<br />Подключение к liquorix.net|174.120.170.208|:80... соединение установлено.<br />HTTP-запрос отправлен. Ожидание ответа... 200 OK<br />Длина: 131096 (128K) [text/plain]<br />Сохранение в каталог: ««config.amd64»».</p><p>100%[================================================================================================================================================&gt;] 131,096&nbsp; &nbsp; &nbsp; 111K/s&nbsp; &nbsp;за 1.2s&nbsp; &nbsp; </p><p>2011-10-13 02:57:54 (111 KB/s) - «config.amd64» saved [131096/131096]<br /></div><br />Копируем его в .config<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"># cp config.amd64 .config</div><br />Дальше собираем.<br />ы. Можно checkinstall&#039;ом собирать кстати...<br />ыы. В /usr/src/linux-kernel - это просто как бы общепринято.<br />Сейчас /usr правда на gentoo - 16Gb из них 12 занято.</p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-10-12T23:00:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218988#p218988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218986#p218986" />
			<content type="html"><![CDATA[<p><strong>newzenon</strong>, спасибо, я вчера тоже порылся в сети, но есть пара вопросов:<br />1. make menuconfig (остановимся на этой команде)<br />когда я набираю эту команду открывается программа по конфигурации ядра<br />а как мне с ней работать? я не хочу ничего менять в ядре (в этот раз)<br />и если не хочу, то наверно можно проскочить этот момент?<br />т.е. выглядеть это будет так:<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">$ cp /boot/config-2.6.32-5-amd64 .config<br />$ make-kpkg --initrd --revision=3.0-termo kernel_image kernel_headers</div></p><p>и второй вопрос<br />а сколько пространства на корневом разделе необходимо для работы с ядром?<br />у меня было 2,2Гб и мне не хватило места для сборки ядра&nbsp; <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /></p>]]></content>
			<author>
				<name><![CDATA[Termo]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4469</uri>
			</author>
			<updated>2011-10-12T22:23:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218986#p218986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218921#p218921" />
			<content type="html"><![CDATA[<p><strong>Epolyanichev</strong>, делай пока без патчей, и да в debian не особо оно надо собирать таким способом ядра, есть готовые deb&#039;ы</p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-10-12T17:05:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218921#p218921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218918#p218918" />
			<content type="html"><![CDATA[<p>что в последней команде я не правильно указал?</p><p>Я пока только скачал ядро как было указано в предыдущих шагах, а где взять патчи не понял.</p>]]></content>
			<author>
				<name><![CDATA[Epolyanichev]]></name>
				<uri>https://linuxforum.ru/profile.php?id=19970</uri>
			</author>
			<updated>2011-10-12T16:55:58Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218918#p218918</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218917#p218917" />
			<content type="html"><![CDATA[<p>Попробывал обновить до нового ядра<br />Дошел до этого шага<br />Переходим в папку с исходниками:<br />Консоль:<br />$ cd /usr/src/linux-версия</p><p>У меня:</p><p>root@evgen2:/usr/src# cd /usr/src/linux-3.0<br />root@evgen2:/usr/src/linux-3.0# $ aptitude install patch<br />bash: $: команда не найдена<br />root@evgen2:/usr/src/linux-3.0# aptitude install patch<br />Ни одного пакета не будет установлено, обновлено или удалено.<br />0 пакетов обновлено, 0 установлено новых, 0 пакетов отмечено для удаления, и 279 пакетов не обновлено.<br />Необходимо получить 0 B архивов. После распаковки 0 B будет занято.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />root@evgen2:/usr/src/linux-3.0# patch -p1 -i patch-^C<br />root@evgen2:/usr/src/linux-3.0# patch -p1 -i patch linux-3.0<br />patch: **** Can&#039;t open patch file patch : No such file or directory</p>]]></content>
			<author>
				<name><![CDATA[Epolyanichev]]></name>
				<uri>https://linuxforum.ru/profile.php?id=19970</uri>
			</author>
			<updated>2011-10-12T16:53:27Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218917#p218917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218882#p218882" />
			<content type="html"><![CDATA[<p>Вроде все: (заметите ошибки - в студию).<br />Ставим пакеты, необходимые для компиляции ядра:<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">$ aptitude install kernel-package libncurses5-dev fakeroot build-essential pkg-config</div><br />Переходим в каталог, в котором собираемся производить сборку. (В этом примере в качестве данного каталога будет рассматриваться /usr/src). Скачиваем и распаковываем исходники ядра:<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">$ cd /usr/src &amp;&amp; wget <a href="http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.0.tar.bz2">http://www.kernel.org/pub/linux/kernel/ … .0.tar.bz2</a> &amp;&amp; tar xjf linux-3.0.tar.bz2</div><br />Переходим в папку с исходниками:<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">$ cd /usr/src/linux-версия</div><br />Если вы собираетесь накладывать патчи на ядро, ставим необходимую для наложения патчей программу:<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">$ aptitude install patch</div><br />Сами же патчи накладываются следующими командами:<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">$ patch -p1 -i patch-версия</div><br />Если патч запакован в архив, то команда будет выглядеть так:<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">$ bzip2 -dc /usr/src/patch-версия | patch -p1</div></p><p>-//////// Конфигурирование<br />Конфигурация ядра читается из файла .config. Для создания оного можно воспользоваться старым файлом конфигурации ядра, который лежит в /boot:<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">$ cp /boot/config-$( uname -r ) .config</div><br />Либо создать новый.<br />Для конфигурирования ядра можно использовать одну из нижеперечисленных команд:<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">$ make nconfig</div><br />Эта команда поддерживается, начиная с ядра версии 2.6.35, не требует установки дополнительных пакетов.<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">$ make menuconfig</div><br />Старый аналог make nconfig<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">$ make xconfig</div><br />Эта программа конигурации имеет графический интерфей, использующий qt. Если собирается ядро младше версии 2.6.38, то ставим следующие пакеты:<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">$ aptitude install qt3-dev-tools</div><br />Если 2.6.38 или старше, то:<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">$ aptitude install libqt4-dev<br />$ make gconfig</div><br />Тоже имеет графический интерфейс, но в отличие от xconfig, использует gtk, а не qt.<br />Для работы с ней ставим следующие пакеты:<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">$ aptitude install libgtk2.0-dev libglib2.0-dev libglade2-dev<br />$ make oldconfig</div><br />При использовании этой команды, файл конфигурации создаётся автоматически, основываясь на текущей конфигурации ядра.<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">$ make defconfig</div><br />При использовании defconfig файл конфигурации создается, основываясь на значения по умолчанию.<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">$ make localmodconfig</div><br />При использовании этой команды, (работает в ядрах 2.6.32 и новее) сравниваются загруженные в данный момент модули и те, чья поддержка включена в ядре, если находятся лишние модули, то они отключаются.<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">$ make localyesconfig</div><br />Скрипт для отказа от initrd. Все необходимые модули включаются в ядро.</p><p>-//////// Компиляция ядра и сборка в пакеты<br />Компиляция и сборка ядра в пакеты производится следующей командой:<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">$ make-kpkg --initrd --revision=mybuild.1.0 kernel_image kernel_headers</div><br />Также можно задать количество потоков для компиляции. В этом случае команда будет выглядеть так:<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">$ CONCURRENCY_LEVEL=N make-kpkg --initrd --revision=mybuild.1.0 kernel_image kernel_headers</div><br />где N = количество потоков.</p><p>-//////// Установка<br />После компиляции ядра в каталоге создаются два deb-пакета, которые ставятся командами<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">$ dpkg -i linux-image-версия.deb<br />$ dpkg -i linux-headers-версия.deb<br /></div></p><p>После чего grub автоматически прописывает их в своем конфигурационном файле.<br />Теперь можно загрузиться с новым ядром. Если при конфигурировании вы не допустили никаких критических ошибок, всё должно быть хорошо.</p><br /><p>ы.<br />Исходники Zen Ядра из git:<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">cd /usr/src<br />git clone --depth 1 git://zen-kernel.org/kernel/zen-stable.git linux-2.6-zen # alternatively zen.git<br />ln -s linux-2.6-zen linux</div></p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-10-12T14:10:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218882#p218882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218880#p218880" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Исходные данные:<br />Debian 6.0.3-amd64<br />Kernel 2.6.32<br />установка по netinstall</p></blockquote></div><p>А почему бы не поставить тот же netinstall только Wheezy , уже с 3 ядром?</p>]]></content>
			<author>
				<name><![CDATA[sun]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12046</uri>
			</author>
			<updated>2011-10-12T13:58:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218880#p218880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218866#p218866" />
			<content type="html"><![CDATA[<p>ерунда какая-то...<br />модераторы раздела, удалите пост № 2 из ветки, плиз</p>]]></content>
			<author>
				<name><![CDATA[Termo]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4469</uri>
			</author>
			<updated>2011-10-12T13:20:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218866#p218866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218864#p218864" />
			<content type="html"><![CDATA[<p>cd /path/to/linux/<br />cp /path/to/old_config .config<br />make oldconfig<br />&lt;много вопросов&gt;<br />make menuconfig<br />&lt;подрихтовать ручками, проверить всё ли нужное есть&gt;<br />make<br />make modules_install<br />cp arch/{x86,x86_64}/boot/bzimage /boot/my.super.mega.kernel # нужное подчеркнуть<br />vim /boot/grub/menu.lst<br />?????<br />PROFIT!!!<br />&lt;если не думать о сборке initrd это всё&gt;</p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2011-10-12T13:07:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218864#p218864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Подробнейшая инструкция по сборке ядра]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=218859#p218859" />
			<content type="html"><![CDATA[<p>Исходные данные:<br />Debian 6.0.3-amd64<br />Kernel 2.6.32<br />установка по netinstall<br />из графики Openbox</p><p>что надо?<br />собрать новое ядро серии 3.0.Х руками<br />с использованием имеющегося конфига</p><p>кто готов подробнейшим образом расписать все команды?</p>]]></content>
			<author>
				<name><![CDATA[Termo]]></name>
				<uri>https://linuxforum.ru/profile.php?id=4469</uri>
			</author>
			<updated>2011-10-12T12:57:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=218859#p218859</id>
		</entry>
</feed>
