From f2d4f77afb9095d84d56ae067c513b80b73962e0 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 7 Sep 2017 16:43:49 -0700 Subject: kernel-dev: Updates to the kernel patch examples. Switching to kernel version 4.12. Pulled some old commented stuff out. (From yocto-docs rev: c0a5c886256d3477ddaf670df4939bec1c73152e) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 133 ++++--------------------- 1 file changed, 22 insertions(+), 111 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 3af52eb352..eaf0146153 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -362,25 +362,26 @@ - The following command shows how to create a local copy - of the linux-yocto-4.9 kernel: + The following commands show how to create a local copy + of the linux-yocto-4.12 kernel: - $ git clone git://git.yoctoproject.org/linux-yocto-4.9 linux-yocto-4.9.git - Cloning into 'linux-yocto-4.9.git'... - remote: Counting objects: 5094108, done. - remote: Compressing objects: 100% (765113/765113), done. - remote: Total 5094108 (delta 4294009), reused 5088388 (delta 4288312) - Receiving objects: 100% (5094108/5094108), 1.02 GiB | 7.82 MiB/s, done. - Resolving deltas: 100% (4294009/4294009), done. + $ cd ~ + $ git clone git://git.yoctoproject.org/linux-yocto-4.12 linux-yocto-4.12 + Cloning into 'linux-yocto-4.12'... + remote: Counting objects: 6097195, done. + remote: Compressing objects: 100% (901026/901026), done. + remote: Total 6097195 (delta 5152604), reused 6096847 (delta 5152256) + Receiving objects: 100% (6097195/6097195), 1.24 GiB | 7.81 MiB/s, done. + Resolving deltas: 100% (5152604/5152604), done. Checking connectivity... done. - Checking out files: 100% (56233/56233), done. + Checking out files: 100% (59846/59846), done. - At this point you have set up to start making modifications to + At this point, you are ready to start making modifications to the kernel using traditional kernel development steps. For a continued example, see the "Using Traditional Kernel Development to Patch the Kernel" @@ -1010,97 +1011,6 @@ $ devtool build linux-yocto - Create the Image With the New Kernel: Use the devtool build-image command @@ -1260,9 +1170,9 @@ NOTE: This stuff is how it would have been if a *.wic file was created "Getting Ready for Traditional Kernel Development" section, use the following commands to check out the standard/base branch of the - Linux Yocto 4.9 kernel: + Linux Yocto 4.12 kernel: - $ cd ~/linux-yocto-4.9 + $ cd ~/linux-yocto-4.12 $ git checkout -b standard/base origin/standard/base @@ -1278,7 +1188,7 @@ NOTE: This stuff is how it would have been if a *.wic file was created Change to where the kernel source code is before making your edits to the calibrate.c file: - $ cd ~/linux-yocto-4.9/init + $ cd ~/linux-yocto-4.12/init @@ -1326,12 +1236,13 @@ NOTE: This stuff is how it would have been if a *.wic file was created local.conf: $ cd ~/poky/build/conf - Add the following: - - SRC_URI_pn-linux-yocto = "git:///$HOME/linux-yocto-4.9;protocol=file;name=machine;branch=standard/base; \ - git:///home/scottrif/yocto-kernel-cache;protocol=file;type=kmeta;name=meta;branch=yocto-4.9;destsuffix=${KMETA}" -SRCREV_meta_qemux86 = "${AUTOREV}" -SRCREV_machine_qemux86 = "${AUTOREV}" + + Add the following to the local.conf: + + SRC_URI_pn-linux-yocto = "git:///$HOME/linux-yocto-4.12;protocol=file;name=machine;branch=standard/base; \ + git:///home/scottrif/yocto-kernel-cache;protocol=file;type=kmeta;name=meta;branch=yocto-4.12;destsuffix=${KMETA}" + SRCREV_meta_qemux86 = "${AUTOREV}" + SRCREV_machine_qemux86 = "${AUTOREV}" You must be sure to specify the correct branch and machine types. -- cgit v1.2.3-54-g00ecf