All of lore.kernel.org
 help / color / mirror / Atom feed
* building the kernel's usbipd daemon
       [not found] <71f6581d-6d01-51a8-7c58-3582d57509f9.ref@yahoo.com>
@ 2021-10-11 22:16 ` Chuck Kamas
  2021-10-12  0:46   ` [yocto] " Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Chuck Kamas @ 2021-10-11 22:16 UTC (permalink / raw)
  To: yocto

Hi all,


I've googled most of the day, but to no avail. How does one compile and 
add to the image the daemon usbipd? Is there a bitbake file already for 
this? The code is part of the kernel found in the kernel tree:

KERNEL_SRC_PATH/tools/usb/usbip/src

and is invoked from the KERNEL_SRC_PATH/tools directory by calling

make usb


from: 
https://wiki.st.com/stm32mpu/wiki/How_to_build_Linux_kernel_user_space_tools

PC $> cd <Linux_kernel_source_path>/tools
PC $> make <tool>


I would think that there is a preexisting recipe.

thanks,

Chuck




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

* Re: [yocto] building the kernel's usbipd daemon
  2021-10-11 22:16 ` building the kernel's usbipd daemon Chuck Kamas
@ 2021-10-12  0:46   ` Bruce Ashfield
  2021-10-12  4:32     ` Chuck Kamas
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2021-10-12  0:46 UTC (permalink / raw)
  To: chuckkamas; +Cc: yocto

On Mon, Oct 11, 2021 at 6:16 PM chuck kamas via lists.yoctoproject.org
<chuckkamas=yahoo.com@lists.yoctoproject.org> wrote:
>
> Hi all,
>
>
> I've googled most of the day, but to no avail. How does one compile and
> add to the image the daemon usbipd? Is there a bitbake file already for
> this? The code is part of the kernel found in the kernel tree:
>
> KERNEL_SRC_PATH/tools/usb/usbip/src
>
> and is invoked from the KERNEL_SRC_PATH/tools directory by calling
>
> make usb
>
>
> from:
> https://wiki.st.com/stm32mpu/wiki/How_to_build_Linux_kernel_user_space_tools
>
> PC $> cd <Linux_kernel_source_path>/tools
> PC $> make <tool>
>
>
> I would think that there is a preexisting recipe.

There isn't one that I've ever heard of, and the layerindex
(http://layers.openembedded.org/) confirms that nothing registered
with it provides that recipe.

So if you need it, you'd have to create a recipe .. and submit it to
somewhere like meta-openembedded if appropriate.

Have a look at the perf recipe for one of the ways we build tools out
of the kernel source. Something similar will work in this case.

Bruce

>
> thanks,
>
> Chuck
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#55020): https://lists.yoctoproject.org/g/yocto/message/55020
> Mute This Topic: https://lists.yoctoproject.org/mt/86249103/1050810
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


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

* Re: [yocto] building the kernel's usbipd daemon
  2021-10-12  0:46   ` [yocto] " Bruce Ashfield
@ 2021-10-12  4:32     ` Chuck Kamas
  2021-10-12 13:12       ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Chuck Kamas @ 2021-10-12  4:32 UTC (permalink / raw)
  To: yocto

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

Thanks for the quick reply. I looked at the perf recipe, and its quite 
involved. Is there a simpler recipie to use as a template? Perhaps one 
of these?

meta-openembedded/meta-oe/recipes-kernel/bpftool/bpftool.bb

meta-openembedded/meta-oe/recipes-kernel/spidev-test/spidev-test.bb

meta-openembedded/meta-oe/recipes-kernel/cpupower/cpupower.bb


all three of these appear to be basically the same very simple bb file.


Chuck


On 10/11/21 5:46 PM, Bruce Ashfield wrote:
> On Mon, Oct 11, 2021 at 6:16 PM chuck kamas via lists.yoctoproject.org
> <chuckkamas=yahoo.com@lists.yoctoproject.org> wrote:
>> Hi all,
>>
>>
>> I've googled most of the day, but to no avail. How does one compile and
>> add to the image the daemon usbipd? Is there a bitbake file already for
>> this? The code is part of the kernel found in the kernel tree:
>>
>> KERNEL_SRC_PATH/tools/usb/usbip/src
>>
>> and is invoked from the KERNEL_SRC_PATH/tools directory by calling
>>
>> make usb
>>
>>
>> from:
>> https://wiki.st.com/stm32mpu/wiki/How_to_build_Linux_kernel_user_space_tools
>>
>> PC $> cd <Linux_kernel_source_path>/tools
>> PC $> make <tool>
>>
>>
>> I would think that there is a preexisting recipe.
> There isn't one that I've ever heard of, and the layerindex
> (http://layers.openembedded.org/) confirms that nothing registered
> with it provides that recipe.
>
> So if you need it, you'd have to create a recipe .. and submit it to
> somewhere like meta-openembedded if appropriate.
>
> Have a look at the perf recipe for one of the ways we build tools out
> of the kernel source. Something similar will work in this case.
>
> Bruce
>
>> thanks,
>>
>> Chuck
>>
>>
>>
>>
>>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#55024): https://lists.yoctoproject.org/g/yocto/message/55024
> Mute This Topic: https://lists.yoctoproject.org/mt/86249103/1051501
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [chuckkamas@yahoo.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

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

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

* Re: [yocto] building the kernel's usbipd daemon
  2021-10-12  4:32     ` Chuck Kamas
@ 2021-10-12 13:12       ` Bruce Ashfield
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2021-10-12 13:12 UTC (permalink / raw)
  To: chuckkamas; +Cc: yocto

On Tue, Oct 12, 2021 at 12:33 AM chuck kamas via
lists.yoctoproject.org <chuckkamas=yahoo.com@lists.yoctoproject.org>
wrote:
>
> Thanks for the quick reply. I looked at the perf recipe, and its quite involved. Is there a simpler recipie to use as a template? Perhaps one of these?
>

My intent was just to show how you'd get the source from whatever
kernel you are building,

> meta-openembedded/meta-oe/recipes-kernel/bpftool/bpftool.bb
>
> meta-openembedded/meta-oe/recipes-kernel/spidev-test/spidev-test.bb
>
> meta-openembedded/meta-oe/recipes-kernel/cpupower/cpupower.bb
>
>
> all three of these appear to be basically the same very simple bb file.
>

Assuming that you don't need to patch the sources directly, any of
those would likely work ... depending on the dependencies and options
of what tool you are building.

Bruce

>
> Chuck
>
>
> On 10/11/21 5:46 PM, Bruce Ashfield wrote:
>
> On Mon, Oct 11, 2021 at 6:16 PM chuck kamas via lists.yoctoproject.org
> <chuckkamas=yahoo.com@lists.yoctoproject.org> wrote:
>
> Hi all,
>
>
> I've googled most of the day, but to no avail. How does one compile and
> add to the image the daemon usbipd? Is there a bitbake file already for
> this? The code is part of the kernel found in the kernel tree:
>
> KERNEL_SRC_PATH/tools/usb/usbip/src
>
> and is invoked from the KERNEL_SRC_PATH/tools directory by calling
>
> make usb
>
>
> from:
> https://wiki.st.com/stm32mpu/wiki/How_to_build_Linux_kernel_user_space_tools
>
> PC $> cd <Linux_kernel_source_path>/tools
> PC $> make <tool>
>
>
> I would think that there is a preexisting recipe.
>
> There isn't one that I've ever heard of, and the layerindex
> (http://layers.openembedded.org/) confirms that nothing registered
> with it provides that recipe.
>
> So if you need it, you'd have to create a recipe .. and submit it to
> somewhere like meta-openembedded if appropriate.
>
> Have a look at the perf recipe for one of the ways we build tools out
> of the kernel source. Something similar will work in this case.
>
> Bruce
>
> thanks,
>
> Chuck
>
>
>
>
>
>
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#55027): https://lists.yoctoproject.org/g/yocto/message/55027
> Mute This Topic: https://lists.yoctoproject.org/mt/86249103/1050810
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


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

end of thread, other threads:[~2021-10-12 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <71f6581d-6d01-51a8-7c58-3582d57509f9.ref@yahoo.com>
2021-10-11 22:16 ` building the kernel's usbipd daemon Chuck Kamas
2021-10-12  0:46   ` [yocto] " Bruce Ashfield
2021-10-12  4:32     ` Chuck Kamas
2021-10-12 13:12       ` Bruce Ashfield

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.