AnsweredAssumed Answered

How to update kernel patch

Question asked by hsu ryan on Jun 16, 2016
Latest reply on Jun 20, 2016 by Pranav Madhu


Hi,everyone

I want to add uart port to kernel,so I need update patch

but I always get fail,when do bitbake -f compile linux-imx

my steps:

 

1.creating new Layer

fsl-community-bsp $ ./setup-environment build(my build folder)

sources $ yocto-layer create fsl-custom

*Edit and add the layer to the build/conf/bblayers.conf file

build $ bitbake-layers show-layers

 

2.patching the linux kernel

build $ cd tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/git

build $ # Edit any files you want to change(i change my imx6dl.dtsi to add uart port)

build $ git add /arch/arm/boot/dts/imx6dl.dtsi

build $ git commit -s -m uart

build $ git format-patch -1

 

3.create custom folder

sources $ cd meta-imx6

sources $ mkdir recipes-kernel

sources $ cd recipes-kernel

sources $ mkdir linux

sources $ cd linux

sources $ mkdir linux-imx-4.1.15

sources $ cd linux-imx-4.1.15

sources $ mkdir mx6

 

4.add patch

sources $ cat > meta-fsl-custom/recipes-kernel/linux/linux-imx_4.1.15.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"

SRC_URI += "file://imx6/0001-uart.patch"

build $ cd tmp/work/imx6dlsabresd-poky-linux-gnueabi/linux-imx/4.1.15-r0/git

build $ cp 0001-uart.patch /.../linux-imx-4.1.15/mx6

fsl-community-bsp $ ./setup-environment build

build $ bitbake -c cleansstate linux-imx

build $ bitbake -f -c compile linux-imx (always fail )

build $ bitbake -c deploy linux-imx

 

thanks for help

 

 

 

 

 

 

 

 

 

 

 


Outcomes