summaryrefslogtreecommitdiffstats
path: root/documentation/kernel-dev/kernel-dev-faq.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/kernel-dev/kernel-dev-faq.rst')
-rw-r--r--documentation/kernel-dev/kernel-dev-faq.rst70
1 files changed, 53 insertions, 17 deletions
diff --git a/documentation/kernel-dev/kernel-dev-faq.rst b/documentation/kernel-dev/kernel-dev-faq.rst
index fd9f8ce33d..b5e6a84eba 100644
--- a/documentation/kernel-dev/kernel-dev-faq.rst
+++ b/documentation/kernel-dev/kernel-dev-faq.rst
@@ -9,23 +9,46 @@ Kernel Development FAQ
9Common Questions and Solutions 9Common Questions and Solutions
10============================== 10==============================
11 11
12The following lists some solutions for common questions. How do I use my 12The following lists some solutions for common questions.
13own Linux kernel ``.config`` file? Refer to the "`Changing the 13
14Configuration <#changing-the-configuration>`__" section for information. 14How do I use my own Linux kernel ``.config`` file?
15How do I create configuration fragments? Refer to the "`Creating 15--------------------------------------------------
16Configuration Fragments <#creating-config-fragments>`__" section for 16
17information. How do I use my own Linux kernel sources? Refer to the 17Refer to the
18"`Working With Your Own Sources <#working-with-your-own-sources>`__" 18":ref:`kernel-dev/kernel-dev-common:changing the configuration`"
19section for information. How do I install/not-install the kernel image 19section for information.
20on the rootfs? The kernel image (e.g. ``vmlinuz``) is provided by the 20
21How do I create configuration fragments?
22----------------------------------------
23
24A: Refer to the
25":ref:`kernel-dev/kernel-dev-common:creating configuration fragments`"
26section for information.
27
28How do I use my own Linux kernel sources?
29-----------------------------------------
30
31Refer to the
32":ref:`kernel-dev/kernel-dev-common:working with your own sources`"
33section for information.
34
35How do I install/not-install the kernel image on the rootfs?
36------------------------------------------------------------
37
38The kernel image (e.g. ``vmlinuz``) is provided by the
21``kernel-image`` package. Image recipes depend on ``kernel-base``. To 39``kernel-image`` package. Image recipes depend on ``kernel-base``. To
22specify whether or not the kernel image is installed in the generated 40specify whether or not the kernel image is installed in the generated
23root filesystem, override ``RDEPENDS_kernel-base`` to include or not 41root filesystem, override ``RDEPENDS_kernel-base`` to include or not
24include "kernel-image". See the "`Using .bbappend Files in Your 42include "kernel-image". See the
25Layer <&YOCTO_DOCS_DEV_URL;#using-bbappend-files>`__" section in the 43":ref:`dev-manual/dev-manual-common-tasks:using .bbappend files in your layer`"
44section in the
26Yocto Project Development Tasks Manual for information on how to use an 45Yocto Project Development Tasks Manual for information on how to use an
27append file to override metadata. How do I install a specific kernel 46append file to override metadata.
28module? Linux kernel modules are packaged individually. To ensure a 47
48How do I install a specific kernel module?
49------------------------------------------
50
51Linux kernel modules are packaged individually. To ensure a
29specific kernel module is included in an image, include it in the 52specific kernel module is included in an image, include it in the
30appropriate machine 53appropriate machine
31:term:`RRECOMMENDS` variable. 54:term:`RRECOMMENDS` variable.
@@ -36,10 +59,23 @@ These other variables are useful for installing specific modules:
36:term:`MACHINE_EXTRA_RRECOMMENDS` 59:term:`MACHINE_EXTRA_RRECOMMENDS`
37For example, set the following in the ``qemux86.conf`` file to include 60For example, set the following in the ``qemux86.conf`` file to include
38the ``ab123`` kernel modules with images built for the ``qemux86`` 61the ``ab123`` kernel modules with images built for the ``qemux86``
39machine: MACHINE_EXTRA_RRECOMMENDS += "kernel-module-ab123" For more 62machine:
63::
64
65 MACHINE_EXTRA_RRECOMMENDS += "kernel-module-ab123"
66
67For more
40information, see the "`Incorporating Out-of-Tree 68information, see the "`Incorporating Out-of-Tree
41Modules <#incorporating-out-of-tree-modules>`__" section. How do I 69Modules <#incorporating-out-of-tree-modules>`__" section.
42change the Linux kernel command line? The Linux kernel command line is 70
71How do I change the Linux kernel command line?
72----------------------------------------------
73
74The Linux kernel command line is
43typically specified in the machine config using the ``APPEND`` variable. 75typically specified in the machine config using the ``APPEND`` variable.
44For example, you can add some helpful debug information doing the 76For example, you can add some helpful debug information doing the
45following: APPEND += "printk.time=y initcall_debug debug" 77following:
78::
79
80 APPEND += "printk.time=y initcall_debug debug"
81