<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TheLastPsion</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TheLastPsion"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/TheLastPsion"/>
	<updated>2026-05-02T05:33:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_-_Upgrade_kernel_from_repos&amp;diff=27097</id>
		<title>Raspberry Pi - Upgrade kernel from repos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_-_Upgrade_kernel_from_repos&amp;diff=27097"/>
		<updated>2024-08-19T17:01:56Z</updated>

		<summary type="html">&lt;p&gt;TheLastPsion: Fix &amp;quot;modloop&amp;quot; on last line.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In diskless setups the kernel upgrade is not part of the regular upgrade process.&lt;br /&gt;
To do that, one can [[Upgrading_Alpine#Update_to_latest_kernel_on_armhf_(eg._Raspberry_Pi_0_or_1)|get the new kernel from the latest release tarball]].&lt;br /&gt;
&lt;br /&gt;
However, if you need a newer kernel that is available in the repositories but is not yet part of a release, you might consider using the {{ic|update-kernel}} script.&lt;br /&gt;
The catch is, on a Raspberry Pi 3, 1GB of RAM is not enough to successfully run it.&lt;br /&gt;
Also, the script doesn&#039;t work in diskless mode because of the read-only modloop mount.&lt;br /&gt;
There is a workaround, though.&lt;br /&gt;
&lt;br /&gt;
# Generate boot files, including the new kernel in sys mode.&lt;br /&gt;
# Transfer boot files to the target diskless mode microSD card.&lt;br /&gt;
&lt;br /&gt;
== Generate boot files ==&lt;br /&gt;
&lt;br /&gt;
Grab a fresh microSD card and install Alpine Linux on it.&lt;br /&gt;
Boot it on a Raspberry Pi, install the system in sys mode by running {{ic|setup-disks}} and reboot.&lt;br /&gt;
Log in as root, then run update-kernel as follows.&lt;br /&gt;
This will take a while.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir /root/tmp&lt;br /&gt;
mkdir /root/boot&lt;br /&gt;
TMPDIR{{=}}/root/tmp update-kernel -a armhf -f rpi -M /root/boot}}&lt;br /&gt;
&lt;br /&gt;
All files necessary to boot the newest kernel available in repos are now in {{path|/root/boot}}.&lt;br /&gt;
&lt;br /&gt;
== Transfer boot files ==&lt;br /&gt;
&lt;br /&gt;
Copy all files from {{path|/root/boot}} to the target microSD card&#039;s root.&lt;br /&gt;
The Pi should be able to boot from this card and the kernel should now be upgraded.&lt;br /&gt;
&lt;br /&gt;
== Adding kernel modules and firmware ==&lt;br /&gt;
&lt;br /&gt;
You can also add modules by using the {{ic|-p}} switch, followed by the package name.&lt;br /&gt;
For example, if you wanted to include the ZFS kernel module, you would change the above {{ic|update-kernel}} command line to the following:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|TMPDIR{{=}}/root/tmp update-kernel -a armhf -f rpi -p zfs-rpi -M /root/boot}}&lt;br /&gt;
&lt;br /&gt;
This will add the specified modules into the {{ic|modloop}} volume.&lt;br /&gt;
&lt;br /&gt;
[[Category:Raspberry]]&lt;/div&gt;</summary>
		<author><name>TheLastPsion</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_-_Upgrade_kernel_from_repos&amp;diff=27096</id>
		<title>Raspberry Pi - Upgrade kernel from repos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Raspberry_Pi_-_Upgrade_kernel_from_repos&amp;diff=27096"/>
		<updated>2024-08-19T16:58:00Z</updated>

		<summary type="html">&lt;p&gt;TheLastPsion: Added information about the -p switch in update-kernel.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In diskless setups the kernel upgrade is not part of the regular upgrade process.&lt;br /&gt;
To do that, one can [[Upgrading_Alpine#Update_to_latest_kernel_on_armhf_(eg._Raspberry_Pi_0_or_1)|get the new kernel from the latest release tarball]].&lt;br /&gt;
&lt;br /&gt;
However, if you need a newer kernel that is available in the repositories but is not yet part of a release, you might consider using the {{ic|update-kernel}} script.&lt;br /&gt;
The catch is, on a Raspberry Pi 3, 1GB of RAM is not enough to successfully run it.&lt;br /&gt;
Also, the script doesn&#039;t work in diskless mode because of the read-only modloop mount.&lt;br /&gt;
There is a workaround, though.&lt;br /&gt;
&lt;br /&gt;
# Generate boot files, including the new kernel in sys mode.&lt;br /&gt;
# Transfer boot files to the target diskless mode microSD card.&lt;br /&gt;
&lt;br /&gt;
== Generate boot files ==&lt;br /&gt;
&lt;br /&gt;
Grab a fresh microSD card and install Alpine Linux on it.&lt;br /&gt;
Boot it on a Raspberry Pi, install the system in sys mode by running {{ic|setup-disks}} and reboot.&lt;br /&gt;
Log in as root, then run update-kernel as follows.&lt;br /&gt;
This will take a while.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir /root/tmp&lt;br /&gt;
mkdir /root/boot&lt;br /&gt;
TMPDIR{{=}}/root/tmp update-kernel -a armhf -f rpi -M /root/boot}}&lt;br /&gt;
&lt;br /&gt;
All files necessary to boot the newest kernel available in repos are now in {{path|/root/boot}}.&lt;br /&gt;
&lt;br /&gt;
== Transfer boot files ==&lt;br /&gt;
&lt;br /&gt;
Copy all files from {{path|/root/boot}} to the target microSD card&#039;s root.&lt;br /&gt;
The Pi should be able to boot from this card and the kernel should now be upgraded.&lt;br /&gt;
&lt;br /&gt;
== Adding kernel modules and firmware ==&lt;br /&gt;
&lt;br /&gt;
You can also add modules by using the {{ic|-p}} switch, followed by the package name.&lt;br /&gt;
For example, if you wanted to include the ZFS kernel module, you would change the above {{ic|update-kernel}} command line to the following:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|TMPDIR{{=}}/root/tmp update-kernel -a armhf -f rpi -p zfs-rpi -M /root/boot}}&lt;br /&gt;
&lt;br /&gt;
This will add the specified modules into the {{modloop}} volume.&lt;br /&gt;
&lt;br /&gt;
[[Category:Raspberry]]&lt;/div&gt;</summary>
		<author><name>TheLastPsion</name></author>
	</entry>
</feed>