<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wii-linux.org/index.php?action=history&amp;feed=atom&amp;title=Building_Kernel_Guide</id>
	<title>Building Kernel Guide - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wii-linux.org/index.php?action=history&amp;feed=atom&amp;title=Building_Kernel_Guide"/>
	<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;action=history"/>
	<updated>2026-04-22T15:59:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=235&amp;oldid=prev</id>
		<title>SuperbeeLavaman: fix typo</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=235&amp;oldid=prev"/>
		<updated>2025-11-13T19:02:00Z</updated>

		<summary type="html">&lt;p&gt;fix typo&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:02, 13 November 2025&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-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&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;#** Example 1 (copy to local machine&amp;#039;s SD Card on /mnt): &amp;lt;code&amp;gt;./copy-ssh.sh root@localhost /mnt v4_19325 kernel&amp;lt;/code&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;#** Example 1 (copy to local machine&amp;#039;s SD Card on /mnt): &amp;lt;code&amp;gt;./copy-ssh.sh root@localhost /mnt v4_19325 kernel&amp;lt;/code&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;div&gt;#** Example 2 (copy to Wii with SD Card on /boot): &amp;lt;code&amp;gt;./copy-ssh.sh root@wii.local /boot v4_19325 kernel&amp;lt;/code&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;#** Example 2 (copy to Wii with SD Card on /boot): &amp;lt;code&amp;gt;./copy-ssh.sh root@wii.local /boot v4_19325 kernel&amp;lt;/code&amp;gt;&lt;/div&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;#* &#039;&#039;&#039;Installing the kernel modules&#039;&#039;&#039;.  The kernel modules are output as &amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &#039;&#039;&#039;&#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&#039;&#039;&#039;&#039;&#039;.  It will set the UID/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;HID &lt;/del&gt;of the root directory, and /usr, and /usr/lib, to the UID/GID of the user who built the kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; the modules (&amp;lt;code&amp;gt;temp_dir/usr/lib/modules/[kernel version]-wii+&amp;lt;/code&amp;gt;) into your rootfs.&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;#* &#039;&#039;&#039;Installing the kernel modules&#039;&#039;&#039;.  The kernel modules are output as &amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &#039;&#039;&#039;&#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&#039;&#039;&#039;&#039;&#039;.  It will set the UID/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;GID &lt;/ins&gt;of the root directory, and /usr, and /usr/lib, to the UID/GID of the user who built the kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; the modules (&amp;lt;code&amp;gt;temp_dir/usr/lib/modules/[kernel version]-wii+&amp;lt;/code&amp;gt;) into your rootfs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SuperbeeLavaman</name></author>
	</entry>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=234&amp;oldid=prev</id>
		<title>SuperbeeLavaman: add &quot;git clone&quot; to beginning of command to run</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=234&amp;oldid=prev"/>
		<updated>2025-11-13T18:41:07Z</updated>

		<summary type="html">&lt;p&gt;add &amp;quot;git clone&amp;quot; to beginning of command to run&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:41, 13 November 2025&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-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&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;# After you have added it to your path, go back to the main directory and run &amp;lt;code&amp;gt;git clone https://github.com/Wii-Linux/build-stack &amp;amp;&amp;amp; cd build-stack&amp;lt;/code&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;# After you have added it to your path, go back to the main directory and run &amp;lt;code&amp;gt;git clone https://github.com/Wii-Linux/build-stack &amp;amp;&amp;amp; cd build-stack&amp;lt;/code&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;div&gt;# Once you&amp;#039;re in the build-stack folder, run &amp;lt;code&amp;gt;./setup.sh&amp;lt;/code&amp;gt; and follow it&amp;#039;s instructions, to make sure that you have all the necessary requirements installed.  If it asks to clone and build various requirements, answer Yes unless you have a very specific reason not to.&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;# Once you&amp;#039;re in the build-stack folder, run &amp;lt;code&amp;gt;./setup.sh&amp;lt;/code&amp;gt; and follow it&amp;#039;s instructions, to make sure that you have all the necessary requirements installed.  If it asks to clone and build various requirements, answer Yes unless you have a very specific reason not to.&lt;/div&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;# After setup.sh finishes successfully, go back to the main directory, and now finally run &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-ngx -b &amp;lt;Branch You want&amp;gt;&amp;lt;/code&amp;gt;.&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;# After setup.sh finishes successfully, go back to the main directory, and now finally run &amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;git clone &lt;/ins&gt;https://github.com/Wii-Linux/wii-linux-ngx -b &amp;lt;Branch You want&amp;gt;&amp;lt;/code&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;div&gt;#* The branch you clone is the source code to the kernel branch you are going to compile (this could be specialized kernels (like for [[OpenWRT]], or just various versions of the main one). The following kernel branches are the ones currently supported:&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;#* The branch you clone is the source code to the kernel branch you are going to compile (this could be specialized kernels (like for [[OpenWRT]], or just various versions of the main one). The following kernel branches are the ones currently supported:&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;#** &amp;lt;code&amp;gt;wii-v4.5&amp;lt;/code&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;code&amp;gt;wii-v4.5&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SuperbeeLavaman</name></author>
	</entry>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=214&amp;oldid=prev</id>
		<title>Techflash: Clean up a bit of formatting and update to new method</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=214&amp;oldid=prev"/>
		<updated>2025-07-01T22:14:27Z</updated>

		<summary type="html">&lt;p&gt;Clean up a bit of formatting and update to new method&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:14, 1 July 2025&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-l26&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&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;#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx&amp;lt;/code&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;#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx&amp;lt;/code&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;div&gt;#* The &amp;lt;code&amp;gt;--standalone&amp;lt;/code&amp;gt; argument can be used to build a kernel that doesn&amp;#039;t require a loader, &amp;lt;code&amp;gt;arch/powerpc/boot/dts/wii.dts&amp;lt;/code&amp;gt; needs to be edited accordingly with the boot device that will be used.&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;#* The &amp;lt;code&amp;gt;--standalone&amp;lt;/code&amp;gt; argument can be used to build a kernel that doesn&amp;#039;t require a loader, &amp;lt;code&amp;gt;arch/powerpc/boot/dts/wii.dts&amp;lt;/code&amp;gt; needs to be edited accordingly with the boot device that will be used.&lt;/div&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;# After the kernel compiles, you have to build the loader (small squashfs that the kernel boots, provides the boot menu).  In the build-stack run &amp;lt;code&amp;gt;./build-loader.sh ../v&amp;lt;kernel version short&amp;gt;.ldr&amp;lt;/code&amp;gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;#* Example: &amp;lt;code&amp;gt;./build-loader.sh ../v4_19325.ldr&amp;lt;/code&amp;gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;# After the loader is done, you need to go install it.  This consists of 2 parts:&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;# After the loader is done, you need to go install it.  This consists of 2 parts:&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;#* &amp;#039;&amp;#039;&amp;#039;Installing the kernel+loader&amp;#039;&amp;#039;&amp;#039;.  A script has been provided to make this easier, &amp;lt;code&amp;gt;build-stack/copy-ssh.sh&amp;lt;/code&amp;gt;.  This provides an easy way to copy the kernel+loader to a remote machine in any directory.  This could even be a Wii-Linux install.&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;#039;&amp;#039;&amp;#039;Installing the kernel+loader&amp;#039;&amp;#039;&amp;#039;.  A script has been provided to make this easier, &amp;lt;code&amp;gt;build-stack/copy-ssh.sh&amp;lt;/code&amp;gt;.  This provides an easy way to copy the kernel+loader to a remote machine in any directory.  This could even be a Wii-Linux install.&lt;/div&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;#** Example 1 (copy to local machine&#039;s SD Card on /mnt): &amp;lt;code&amp;gt;./copy-ssh.sh root@localhost /mnt v4_19325 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4.19.325-wii+ &lt;/del&gt;kernel &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4_19325.ldr&lt;/del&gt;&amp;lt;/code&amp;gt;&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;#** Example 1 (copy to local machine&#039;s SD Card on /mnt): &amp;lt;code&amp;gt;./copy-ssh.sh root@localhost /mnt v4_19325 kernel&amp;lt;/code&amp;gt;&lt;/div&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;#** Example 2 (copy to Wii with SD Card on /boot): &amp;lt;code&amp;gt;./copy-ssh.sh root@wii.local /boot v4_19325 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4.19.325-wii+ &lt;/del&gt;kernel &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4_19325.ldr&lt;/del&gt;&amp;lt;/code&amp;gt;&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;#** Example 2 (copy to Wii with SD Card on /boot): &amp;lt;code&amp;gt;./copy-ssh.sh root@wii.local /boot v4_19325 kernel&amp;lt;/code&amp;gt;&lt;/div&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;&#039;&lt;/del&gt;&#039;&#039;&#039;Installing the kernel modules&#039;&#039;.  The kernel modules are output as &amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &#039;&#039;&#039;&#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&#039;&#039;&#039;&#039;&#039;.  It will set the UID/HID of the root directory, and /usr, and /usr/lib, to the UID/GID of the user who built the kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; the modules (&amp;lt;code&amp;gt;temp_dir/usr/lib/modules/[kernel version]-wii+&amp;lt;/code&amp;gt; into your rootfs.&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;#* &#039;&#039;&#039;Installing the kernel modules&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;&#039;&#039;.  The kernel modules are output as &amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &#039;&#039;&#039;&#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&#039;&#039;&#039;&#039;&#039;.  It will set the UID/HID of the root directory, and /usr, and /usr/lib, to the UID/GID of the user who built the kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; the modules (&amp;lt;code&amp;gt;temp_dir/usr/lib/modules/[kernel version]-wii+&amp;lt;/code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;) &lt;/ins&gt;into your rootfs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Techflash</name></author>
	</entry>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=185&amp;oldid=prev</id>
		<title>Tech64DD: standalone argument</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=185&amp;oldid=prev"/>
		<updated>2025-05-19T21:32:40Z</updated>

		<summary type="html">&lt;p&gt;standalone argument&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:32, 19 May 2025&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-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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;# After you cloned the kernel that you want to build go back into &amp;lt;code&amp;gt;build-stack&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./build-kernel.sh [name of your kernel directory]&amp;lt;/code&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;# After you cloned the kernel that you want to build go back into &amp;lt;code&amp;gt;build-stack&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;./build-kernel.sh [name of your kernel directory]&amp;lt;/code&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;div&gt;#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx&amp;lt;/code&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;#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx&amp;lt;/code&amp;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;#* The &amp;lt;code&amp;gt;--standalone&amp;lt;/code&amp;gt; argument can be used to build a kernel that doesn&#039;t require a loader, &amp;lt;code&amp;gt;arch/powerpc/boot/dts/wii.dts&amp;lt;/code&amp;gt; needs to be edited accordingly with the boot device that will be used.&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;div&gt;# After the kernel compiles, you have to build the loader (small squashfs that the kernel boots, provides the boot menu).  In the build-stack run &amp;lt;code&amp;gt;./build-loader.sh ../v&amp;lt;kernel version short&amp;gt;.ldr&amp;lt;/code&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;# After the kernel compiles, you have to build the loader (small squashfs that the kernel boots, provides the boot menu).  In the build-stack run &amp;lt;code&amp;gt;./build-loader.sh ../v&amp;lt;kernel version short&amp;gt;.ldr&amp;lt;/code&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;div&gt;#* Example: &amp;lt;code&amp;gt;./build-loader.sh ../v4_19325.ldr&amp;lt;/code&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;#* Example: &amp;lt;code&amp;gt;./build-loader.sh ../v4_19325.ldr&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tech64DD</name></author>
	</entry>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=184&amp;oldid=prev</id>
		<title>Techflash: fix warning formatting</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=184&amp;oldid=prev"/>
		<updated>2025-05-18T19:34:13Z</updated>

		<summary type="html">&lt;p&gt;fix warning formatting&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:34, 18 May 2025&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-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&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;#** Example 1 (copy to local machine&amp;#039;s SD Card on /mnt): &amp;lt;code&amp;gt;./copy-ssh.sh root@localhost /mnt v4_19325 4.19.325-wii+ kernel v4_19325.ldr&amp;lt;/code&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;#** Example 1 (copy to local machine&amp;#039;s SD Card on /mnt): &amp;lt;code&amp;gt;./copy-ssh.sh root@localhost /mnt v4_19325 4.19.325-wii+ kernel v4_19325.ldr&amp;lt;/code&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;div&gt;#** Example 2 (copy to Wii with SD Card on /boot): &amp;lt;code&amp;gt;./copy-ssh.sh root@wii.local /boot v4_19325 4.19.325-wii+ kernel v4_19325.ldr&amp;lt;/code&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;#** Example 2 (copy to Wii with SD Card on /boot): &amp;lt;code&amp;gt;./copy-ssh.sh root@wii.local /boot v4_19325 4.19.325-wii+ kernel v4_19325.ldr&amp;lt;/code&amp;gt;&lt;/div&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;#* &#039;&#039;&#039;&#039;Installing the kernel modules&#039;&#039;.  The kernel modules are output as &amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&#039;&#039;.  It will set the UID/HID of the root directory, and /usr, and /usr/lib, to the UID/GID of the user who built the kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; the modules (&amp;lt;code&amp;gt;temp_dir/usr/lib/modules/[kernel version]-wii+&amp;lt;/code&amp;gt; into your rootfs.&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;#* &#039;&#039;&#039;&#039;Installing the kernel modules&#039;&#039;.  The kernel modules are output as &amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;&#039;&#039;.  It will set the UID/HID of the root directory, and /usr, and /usr/lib, to the UID/GID of the user who built the kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; the modules (&amp;lt;code&amp;gt;temp_dir/usr/lib/modules/[kernel version]-wii+&amp;lt;/code&amp;gt; into your rootfs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Techflash</name></author>
	</entry>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=183&amp;oldid=prev</id>
		<title>Techflash: Try to clean up this absolute mess</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=183&amp;oldid=prev"/>
		<updated>2025-05-18T19:33:39Z</updated>

		<summary type="html">&lt;p&gt;Try to clean up this absolute mess&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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:33, 18 May 2025&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;This Guide will teach you how to compile the Wii-Linux kernel &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for Wii-Linux&lt;/del&gt;.&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;This Guide will teach you how to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cross-&lt;/ins&gt;compile the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;Wii-Linux&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;kernel &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and supporting elements&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;== Requirements ==&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;== Requirements ==&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;A PC&lt;/del&gt;&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;An x86 or AArch64 device running GNU/Linux&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;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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&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;# Install Crosstool-NG via package manager or compile it by cloning &amp;lt;code&amp;gt;git clone https://github.com/crosstool-ng/crosstool-ng&amp;lt;/code&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;# Install Crosstool-NG via package manager or compile it by cloning &amp;lt;code&amp;gt;git clone https://github.com/crosstool-ng/crosstool-ng&amp;lt;/code&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;div&gt;# Make a directory to have all the files/folders to be in&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;# Make a directory to have all the files/folders to be in&lt;/div&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;# In that directory clone the Wii-Linux-Toolchain &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-toolchain&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.git&lt;/del&gt;&amp;lt;/code&amp;gt;.&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;# In that directory clone the Wii-Linux-Toolchain &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-toolchain&amp;lt;/code&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;div&gt;# cd into the wii-linux-toolchain folder and run &amp;lt;code&amp;gt;mv ct-ng.config .config&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;ct-ng build&amp;lt;/code&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;# cd into the wii-linux-toolchain folder and run &amp;lt;code&amp;gt;mv ct-ng.config .config&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;ct-ng build&amp;lt;/code&amp;gt;.&lt;/div&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;#* The process will take a while depending on how &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;shit &lt;/del&gt;your computer is.&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;#* The process will take a while depending on how &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bad &lt;/ins&gt;your computer is.&lt;/div&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;# Once it&#039;s installed it should make a directory in your home folder called x-tools &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;run &lt;/del&gt;&amp;lt;code&amp;gt;echo &#039;PATH=&quot;$PATH:~/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;x&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tools&lt;/del&gt;/powerpc-unknown-linux-gnu/bin&quot;&#039; &amp;gt;&amp;gt; ~/.bashrc &amp;amp;&amp;amp; source ~/.bashrc&amp;lt;/code&amp;gt;.&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;# Once it&#039;s installed&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;it should make a directory in your home folder called &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;x-tools&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;.&lt;/ins&gt;&lt;/div&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;# After you &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ran the previous command &lt;/del&gt;go back to the main directory &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;folder &lt;/del&gt;and run &amp;lt;code&amp;gt;git clone https://github.com/Wii-Linux/build-stack&amp;lt;/code&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and cd into it&lt;/del&gt;.&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;#* You can optionally move this directory elsewhere first, if you don&#039;t find &amp;lt;code&amp;gt;x-tools&amp;lt;/code&amp;gt; appealing.&lt;/ins&gt;&lt;/div&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;# Once &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;your &lt;/del&gt;in the build-stack folder run setup.sh and follow &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;its &lt;/del&gt;instructions &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and &lt;/del&gt;make sure you have all the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;things u have &lt;/del&gt;installed&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, and if &lt;/del&gt;it asks to clone and build &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;stuff always &lt;/del&gt;answer &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with Y&lt;/del&gt;.&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;# You must now add it to your PATH.  This varies per shell, and based on where you put it, but as an example:&lt;/ins&gt;&lt;/div&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;# After setup.sh finishes successfully go back to the main directory and now finally run &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-ngx&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.git -&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;branch &lt;/del&gt;&amp;lt;Branch You want&amp;gt;&amp;lt;/code&amp;gt;.&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;#* for bash: &lt;/ins&gt;&amp;lt;code&amp;gt;echo &#039;PATH=&quot;$PATH:~/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;path to ct&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ng output&amp;gt;&lt;/ins&gt;/powerpc-unknown-linux-gnu/bin&quot;&#039; &amp;gt;&amp;gt; ~/.bashrc &amp;amp;&amp;amp; source ~/.bashrc&amp;lt;/code&amp;gt;.&lt;/div&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;#* The branch you clone is the kernel you are going to compile, the following kernel&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;s &lt;/del&gt;are the ones currently supported&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&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;# After you &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;have added it to your path, &lt;/ins&gt;go back to the main directory and run &amp;lt;code&amp;gt;git clone https://github.com/Wii-Linux/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build-stack &amp;amp;&amp;amp; cd &lt;/ins&gt;build-stack&amp;lt;/code&amp;gt;.&lt;/div&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;#** wii-v4.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;# Once &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;you&#039;re &lt;/ins&gt;in the build-stack folder&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;run &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;./&lt;/ins&gt;setup.sh&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;and follow &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;it&#039;s &lt;/ins&gt;instructions&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, to &lt;/ins&gt;make sure &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that &lt;/ins&gt;you have all the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;necessary requirements &lt;/ins&gt;installed&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.  If &lt;/ins&gt;it asks to clone and build &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;various requirements, &lt;/ins&gt;answer &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Yes unless you have a very specific reason not to&lt;/ins&gt;.&lt;/div&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;#** wii-v4.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;6&lt;/del&gt;&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;# After setup.sh finishes successfully&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;go back to the main directory&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;and now finally run &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-ngx -&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;b &lt;/ins&gt;&amp;lt;Branch You want&amp;gt;&amp;lt;/code&amp;gt;.&lt;/div&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;#** wii&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4.9&lt;/del&gt;&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;#* The branch you clone is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the source code to &lt;/ins&gt;the kernel &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;branch &lt;/ins&gt;you are going to compile &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(this could be specialized kernels (like for [[OpenWRT]]&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or just various versions of &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;main one). The &lt;/ins&gt;following kernel &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;branches &lt;/ins&gt;are the ones currently supported&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; 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;#** wii-v4.14&lt;/del&gt;&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;&amp;lt;code&amp;gt;&lt;/ins&gt;wii-v4.5&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&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;#** wii-v4.19&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;&amp;lt;code&amp;gt;&lt;/ins&gt;wii-v4.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;14&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;openwrt&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&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;# After you cloned the kernel you want to build go back into build-stack and run &amp;lt;code&amp;gt;./build-kernel.sh [name of your kernel directory &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;will most likely be wii-linux-ngx if you kept it default&lt;/del&gt;] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;kernelversion&amp;gt;-wii+&lt;/del&gt;&amp;lt;/code&amp;gt;.&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;&amp;lt;code&amp;gt;&lt;/ins&gt;wii-v4.19&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;&lt;/div&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;#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4.19.325-wii+&lt;/del&gt;&amp;lt;/code&amp;gt;.&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;# After you cloned the kernel &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that &lt;/ins&gt;you want to build go back into &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;build-stack&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;and run &amp;lt;code&amp;gt;./build-kernel.sh [name of your kernel directory]&amp;lt;/code&amp;gt;.&lt;/div&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;# After the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kernel &lt;/del&gt;compiles you have to build the loader &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in order to run your &lt;/del&gt;kernel &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;so in &lt;/del&gt;the build-stack run &amp;lt;code&amp;gt;./build-loader.sh ../v&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kernel Version&lt;/del&gt;&amp;gt;.ldr&amp;lt;/code&amp;gt;.&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;#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx&amp;lt;/code&amp;gt;.&lt;/div&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;#* Example: &amp;lt;code&amp;gt;./build-loader.sh ../&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4_19_325&lt;/del&gt;.ldr&amp;lt;/code&amp;gt;.&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;# After the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kernel &lt;/ins&gt;compiles&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;you have to build the loader &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(small squashfs that the &lt;/ins&gt;kernel &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;boots, provides the boot menu).  In &lt;/ins&gt;the build-stack run &amp;lt;code&amp;gt;./build-loader.sh ../v&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kernel version short&lt;/ins&gt;&amp;gt;.ldr&amp;lt;/code&amp;gt;.&lt;/div&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;# After the loader is done go to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;your main directory and run &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cp &amp;lt;kernedir&amp;gt;&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;arch/powerpc/boot/zImage &lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;&amp;amp; mv zImage v&lt;/del&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kernel Version&lt;/del&gt;&amp;gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;krn&amp;lt;&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&amp;gt; and &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cp &amp;lt;kerneldir&amp;gt;&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;modules&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;tar&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gz &lt;/del&gt;.&amp;lt;/code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&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;#* Example: &amp;lt;code&amp;gt;./build-loader.sh ../&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4_19325&lt;/ins&gt;.ldr&amp;lt;/code&amp;gt;.&lt;/div&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;#* Example: &amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cp &amp;lt;kernedir&amp;gt;&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;arch/powerpc&lt;/del&gt;/boot&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/zImage &lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;&amp;amp; mv zImage &lt;/del&gt;v4_19325.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;krn&lt;/del&gt;&amp;lt;/code&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and &lt;/del&gt;&amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cp wii-linux-ngx/&lt;/del&gt;modules.tar.gz &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&amp;lt;/code&amp;gt;&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;# After the loader is done&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, you need to &lt;/ins&gt;go &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;install it.  This consists of 2 parts:&lt;/ins&gt;&lt;/div&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;# Finally after all of that &lt;/del&gt;in your &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;main &lt;/del&gt;directory &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;you should have 1 ldr file&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1 krn file&lt;/del&gt;, and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;modules.tar.gz file&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;put &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ldr and krn file in &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wiilinux folder in your sd card (preassumed that u had &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sd card files&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;folders zip already in there extracted) and extract &lt;/del&gt;the modules&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.tar.gz onto your rootfs under &lt;/del&gt;&amp;lt;code&amp;gt;lib/modules&amp;lt;/code&amp;gt;.&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;#* &#039;&#039;&#039;Installing the kernel+loader&#039;&#039;&#039;.  A script has been provided &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;make this easier, &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;build-stack&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;copy-ssh&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sh&lt;/ins&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/code&lt;/ins&gt;&amp;gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; This provides an easy way to copy the kernel+loader to a remote machine in any directory.  This could even be a Wii-Linux install.&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;#** Example 1 (copy to local machine&#039;s SD Card on &lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mnt): &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;./copy-ssh.sh root@localhost &lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mnt v4_19325 4&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;19&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;325-wii+ kernel v4_19325&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ldr&lt;/ins&gt;&amp;lt;/code&amp;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;* Example &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2 (copy to Wii with SD Card on /boot)&lt;/ins&gt;: &amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;copy-ssh.sh root@wii.local &lt;/ins&gt;/boot &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v4_19325 4.19&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;325-wii+ kernel &lt;/ins&gt;v4_19325.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ldr&lt;/ins&gt;&amp;lt;/code&amp;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;#* &#039;&#039;&#039;&#039;Installing the kernel modules&#039;&#039;.  The kernel modules are output as &lt;/ins&gt;&amp;lt;code&amp;gt;modules.tar.gz&amp;lt;/code&amp;gt; in your &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kernel directory.  You will need to safely extract these to your Wii-Linux distro&#039;s rootfs.  &#039;&#039;WARNING&#039;&#039;: Extracting directly to the rootfs &#039;&#039;WILL HOSE YOUR PERMISSIONS - DO NOT DO THAT&#039;&#039;.  It will set the UID/HID of the root &lt;/ins&gt;directory, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and /usr&lt;/ins&gt;, and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/usr/lib&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;UID/GID of &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;user who built &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kernel.  Instead, you can extract it to a temporary directory, then &amp;lt;code&amp;gt;mv&amp;lt;&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&amp;gt; or &amp;lt;code&amp;gt;cp -r&amp;lt;/code&amp;gt; &lt;/ins&gt;the modules &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&lt;/ins&gt;&amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;temp_dir/usr/&lt;/ins&gt;lib/modules&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/[kernel version]-wii+&lt;/ins&gt;&amp;lt;/code&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;into your rootfs&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Techflash</name></author>
	</entry>
	<entry>
		<id>https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=182&amp;oldid=prev</id>
		<title>Selimgozel1: A semi-simple guide to help compile wii-linux kernel&#039;s</title>
		<link rel="alternate" type="text/html" href="https://wiki.wii-linux.org/index.php?title=Building_Kernel_Guide&amp;diff=182&amp;oldid=prev"/>
		<updated>2025-05-18T18:16:10Z</updated>

		<summary type="html">&lt;p&gt;A semi-simple guide to help compile wii-linux kernel&amp;#039;s&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This Guide will teach you how to compile the Wii-Linux kernel for Wii-Linux.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* A PC&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup and Compile==&lt;br /&gt;
# Install Crosstool-NG via package manager or compile it by cloning &amp;lt;code&amp;gt;git clone https://github.com/crosstool-ng/crosstool-ng&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Make a directory to have all the files/folders to be in&lt;br /&gt;
# In that directory clone the Wii-Linux-Toolchain &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-toolchain.git&amp;lt;/code&amp;gt;.&lt;br /&gt;
# cd into the wii-linux-toolchain folder and run &amp;lt;code&amp;gt;mv ct-ng.config .config&amp;lt;/code&amp;gt; and run &amp;lt;code&amp;gt;ct-ng build&amp;lt;/code&amp;gt;.&lt;br /&gt;
#* The process will take a while depending on how shit your computer is.&lt;br /&gt;
# Once it&amp;#039;s installed it should make a directory in your home folder called x-tools run &amp;lt;code&amp;gt;echo &amp;#039;PATH=&amp;quot;$PATH:~/x-tools/powerpc-unknown-linux-gnu/bin&amp;quot;&amp;#039; &amp;gt;&amp;gt; ~/.bashrc &amp;amp;&amp;amp; source ~/.bashrc&amp;lt;/code&amp;gt;.&lt;br /&gt;
# After you ran the previous command go back to the main directory folder and run &amp;lt;code&amp;gt;git clone https://github.com/Wii-Linux/build-stack&amp;lt;/code&amp;gt; and cd into it.&lt;br /&gt;
# Once your in the build-stack folder run setup.sh and follow its instructions and make sure you have all the things u have installed, and if it asks to clone and build stuff always answer with Y.&lt;br /&gt;
# After setup.sh finishes successfully go back to the main directory and now finally run &amp;lt;code&amp;gt;https://github.com/Wii-Linux/wii-linux-ngx.git --branch &amp;lt;Branch You want&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
#* The branch you clone is the kernel you are going to compile, the following kernel&amp;#039;s are the ones currently supported.&lt;br /&gt;
#** wii-v4.5&lt;br /&gt;
#** wii-v4.6&lt;br /&gt;
#** wii-v4.9&lt;br /&gt;
#** wii-v4.14&lt;br /&gt;
#** wii-v4.19&lt;br /&gt;
# After you cloned the kernel you want to build go back into build-stack and run &amp;lt;code&amp;gt;./build-kernel.sh [name of your kernel directory will most likely be wii-linux-ngx if you kept it default] &amp;lt;kernelversion&amp;gt;-wii+&amp;lt;/code&amp;gt;.&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;./build-kernel.sh wii-linux-ngx 4.19.325-wii+&amp;lt;/code&amp;gt;.&lt;br /&gt;
# After the Kernel compiles you have to build the loader in order to run your kernel so in the build-stack run &amp;lt;code&amp;gt;./build-loader.sh ../v&amp;lt;Kernel Version&amp;gt;.ldr&amp;lt;/code&amp;gt;.&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;./build-loader.sh ../v4_19_325.ldr&amp;lt;/code&amp;gt;.&lt;br /&gt;
# After the loader is done go to your main directory and run &amp;lt;code&amp;gt;cp &amp;lt;kernedir&amp;gt;/arch/powerpc/boot/zImage . &amp;amp;&amp;amp; mv zImage v&amp;lt;Kernel Version&amp;gt;.krn&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;cp &amp;lt;kerneldir&amp;gt;/modules.tar.gz .&amp;lt;/code&amp;gt;.&lt;br /&gt;
#* Example: &amp;lt;code&amp;gt;cp &amp;lt;kernedir&amp;gt;/arch/powerpc/boot/zImage . &amp;amp;&amp;amp; mv zImage v4_19325.krn&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;cp wii-linux-ngx/modules.tar.gz .&amp;lt;/code&amp;gt;&lt;br /&gt;
# Finally after all of that in your main directory you should have 1 ldr file, 1 krn file, and modules.tar.gz file, put the ldr and krn file in the wiilinux folder in your sd card (preassumed that u had the sd card files/folders zip already in there extracted) and extract the modules.tar.gz onto your rootfs under &amp;lt;code&amp;gt;lib/modules&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Selimgozel1</name></author>
	</entry>
</feed>