imx6 Linux Kernel Source File modification

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 Linux Kernel Source File modification

2,294 Views
riteshpanchal
Contributor II

I am using fsl-yocto-3.14.28-1.0.1 project.

And i want to modify some source file of the linux kernel.

For example i am trying to change 'build-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/drivers/media/platform/mxc/capture/ov5640.c' file.

After modifying the file i executed "bitbake -c cleansstate linux-imx" command.

But then if i execute "bitbake fsl-image-multimedia-full" modified ov5640.c overwrite with the default one.

So how can i change the kernel source file?

Labels (4)
7 Replies

1,607 Views
dilshad_alam
Senior Contributor II

Hi Yuri Mohan,

Does free scale provide Revision history between Kernel Migrations.

Suppose I am using Kernel 3.10.17 and planning to Migrate to 3.14.28. So do you have some document which has details on BSP changes done in new kernel.

Thanks,

Dilshad

0 Kudos
Reply

1,607 Views
Yuri
NXP Employee
NXP Employee

The only comments regarding new versions may be found in Release Notes

in each BSP doc.

Regards,

Yuri.

0 Kudos
Reply

1,607 Views
dilshad_alam
Senior Contributor II

Can you provide some links to have this information.

Thanks,

Dilshad

0 Kudos
Reply

1,607 Views
Yuri
NXP Employee
NXP Employee

  Please find the enclosed.

Regards,

Yuri.

1,607 Views
dilshad_alam
Senior Contributor II

Thanks Yuri Muhin.

Really Helpful.

0 Kudos
Reply

1,607 Views
Yuri
NXP Employee
NXP Employee

  Please refer to the Yocto FAQ :

i.MX Yocto Project: Frequently Asked Questions

i.MX Yocto Project: How can I (quickly) modify the kernel and test it?


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,607 Views
riteshpanchal
Contributor II

Please find my custom layer file. i have put it on my build folder.

And added BBLAYER in conf\bblayers.conf

And also i have checked it found by bitbake by following command

bitbake-layers show-layers

And after that if execute

bitbake -c cleansstate linux-imx

i got following error

ERROR: No recipes available for:

/home/ritesh/fsl-release-bsp/build-x11/meta-fsl-custom/recipes-kernel/linux/linux-imx.bbappend

I just change one line in ov5640.c file and i want to just test kernel patching.

i also tried to add test.bb file in recipies/linux folder and adding the following contain

SRC_URI += "file://0001-ov5640.c-test-string-change.patch"

patch -p1 0001-ov5640.c-test-string-change.patch

So i got error "Failed to parse recipe: /home/ritesh/fsl-release-bsp/build-x11/meta-fsl-custom/recipes-kernel/linux/test.bb"

And for quick kernel modification. I can successfully create zImage and tried following command to flash

sudo cp tmp/deploy/images/imx6qsabresd/zImage /media/ritesh/Boot\ imx6qs

But Linux freezing after Starting kernel message on terminal.

0 Kudos
Reply