Yocto Customizing the Linux kernel: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use MORTY_BETA_DART-6UL as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#lst:Yocto_Plat...")
 
No edit summary
Line 7: Line 7:
https://github.com/varigit/meta-variscite-fslc/blob/morty/recipes-kernel/linux/linux-variscite_4.1.15.bb
https://github.com/varigit/meta-variscite-fslc/blob/morty/recipes-kernel/linux/linux-variscite_4.1.15.bb
<pre>
<pre>
SRCBRANCH = "imx-rel_imx_4.1.15_2.0.0_ga-var01"
SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
SRCREV = "458fb5c717c1f226d5469f4dd25c21dee78c3816"
SRCREV = "fixed commit id"
KERNEL_SRC ?= "git://github.com/varigit/linux-2.6-imx.git;protocol=git"
KERNEL_SRC ?= "git://github.com/varigit/linux-2.6-imx.git;protocol=git"
</pre>
</pre>
with your own. For example:
with your own. For example:
<pre>
<pre>
SRCBRANCH = "imx-rel_imx_4.1.15_2.0.0_ga-var01"
SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
SRCREV = "${AUTOREV}"
SRCREV = "${AUTOREV}"
KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"
KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"
Line 21: Line 21:
https://github.com/varigit/meta-variscite-fslc/blob/morty/recipes-bsp/u-boot/u-boot-variscite.bb
https://github.com/varigit/meta-variscite-fslc/blob/morty/recipes-bsp/u-boot/u-boot-variscite.bb
<pre>
<pre>
SRCREV = "f8b449392656231021897a67bdce689985e608c1"
SRCREV = "fixed commit id"
SRCBRANCH = "imx_v2015.04_4.1.15_1.1.0_ga_var01"
SRCBRANCH = "{{#var:U-BOOT_BRANCH}}"
SRC_URI = "git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"
SRC_URI = "git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"
</pre>
</pre>

Revision as of 16:29, 8 May 2017

- Customizing the Linux kernel and U-Boot

Once completed developing your own kernel and U-Boot, create your own github account and upload your proprietary kernel and U-Boot to a new repository.
Replace Variscite's Kernel and U-Boot yocto links, to point to your newly created github branches. i.e. replace kernel link:
https://github.com/varigit/meta-variscite-fslc/blob/morty/recipes-kernel/linux/linux-variscite_4.1.15.bb

SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
SRCREV = "fixed commit id"
KERNEL_SRC ?= "git://github.com/varigit/linux-2.6-imx.git;protocol=git"

with your own. For example:

SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
SRCREV = "${AUTOREV}"
KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"

Also replace:
https://github.com/varigit/meta-variscite-fslc/blob/morty/recipes-bsp/u-boot/u-boot-variscite.bb

SRCREV = "fixed commit id"
SRCBRANCH = "{{#var:U-BOOT_BRANCH}}"
SRC_URI = "git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"

to replace Variscite's U-Boot with your own.


We recommend to use "${AUTOREV}" during development to get the latest Kernel and U-boot when you build Yocto