| 
				   | 
				
| (36 intermediate revisions by the same user not shown) | 
| Line 1: | 
Line 1: | 
 | == How build the Alpine Linux kernel ==
  |  | ''This draft was removed'' and is published at https://wiki.alpinelinux.org/wiki/How_to_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]. 
  |  | 
 |    |  | 
 | == Before you start ==
  |  | 
 | A running instance of Alpine Linux and a non-root user are required to use <code>[[abuild]]</code>.
  |  | 
 |    |  | 
 | == Build the kernel ==
  |  | 
 | Run as root:
  |  | 
 | <pre>
  |  | 
 | apk add alpine-sdk           # install required packages
  |  | 
 | addgroup USERNAME abuild     # your non-root user
  |  | 
 | </pre>
  |  | 
 |    |  | 
 | 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>
  |  | 
 |    |  | 
 | == See Also ==
  |  | 
 |    |  | 
 | * [[Kernels]]
  |  | 
 | * [[Custom Kernel]]
  |  | 
		Latest revision as of 23:31, 11 December 2024