* [ptxdist] Update libusb-1.0
@ 2014-03-28 7:12 Martin Lammers
2014-03-28 7:41 ` Alexander Aring
2014-03-28 11:33 ` Alexander Aring
0 siblings, 2 replies; 11+ messages in thread
From: Martin Lammers @ 2014-03-28 7:12 UTC (permalink / raw)
To: ptxdist
Hi there,
we are using ptxdist 2012.03.0 with the Phytec iMX board. I develop some
USB applications with my Ubuntu machine using libusb-1.0.16.
In the ptxdist menuconfig i can select the libusb-1.0 to install it on
my target system. When i look at the rules files i see this is version
1.0.8.
Also in the newest version of ptxdist is the same version.
Now my question, what is the right way to update the libusb to version
1.0.18 and it is possible to do that without changing the ptxdist version?
Best regards,
Martin
--
mit freundlichen Grüßen/Best regards,
Martin Lammers
Entwicklung
Mike & Weingartner GmbH
Bernsteinweg 1
80939 München, Germany
Tel.: 089 - 37 15 80 40
Fax: 089 - 37 15 80 49
Email: lammers@mwlaser.de
Internet: www.mwlaser.de
Mike & Weingartner GmbH, Bernsteinweg 1, 80939 München
Geschäftsführung/Management: Peter Mike, Sebastian Weingartner
Sitz der Gesellschaft/Registered office: München
Registergericht/Commercial registry: München, HRB 129919
Diese E-Mail kann vertrauliche und/oder rechtlich geschütze Informationen enthalten. Wenn Sie nicht der richtige Addressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weiter- oder Kenntnisgabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 7:12 [ptxdist] Update libusb-1.0 Martin Lammers
@ 2014-03-28 7:41 ` Alexander Aring
2014-03-28 7:59 ` Martin Lammers
2014-03-28 11:33 ` Alexander Aring
1 sibling, 1 reply; 11+ messages in thread
From: Alexander Aring @ 2014-03-28 7:41 UTC (permalink / raw)
To: ptxdist
Hi Martin
On Fri, Mar 28, 2014 at 08:12:37AM +0100, Martin Lammers wrote:
> Hi there,
>
> we are using ptxdist 2012.03.0 with the Phytec iMX board. I develop some USB
> applications with my Ubuntu machine using libusb-1.0.16.
> In the ptxdist menuconfig i can select the libusb-1.0 to install it on my
> target system. When i look at the rules files i see this is version 1.0.8.
> Also in the newest version of ptxdist is the same version.
> Now my question, what is the right way to update the libusb to version
> 1.0.18 and it is possible to do that without changing the ptxdist version?
>
There exists two libusb variants, the original one "libusb" [0] and
"libusb-x" [1] a fork of libusb.
The current version of libusb is 1.0.9 and we have indeed 1.0.8. I can
write a patch to bump this version but we have also a crazy patch for
libusb 1.0.8:
`cat patches/libusb-1.0.8/libusb-1.0.1-pkg-config.diff`
Subject: libusb needs librt and libpthread
Add missing dependencies.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
# 20100603 rsc: The patch was closed upstream, and I don't
# remember a use case any more :-( Let's keep it
# here for the moment, until we have a user.
# 20100101 rsc: added as http://libusb.org/ticket/24
libusb-1.0.pc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libusb-1.0.1/libusb-1.0.pc.in
===================================================================
--- libusb-1.0.1.orig/libusb-1.0.pc.in
+++ libusb-1.0.1/libusb-1.0.pc.in
@@ -6,6 +6,6 @@ includedir=@includedir@
Name: libusb-1.0
Description: C API for USB device access from Linux userspace
Version: @VERSION@
-Libs: -L${libdir} -lusb-1.0
+Libs: -L${libdir} -lusb-1.0 -lrt -lpthread
Cflags: -I${includedir}/libusb-1.0
Maybe this already fixed in mainline... I will check this.
If you want to use libusb-x you need to generate a new port of this. I
checked it and they using autotools as buildsystem so a new port would
be (hopefully) easy.
But it depends which library you want... libusb or libusbx.
- Alex
[0] http://www.libusb.org/
[1] http://libusbx.sourceforge.net/
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 7:41 ` Alexander Aring
@ 2014-03-28 7:59 ` Martin Lammers
2014-03-28 8:04 ` Alexander Aring
0 siblings, 1 reply; 11+ messages in thread
From: Martin Lammers @ 2014-03-28 7:59 UTC (permalink / raw)
To: ptxdist
Am 28.03.2014 08:41, schrieb Alexander Aring:
> Hi Martin
>
> On Fri, Mar 28, 2014 at 08:12:37AM +0100, Martin Lammers wrote:
>> Hi there,
>>
>> we are using ptxdist 2012.03.0 with the Phytec iMX board. I develop some USB
>> applications with my Ubuntu machine using libusb-1.0.16.
>> In the ptxdist menuconfig i can select the libusb-1.0 to install it on my
>> target system. When i look at the rules files i see this is version 1.0.8.
>> Also in the newest version of ptxdist is the same version.
>> Now my question, what is the right way to update the libusb to version
>> 1.0.18 and it is possible to do that without changing the ptxdist version?
>>
> There exists two libusb variants, the original one "libusb" [0] and
> "libusb-x" [1] a fork of libusb.
>
> The current version of libusb is 1.0.9 and we have indeed 1.0.8. I can
> write a patch to bump this version but we have also a crazy patch for
> libusb 1.0.8:
>
> `cat patches/libusb-1.0.8/libusb-1.0.1-pkg-config.diff`
> Subject: libusb needs librt and libpthread
>
> Add missing dependencies.
>
> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
>
> ---
> # 20100603 rsc: The patch was closed upstream, and I don't
> # remember a use case any more :-( Let's keep it
> # here for the moment, until we have a user.
> # 20100101 rsc: added as http://libusb.org/ticket/24
>
> libusb-1.0.pc.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: libusb-1.0.1/libusb-1.0.pc.in
> ===================================================================
> --- libusb-1.0.1.orig/libusb-1.0.pc.in
> +++ libusb-1.0.1/libusb-1.0.pc.in
> @@ -6,6 +6,6 @@ includedir=@includedir@
> Name: libusb-1.0
> Description: C API for USB device access from Linux userspace
> Version: @VERSION@
> -Libs: -L${libdir} -lusb-1.0
> +Libs: -L${libdir} -lusb-1.0 -lrt -lpthread
> Cflags: -I${includedir}/libusb-1.0
>
>
> Maybe this already fixed in mainline... I will check this.
>
> If you want to use libusb-x you need to generate a new port of this. I
> checked it and they using autotools as buildsystem so a new port would
> be (hopefully) easy.
>
> But it depends which library you want... libusb or libusbx.
>
> - Alex
>
> [0] http://www.libusb.org/
> [1] http://libusbx.sourceforge.net/
>
Hi Alex,
thanks for the fast response. We want to use libusbx version 1.0.18.
Thanks for your help,
best regards
Martin
--
mit freundlichen Grüßen/Best regards,
Martin Lammers
Entwicklung
Mike & Weingartner GmbH
Bernsteinweg 1
80939 München, Germany
Tel.: 089 - 37 15 80 40
Fax: 089 - 37 15 80 49
Email: lammers@mwlaser.de
Internet: www.mwlaser.de
Mike & Weingartner GmbH, Bernsteinweg 1, 80939 München
Geschäftsführung/Management: Peter Mike, Sebastian Weingartner
Sitz der Gesellschaft/Registered office: München
Registergericht/Commercial registry: München, HRB 129919
Diese E-Mail kann vertrauliche und/oder rechtlich geschütze Informationen enthalten. Wenn Sie nicht der richtige Addressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weiter- oder Kenntnisgabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 7:59 ` Martin Lammers
@ 2014-03-28 8:04 ` Alexander Aring
2014-03-28 9:30 ` Martin Lammers
0 siblings, 1 reply; 11+ messages in thread
From: Alexander Aring @ 2014-03-28 8:04 UTC (permalink / raw)
To: ptxdist
On Fri, Mar 28, 2014 at 08:59:49AM +0100, Martin Lammers wrote:
> Hi Alex,
>
> thanks for the fast response. We want to use libusbx version 1.0.18.
>
Then you need to write a new port of it. Look for the documentation at
[0], "4.2.1 Rule File Creation". Send the new rules added to ptxdist
with git send-email as patches, then we can talk about the new port and
hopefully get the libusbx mainline to ptxdist so other can use it also.
I don't have time right now to do the port myself, sorry.
- Alex
[0] http://www.ptxdist.org/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 8:04 ` Alexander Aring
@ 2014-03-28 9:30 ` Martin Lammers
2014-03-28 9:46 ` Alexander Aring
0 siblings, 1 reply; 11+ messages in thread
From: Martin Lammers @ 2014-03-28 9:30 UTC (permalink / raw)
To: ptxdist
Am 28.03.2014 09:04, schrieb Alexander Aring:
> On Fri, Mar 28, 2014 at 08:59:49AM +0100, Martin Lammers wrote:
>> Hi Alex,
>>
>> thanks for the fast response. We want to use libusbx version 1.0.18.
>>
> Then you need to write a new port of it. Look for the documentation at
> [0], "4.2.1 Rule File Creation". Send the new rules added to ptxdist
> with git send-email as patches, then we can talk about the new port and
> hopefully get the libusbx mainline to ptxdist so other can use it also.
>
> I don't have time right now to do the port myself, sorry.
>
> - Alex
>
> [0] http://www.ptxdist.org/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf
>
Hi Alex,
thanks for the information. On the ptxdist the version of libusb.org
have the name libusb-1.x. When it build the name of the library file
like libusb-1.0.a .la.
Now i want to create a new rule file for the libusbx versions witch had
the same library name like libusb-1.0.a .la.
It is necessary to block the two versions each other ?
Now we had to check, if we get any problems with the update, because the
libusb is used by some phytec tools.
It is ok, then we want to add the new rule files to ptxdist. I hope it
works without any proplems :-).
Best regards
Martin
--
mit freundlichen Grüßen/Best regards,
Martin Lammers
Entwicklung
Mike & Weingartner GmbH
Bernsteinweg 1
80939 München, Germany
Tel.: 089 - 37 15 80 40
Fax: 089 - 37 15 80 49
Email: lammers@mwlaser.de
Internet: www.mwlaser.de
Mike & Weingartner GmbH, Bernsteinweg 1, 80939 München
Geschäftsführung/Management: Peter Mike, Sebastian Weingartner
Sitz der Gesellschaft/Registered office: München
Registergericht/Commercial registry: München, HRB 129919
Diese E-Mail kann vertrauliche und/oder rechtlich geschütze Informationen enthalten. Wenn Sie nicht der richtige Addressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weiter- oder Kenntnisgabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 9:30 ` Martin Lammers
@ 2014-03-28 9:46 ` Alexander Aring
0 siblings, 0 replies; 11+ messages in thread
From: Alexander Aring @ 2014-03-28 9:46 UTC (permalink / raw)
To: ptxdist
On Fri, Mar 28, 2014 at 10:30:00AM +0100, Martin Lammers wrote:
> Am 28.03.2014 09:04, schrieb Alexander Aring:
> >On Fri, Mar 28, 2014 at 08:59:49AM +0100, Martin Lammers wrote:
> >>Hi Alex,
> >>
> >>thanks for the fast response. We want to use libusbx version 1.0.18.
> >>
> >Then you need to write a new port of it. Look for the documentation at
> >[0], "4.2.1 Rule File Creation". Send the new rules added to ptxdist
> >with git send-email as patches, then we can talk about the new port and
> >hopefully get the libusbx mainline to ptxdist so other can use it also.
> >
> >I don't have time right now to do the port myself, sorry.
> >
> >- Alex
> >
> >[0] http://www.ptxdist.org/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf
> >
> Hi Alex,
> thanks for the information. On the ptxdist the version of libusb.org have
> the name libusb-1.x. When it build the name of the library file like
> libusb-1.0.a .la.
name the library LIBUSBX_...
> Now i want to create a new rule file for the libusbx versions witch had the
> same library name like libusb-1.0.a .la.
> It is necessary to block the two versions each other ?
>
Yes. LIBUSB should have depends on !LIBUSBX and LIBUSBX should have
depends on !LIBUSB. Maybe there exists a better solution, I don't look
much more into that.
> Now we had to check, if we get any problems with the update, because the
> libusb is used by some phytec tools.
This would end in problems yea, but then you need to change the
dependency of these tools to "select LIBUSBX". You don't should do that,
because these tools was developed for LIBUSB and not LIBUSBX.
You can't have LIBUSB and LIBUSBX installed, but maybe it's easy to port
it look at [0] in About.
"As far as the library binary and header are concerned, since libusb and
libusbx use the same names and have the same API, you just need to
replace your deployed libusbx files with the libusb ones. That's all!"
This makes all things much difficult... maybe we make a config option to
LIBUSB to decide if you want to have libusb or libusbx and change the
actually libusb rules. But this sounds like an hack, which remember me
about the gnu- and bsd-netcat rules. Another option would be to drop
libusb support and add libusbx support. But this is a question which
should answer by the ptxdist maintainer Michael Olbrich.
My opinion is that when all others distribution uses libusbx and not
libusb then we should also drop the libusb support and add libusbx for
that instead.
But remember what I already said, the "phytec tools" was developed for your
libusb and to the libusb version which is shipped out with your BSP, you
can maybe run into trouble with that and I don't want to make the phytec
people angry.
- Alex
[0] http://libusbx.org/
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 7:12 [ptxdist] Update libusb-1.0 Martin Lammers
2014-03-28 7:41 ` Alexander Aring
@ 2014-03-28 11:33 ` Alexander Aring
2014-03-31 5:33 ` Martin Lammers
1 sibling, 1 reply; 11+ messages in thread
From: Alexander Aring @ 2014-03-28 11:33 UTC (permalink / raw)
To: ptxdist
Hi Martin,
I just sent a patch to ptxdist to replace libusb to libusbx. Please try
and let me know your results if this works for you.
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-28 11:33 ` Alexander Aring
@ 2014-03-31 5:33 ` Martin Lammers
2014-03-31 5:57 ` Alexander Aring
0 siblings, 1 reply; 11+ messages in thread
From: Martin Lammers @ 2014-03-31 5:33 UTC (permalink / raw)
To: ptxdist
Am 28.03.2014 12:33, schrieb Alexander Aring:
> Hi Martin,
>
> I just sent a patch to ptxdist to replace libusb to libusbx. Please try
> and let me know your results if this works for you.
>
> - Alex
>
Hi Alex,
thanks for the rapid work. I try to install the patch and test it with
my current project.
This can take a while, because we are still working with git but we
never work with mailing lists an git patches.
I hope it is not so difficult to apply a patch and i find some
information in the git documentation ;-)
Martin
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-31 5:33 ` Martin Lammers
@ 2014-03-31 5:57 ` Alexander Aring
2014-03-31 9:09 ` Martin Lammers
0 siblings, 1 reply; 11+ messages in thread
From: Alexander Aring @ 2014-03-31 5:57 UTC (permalink / raw)
To: ptxdist
Hi Martin,
On Mon, Mar 31, 2014 at 07:33:44AM +0200, Martin Lammers wrote:
> Am 28.03.2014 12:33, schrieb Alexander Aring:
> >Hi Martin,
> >
> >I just sent a patch to ptxdist to replace libusb to libusbx. Please try
> >and let me know your results if this works for you.
> >
> >- Alex
> >
> Hi Alex,
>
> thanks for the rapid work. I try to install the patch and test it with my
> current project.
> This can take a while, because we are still working with git but we never
> work with mailing lists an git patches.
> I hope it is not so difficult to apply a patch and i find some information
> in the git documentation ;-)
>
ahh you don't have this stupid signature anymore that don't allow to
copy mails. That's much better now, because we can't provide that at
this mailinglist. :-)
If you have problems with that just ask... I can tell you about my mail
environment which allow me to easily grab patches from my mbox or I just
upload it... or just wait if Michael applied this patches and then you
can get the raw files from cgit web interface.
Here are the files, I uploaded it to pastie.org:
rules/libusb.in:
http://pastie.org/8981719
rules/libusb.make:
http://pastie.org/8981722
put these files in your BSP rules.
Cheers
Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] Update libusb-1.0
2014-03-31 5:57 ` Alexander Aring
@ 2014-03-31 9:09 ` Martin Lammers
2014-03-31 9:26 ` [ptxdist] mutt config for applying patches [Was: Re: Update libusb-1.0] Uwe Kleine-König
0 siblings, 1 reply; 11+ messages in thread
From: Martin Lammers @ 2014-03-31 9:09 UTC (permalink / raw)
To: ptxdist
Am 31.03.2014 07:57, schrieb Alexander Aring:
> Hi Martin,
>
> On Mon, Mar 31, 2014 at 07:33:44AM +0200, Martin Lammers wrote:
>> Am 28.03.2014 12:33, schrieb Alexander Aring:
>>> Hi Martin,
>>>
>>> I just sent a patch to ptxdist to replace libusb to libusbx. Please try
>>> and let me know your results if this works for you.
>>>
>>> - Alex
>>>
>> Hi Alex,
>>
>> thanks for the rapid work. I try to install the patch and test it with my
>> current project.
>> This can take a while, because we are still working with git but we never
>> work with mailing lists an git patches.
>> I hope it is not so difficult to apply a patch and i find some information
>> in the git documentation ;-)
>>
> ahh you don't have this stupid signature anymore that don't allow to
> copy mails. That's much better now, because we can't provide that at
> this mailinglist. :-)
>
> If you have problems with that just ask... I can tell you about my mail
> environment which allow me to easily grab patches from my mbox or I just
> upload it... or just wait if Michael applied this patches and then you
> can get the raw files from cgit web interface.
>
> Here are the files, I uploaded it to pastie.org:
>
> rules/libusb.in:
> http://pastie.org/8981719
>
> rules/libusb.make:
> http://pastie.org/8981722
>
> put these files in your BSP rules.
>
> Cheers
> Alex
>
Hi Alex,
i tried this patch with ptxdist 2012.03.0. It still works on my phyflex
iMX6 board.
No problems with my ftdi2232 chips. Also the phytec touch driver works.
Thanks for your support.
I still interesting in your mail configuration.
Cheers
Martin
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ptxdist] mutt config for applying patches [Was: Re: Update libusb-1.0]
2014-03-31 9:09 ` Martin Lammers
@ 2014-03-31 9:26 ` Uwe Kleine-König
0 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2014-03-31 9:26 UTC (permalink / raw)
To: ptxdist
Hello,
On Mon, Mar 31, 2014 at 11:09:08AM +0200, Martin Lammers wrote:
> I still interesting in your mail configuration.
I have in my .mutt/muttrc:
macro pager,index \col "<pipe-message> cd ~/gsrc/linux && git am -3"
This allows me to press Ctrl-o,l and the patch in the currently selected
mail is applied to the repository at ~/gsrc/linux.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-03-31 9:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28 7:12 [ptxdist] Update libusb-1.0 Martin Lammers
2014-03-28 7:41 ` Alexander Aring
2014-03-28 7:59 ` Martin Lammers
2014-03-28 8:04 ` Alexander Aring
2014-03-28 9:30 ` Martin Lammers
2014-03-28 9:46 ` Alexander Aring
2014-03-28 11:33 ` Alexander Aring
2014-03-31 5:33 ` Martin Lammers
2014-03-31 5:57 ` Alexander Aring
2014-03-31 9:09 ` Martin Lammers
2014-03-31 9:26 ` [ptxdist] mutt config for applying patches [Was: Re: Update libusb-1.0] Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox