<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wikihandbk.com/ruwiki/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi%3A%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux%2F%D0%AF%D0%B4%D1%80%D0%BE%2F%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0</id>
	<title>Raspberry Pi:Основы Linux/Ядро/Сборка ядра - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wikihandbk.com/ruwiki/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi%3A%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux%2F%D0%AF%D0%B4%D1%80%D0%BE%2F%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0"/>
	<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;action=history"/>
	<updated>2026-04-13T15:56:56Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;diff=2298227&amp;oldid=prev</id>
		<title>Myagkij: /* См.также */</title>
		<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;diff=2298227&amp;oldid=prev"/>
		<updated>2022-05-05T15:23:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;См.также&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 19:23, 5 мая 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l180&quot;&gt;Строка 180:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 180:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=См.также=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=См.также=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{ads}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Внешние ссылки=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Внешние ссылки=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikihandbkcom:diff::1.12:old-2298226:rev-2298227 --&gt;
&lt;/table&gt;</summary>
		<author><name>Myagkij</name></author>
	</entry>
	<entry>
		<id>http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;diff=2298226&amp;oldid=prev</id>
		<title>Myagkij: /* Сборка исходников */</title>
		<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;diff=2298226&amp;oldid=prev"/>
		<updated>2022-05-05T15:23:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Сборка исходников&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 19:23, 5 мая 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l108&quot;&gt;Строка 108:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 108:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''Примечание.''' &lt;/del&gt;Чтобы ускорить компиляцию на многопроцессорных системах (и на однопроцессорных тоже, но в меньшей степени), используйте '''''-j n''''', где '''''n''''' — это количество процессоров, '''умноженное на 1,5'''. Впрочем, не бойтесь экспериментировать — возможно, лучше всего будет работать какая-то другая цифра.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Примечание1|1=&lt;/ins&gt;Чтобы ускорить компиляцию на многопроцессорных системах (и на однопроцессорных тоже, но в меньшей степени), используйте '''''-j n''''', где '''''n''''' — это количество процессоров, '''умноженное на 1,5'''. Впрочем, не бойтесь экспериментировать — возможно, лучше всего будет работать какая-то другая цифра.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Установка напрямую на SD-карту===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Установка напрямую на SD-карту===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikihandbkcom:diff::1.12:old-5227:rev-2298226 --&gt;
&lt;/table&gt;</summary>
		<author><name>Myagkij</name></author>
	</entry>
	<entry>
		<id>http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;diff=5227&amp;oldid=prev</id>
		<title>Myagkij: Замена текста — «{{Перевод от Сubewriter}}» на «{{Перевод от Сubewriter}}
{{Myagkij-редактор}}»</title>
		<link rel="alternate" type="text/html" href="http://wikihandbk.com/ruwiki/index.php?title=Raspberry_Pi:%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D1%8B_Linux/%D0%AF%D0%B4%D1%80%D0%BE/%D0%A1%D0%B1%D0%BE%D1%80%D0%BA%D0%B0_%D1%8F%D0%B4%D1%80%D0%B0&amp;diff=5227&amp;oldid=prev"/>
		<updated>2015-12-28T20:26:41Z</updated>

		<summary type="html">&lt;p&gt;Замена текста — «{{Перевод от Сubewriter}}» на «{{Перевод от Сubewriter}} {{Myagkij-редактор}}»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Raspberry Pi панель перехода}}&lt;br /&gt;
{{Перевод от Сubewriter}}&lt;br /&gt;
{{Myagkij-редактор}}&lt;br /&gt;
&lt;br /&gt;
=Сборка ядра&amp;lt;ref&amp;gt;[https://www.raspberrypi.org/documentation/linux KERNEL BUILDING]&amp;lt;/ref&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
Есть два основных способа для сборки ядра — локально (прямо на '''Raspberry Pi'''), но это отнимает очень много времени, или посредством кросс-компиляции, что быстрее, но потребует дополнительной возни.&lt;br /&gt;
&lt;br /&gt;
==Локальная сборка==&lt;br /&gt;
&lt;br /&gt;
Сначала нужно установить на '''Raspberry Pi''' последнюю версию Raspbian (ее можно скачать со [http://www.raspberrypi.org/downloads страницы загрузок] на официальном сайте '''Raspberry Pi'''). После этого загружаем '''Pi''', подключаем ее к '''Ethernet''' (чтобы получить доступ к исходникам) и залогиниваемся.&lt;br /&gt;
&lt;br /&gt;
Сначала скачиваем исходники (это займет какое-то время):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone --depth=1 https://github.com/raspberrypi/linux&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Добавляем пропущенные зависимости:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install bc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Теперь нужно настроить ядро. Конечно, можно пользоваться и дефолтными настройками, но если вы хотите добавить или, наоборот, удалить определенный функционал, то более подробно об этом можно прочесть на страницах о [https://www.raspberrypi.org/documentation/linux/kernel/configuring.md настройке ядра] и [https://www.raspberrypi.org/documentation/linux/kernel/patching.md установке патчей].&lt;br /&gt;
&lt;br /&gt;
Дальнейший шаг зависит от того, какой версии ваша '''Raspberry Pi'''.&lt;br /&gt;
&lt;br /&gt;
Чтобы установить дефолтный билд для '''Raspberry Pi 1''' (или вычислительного модуля), впишите следующее:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd linux&lt;br /&gt;
KERNEL=kernel&lt;br /&gt;
make bcmrpi_defconfig&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Чтобы установить дефолтный билд для '''Raspberry Pi 2''', впишите следующее:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd linux&lt;br /&gt;
KERNEL=kernel7&lt;br /&gt;
make bcm2709_defconfig&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Теперь собираем и устанавливаем ядро, модули и '''DTB'''-файлы. Этот шаг займет очень много времени...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make zImage modules dtbs&lt;br /&gt;
sudo make modules_install&lt;br /&gt;
sudo cp arch/arm/boot/dts/*.dtb /boot/&lt;br /&gt;
sudo cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/&lt;br /&gt;
sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/&lt;br /&gt;
sudo scripts/mkknlimg arch/arm/boot/zImage /boot/$KERNEL.img&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Примечание. В случае с '''Raspberry Pi 2''' воспользуйтесь приставкой '''''-j4''''' (это может выглядеть, к примеру, так — '''''make -j4 zImage modules dtbs'''''). Это разобьет работу между четырьмя ядрами и значительно повысит скорость компиляции.&lt;br /&gt;
&lt;br /&gt;
==Кросс-компиляция==&lt;br /&gt;
&lt;br /&gt;
Для начала вам потребуется подходящая '''Linux'''-система, и лично мы склоняемся к '''Ubuntu'''. Поскольку Raspbian является дистрибутивом '''Debian''', это значит, что в них используются похожие команды и т.д. &lt;br /&gt;
&lt;br /&gt;
Впрочем, это можно делать и на '''Windows''' — при помощи '''VirtualBox''' или '''VMWare'''. Более подробно об этом читайте [http://www.wikihow.com/Install-Ubuntu-on-VirtualBox тут].&lt;br /&gt;
&lt;br /&gt;
===Установка тулчейна===&lt;br /&gt;
&lt;br /&gt;
Для загрузки '''«тулчейна»''' ('''от англ. toolchain''', что можно перевести как '''«инструментарий для работы с ПО»''') нужно воспользоваться следующей командой:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone https://github.com/raspberrypi/tools&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
После этого тулчейн необходимо скопировать в какую-нибудь общую для всех пользователей директорию (вроде '''''/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian'''''), а затем добавить путь '''''/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin''''' к '''''$PATH''''' в файле '''''.bashrc''''', находящемся в вашей домашней директории. Для '''64-битных систем''' путь нужно немного видоизменить — '''''/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin'''''. К слову, данный шаг не строго обязателен, но если его выполнить, вам будет проще позднее — при работе с командами.&lt;br /&gt;
&lt;br /&gt;
===Получение исходников===&lt;br /&gt;
&lt;br /&gt;
Чтобы получить исходники, делаем отсылку к оригинальному '''GitHub'''-репозиторию:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone --depth=1 https://github.com/raspberrypi/linux&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Сборка исходников===&lt;br /&gt;
&lt;br /&gt;
Чтобы собрать исходники (и тем самым подготовить их к кросс-компиляции), вам могут потребоваться дополнительные зависимости помимо тех, что уже установлены на '''Ubuntu''' по умолчанию. В таком случае сделайте, пожалуйста, запрос на изменение документации. &lt;br /&gt;
&lt;br /&gt;
Далее выполняем сборку исходников и '''DTB'''-файлов.&lt;br /&gt;
&lt;br /&gt;
Для '''Pi''' и вычислительного модуля делаем следующее:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd linux&lt;br /&gt;
KERNEL=kernel&lt;br /&gt;
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Для '''Pi 2''' делаем следующее:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd linux&lt;br /&gt;
KERNEL=kernel7&lt;br /&gt;
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Эта команда нужна в обоих случаях:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Примечание.''' Чтобы ускорить компиляцию на многопроцессорных системах (и на однопроцессорных тоже, но в меньшей степени), используйте '''''-j n''''', где '''''n''''' — это количество процессоров, '''умноженное на 1,5'''. Впрочем, не бойтесь экспериментировать — возможно, лучше всего будет работать какая-то другая цифра.&lt;br /&gt;
&lt;br /&gt;
===Установка напрямую на SD-карту===&lt;br /&gt;
&lt;br /&gt;
После сборки ядра вам нужно скопировать его на '''Raspberry Pi''', а затем установить модули. Это лучше делать напрямую — при помощи '''SD'''-картридера.&lt;br /&gt;
&lt;br /&gt;
Теперь воспользуемся командой '''''lsblk''''', и это нужно сделать два раза — перед подсоединением '''SD'''-карты и после. Тем самым мы определим, какой из дисков — именно '''SD'''-карта. Выдача '''''lsblk''''' должна быть примерно такой:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sdb&lt;br /&gt;
   sdb1&lt;br /&gt;
   sdb2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Если это NOOBS-карта, то вы должны увидеть примерно следующее:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sdb&lt;br /&gt;
  sdb1&lt;br /&gt;
  sdb2&lt;br /&gt;
  sdb3&lt;br /&gt;
  sdb5&lt;br /&gt;
  sdb6&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Здесь '''''sdb1''''' (в первом примере) и '''''sdb5''''' (во втором примере) — это '''FAT''', а '''''sdb2''''' (в первом примере) и '''''sdb6''''' (во втором примере) — это образ файловой системы '''''ext4''''' (NOOBS). &lt;br /&gt;
&lt;br /&gt;
Теперь монтируем разделы:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir mnt/fat32&lt;br /&gt;
mkdir mnt/ext4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Затем подгоняем номера разделов к образам NOOBS:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mount /dev/sdb1 mnt/fat32&lt;br /&gt;
sudo mount /dev/sdb2 mnt/ext4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Далее устанавливаем модули:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Наконец, копируем ядро и '''DTB'''-файлы на '''SD'''-карту (и вместе с тем делаем бэкап старого ядра):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp mnt/fat32/$KERNEL.img mnt/fat32/$KERNEL-backup.img&lt;br /&gt;
sudo scripts/mkknlimg arch/arm/boot/zImage mnt/fat32/$KERNEL.img&lt;br /&gt;
sudo cp arch/arm/boot/dts/*.dtb mnt/fat32/&lt;br /&gt;
sudo cp arch/arm/boot/dts/overlays/*.dtb* mnt/fat32/overlays/&lt;br /&gt;
sudo cp arch/arm/boot/dts/overlays/README mnt/fat32/overlays/&lt;br /&gt;
sudo umount mnt/fat32&lt;br /&gt;
sudo umount mnt/ext4&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Есть и другой вариант: скопировать ядро в то же место, но с другим названием (например, '''''kernel-myconfig.img''''') — чтобы не перезаписать файл '''''kernel.img'''''. Затем редактируем файл config.txt, чтобы выбрать ядро, с которого будет загружаться '''Pi''':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
kernel=kernel-myconfig.img&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Смысл этого действия в том, чтобы у вас было «запасное» ядро, никак не связанное с ядром, на которое приходятся все «шишки» — различные манипуляции со стороны управляющей системы и инструментов для автоматического обновления. &lt;br /&gt;
&lt;br /&gt;
В случае, если это ядро не загрузится, у вас всегда будет возможность вернуться к '''«запасному»''' официальному ядру.&lt;br /&gt;
&lt;br /&gt;
Наконец, вставляем карту в '''Pi''' и загружаемся!&lt;br /&gt;
&lt;br /&gt;
=См.также=&lt;br /&gt;
&lt;br /&gt;
=Внешние ссылки=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Myagkij</name></author>
	</entry>
</feed>