]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel-dev: Updates on how to prepare for kernel modification.
authorScott Rifenbark <srifenbark@gmail.com>
Sat, 19 Aug 2017 01:22:20 +0000 (18:22 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Sep 2017 23:52:48 +0000 (00:52 +0100)
WIP at this point.

(From yocto-docs rev: 12e44f6ee7f9437d85c33d0789dbafe937af5664)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
documentation/kernel-dev/kernel-dev-common.xml
documentation/kernel-dev/kernel-dev-intro.xml

index 8c8fe0571188e6220e298bac92a62c95e32d5029..cb50912ea4dc4f4846376ba4580926a1b43fe243 100644 (file)
     <section id="using-devtool-to-patch-the-kernel">
         <title>Using <filename>devtool</filename> to Patch the Kernel</title>
 
+
+        <para role='writernotes'>
+            Some stuff here for the using devtool from the wiki.
+            This whole section is WIP.
+            <orderedlist>
+                <listitem><para role='writernotes'>
+                    If you are dealing with real hardware, you can flash the
+                    new kernel image to a USB stick and boot the hardware to
+                    see it run.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Checkout and modify the kernel source.
+                    This is where you make your changes to the image.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Create a new image that uses the altered kernel.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    If you are working with actual hardware, you can flash
+                    the new image to a USB stick and use it to boot up the
+                    hardware.
+                    You can see your changes in action.
+                    </para></listitem>
+            </orderedlist>
+        </para>
+
         <para>
             Patching the kernel involves changing or adding configurations to an existing kernel,
             changing or adding recipes to the kernel that are needed to support specific hardware features,
index 9104ed4d876e6cf5856aae9a95ce3e4961167fe7..56cf6bc7e272dc7f3908d886708a3c9cb52d8691 100644 (file)
         <title>Getting Ready to Develop using <filename>devtool</filename></title>
 
         <para role='writernotes'>
-            Need the updated wiki stuff here
+            Sections as follows:
+            <orderedlist>
+                <listitem><para role='writernotes'>
+                    Source the oe-init-build-env script.
+                    At this point, we assume the build host is set up and
+                    <filename>poky</filename> repository has been cloned.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Be sure your <filename>local.conf</filename> file has
+                    the correct
+                    <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE'><filename>MACHINE</filename></ulink>
+                    variable set for the target hardware on which your
+                    kernel image runs.
+                    Also have the
+                    <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS'><filename>MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS</filename></ulink>
+                    variable set equal to "kernel-modules".
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Create a layer for later that will contain your patches
+                    (if any) to the kernel.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Build the extensible SDK.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Install the extensible SDK.
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Set up the terminal so that you can work with the
+                    extensible SDK.
+                    This terminal is known as the "eSDK Terminal" unlike the
+                    terminal that is set up to run BitBake, which is known
+                    as the "BitBake Terminal".
+                    </para></listitem>
+                <listitem><para role='writernotes'>
+                    Build the initial image using the extensible SDK.
+                    </para></listitem>
+            </orderedlist>
+        </para>
+
+        <para role='writernotes'>
+            At this point, the user has enough stuff set up to work on the
+            kernel.
+            I will put a section in the "Common Tasks" area of this manual
+            that finished out how to make a modification to the kernel.
         </para>
     </section>