<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>https://tommy0804.ddns.net/index.php?action=history&amp;feed=atom&amp;title=Kernel</id>
	<title>Kernel - 修訂紀錄</title>
	<link rel="self" type="application/atom+xml" href="https://tommy0804.ddns.net/index.php?action=history&amp;feed=atom&amp;title=Kernel"/>
	<link rel="alternate" type="text/html" href="https://tommy0804.ddns.net/index.php?title=Kernel&amp;action=history"/>
	<updated>2026-08-21T16:31:52Z</updated>
	<subtitle>本wiki上此頁面的修訂紀錄</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://tommy0804.ddns.net/index.php?title=Kernel&amp;diff=540&amp;oldid=prev</id>
		<title>Tommy：​Refactor: add Category:Software and Tools</title>
		<link rel="alternate" type="text/html" href="https://tommy0804.ddns.net/index.php?title=Kernel&amp;diff=540&amp;oldid=prev"/>
		<updated>2026-08-21T05:17:48Z</updated>

		<summary type="html">&lt;p&gt;Refactor: add [[Category:Software and Tools]]&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;zh-Hant-TW&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;2026年8月21日 (五) 13:17的版本&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-l66&quot;&gt;第66行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第66行：&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;* [http://elinux.org/RPi_Kernel_Compilation RPi Kernel Compilation]&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;* [http://elinux.org/RPi_Kernel_Compilation RPi Kernel Compilation]&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;div&gt;* [https://www.raspberrypi.org/documentation/linux/kernel/building.md Kernel Building]&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;* [https://www.raspberrypi.org/documentation/linux/kernel/building.md Kernel Building]&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;[[Category:Software and Tools]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tommy</name></author>
	</entry>
	<entry>
		<id>https://tommy0804.ddns.net/index.php?title=Kernel&amp;diff=128&amp;oldid=prev</id>
		<title>Tommy：​已建立頁面，內容為 &quot;== source == * &lt;nowiki&gt;git clone git://github.com/raspberrypi/linux.git&lt;/nowiki&gt; * &lt;nowiki&gt;svn co file:///var/svn/rpi_linux/trunk&lt;/nowiki&gt;  == toolchain == * &lt;nowiki…&quot;</title>
		<link rel="alternate" type="text/html" href="https://tommy0804.ddns.net/index.php?title=Kernel&amp;diff=128&amp;oldid=prev"/>
		<updated>2018-08-23T03:00:08Z</updated>

		<summary type="html">&lt;p&gt;已建立頁面，內容為 &amp;quot;== source == * &amp;lt;nowiki&amp;gt;git clone git://github.com/raspberrypi/linux.git&amp;lt;/nowiki&amp;gt; * &amp;lt;nowiki&amp;gt;svn co file:///var/svn/rpi_linux/trunk&amp;lt;/nowiki&amp;gt;  == toolchain == * &amp;lt;nowiki…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== source ==&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;git clone git://github.com/raspberrypi/linux.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;svn co file:///var/svn/rpi_linux/trunk&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== toolchain ==&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;git clone https://github.com/raspberrypi/tools&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Prepare SD ==&lt;br /&gt;
* Transfer the following files from the firmware/boot directory to the Raspberry pi /boot directory:&lt;br /&gt;
    bootcode.bin&lt;br /&gt;
    fixup.dat&lt;br /&gt;
    start.elf&lt;br /&gt;
&lt;br /&gt;
* cp firmware/hardfp/opt/ /media/root/opt/ -rf&lt;br /&gt;
&lt;br /&gt;
== build ==&lt;br /&gt;
* make mrproper&lt;br /&gt;
* cp arch/arm/configs/bcmrpi_defconfig .config&lt;br /&gt;
* export CCPREFIX=/path/to/your/compiler/binary/prefix-of-binary-&lt;br /&gt;
* make ARCH=arm CROSS_COMPILE=${CCPREFIX} oldconfig&lt;br /&gt;
* make ARCH=arm CROSS_COMPILE=${CCPREFIX}&lt;br /&gt;
&lt;br /&gt;
== libraries ==&lt;br /&gt;
* pi@raspberrypi:~$ ls /lib/ &amp;lt;br&amp;gt;&lt;br /&gt;
arm-linux-gnueabihf                   libip4tc.so.0         libnih.so.1.0.0&amp;lt;br&amp;gt;&lt;br /&gt;
cpp                                   libip4tc.so.0.1.0     libxtables.so.7&amp;lt;br&amp;gt;&lt;br /&gt;
firmware                              libip6tc.so.0         libxtables.so.7.0.0&amp;lt;br&amp;gt;&lt;br /&gt;
init                                  libip6tc.so.0.1.0     lsb&amp;lt;br&amp;gt;&lt;br /&gt;
klibc-sO6SifHCdmbehHGtm0y1yHu6vb0.so  libipq.so.0           modprobe.d&amp;lt;br&amp;gt;&lt;br /&gt;
ld-linux-armhf.so.3                   libipq.so.0.0.0       modules&amp;lt;br&amp;gt;&lt;br /&gt;
ld-linux.so.3                         libiptc.so.0          systemd&amp;lt;br&amp;gt;&lt;br /&gt;
libaudit.so.0                         libiptc.so.0.0.0      terminfo&amp;lt;br&amp;gt;&lt;br /&gt;
libaudit.so.0.0.0                     libnih-dbus.so.1      udev&amp;lt;br&amp;gt;&lt;br /&gt;
libauparse.so.0                       libnih-dbus.so.1.0.0  xtables&amp;lt;br&amp;gt;&lt;br /&gt;
libauparse.so.0.0.0                   libnih.so.1&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update kernel in Raspbian ==&lt;br /&gt;
=== Get source ===&lt;br /&gt;
# $ git clone --depth=1 https://github.com/raspberrypi/linux&lt;br /&gt;
# $ sudo apt-get install bc&lt;br /&gt;
=== Raspberry Pi 1 (or Compute Module) Default Build Configuration ===&lt;br /&gt;
# $ cd linux&lt;br /&gt;
# $ KERNEL=kernel&lt;br /&gt;
# $ make bcmrpi_defconfig&lt;br /&gt;
=== Raspberry Pi 2 Default Build Configuration ===&lt;br /&gt;
# $ cd linux&lt;br /&gt;
# $ KERNEL=kernel7&lt;br /&gt;
# $ make bcm2709_defconfig&lt;br /&gt;
=== Build and install the kernel, modules and Device Tree blobs ===&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;
&lt;br /&gt;
Note: On a Raspberry Pi 2, adding -j4 (make -j4 zImage modules dtbs) splits the work between all four cores, speeding up compilation significantly.&lt;br /&gt;
&lt;br /&gt;
=== Cross Compile ===&lt;br /&gt;
#$ git clone https://github.com/raspberrypi/tools&lt;br /&gt;
#add /tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin to your $PATH&lt;br /&gt;
# make bcm2709_defconfig ARCH=arm&lt;br /&gt;
# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs -j4&lt;br /&gt;
&lt;br /&gt;
==reference ==&lt;br /&gt;
* [http://elinux.org/RPi_Kernel_Compilation RPi Kernel Compilation]&lt;br /&gt;
* [https://www.raspberrypi.org/documentation/linux/kernel/building.md Kernel Building]&lt;/div&gt;</summary>
		<author><name>Tommy</name></author>
	</entry>
</feed>