All of lore.kernel.org
 help / color / mirror / Atom feed
* Build the kernel for I.mx6 board
@ 2014-08-10  6:16 vinod kumar
       [not found] ` <CALTF=oKssqe56avB49wnHvyiTiCkAD=cq7NdD+UjXyJPe0dL2g@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: vinod kumar @ 2014-08-10  6:16 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 491 bytes --]

Hi,

I have build the yocto for I.mx6 board. After building the source code,
kernel is in build directory. So when I run
bitbake linux-imx -c cleanall, it remove the entire kernel source code.

So I have some queries:
1) Is it possible to modify(to made changes) the kernel source code
directly from source directory, without going into build directory.

2) How can I remove the compiled file(.o) file from the kernel source code,
without deleting the entire kernel source code.

[-- Attachment #2: Type: text/html, Size: 558 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build the kernel for I.mx6 board
       [not found] ` <CALTF=oKssqe56avB49wnHvyiTiCkAD=cq7NdD+UjXyJPe0dL2g@mail.gmail.com>
@ 2014-08-11  6:24   ` vinod kumar
       [not found]     ` <CALTF=o+PNP4hVZ1zpw+w1DMWY85M5=hCVEPkChU9BG4c4A9weg@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: vinod kumar @ 2014-08-11  6:24 UTC (permalink / raw)
  To: Ronaldo Nunez; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1946 bytes --]

Hi Ronaldo,

Thanks for your reply and valuable suggestions.

*But cleansstate work the same way as cleanal*l. It means it also remove
the kernel source code from build directory.

However the link which you share with me is very nice, I go through it but
also does not give the idea.

I have the follows queries:


   -  I want to clean my kernel directory(*.o binary file only* not .c
   file) only. So is there any way to do that?


   - And one more thing how we can *apply the patch in kernel driver* (eg.
   USB driver) and add the customize configuration from source directory.
   Please give an example, if it is possible.




On Sun, Aug 10, 2014 at 9:46 PM, Ronaldo Nunez <ronaldo.viera@gmail.com>
wrote:

> Hello Vinod!
>
> Cleanall command deletes all releated to the tasks on your recipe,
> including the source code. You should try cleansstate command.
>
> Take a look to this doc,
>
> https://www.yoctoproject.org/sites/yoctoproject.org/files/kernel-lab-1.4.pdf
>
> It's releated to kernel development using Yocto Project, I think it will
> help you a lot.
>
> Cheers,
>
> Ronaldo
>
>
> 2014-08-10 3:16 GMT-03:00 vinod kumar <vinodmaverickr007@gmail.com>:
>
>> Hi,
>>
>> I have build the yocto for I.mx6 board. After building the source code,
>> kernel is in build directory. So when I run
>> bitbake linux-imx -c cleanall, it remove the entire kernel source code.
>>
>> So I have some queries:
>> 1) Is it possible to modify(to made changes) the kernel source code
>> directly from source directory, without going into build directory.
>>
>> 2) How can I remove the compiled file(.o) file from the kernel source
>> code, without deleting the entire kernel source code.
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
>
> --
> Ronaldo Nunez
>

[-- Attachment #2: Type: text/html, Size: 3324 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build the kernel for I.mx6 board
       [not found]     ` <CALTF=o+PNP4hVZ1zpw+w1DMWY85M5=hCVEPkChU9BG4c4A9weg@mail.gmail.com>
@ 2014-08-12  2:22       ` vinod kumar
  2014-08-12 11:55         ` Ronaldo Nunez
  0 siblings, 1 reply; 4+ messages in thread
From: vinod kumar @ 2014-08-12  2:22 UTC (permalink / raw)
  To: Ronaldo Nunez; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3489 bytes --]

Hi Ronaldo,

Thanks for your kind support.

I think there is no way to clean the output directory. When I run the below
commands (as you suggetsed):

   - *bitbake -c clean linux-imx*


   - *bitbake linux-imx -c cleansstate*


   - *bitbake linux-imx -c cleanall*


So all of these commands delete the contents of
git(build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git/)
directory, which I don't want. Because I want to make a zip directory
without compilation, having the contents of git directory.

And also I don't know from where *bitbake core-image-minimal* fetch the
contents of git directory.



On Mon, Aug 11, 2014 at 6:55 PM, Ronaldo Nunez <ronaldo.viera@gmail.com>
wrote:

> Hello Vinod,
>
> To clean the output try clean command (bitbake -c clean linux-imx). You
> can check the available tasks from a recipe using the command listtasks.
>
> To patch the kernel, I believe that the easiest way is to create your own
> layer and modify the linux-imx recipe from there. You can base your
> linux-imx recipe in the recipe of linux-imx in meta-fsl-arm-extra layer.
> Check this (amazing) tutorial from Freescale Forum
> https://community.freescale.com/docs/DOC-95333
>
> Cheers,
>
> Ronaldo
>
>
>
> 2014-08-11 3:24 GMT-03:00 vinod kumar <vinodmaverickr007@gmail.com>:
>
> Hi Ronaldo,
>>
>> Thanks for your reply and valuable suggestions.
>>
>> *But cleansstate work the same way as cleanal*l. It means it also remove
>> the kernel source code from build directory.
>>
>> However the link which you share with me is very nice, I go through it
>> but also does not give the idea.
>>
>> I have the follows queries:
>>
>>
>>    -  I want to clean my kernel directory(*.o binary file only* not .c
>>    file) only. So is there any way to do that?
>>
>>
>>    - And one more thing how we can *apply the patch in kernel driver*
>>    (eg. USB driver) and add the customize configuration from source directory.
>>    Please give an example, if it is possible.
>>
>>
>>
>>
>> On Sun, Aug 10, 2014 at 9:46 PM, Ronaldo Nunez <ronaldo.viera@gmail.com>
>> wrote:
>>
>>> Hello Vinod!
>>>
>>> Cleanall command deletes all releated to the tasks on your recipe,
>>> including the source code. You should try cleansstate command.
>>>
>>> Take a look to this doc,
>>>
>>> https://www.yoctoproject.org/sites/yoctoproject.org/files/kernel-lab-1.4.pdf
>>>
>>> It's releated to kernel development using Yocto Project, I think it will
>>> help you a lot.
>>>
>>> Cheers,
>>>
>>> Ronaldo
>>>
>>>
>>> 2014-08-10 3:16 GMT-03:00 vinod kumar <vinodmaverickr007@gmail.com>:
>>>
>>>> Hi,
>>>>
>>>> I have build the yocto for I.mx6 board. After building the source code,
>>>> kernel is in build directory. So when I run
>>>> bitbake linux-imx -c cleanall, it remove the entire kernel source code.
>>>>
>>>> So I have some queries:
>>>> 1) Is it possible to modify(to made changes) the kernel source code
>>>> directly from source directory, without going into build directory.
>>>>
>>>> 2) How can I remove the compiled file(.o) file from the kernel source
>>>> code, without deleting the entire kernel source code.
>>>>
>>>> --
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto@yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>
>>>>
>>>
>>>
>>> --
>>> Ronaldo Nunez
>>>
>>
>>
>
>
> --
> Ronaldo Nunez
>

[-- Attachment #2: Type: text/html, Size: 5749 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Build the kernel for I.mx6 board
  2014-08-12  2:22       ` vinod kumar
@ 2014-08-12 11:55         ` Ronaldo Nunez
  0 siblings, 0 replies; 4+ messages in thread
From: Ronaldo Nunez @ 2014-08-12 11:55 UTC (permalink / raw)
  To: vinod kumar; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4360 bytes --]

Hello Vinod,

You are right. I should have tested it before answering. My apologies.

But, if you want to zip ( I suggest you to use tar.gz instead) the source
code, check the SRC_URI variable in
sources/meta-fsl-arm/recipes-kernel/linux/linux-imx.inc . This variable
defines the repository address of the kernel.

And, also, take a look at linux-imx_3.10.17.bb or linux-imx_2.6.35.3.bb (if
you're using daisy branch) to check the correct branch for the version that
you need.

Also, take a look at meta-freescale mailing list. Freescale's layers
related questions are solved from there.

[]'s,

Ronaldo


2014-08-11 23:22 GMT-03:00 vinod kumar <vinodmaverickr007@gmail.com>:

> Hi Ronaldo,
>
> Thanks for your kind support.
>
> I think there is no way to clean the output directory. When I run the
> below commands (as you suggetsed):
>
>    - *bitbake -c clean linux-imx*
>
>
>    - *bitbake linux-imx -c cleansstate*
>
>
>    - *bitbake linux-imx -c cleanall*
>
>
> So all of these commands delete the contents of
> git(build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git/)
> directory, which I don't want. Because I want to make a zip directory
> without compilation, having the contents of git directory.
>
> And also I don't know from where *bitbake core-image-minimal* fetch the
> contents of git directory.
>
>
>
> On Mon, Aug 11, 2014 at 6:55 PM, Ronaldo Nunez <ronaldo.viera@gmail.com>
> wrote:
>
>> Hello Vinod,
>>
>> To clean the output try clean command (bitbake -c clean linux-imx). You
>> can check the available tasks from a recipe using the command listtasks.
>>
>> To patch the kernel, I believe that the easiest way is to create your own
>> layer and modify the linux-imx recipe from there. You can base your
>> linux-imx recipe in the recipe of linux-imx in meta-fsl-arm-extra layer.
>> Check this (amazing) tutorial from Freescale Forum
>> https://community.freescale.com/docs/DOC-95333
>>
>> Cheers,
>>
>> Ronaldo
>>
>>
>>
>> 2014-08-11 3:24 GMT-03:00 vinod kumar <vinodmaverickr007@gmail.com>:
>>
>> Hi Ronaldo,
>>>
>>> Thanks for your reply and valuable suggestions.
>>>
>>> *But cleansstate work the same way as cleanal*l. It means it also
>>> remove the kernel source code from build directory.
>>>
>>> However the link which you share with me is very nice, I go through it
>>> but also does not give the idea.
>>>
>>> I have the follows queries:
>>>
>>>
>>>    -  I want to clean my kernel directory(*.o binary file only* not .c
>>>    file) only. So is there any way to do that?
>>>
>>>
>>>    - And one more thing how we can *apply the patch in kernel driver*
>>>    (eg. USB driver) and add the customize configuration from source directory.
>>>    Please give an example, if it is possible.
>>>
>>>
>>>
>>>
>>> On Sun, Aug 10, 2014 at 9:46 PM, Ronaldo Nunez <ronaldo.viera@gmail.com>
>>> wrote:
>>>
>>>> Hello Vinod!
>>>>
>>>> Cleanall command deletes all releated to the tasks on your recipe,
>>>> including the source code. You should try cleansstate command.
>>>>
>>>> Take a look to this doc,
>>>>
>>>> https://www.yoctoproject.org/sites/yoctoproject.org/files/kernel-lab-1.4.pdf
>>>>
>>>> It's releated to kernel development using Yocto Project, I think it
>>>> will help you a lot.
>>>>
>>>> Cheers,
>>>>
>>>> Ronaldo
>>>>
>>>>
>>>> 2014-08-10 3:16 GMT-03:00 vinod kumar <vinodmaverickr007@gmail.com>:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have build the yocto for I.mx6 board. After building the source
>>>>> code, kernel is in build directory. So when I run
>>>>> bitbake linux-imx -c cleanall, it remove the entire kernel source code.
>>>>>
>>>>> So I have some queries:
>>>>> 1) Is it possible to modify(to made changes) the kernel source code
>>>>> directly from source directory, without going into build directory.
>>>>>
>>>>> 2) How can I remove the compiled file(.o) file from the kernel source
>>>>> code, without deleting the entire kernel source code.
>>>>>
>>>>> --
>>>>> _______________________________________________
>>>>> yocto mailing list
>>>>> yocto@yoctoproject.org
>>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Ronaldo Nunez
>>>>
>>>
>>>
>>
>>
>> --
>> Ronaldo Nunez
>>
>
>


-- 
Ronaldo Nunez

[-- Attachment #2: Type: text/html, Size: 7139 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-12 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-10  6:16 Build the kernel for I.mx6 board vinod kumar
     [not found] ` <CALTF=oKssqe56avB49wnHvyiTiCkAD=cq7NdD+UjXyJPe0dL2g@mail.gmail.com>
2014-08-11  6:24   ` vinod kumar
     [not found]     ` <CALTF=o+PNP4hVZ1zpw+w1DMWY85M5=hCVEPkChU9BG4c4A9weg@mail.gmail.com>
2014-08-12  2:22       ` vinod kumar
2014-08-12 11:55         ` Ronaldo Nunez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.