User:Anthumchris:How to build the Alpine Linux kernel: Difference between revisions

From Alpine Linux
m (Ikke moved page User:-anthumchris-/kernel/howto to User:Anthumchris/kernel/howto: Automatically moved page while renaming the user "-anthumchris-" to "Anthumchris")
No edit summary
Line 1: Line 1:
== How To Do Something ==
== How build the Alpine Linux kernel ==
A customized build of the Alpine Linux kernel may be needed if you are experimenting with adding/removing kernel features and modules. The Alpine kernel extends the standard [https://www.kernel.org/linux.html Linux kernel] and builds within 5 minutes to few hours (depending on the speed of your system). The kernel is built using <code>[[abuild]]</code> and [https://gitlab.alpinelinux.org/alpine/aports aports].


Summarize your article here so readers can decide
== Before you start ==
quickly whether to read it.
A running instance of Alpine Linux and a non-root user are required to use <code>[[abuild]]</code>.


== Before You Start Title ==
== Build the kernel ==
Your readers might need to get ready before they can do the work.
Run as root:
If so explain those prerequisites first. This section might alternatively
<pre>
contain background information readers need to know before they can make
# add required packages
sense of your example or carry out your instructions.
apk add alpine-sdk


== Doing Something Title ==
# add non-root user to abuild group
Write the steps of how to do something in this section.
addgroup USERNAME abuild
If possible, show an example first, then tell your readers the steps.
</pre>
Break this procedure into separate procedures to avoid more than
about 7-9 steps per procedure.


INSERT GREAT EXAMPLE HERE
Run as non-root user:
<pre>
git clone --depth 1 https://gitlab.alpinelinux.org/alpine/aports.git
abuild-keygen --append
 
# build/install the kernel
cd aports/main/linux-lts/
time abuild -crK
</pre>
 
== Install the kernel ==
 
<pre>
apk add /home/USERNAME/packages/.....................................
</pre>


#Answer the following three questions, at least in your head.
##What do I explain how to do?
##How do I do that?
##What do HOWTO readers already know about doing that?
#Write up a good example. This ensures you can do it.
#Write up the steps to do it.
#Write the background info/prerequisites readers need.
#Write the summary.
#Clean up your work.
# Add relevant category to your page, as every page should be assigned at least one Category.
#Revise, revise, revise.


== See Also ==
== See Also ==
If you ought to point your readers to related information
 
they no doubt need but that does not fit in your HOWTO, add links here.
* [[Kernels]]
* [[Custom Kernel]]

Revision as of 17:57, 3 December 2024

How build the Alpine Linux kernel

A customized build of the Alpine Linux kernel may be needed if you are experimenting with adding/removing kernel features and modules. The Alpine kernel extends the standard Linux kernel and builds within 5 minutes to few hours (depending on the speed of your system). The kernel is built using abuild and aports.

Before you start

A running instance of Alpine Linux and a non-root user are required to use abuild.

Build the kernel

Run as root:

# add required packages
apk add alpine-sdk

# add non-root user to abuild group
addgroup USERNAME abuild

Run as non-root user:

git clone --depth 1 https://gitlab.alpinelinux.org/alpine/aports.git
abuild-keygen --append

# build/install the kernel
cd aports/main/linux-lts/
time abuild -crK

Install the kernel

apk add /home/USERNAME/packages/.....................................


See Also