|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
openobex and ftpobexHi all,
I try to make to work ftpobex with my Nokia N72. I try with new versions for openobex and ftpobex. It's compile fine but if i try to list compatible USB obex device, my phone isn't found. bash-3.2# obexftp -u Found 0 USB OBEX interfaces Use '-u interface_number' to connect Nothing to do. Use --help for help. My phone is connected : bash-3.2# usbdevs -v Controller /dev/usb0: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, Nokia N72(0x04c4), Nokia(0x0421), rev 0.00 port 2 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 addr 2: low speed, power 98 mA, config 1, USB Optical Mouse(0x00c3), vendor 0x15ca(0x15ca), rev 5.12 port 2 powered Controller /dev/usb4: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered Controller /dev/usb5: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00 port 1 powered port 2 powered I join my dmesg: OpenBSD 4.4-beta (GENERIC.MP) #1759: Tue Jul 1 20:52:58 MDT 2008 deraadt@...:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3476131840 (3315MB) avail mem = 3372560384 (3216MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (71 entries) bios0: vendor American Megatrends Inc. version "0704" date 10/30/2007 bios0: ASUSTeK Computer INC. P5K acpi0 at bios0: rev 2 acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR acpi0: wakeup devices P0P2(S4) P0P1(S4) UAR1(S4) PS2K(S4) EUSB(S4) USBE(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB0(S4) USB1(S4) USB2(S4) USB3 (S4) USB4(S4) USB5(S4) USB6(S4) P0P4(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.80 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG cpu0: 4MB 64b/line 16-way L2 cache cpu0: apic clock running at 267MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG cpu1: 4MB 64b/line 16-way L2 cache cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG cpu2: 4MB 64b/line 16-way L2 cache cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG cpu3: 4MB 64b/line 16-way L2 cache ioapic0 at mainbus0 apid 4 pa 0xfec00000, version 20, 24 pins acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P2) acpiprt2 at acpi0: bus 5 (P0P1) acpiprt3 at acpi0: bus -1 (P0P5) acpiprt4 at acpi0: bus -1 (P0P6) acpiprt5 at acpi0: bus -1 (P0P7) acpiprt6 at acpi0: bus 3 (P0P8) acpiprt7 at acpi0: bus 2 (P0P9) acpiprt8 at acpi0: bus 4 (P0P4) acpicpu0 at acpi0: PSS acpicpu1 at acpi0: PSS acpicpu2 at acpi0: PSS acpicpu3 at acpi0: PSS acpibtn0 at acpi0: PWRB pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: apic 4 int 16 (irq 11) pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x9442 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) agp0 at vga1: no integrated graphics azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaa30 rev 0x00: apic 4 int 17 (irq 10) azalia0: /usr/src/sys/dev/pci/azalia.c/1348 invalid PCM format: 0x00000000 azalia0: No codecs found uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16 (irq 11) uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21 (irq 3) uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 (irq 5) ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 18 (irq 5) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia1 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: apic 4 int 22 (irq 15) azalia1: codec[s]: Realtek ALC883 audio0 at azalia1 ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: apic 4 int 17 (irq 10) pci2 at ppb1 bus 4 ppb2 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: apic 4 int 17 (irq 10) pci3 at ppb2 bus 3 jmb0 at pci3 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03 ahci0 at jmb0: apic 4 int 16 (irq 11), AHCI 1.0 scsibus0 at ahci0: 32 targets, initiator 32 pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI pciide0: using apic 4 int 16 (irq 11) for native-PCI interrupt wd0 at pciide0 channel 0 drive 1: <Maxtor 6Y160P0> wd0: 16-sector PIO, LBA48, 156334MB, 320173056 sectors wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6 pciide0: channel 1 disabled (no drives) ppb3 at pci0 dev 28 function 5 "Intel 82801I PCIE" rev 0x02: apic 4 int 16 (irq 11) pci4 at ppb3 bus 2 "Attansic Technology L1" rev 0xb0 at pci4 dev 0 function 0 not configured uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 23 (irq 7) uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 19 (irq 14) uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 (irq 5) ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 23 (irq 7) usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 pci5 at ppb4 bus 5 xl0 at pci5 dev 1 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 4 int 17 (irq 10), address 00:01:02:da:a4:34 bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6 "VIA VT6306 FireWire" rev 0xc0 at pci5 dev 3 function 0 not configured pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02 pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide1: using apic 4 int 22 (irq 15) for native-PCI interrupt wd1 at pciide1 channel 1 drive 0: <MAXTOR STM3320820AS> wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 4 int 18 (irq 5) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5 pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI pciide2: using apic 4 int 22 (irq 15) for native-PCI interrupt usb2 at uhci0: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb7 at uhci5: USB revision 1.0 uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23 lm1 at wbsio0 port 0x290/8: W83627DHG fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 mtrr: Pentium Pro MTRR support uhidev0 at uhub3 port 1 configuration 1 interface 0 "vendor 0x15ca USB Optical Mouse" rev 2.00/5.12 addr 2 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse0 at ums0 mux 0 softraid0 at root root on wd1a swap on wd1b dump on wd1b umodem0 at uhub2 port 2 configuration 1 interface 8 "Nokia Nokia N72" rev 2.00/0.00 addr 2 umodem0: data interface 9, has no CM over data, has break umodem0: status change notification available ucom0 at umodem0 And diff for use last obexftp and openobex version. If Anyone has an idea. Thanks, BSDManiak [obexftp.diff] diff -urN /usr/ports/comms/obexftp/Makefile comms/obexftp/Makefile --- /usr/ports/comms/obexftp/Makefile Sun Sep 16 03:37:09 2007 +++ comms/obexftp/Makefile Fri Jul 4 22:01:33 2008 @@ -1,11 +1,10 @@ # $OpenBSD: Makefile,v 1.9 2007/09/16 01:37:09 merdely Exp $ COMMENT= file copying over the OBEX protocol -DISTNAME= obexftp-0.10.4 -PKGNAME= ${DISTNAME}p1 -SHARED_LIBS += bfb 0.4 # .0.4 -SHARED_LIBS += cobexbfb 0.8 # .0.8 +DISTNAME= obexftp-0.22 +SHARED_LIBS += bfb 0.8 # .0.8 SHARED_LIBS += obexftp 0.11 # .0.11 +SHARED_LIBS += multicobex 1.1 CATEGORIES= comms HOMEPAGE= http://triq.net/obex/ @@ -15,13 +14,20 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c +WANTLIB= c m usb MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/} -LIB_DEPENDS= openobex.>=1::comms/openobex +LIB_DEPENDS= openobex.>=1::comms/openobex \ + ruby.>=1::lang/ruby \ + iconv.>=5::converters/libiconv CONFIGURE_STYLE= gnu USE_LIBTOOL= Yes +USE_GMAKE= Yes + +MODULES= lang/ruby + +EXTRACT_SUFX= .tar.bz2 .include <bsd.port.mk> diff -urN /usr/ports/comms/obexftp/distinfo comms/obexftp/distinfo --- /usr/ports/comms/obexftp/distinfo Thu Apr 5 17:37:47 2007 +++ comms/obexftp/distinfo Fri Jul 4 20:54:22 2008 @@ -1,5 +1,5 @@ -MD5 (obexftp-0.10.4.tar.gz) = oBuYPmQISBImBdkCK1E9tw== -RMD160 (obexftp-0.10.4.tar.gz) = 6vXGjvo++0a9TC4AphKMsXXEutU= -SHA1 (obexftp-0.10.4.tar.gz) = YYVBpjkCXxL99tkuCNPSYnIyKxQ= -SHA256 (obexftp-0.10.4.tar.gz) = gUAkvGYHGFZF0sA43yVJLTQLIokC9GhFTTtoFd5fdNM= -SIZE (obexftp-0.10.4.tar.gz) = 374317 +MD5 (obexftp-0.22.tar.bz2) = 0WfP3qJE46X5c6exaGRBnA== +RMD160 (obexftp-0.22.tar.bz2) = o5YP0VzXXPtwZsVl7p+pDcenwR8= +SHA1 (obexftp-0.22.tar.bz2) = h1OuEFNlOwHrDe7jt9McAqykl00= +SHA256 (obexftp-0.22.tar.bz2) = CWhwEtXgFid/pjjyK4x4SupoAwVscNFGFOO3UViq6Hc= +SIZE (obexftp-0.22.tar.bz2) = 402570 diff -urN /usr/ports/comms/obexftp/patches/CVS/Entries comms/obexftp/patches/CVS/Entries --- /usr/ports/comms/obexftp/patches/CVS/Entries Tue Jul 1 11:59:46 2008 +++ comms/obexftp/patches/CVS/Entries Thu Jan 1 01:00:00 1970 @@ -1,4 +0,0 @@ -/patch-obexftp_client_c/1.1.1.1/Fri Nov 12 08:06:54 2004// -/patch-obexftp_dirtraverse_c/1.1.1.1/Fri Nov 12 08:06:54 2004// -/patch-obexftp_obexftp_io_c/1.1.1.1/Fri Nov 12 08:06:54 2004// -D diff -urN /usr/ports/comms/obexftp/patches/CVS/Repository comms/obexftp/patches/CVS/Repository --- /usr/ports/comms/obexftp/patches/CVS/Repository Tue Jul 1 11:59:46 2008 +++ comms/obexftp/patches/CVS/Repository Thu Jan 1 01:00:00 1970 @@ -1 +0,0 @@ -ports/comms/obexftp/patches diff -urN /usr/ports/comms/obexftp/patches/CVS/Root comms/obexftp/patches/CVS/Root --- /usr/ports/comms/obexftp/patches/CVS/Root Tue Jul 1 11:59:46 2008 +++ comms/obexftp/patches/CVS/Root Thu Jan 1 01:00:00 1970 @@ -1 +0,0 @@ -/cvs diff -urN /usr/ports/comms/obexftp/patches/patch-configure comms/obexftp/patches/patch-configure --- /usr/ports/comms/obexftp/patches/patch-configure Thu Jan 1 01:00:00 1970 +++ comms/obexftp/patches/patch-configure Fri Jul 4 21:59:29 2008 @@ -0,0 +1,11 @@ +$OpenBSD$ +--- configure.orig Fri Jul 4 21:56:31 2008 ++++ configure Fri Jul 4 21:59:19 2008 +@@ -22915,6 +22915,7 @@ cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + ++ #include <sys/types.h> + #include <openobex/obex.h> + #include <openobex/obex_const.h> + diff -urN /usr/ports/comms/obexftp/patches/patch-obexftp_client_c comms/obexftp/patches/patch-obexftp_client_c --- /usr/ports/comms/obexftp/patches/patch-obexftp_client_c Fri Nov 12 09:06:54 2004 +++ comms/obexftp/patches/patch-obexftp_client_c Thu Jan 1 01:00:00 1970 @@ -1,45 +0,0 @@ -$OpenBSD: patch-obexftp_client_c,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ ---- obexftp/client.c.orig Thu Apr 29 23:44:07 2004 -+++ obexftp/client.c Mon Nov 8 23:13:21 2004 -@@ -78,6 +78,7 @@ - #endif - #endif - -+#include <limits.h> - - typedef struct { /* fixed to 6 bytes for now */ - uint8_t code; -@@ -427,10 +428,10 @@ int obexftp_cli_connect(obexftp_client_t - - } - #endif -- if (ret == -1 /* -ESOCKTNOSUPPORT */) -+ if (ret < 0 /* -ESOCKTNOSUPPORT */) - ret = IrOBEX_TransportConnect(cli->obexhandle, "OBEX"); - DEBUG(3, "%s() IR %d\n", __func__, ret); -- if (ret == -1 /* -ESOCKTNOSUPPORT */) -+ if (ret < 0 /* -ESOCKTNOSUPPORT */) - ret = OBEX_TransportConnect(cli->obexhandle, NULL, 0); - DEBUG(3, "%s() TC %d\n", __func__, ret); - #endif -@@ -899,6 +900,9 @@ static time_t atotime (const char *date) - - DIR *obexftp_opendir(obexftp_client_t *cli, const char *name) - { -+ struct dirstream *stream; -+ int res; -+ - /* purge stat buffer */ - while (statbuf != NULL) { - STATENTRY *p = statbuf->next; -@@ -908,8 +912,8 @@ DIR *obexftp_opendir(obexftp_client_t *c - statbuf = NULL; - - /* read dir */ -- struct dirstream *stream = malloc(sizeof(struct dirstream)); -- int res = 0; -+ stream = malloc(sizeof(struct dirstream)); -+ res = 0; - - /* List folder */ - res = obexftp_list(cli, NULL, name); diff -urN /usr/ports/comms/obexftp/patches/patch-obexftp_dirtraverse_c comms/obexftp/patches/patch-obexftp_dirtraverse_c --- /usr/ports/comms/obexftp/patches/patch-obexftp_dirtraverse_c Fri Nov 12 09:06:54 2004 +++ comms/obexftp/patches/patch-obexftp_dirtraverse_c Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ -$OpenBSD: patch-obexftp_dirtraverse_c,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ ---- obexftp/dirtraverse.c.orig Wed Oct 20 22:11:21 2004 -+++ obexftp/dirtraverse.c Wed Oct 20 22:11:36 2004 -@@ -29,6 +29,7 @@ - #define _POSIX_PATH_MAX MAX_PATH - #endif /* _WIN32 */ - #include <dirent.h> -+#include <limits.h> - - #include "dirtraverse.h" - #include <common.h> diff -urN /usr/ports/comms/obexftp/patches/patch-obexftp_obexftp_io_c comms/obexftp/patches/patch-obexftp_obexftp_io_c --- /usr/ports/comms/obexftp/patches/patch-obexftp_obexftp_io_c Fri Nov 12 09:06:54 2004 +++ comms/obexftp/patches/patch-obexftp_obexftp_io_c Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ -$OpenBSD: patch-obexftp_obexftp_io_c,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ ---- obexftp/obexftp_io.c.orig Wed Oct 20 22:10:20 2004 -+++ obexftp/obexftp_io.c Wed Oct 20 22:10:53 2004 -@@ -26,6 +26,7 @@ - #include <sys/stat.h> - - #include <fcntl.h> -+#include <limits.h> - #include <string.h> - #include <time.h> - diff -urN /usr/ports/comms/obexftp/pkg/PFRAG.shared comms/obexftp/pkg/PFRAG.shared --- /usr/ports/comms/obexftp/pkg/PFRAG.shared Fri Dec 23 15:16:01 2005 +++ comms/obexftp/pkg/PFRAG.shared Fri Jul 4 22:00:13 2008 @@ -1,4 +1,6 @@ -@comment $OpenBSD: PFRAG.shared,v 1.2 2005/12/23 14:16:01 bernd Exp $ +@comment $OpenBSD$ @lib lib/libbfb.so.${LIBbfb_VERSION} -@lib lib/libcobexbfb.so.${LIBcobexbfb_VERSION} +@lib lib/libmulticobex.so.${LIBmulticobex_VERSION} @lib lib/libobexftp.so.${LIBobexftp_VERSION} +lib/ruby/site_ruby/${MODRUBY_REV}/x86_64-openbsd4.3/obexftp.so +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/OBEXFTP.so diff -urN /usr/ports/comms/obexftp/pkg/PLIST comms/obexftp/pkg/PLIST --- /usr/ports/comms/obexftp/pkg/PLIST Fri Nov 12 09:06:54 2004 +++ comms/obexftp/pkg/PLIST Fri Jul 4 22:00:13 2008 @@ -1,20 +1,33 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ +@comment $OpenBSD$ %%SHARED%% -bin/obexftp -bin/obexftpd +@bin bin/obexftp +@bin bin/obexftpd include/bfb/ include/bfb/bfb.h include/bfb/bfb_io.h -include/cobexbfb/ -include/cobexbfb/cobex_bfb.h +include/multicobex/ +include/multicobex/multi_cobex.h include/obexftp/ include/obexftp/client.h include/obexftp/obexftp.h include/obexftp/object.h +include/obexftp/uuid.h lib/libbfb.a lib/libbfb.la -lib/libcobexbfb.a -lib/libcobexbfb.la +lib/libmulticobex.a +lib/libmulticobex.la lib/libobexftp.a lib/libobexftp.la +lib/pkgconfig/ +lib/pkgconfig/obexftp.pc +lib/ruby/site_ruby/${MODRUBY_REV}/x86_64-openbsd4.3/ +libdata/perl5/${MACHINE_ARCH}-openbsd/ +libdata/perl5/${MACHINE_ARCH}-openbsd/5.8.8/ +libdata/perl5/${MACHINE_ARCH}-openbsd/5.8.8/perllocal.pod +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/OBEXFTP.pm +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/OBEXFTP.bs @man man/man1/obexftp.1 +@man man/man1/obexftpd.1 [openobex.diff] diff -urN /usr/ports/comms/openobex/Makefile comms/openobex/Makefile --- /usr/ports/comms/openobex/Makefile Sun Sep 16 03:37:10 2007 +++ comms/openobex/Makefile Fri Jul 4 23:43:56 2008 @@ -1,8 +1,7 @@ # $OpenBSD: Makefile,v 1.10 2007/09/16 01:37:10 merdely Exp $ COMMENT= OBEX protocol implementation -DISTNAME= openobex-1.0.1 -PKGNAME= ${DISTNAME}p3 +DISTNAME= openobex-1.3 SHARED_LIBS += openobex 1.0 # .1.0 CATEGORIES= comms @@ -19,5 +18,11 @@ USE_GMAKE= Yes USE_LIBTOOL= Yes CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= --enable-apps \ + --enable-debug \ + --enable-syslog \ + --enable-dump + +LIB_DEPENDS= usb.>=9::devel/libusb .include <bsd.port.mk> diff -urN /usr/ports/comms/openobex/config.log comms/openobex/config.log --- /usr/ports/comms/openobex/config.log Thu Jan 1 01:00:00 1970 +++ comms/openobex/config.log Fri Jul 4 23:40:30 2008 @@ -0,0 +1,17 @@ + +## ---------------------- ## +## Running config.status. ## +## ---------------------- ## + +This file was extended by config.status, which was +generated by GNU Autoconf 2.59. Invocation command line was + + CONFIG_FILES = + CONFIG_HEADERS = + CONFIG_LINKS = + CONFIG_COMMANDS = + $ w-openobex-1.3/openobex-1.3/config.status + +on baccardi + +config.status:0: error: cannot find input file: Makefile.in diff -urN /usr/ports/comms/openobex/distinfo comms/openobex/distinfo --- /usr/ports/comms/openobex/distinfo Thu Apr 5 17:37:47 2007 +++ comms/openobex/distinfo Fri Jul 4 19:38:10 2008 @@ -1,5 +1,5 @@ -MD5 (openobex-1.0.1.tar.gz) = N0Jma7mCWfrOdr5Jtz6onQ== -RMD160 (openobex-1.0.1.tar.gz) = cNx9Lji4Ga8MNcyyb4BreqdoKw4= -SHA1 (openobex-1.0.1.tar.gz) = qnOz+eNFCI6PHAcODnJ/WGgg0g4= -SHA256 (openobex-1.0.1.tar.gz) = BmHBXotXhsmiINAlfKM5sU+94XTp60WWLuYFvfpNntg= -SIZE (openobex-1.0.1.tar.gz) = 211696 +MD5 (openobex-1.3.tar.gz) = /qpd/lFRwOcOj4aPpGSKQw== +RMD160 (openobex-1.3.tar.gz) = 84R04Xqv8Xmey19F3mqyPDvcjeA= +SHA1 (openobex-1.3.tar.gz) = pvu1mRvBS5C6bEL68Ca/a/oyXX8= +SHA256 (openobex-1.3.tar.gz) = OoC6JSTGakbbOsF6eIp1kBWh953mpJX83zoxbhn+fCM= +SIZE (openobex-1.3.tar.gz) = 337614 diff -urN /usr/ports/comms/openobex/patches/patch-configure comms/openobex/patches/patch-configure --- /usr/ports/comms/openobex/patches/patch-configure Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-configure Fri Jul 4 23:43:29 2008 @@ -0,0 +1,21 @@ +$OpenBSD$ +--- configure.orig Wed Jun 14 15:58:30 2006 ++++ configure Fri Jul 4 23:43:24 2008 +@@ -9352,7 +9352,7 @@ if test "${ac_cv_lib_usb_usb_get_busses+set}" = set; t + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lusb $LIBS" ++LIBS="-L${prefix}/lib -lusb $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -9425,7 +9425,7 @@ if test "${ac_cv_lib_usb_usb_interrupt_read+set}" = se + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lusb $LIBS" ++LIBS="-L${prefix}/lib -lusb $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF diff -urN /usr/ports/comms/openobex/patches/patch-lib_Makefile_in comms/openobex/patches/patch-lib_Makefile_in --- /usr/ports/comms/openobex/patches/patch-lib_Makefile_in Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-lib_Makefile_in Fri Jul 4 20:29:10 2008 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- lib/Makefile.in.orig Wed Jun 14 15:58:30 2006 ++++ lib/Makefile.in Fri Jul 4 20:28:24 2008 +@@ -61,7 +61,8 @@ am_libopenobex_la_OBJECTS = obex.lo obex_main.lo obex_ + obex_client.lo irobex.lo inobex.lo btobex.lo databuffer.lo \ + usbobex.lo + libopenobex_la_OBJECTS = $(am_libopenobex_la_OBJECTS) +-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) ++DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/include \ ++ -I$(includedir) + depcomp = $(SHELL) $(top_srcdir)/depcomp + am__depfiles_maybe = depfiles + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ diff -urN /usr/ports/comms/openobex/patches/patch-openobex-config_in comms/openobex/patches/patch-openobex-config_in --- /usr/ports/comms/openobex/patches/patch-openobex-config_in Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-openobex-config_in Thu Jan 1 01:00:00 1970 @@ -1,20 +0,0 @@ -$OpenBSD: patch-openobex-config_in,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- openobex-config.in.orig Wed Oct 20 22:18:55 2004 -+++ openobex-config.in Wed Oct 20 22:19:30 2004 -@@ -4,6 +4,7 @@ prefix=@prefix@ - exec_prefix=@exec_prefix@ - exec_prefix_set=no - includedir=@includedir@ -+libdir=@libdir@ - - usage() - { -@@ -87,7 +88,7 @@ if $cflags; then - fi - - if $libs; then -- all_flags="$all_flags $services $the_libs -lopenobex" -+ all_flags="$all_flags $services $the_libs -L$libdir -lopenobex" - fi - - if test -z "$all_flags" || test "x$all_flags" = "x "; then diff -urN /usr/ports/comms/openobex/patches/patch-src_Makefile_in comms/openobex/patches/patch-src_Makefile_in --- /usr/ports/comms/openobex/patches/patch-src_Makefile_in Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_Makefile_in Thu Jan 1 01:00:00 1970 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/Makefile.in.orig Fri Nov 12 10:51:50 2004 -+++ src/Makefile.in Fri Nov 12 10:52:19 2004 -@@ -95,7 +95,7 @@ lib_LTLIBRARIES = libopenobex.la - libopenobex_la_SOURCES = obex.c obex_main.c obex_main.h obex_connect.c obex_connect.h obex_header.c obex_header.h obex_object.c obex_object.h obex_transport.c obex_transport.h obex_server.c obex_server.h obex_client.c obex_client.h irobex.c irobex.h inobex.c inobex.h btobex.c btobex.h netbuf.c netbuf.h irda.h irda_wrap.h - - --libopenobex_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-symbols $(top_srcdir)/src/obex.sym -+libopenobex_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -export-symbols $(top_srcdir)/src/obex.sym - - - INCLUDES = -I$(top_srcdir)/src diff -urN /usr/ports/comms/openobex/patches/patch-src_irda_h comms/openobex/patches/patch-src_irda_h --- /usr/ports/comms/openobex/patches/patch-src_irda_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_irda_h Thu Jan 1 01:00:00 1970 @@ -1,13 +0,0 @@ -$OpenBSD: patch-src_irda_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/irda.h.orig Wed Oct 20 21:47:28 2004 -+++ src/irda.h Wed Oct 20 21:47:46 2004 -@@ -26,7 +26,9 @@ - #define IRDA_H - - #include <sys/types.h> -+#ifndef __OpenBSD__ - #include <stdint.h> -+#endif - - /* Hint bit positions for first hint byte */ - #define HINT_PNP 0x01 diff -urN /usr/ports/comms/openobex/patches/patch-src_netbuf_h comms/openobex/patches/patch-src_netbuf_h --- /usr/ports/comms/openobex/patches/patch-src_netbuf_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_netbuf_h Thu Jan 1 01:00:00 1970 @@ -1,15 +0,0 @@ -$OpenBSD: patch-src_netbuf_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/netbuf.h.orig Wed Oct 20 21:48:32 2004 -+++ src/netbuf.h Wed Oct 20 21:48:55 2004 -@@ -37,7 +37,11 @@ - #ifndef G_NETBUF_H - #define G_NETBUF_H - -+#ifndef __OpenBSD__ - #include <stdint.h> -+#else -+#include <sys/types.h> -+#endif - - typedef struct _slist_t{ - void *data; diff -urN /usr/ports/comms/openobex/patches/patch-src_obex_const_h comms/openobex/patches/patch-src_obex_const_h --- /usr/ports/comms/openobex/patches/patch-src_obex_const_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_obex_const_h Thu Jan 1 01:00:00 1970 @@ -1,15 +0,0 @@ -$OpenBSD: patch-src_obex_const_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/obex_const.h.orig Wed Oct 20 21:46:41 2004 -+++ src/obex_const.h Wed Oct 20 21:47:01 2004 -@@ -30,7 +30,11 @@ - #ifndef OBEX_CONST_H - #define OBEX_CONST_H - -+#ifndef __OpenBSD__ - #include <stdint.h> -+#else -+#include <sys/types.h> -+#endif - - typedef union { - uint32_t bq4; diff -urN /usr/ports/comms/openobex/patches/patch-src_obex_h comms/openobex/patches/patch-src_obex_h --- /usr/ports/comms/openobex/patches/patch-src_obex_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_obex_h Thu Jan 1 01:00:00 1970 @@ -1,15 +0,0 @@ -$OpenBSD: patch-src_obex_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/obex.h.orig Wed Oct 20 21:47:57 2004 -+++ src/obex.h Wed Oct 20 21:48:22 2004 -@@ -30,7 +30,11 @@ - #ifndef OBEX_H - #define OBEX_H - -+#ifndef __OpenBSD__ - #include <stdint.h> -+#else -+#include <sys/types.h> -+#endif - - #ifdef _WIN32 - #include <winsock.h> diff -urN /usr/ports/comms/openobex/pkg/PLIST comms/openobex/pkg/PLIST --- /usr/ports/comms/openobex/pkg/PLIST Fri Nov 12 09:04:22 2004 +++ comms/openobex/pkg/PLIST Fri Jul 4 22:24:16 2008 @@ -1,10 +1,16 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ %%SHARED%% -bin/openobex-config +@bin bin/ircp +@bin bin/irobex_palm3 +@bin bin/irxfer +@bin bin/obex_tcp +@bin bin/obex_test include/openobex/ include/openobex/obex.h include/openobex/obex_const.h lib/libopenobex.a lib/libopenobex.la +lib/pkgconfig/ +lib/pkgconfig/openobex.pc share/aclocal/ share/aclocal/openobex.m4 diff -urN /usr/ports/comms/openobex/pkg/PLIST.orig comms/openobex/pkg/PLIST.orig --- /usr/ports/comms/openobex/pkg/PLIST.orig Thu Jan 1 01:00:00 1970 +++ comms/openobex/pkg/PLIST.orig Fri Jul 4 20:29:44 2008 @@ -0,0 +1,11 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ +%%SHARED%% +include/openobex/ +include/openobex/obex.h +include/openobex/obex_const.h +lib/libopenobex.a +lib/libopenobex.la +lib/pkgconfig/ +lib/pkgconfig/openobex.pc +share/aclocal/ +share/aclocal/openobex.m4 |
|
|
Re: openobex and ftpobexLe Saturday 05 July 2008 00:19:27, vous avez écrit :
> Hi all, > > I try to make to work ftpobex with my Nokia N72. I try with new > versions for openobex and ftpobex. It's compile fine but if i try > to list compatible USB obex device, my phone isn't found. > > bash-3.2# obexftp -u > Found 0 USB OBEX interfaces > > > Use '-u interface_number' to connect > Nothing to do. Use --help for help. > > My phone is connected : > bash-3.2# usbdevs -v > Controller /dev/usb0: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > Controller /dev/usb1: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 addr 2: full speed, power 100 mA, config 1, Nokia N72(0x04c4), > Nokia(0x0421), rev 0.00 > port 2 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 addr 2: low speed, power 98 mA, config 1, USB Optical > Mouse(0x00c3), vendor 0x15ca(0x15ca), rev 5.12 > port 2 powered > Controller /dev/usb4: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb5: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > > I join my dmesg: > > OpenBSD 4.4-beta (GENERIC.MP) #1759: Tue Jul 1 20:52:58 MDT 2008 > deraadt@...:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 3476131840 (3315MB) > avail mem = 3372560384 (3216MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (71 entries) > bios0: vendor American Megatrends Inc. version "0704" date 10/30/2007 > bios0: ASUSTeK Computer INC. P5K > acpi0 at bios0: rev 2 > acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR > acpi0: wakeup devices P0P2(S4) P0P1(S4) UAR1(S4) PS2K(S4) EUSB(S4) USBE(S4) > P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB0(S4) USB1(S4) USB2(S4) > USB3 (S4) USB4(S4) USB5(S4) USB6(S4) P0P4(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.80 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu0: 4MB 64b/line 16-way L2 cache > cpu0: apic clock running at 267MHz > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu1: 4MB 64b/line 16-way L2 cache > cpu2 at mainbus0: apid 2 (application processor) > cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu2: 4MB 64b/line 16-way L2 cache > cpu3 at mainbus0: apid 3 (application processor) > cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu3: 4MB 64b/line 16-way L2 cache > ioapic0 at mainbus0 apid 4 pa 0xfec00000, version 20, 24 pins > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (P0P2) > acpiprt2 at acpi0: bus 5 (P0P1) > acpiprt3 at acpi0: bus -1 (P0P5) > acpiprt4 at acpi0: bus -1 (P0P6) > acpiprt5 at acpi0: bus -1 (P0P7) > acpiprt6 at acpi0: bus 3 (P0P8) > acpiprt7 at acpi0: bus 2 (P0P9) > acpiprt8 at acpi0: bus 4 (P0P4) > acpicpu0 at acpi0: PSS > acpicpu1 at acpi0: PSS > acpicpu2 at acpi0: PSS > acpicpu3 at acpi0: PSS > acpibtn0 at acpi0: PWRB > pci0 at mainbus0 bus 0: configuration mode 1 > pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02 > ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: apic 4 int 16 > (irq 11) > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x9442 rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > agp0 at vga1: no integrated graphics > azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaa30 rev > 0x00: apic 4 int 17 (irq 10) > azalia0: /usr/src/sys/dev/pci/azalia.c/1348 invalid PCM format: 0x00000000 > azalia0: No codecs found > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16 > (irq 11) > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21 > (irq 3) > uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 > (irq 5) > ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 18 > (irq 5) > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > azalia1 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: apic 4 > int 22 (irq 15) > azalia1: codec[s]: Realtek ALC883 > audio0 at azalia1 > ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: apic 4 int 17 > (irq 10) > pci2 at ppb1 bus 4 > ppb2 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: apic 4 int 17 > (irq 10) > pci3 at ppb2 bus 3 > jmb0 at pci3 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03 > ahci0 at jmb0: apic 4 int 16 (irq 11), AHCI 1.0 > scsibus0 at ahci0: 32 targets, initiator 32 > pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to > native-PCI > pciide0: using apic 4 int 16 (irq 11) for native-PCI interrupt > wd0 at pciide0 channel 0 drive 1: <Maxtor 6Y160P0> > wd0: 16-sector PIO, LBA48, 156334MB, 320173056 sectors > wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6 > pciide0: channel 1 disabled (no drives) > ppb3 at pci0 dev 28 function 5 "Intel 82801I PCIE" rev 0x02: apic 4 int 16 > (irq 11) > pci4 at ppb3 bus 2 > "Attansic Technology L1" rev 0xb0 at pci4 dev 0 function 0 not configured > uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 23 > (irq 7) > uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 19 > (irq 14) > uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 > (irq 5) > ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 23 > (irq 7) > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 > pci5 at ppb4 bus 5 > xl0 at pci5 dev 1 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 4 int > 17 (irq 10), address 00:01:02:da:a4:34 > bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6 > "VIA VT6306 FireWire" rev 0xc0 at pci5 dev 3 function 0 not configured > pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02 > pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA, > channel 0 configured to native-PCI, channel 1 configured to native-PCI > pciide1: using apic 4 int 22 (irq 15) for native-PCI interrupt > wd1 at pciide1 channel 1 drive 0: <MAXTOR STM3320820AS> > wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors > wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 > ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 4 int > 18 (irq 5) > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5 > pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA, > channel 0 wired to native-PCI, channel 1 wired to native-PCI > pciide2: using apic 4 int 22 (irq 15) for native-PCI interrupt > usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb4 at uhci2: USB revision 1.0 > uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb6 at uhci4: USB revision 1.0 > uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb7 at uhci5: USB revision 1.0 > uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pcppi0 at isa0 port 0x61 > midi0 at pcppi0: <PC speaker> > spkr0 at pcppi0 > wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23 > lm1 at wbsio0 port 0x290/8: W83627DHG > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > mtrr: Pentium Pro MTRR support > uhidev0 at uhub3 port 1 configuration 1 interface 0 "vendor 0x15ca USB > Optical Mouse" rev 2.00/5.12 addr 2 > uhidev0: iclass 3/1 > ums0 at uhidev0: 3 buttons, Z dir > wsmouse0 at ums0 mux 0 > softraid0 at root > root on wd1a swap on wd1b dump on wd1b > umodem0 at uhub2 port 2 configuration 1 interface 8 "Nokia Nokia N72" rev > 2.00/0.00 addr 2 > umodem0: data interface 9, has no CM over data, has break > umodem0: status change notification available > ucom0 at umodem0 > > And diff for use last obexftp and openobex version. > If Anyone has an idea. > > Thanks, > BSDManiak I have reading libusb code. It's normal that my phone isn't detected by ftpobex. I have desactivated ucom and umodem device in the kernel and then my phone it's detected by ftpobex. It's not working for the moment but i work above. |
|
|
Re: openobex and ftpobexLe Saturday 05 July 2008 00:19:27, vous avez écrit :
> Hi all, > > I try to make to work ftpobex with my Nokia N72. I try with new > versions for openobex and ftpobex. It's compile fine but if i try > to list compatible USB obex device, my phone isn't found. > > bash-3.2# obexftp -u > Found 0 USB OBEX interfaces > > > Use '-u interface_number' to connect > Nothing to do. Use --help for help. > > My phone is connected : > bash-3.2# usbdevs -v > Controller /dev/usb0: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > Controller /dev/usb1: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 addr 2: full speed, power 100 mA, config 1, Nokia N72(0x04c4), > Nokia(0x0421), rev 0.00 > port 2 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 addr 2: low speed, power 98 mA, config 1, USB Optical > Mouse(0x00c3), vendor 0x15ca(0x15ca), rev 5.12 > port 2 powered > Controller /dev/usb4: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb5: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x8086), rev 1.00 > port 1 powered > port 2 powered > > I join my dmesg: > > OpenBSD 4.4-beta (GENERIC.MP) #1759: Tue Jul 1 20:52:58 MDT 2008 > deraadt@...:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 3476131840 (3315MB) > avail mem = 3372560384 (3216MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (71 entries) > bios0: vendor American Megatrends Inc. version "0704" date 10/30/2007 > bios0: ASUSTeK Computer INC. P5K > acpi0 at bios0: rev 2 > acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR > acpi0: wakeup devices P0P2(S4) P0P1(S4) UAR1(S4) PS2K(S4) EUSB(S4) USBE(S4) > P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB0(S4) USB1(S4) USB2(S4) > USB3 (S4) USB4(S4) USB5(S4) USB6(S4) P0P4(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.80 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu0: 4MB 64b/line 16-way L2 cache > cpu0: apic clock running at 267MHz > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu1: 4MB 64b/line 16-way L2 cache > cpu2 at mainbus0: apid 2 (application processor) > cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu2: 4MB 64b/line 16-way L2 cache > cpu3 at mainbus0: apid 3 (application processor) > cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFL >USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX >16,xTPR,NXE,LONG cpu3: 4MB 64b/line 16-way L2 cache > ioapic0 at mainbus0 apid 4 pa 0xfec00000, version 20, 24 pins > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (P0P2) > acpiprt2 at acpi0: bus 5 (P0P1) > acpiprt3 at acpi0: bus -1 (P0P5) > acpiprt4 at acpi0: bus -1 (P0P6) > acpiprt5 at acpi0: bus -1 (P0P7) > acpiprt6 at acpi0: bus 3 (P0P8) > acpiprt7 at acpi0: bus 2 (P0P9) > acpiprt8 at acpi0: bus 4 (P0P4) > acpicpu0 at acpi0: PSS > acpicpu1 at acpi0: PSS > acpicpu2 at acpi0: PSS > acpicpu3 at acpi0: PSS > acpibtn0 at acpi0: PWRB > pci0 at mainbus0 bus 0: configuration mode 1 > pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02 > ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: apic 4 int 16 > (irq 11) > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x9442 rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > agp0 at vga1: no integrated graphics > azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaa30 rev > 0x00: apic 4 int 17 (irq 10) > azalia0: /usr/src/sys/dev/pci/azalia.c/1348 invalid PCM format: 0x00000000 > azalia0: No codecs found > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16 > (irq 11) > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21 > (irq 3) > uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 > (irq 5) > ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 18 > (irq 5) > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > azalia1 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: apic 4 > int 22 (irq 15) > azalia1: codec[s]: Realtek ALC883 > audio0 at azalia1 > ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: apic 4 int 17 > (irq 10) > pci2 at ppb1 bus 4 > ppb2 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: apic 4 int 17 > (irq 10) > pci3 at ppb2 bus 3 > jmb0 at pci3 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03 > ahci0 at jmb0: apic 4 int 16 (irq 11), AHCI 1.0 > scsibus0 at ahci0: 32 targets, initiator 32 > pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to > native-PCI > pciide0: using apic 4 int 16 (irq 11) for native-PCI interrupt > wd0 at pciide0 channel 0 drive 1: <Maxtor 6Y160P0> > wd0: 16-sector PIO, LBA48, 156334MB, 320173056 sectors > wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6 > pciide0: channel 1 disabled (no drives) > ppb3 at pci0 dev 28 function 5 "Intel 82801I PCIE" rev 0x02: apic 4 int 16 > (irq 11) > pci4 at ppb3 bus 2 > "Attansic Technology L1" rev 0xb0 at pci4 dev 0 function 0 not configured > uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 23 > (irq 7) > uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 19 > (irq 14) > uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18 > (irq 5) > ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 23 > (irq 7) > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 > pci5 at ppb4 bus 5 > xl0 at pci5 dev 1 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 4 int > 17 (irq 10), address 00:01:02:da:a4:34 > bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6 > "VIA VT6306 FireWire" rev 0xc0 at pci5 dev 3 function 0 not configured > pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02 > pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA, > channel 0 configured to native-PCI, channel 1 configured to native-PCI > pciide1: using apic 4 int 22 (irq 15) for native-PCI interrupt > wd1 at pciide1 channel 1 drive 0: <MAXTOR STM3320820AS> > wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors > wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 > ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 4 int > 18 (irq 5) > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5 > pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA, > channel 0 wired to native-PCI, channel 1 wired to native-PCI > pciide2: using apic 4 int 22 (irq 15) for native-PCI interrupt > usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb4 at uhci2: USB revision 1.0 > uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb6 at uhci4: USB revision 1.0 > uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > usb7 at uhci5: USB revision 1.0 > uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > isa0 at pcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pcppi0 at isa0 port 0x61 > midi0 at pcppi0: <PC speaker> > spkr0 at pcppi0 > wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23 > lm1 at wbsio0 port 0x290/8: W83627DHG > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > mtrr: Pentium Pro MTRR support > uhidev0 at uhub3 port 1 configuration 1 interface 0 "vendor 0x15ca USB > Optical Mouse" rev 2.00/5.12 addr 2 > uhidev0: iclass 3/1 > ums0 at uhidev0: 3 buttons, Z dir > wsmouse0 at ums0 mux 0 > softraid0 at root > root on wd1a swap on wd1b dump on wd1b > umodem0 at uhub2 port 2 configuration 1 interface 8 "Nokia Nokia N72" rev > 2.00/0.00 addr 2 > umodem0: data interface 9, has no CM over data, has break > umodem0: status change notification available > ucom0 at umodem0 > > And diff for use last obexftp and openobex version. > If Anyone has an idea. > > Thanks, > BSDManiak I have succeeded to make detect my phone. I Have desactivated ucom and umodem device. But i have another problem. If i check a first usb obex device i havn't nothing indication of the obex device. bash-3.2# obexftp -u OBEX_FindInterfaces(): OBEX_FreeInterfaces(): OBEX_FreeInterfaces(): Found 2 USB OBEX interfaces 0 (Manufacturer: Product: Serial: (null) Interface description: ) 1 (Manufacturer: Product: Serial: (null) Interface description: ) Use '-u interface_number' to connect Nothing to do. Use --help for help. The second time obexftp core dump: bash-3.2# gdb obexftp GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd4.4"...(no debugging symbols found) (gdb) run -u Starting program: /usr/local/bin/obexftp -u OBEX_FindInterfaces(): OBEX_FreeInterfaces(): Program received signal SIGSEGV, Segmentation fault. 0x0000000208c4a1ac in usbobex_find_interfaces (interfaces=0x20c2a4d38) at usbobex.c:243 243 for (i = 0; i < dev->config[c].bNumInterfaces; i++) { and usbdevs says errors : bash-3.2# usbdevs addr 1: EHCI root hub, Intel addr 1: EHCI root hub, Intel addr 1: UHCI root hub, Intel getdevicedesc: ioctl: Input/output error getstring: ioctl: Input/output error addr 2: product 0x04c4, vendor 0x0421 addr 1: UHCI root hub, Intel addr 2: USB Optical Mouse, vendor 0x15ca addr 1: UHCI root hub, Intel addr 1: UHCI root hub, Intel If anyone have any idea. Thanks, BSDManiak |
|
|
Re: openobex and ftpobexLe Monday 07 July 2008 01:02:51, vous avez écrit :
> Le Saturday 05 July 2008 00:19:27, vous avez écrit : > > Hi all, > > > > I try to make to work ftpobex with my Nokia N72. I try with new > > versions for openobex and ftpobex. It's compile fine but if i try > > to list compatible USB obex device, my phone isn't found. > > > > bash-3.2# obexftp -u > > Found 0 USB OBEX interfaces > > > > > > Use '-u interface_number' to connect > > Nothing to do. Use --help for help. > > > > My phone is connected : > > bash-3.2# usbdevs -v > > Controller /dev/usb0: > > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > > Intel(0x8086), rev 1.00 > > port 1 powered > > port 2 powered > > port 3 powered > > port 4 powered > > port 5 powered > > port 6 powered > > Controller /dev/usb1: > > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > > Intel(0x8086), rev 1.00 > > port 1 powered > > port 2 powered > > port 3 powered > > port 4 powered > > port 5 powered > > port 6 powered > > Controller /dev/usb2: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x8086), rev 1.00 > > port 1 addr 2: full speed, power 100 mA, config 1, Nokia N72(0x04c4), > > Nokia(0x0421), rev 0.00 > > port 2 powered > > Controller /dev/usb3: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x8086), rev 1.00 > > port 1 addr 2: low speed, power 98 mA, config 1, USB Optical > > Mouse(0x00c3), vendor 0x15ca(0x15ca), rev 5.12 > > port 2 powered > > Controller /dev/usb4: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x8086), rev 1.00 > > port 1 powered > > port 2 powered > > Controller /dev/usb5: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x8086), rev 1.00 > > port 1 powered > > port 2 powered > > > > I join my dmesg: > > > > OpenBSD 4.4-beta (GENERIC.MP) #1759: Tue Jul 1 20:52:58 MDT 2008 > > deraadt@...:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > real mem = 3476131840 (3315MB) > > avail mem = 3372560384 (3216MB) > > mainbus0 at root > > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06e0 (71 entries) > > bios0: vendor American Megatrends Inc. version "0704" date 10/30/2007 > > bios0: ASUSTeK Computer INC. P5K > > acpi0 at bios0: rev 2 > > acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR > > acpi0: wakeup devices P0P2(S4) P0P1(S4) UAR1(S4) PS2K(S4) EUSB(S4) > > USBE(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) USB0(S4) USB1(S4) > > USB2(S4) USB3 (S4) USB4(S4) USB5(S4) USB6(S4) P0P4(S4) > > acpitimer0 at acpi0: 3579545 Hz, 24 bits > > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > > cpu0 at mainbus0: apid 0 (boot processor) > > cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.80 MHz > > cpu0: > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C > >FL > > USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2 > >,CX 16,xTPR,NXE,LONG cpu0: 4MB 64b/line 16-way L2 cache > > cpu0: apic clock running at 267MHz > > cpu1 at mainbus0: apid 1 (application processor) > > cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > > cpu1: > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C > >FL > > USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2 > >,CX 16,xTPR,NXE,LONG cpu1: 4MB 64b/line 16-way L2 cache > > cpu2 at mainbus0: apid 2 (application processor) > > cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > > cpu2: > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C > >FL > > USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2 > >,CX 16,xTPR,NXE,LONG cpu2: 4MB 64b/line 16-way L2 cache > > cpu3 at mainbus0: apid 3 (application processor) > > cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2405.46 MHz > > cpu3: > > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,C > >FL > > USH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2 > >,CX 16,xTPR,NXE,LONG cpu3: 4MB 64b/line 16-way L2 cache > > ioapic0 at mainbus0 apid 4 pa 0xfec00000, version 20, 24 pins > > acpihpet0 at acpi0: 14318179 Hz > > acpiprt0 at acpi0: bus 0 (PCI0) > > acpiprt1 at acpi0: bus 1 (P0P2) > > acpiprt2 at acpi0: bus 5 (P0P1) > > acpiprt3 at acpi0: bus -1 (P0P5) > > acpiprt4 at acpi0: bus -1 (P0P6) > > acpiprt5 at acpi0: bus -1 (P0P7) > > acpiprt6 at acpi0: bus 3 (P0P8) > > acpiprt7 at acpi0: bus 2 (P0P9) > > acpiprt8 at acpi0: bus 4 (P0P4) > > acpicpu0 at acpi0: PSS > > acpicpu1 at acpi0: PSS > > acpicpu2 at acpi0: PSS > > acpicpu3 at acpi0: PSS > > acpibtn0 at acpi0: PWRB > > pci0 at mainbus0 bus 0: configuration mode 1 > > pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x02 > > ppb0 at pci0 dev 1 function 0 "Intel 82G33 PCIE" rev 0x02: apic 4 int 16 > > (irq 11) > > pci1 at ppb0 bus 1 > > vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x9442 rev > > 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > > agp0 at vga1: no integrated graphics > > azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaa30 rev > > 0x00: apic 4 int 17 (irq 10) > > azalia0: /usr/src/sys/dev/pci/azalia.c/1348 invalid PCM format: > > 0x00000000 azalia0: No codecs found > > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int > > 16 (irq 11) > > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int > > 21 (irq 3) > > uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 4 int > > 18 (irq 5) > > ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 4 int > > 18 (irq 5) > > usb0 at ehci0: USB revision 2.0 > > uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > > azalia1 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x02: apic > > 4 int 22 (irq 15) > > azalia1: codec[s]: Realtek ALC883 > > audio0 at azalia1 > > ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: apic 4 int > > 17 (irq 10) > > pci2 at ppb1 bus 4 > > ppb2 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: apic 4 int > > 17 (irq 10) > > pci3 at ppb2 bus 3 > > jmb0 at pci3 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03 > > ahci0 at jmb0: apic 4 int 16 (irq 11), AHCI 1.0 > > scsibus0 at ahci0: 32 targets, initiator 32 > > pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to > > native-PCI > > pciide0: using apic 4 int 16 (irq 11) for native-PCI interrupt > > wd0 at pciide0 channel 0 drive 1: <Maxtor 6Y160P0> > > wd0: 16-sector PIO, LBA48, 156334MB, 320173056 sectors > > wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6 > > pciide0: channel 1 disabled (no drives) > > ppb3 at pci0 dev 28 function 5 "Intel 82801I PCIE" rev 0x02: apic 4 int > > 16 (irq 11) > > pci4 at ppb3 bus 2 > > "Attansic Technology L1" rev 0xb0 at pci4 dev 0 function 0 not configured > > uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 4 int > > 23 (irq 7) > > uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 4 int > > 19 (irq 14) > > uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 4 int > > 18 (irq 5) > > ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 4 int > > 23 (irq 7) > > usb1 at ehci1: USB revision 2.0 > > uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 > > ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92 > > pci5 at ppb4 bus 5 > > xl0 at pci5 dev 1 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 4 > > int 17 (irq 10), address 00:01:02:da:a4:34 > > bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 6 > > "VIA VT6306 FireWire" rev 0xc0 at pci5 dev 3 function 0 not configured > > pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02 > > pciide1 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA, > > channel 0 configured to native-PCI, channel 1 configured to native-PCI > > pciide1: using apic 4 int 22 (irq 15) for native-PCI interrupt > > wd1 at pciide1 channel 1 drive 0: <MAXTOR STM3320820AS> > > wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors > > wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 > > ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 4 > > int 18 (irq 5) > > iic0 at ichiic0 > > spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 > > spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5 > > pciide2 at pci0 dev 31 function 5 "Intel 82801I SATA" rev 0x02: DMA, > > channel 0 wired to native-PCI, channel 1 wired to native-PCI > > pciide2: using apic 4 int 22 (irq 15) for native-PCI interrupt > > usb2 at uhci0: USB revision 1.0 > > uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > > usb3 at uhci1: USB revision 1.0 > > uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > > usb4 at uhci2: USB revision 1.0 > > uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > > usb5 at uhci3: USB revision 1.0 > > uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > > usb6 at uhci4: USB revision 1.0 > > uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > > usb7 at uhci5: USB revision 1.0 > > uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1 > > isa0 at pcib0 > > isadma0 at isa0 > > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > > pckbc0 at isa0 port 0x60/5 > > pckbd0 at pckbc0 (kbd slot) > > pckbc0: using irq 1 for kbd slot > > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > > pcppi0 at isa0 port 0x61 > > midi0 at pcppi0: <PC speaker> > > spkr0 at pcppi0 > > wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x23 > > lm1 at wbsio0 port 0x290/8: W83627DHG > > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > > mtrr: Pentium Pro MTRR support > > uhidev0 at uhub3 port 1 configuration 1 interface 0 "vendor 0x15ca USB > > Optical Mouse" rev 2.00/5.12 addr 2 > > uhidev0: iclass 3/1 > > ums0 at uhidev0: 3 buttons, Z dir > > wsmouse0 at ums0 mux 0 > > softraid0 at root > > root on wd1a swap on wd1b dump on wd1b > > umodem0 at uhub2 port 2 configuration 1 interface 8 "Nokia Nokia N72" rev > > 2.00/0.00 addr 2 > > umodem0: data interface 9, has no CM over data, has break > > umodem0: status change notification available > > ucom0 at umodem0 > > > > And diff for use last obexftp and openobex version. > > If Anyone has an idea. > > > > Thanks, > > BSDManiak > > I have succeeded to make detect my phone. I Have desactivated ucom > and umodem device. But i have another problem. If i check a first usb > obex device i havn't nothing indication of the obex device. > > bash-3.2# obexftp -u > OBEX_FindInterfaces(): > OBEX_FreeInterfaces(): > OBEX_FreeInterfaces(): > Found 2 USB OBEX interfaces > > 0 (Manufacturer: Product: Serial: (null) Interface description: ) > 1 (Manufacturer: Product: Serial: (null) Interface description: ) > > Use '-u interface_number' to connect > Nothing to do. Use --help for help. > > The second time obexftp core dump: > > bash-3.2# gdb obexftp > GNU gdb 6.3 > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "amd64-unknown-openbsd4.4"...(no debugging > symbols found) > > (gdb) run -u > Starting program: /usr/local/bin/obexftp -u > OBEX_FindInterfaces(): > OBEX_FreeInterfaces(): > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000208c4a1ac in usbobex_find_interfaces (interfaces=0x20c2a4d38) at > usbobex.c:243 > 243 for (i = 0; i < > dev->config[c].bNumInterfaces; i++) { > > and usbdevs says errors : > > bash-3.2# usbdevs > addr 1: EHCI root hub, Intel > addr 1: EHCI root hub, Intel > addr 1: UHCI root hub, Intel > getdevicedesc: ioctl: Input/output error > getstring: ioctl: Input/output error > addr 2: product 0x04c4, vendor 0x0421 > addr 1: UHCI root hub, Intel > addr 2: USB Optical Mouse, vendor 0x15ca > addr 1: UHCI root hub, Intel > addr 1: UHCI root hub, Intel > > If anyone have any idea. > > Thanks, > BSDManiak I Have enable USB_DEBUG and then i have this: bash-3.2# obexftp -u OBEX_FindInterfaces(): OBEX_FreeInterfaces(): usb_set_debug: Setting debugging level to 5 (on) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_busses: Found /dev/usb3 usb_os_find_busses: Found /dev/usb4 usb_os_find_busses: Found /dev/usb5 usb_os_find_devices: Found /dev/ugen0 on /dev/usb3 usb_control_msg: 128 6 512 0 0x7f7ffffcec98 8 1000 usb_control_msg: 128 6 512 0 0x209bae200 282 1000 skipped 3 class/vendor specific interface descriptors skipped 3 class/vendor specific interface descriptors skipped 1 class/vendor specific interface descriptors skipped 3 class/vendor specific interface descriptors skipped 3 class/vendor specific interface descriptors skipped 3 class/vendor specific interface descriptors skipped 3 class/vendor specific interface descriptors usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 usb_control_msg: 128 6 769 1033 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error usb_control_msg: 128 6 768 0 0x7f7ffffcebf0 255 1000 USB error: error sending control message: Input/output error OBEX_FreeInterfaces(): Found 2 USB OBEX interfaces 0 (Manufacturer: Product: Serial: (null) Interface description: ) 1 (Manufacturer: Product: Serial: (null) Interface description: ) Use '-u interface_number' to connect Nothing to do. Use --help for help. I Think it's a problem with libusb :/ BSDManiak |
|
|
|
|
|
Re: openobex and ftpobexNow it's work with my Nokia N72 I can sending, receiving and deleting file and
list files in a folder. I have only tested USB connection. Please test it. Thanks, BSDManiak [libusb.diff] diff -urN /usr/ports/devel/libusb/Makefile devel/libusb/Makefile --- /usr/ports/devel/libusb/Makefile Sun Sep 16 04:53:01 2007 +++ devel/libusb/Makefile Sun Jul 13 01:20:59 2008 @@ -2,6 +2,7 @@ COMMENT= USB access library +PKGNAME= ${DISTNAME}p0 DISTNAME= libusb-0.1.12 SHARED_LIBS= usb 9.0 \ usbpp 10.0 @@ -26,6 +27,7 @@ SEPARATE_BUILD= concurrent CONFIGURE_STYLE= gnu CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \ - --disable-build-docs + --disable-build-docs \ + --enable-debug=yes .include <bsd.port.mk> diff -urN /usr/ports/devel/libusb/patches/bsd_c devel/libusb/patches/bsd_c --- /usr/ports/devel/libusb/patches/bsd_c Thu Jan 1 01:00:00 1970 +++ devel/libusb/patches/bsd_c Sat Jul 5 03:01:08 2008 @@ -0,0 +1,87 @@ +$OpenBSD: patch-bsd_c,v 1.7 2006/11/15 18:34:13 pvalchev Exp $ +--- bsd.c.orig Sat Mar 4 03:52:46 2006 ++++ bsd.c Sat Jul 5 03:01:03 2008 +@@ -361,7 +361,7 @@ int usb_bulk_read(usb_dev_handle *dev, int ep, char *b + int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes, int size, + int timeout) + { +- int fd, ret, sent = 0; ++ int fd, ret; + + /* Ensure the endpoint address is correct */ + ep &= ~USB_ENDPOINT_IN; +@@ -383,8 +383,7 @@ int usb_interrupt_write(usb_dev_handle *dev, int ep, c + USB_ERROR_STR(-errno, "error setting timeout: %s", + strerror(errno)); + +- do { +- ret = write(fd, bytes+sent, size-sent); ++ ret = write(fd, bytes, size); + if (ret < 0) + #ifdef __FreeBSD_kernel__ + USB_ERROR_STR(-errno, "error writing to interrupt endpoint %s.%d: %s", +@@ -394,16 +393,13 @@ int usb_interrupt_write(usb_dev_handle *dev, int ep, c + dev->device->filename, UE_GET_ADDR(ep), strerror(errno)); + #endif + +- sent += ret; +- } while (ret > 0 && sent < size); +- +- return sent; ++ return ret; + } + + int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes, int size, + int timeout) + { +- int fd, ret, retrieved = 0, one = 1; ++ int fd, ret, one = 1; + + /* Ensure the endpoint address is correct */ + ep |= USB_ENDPOINT_IN; +@@ -428,8 +424,7 @@ int usb_interrupt_read(usb_dev_handle *dev, int ep, ch + if (ret < 0) + USB_ERROR_STR(-errno, "error setting short xfer: %s", strerror(errno)); + +- do { +- ret = read(fd, bytes+retrieved, size-retrieved); ++ ret = read(fd, bytes, size); + if (ret < 0) + #ifdef __FreeBSD_kernel__ + USB_ERROR_STR(-errno, "error reading from interrupt endpoint %s.%d: %s", +@@ -438,10 +433,7 @@ int usb_interrupt_read(usb_dev_handle *dev, int ep, ch + USB_ERROR_STR(-errno, "error reading from interrupt endpoint %s.%02d: %s", + dev->device->filename, UE_GET_ADDR(ep), strerror(errno)); + #endif +- retrieved += ret; +- } while (ret > 0 && retrieved < size); +- +- return retrieved; ++ return ret; + } + + int usb_control_msg(usb_dev_handle *dev, int requesttype, int request, +@@ -527,12 +519,12 @@ int usb_os_find_devices(struct usb_bus *bus, struct us + int cfd, dfd; + int device; + +- cfd = open(bus->dirname, O_RDONLY); ++ cfd = open(bus->dirname, O_RDWR); + if (cfd < 0) + USB_ERROR_STR(-errno, "couldn't open(%s): %s", bus->dirname, + strerror(errno)); + +- for (device = 1; device < USB_MAX_DEVICES; device++) { ++ for (device = 0; device < USB_MAX_DEVICES; device++) { + struct usb_device_info di; + struct usb_device *dev; + unsigned char device_desc[DEVICE_DESC_LENGTH]; +@@ -555,7 +547,7 @@ int usb_os_find_devices(struct usb_bus *bus, struct us + #endif + + /* Open its control endpoint */ +- dfd = open(buf, O_RDONLY); ++ dfd = open(buf, O_RDWR); + if (dfd < 0) { + if (usb_debug >= 2) + fprintf(stderr, "usb_os_find_devices: couldn't open device %s: %s\n", diff -urN /usr/ports/devel/libusb/patches/patch-bsd_c devel/libusb/patches/patch-bsd_c --- /usr/ports/devel/libusb/patches/patch-bsd_c Wed Nov 15 19:34:13 2006 +++ devel/libusb/patches/patch-bsd_c Fri Jul 11 23:37:59 2008 @@ -1,7 +1,16 @@ $OpenBSD: patch-bsd_c,v 1.7 2006/11/15 18:34:13 pvalchev Exp $ ---- bsd.c.orig Fri Mar 3 19:52:46 2006 -+++ bsd.c Tue Nov 14 21:00:00 2006 -@@ -361,7 +361,7 @@ int usb_bulk_read(usb_dev_handle *dev, i +--- bsd.c.orig Sat Mar 4 03:52:46 2006 ++++ bsd.c Fri Jul 11 23:37:56 2008 +@@ -325,7 +325,7 @@ int usb_bulk_read(usb_dev_handle *dev, int ep, char *b + /* Ensure the endpoint address is correct */ + ep |= USB_ENDPOINT_IN; + +- fd = ensure_ep_open(dev, ep, O_RDONLY); ++ fd = ensure_ep_open(dev, ep, O_RDONLY | O_NONBLOCK); + if (fd < 0) { + if (usb_debug >= 2) { + #ifdef __FreeBSD_kernel__ +@@ -361,7 +361,7 @@ int usb_bulk_read(usb_dev_handle *dev, int ep, char *b int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes, int size, int timeout) { @@ -10,7 +19,7 @@ /* Ensure the endpoint address is correct */ ep &= ~USB_ENDPOINT_IN; -@@ -383,8 +383,7 @@ int usb_interrupt_write(usb_dev_handle * +@@ -383,8 +383,7 @@ int usb_interrupt_write(usb_dev_handle *dev, int ep, c USB_ERROR_STR(-errno, "error setting timeout: %s", strerror(errno)); @@ -20,7 +29,7 @@ if (ret < 0) #ifdef __FreeBSD_kernel__ USB_ERROR_STR(-errno, "error writing to interrupt endpoint %s.%d: %s", -@@ -394,16 +393,13 @@ int usb_interrupt_write(usb_dev_handle * +@@ -394,16 +393,13 @@ int usb_interrupt_write(usb_dev_handle *dev, int ep, c dev->device->filename, UE_GET_ADDR(ep), strerror(errno)); #endif @@ -39,7 +48,7 @@ /* Ensure the endpoint address is correct */ ep |= USB_ENDPOINT_IN; -@@ -428,8 +424,7 @@ int usb_interrupt_read(usb_dev_handle *d +@@ -428,8 +424,7 @@ int usb_interrupt_read(usb_dev_handle *dev, int ep, ch if (ret < 0) USB_ERROR_STR(-errno, "error setting short xfer: %s", strerror(errno)); @@ -49,7 +58,7 @@ if (ret < 0) #ifdef __FreeBSD_kernel__ USB_ERROR_STR(-errno, "error reading from interrupt endpoint %s.%d: %s", -@@ -438,10 +433,7 @@ int usb_interrupt_read(usb_dev_handle *d +@@ -438,10 +433,7 @@ int usb_interrupt_read(usb_dev_handle *dev, int ep, ch USB_ERROR_STR(-errno, "error reading from interrupt endpoint %s.%02d: %s", dev->device->filename, UE_GET_ADDR(ep), strerror(errno)); #endif diff -urN /usr/ports/devel/libusb/patches/patch-usb_c devel/libusb/patches/patch-usb_c --- /usr/ports/devel/libusb/patches/patch-usb_c Thu Jan 1 01:00:00 1970 +++ devel/libusb/patches/patch-usb_c Fri Jul 11 20:14:36 2008 @@ -0,0 +1,46 @@ +$OpenBSD$ +--- usb.c.orig Fri Jul 11 20:11:38 2008 ++++ usb.c Fri Jul 11 20:13:40 2008 +@@ -219,12 +219,36 @@ usb_dev_handle *usb_open(struct usb_device *dev) + int usb_get_string(usb_dev_handle *dev, int index, int langid, char *buf, + size_t buflen) + { +- /* +- * We can't use usb_get_descriptor() because it's lacking the index +- * parameter. This will be fixed in libusb 1.0 +- */ +- return usb_control_msg(dev, USB_ENDPOINT_IN, USB_REQ_GET_DESCRIPTOR, +- (USB_DT_STRING << 8) + index, langid, buf, buflen, 1000); ++ struct usb_string_descriptor *desc = (struct usb_string_descriptor *)buf; ++ int res; ++ ++ res = usb_control_msg(dev, USB_ENDPOINT_IN, USB_REQ_GET_DESCRIPTOR, ++ (USB_DT_STRING << 8) + index, langid, buf, 4, 1000); ++ if (res < 4) { ++ if (usb_debug >= 1) { ++ if (res < 0) ++ fprintf(stderr, "Unable to get descriptor (%d)\n", res); ++ else ++ fprintf(stderr, "String descriptor too short (expected %d, got %d)\n", 8, res); ++ } ++ ++ return res; ++ } ++ ++ res = usb_control_msg(dev, USB_ENDPOINT_IN, USB_REQ_GET_DESCRIPTOR, ++ (USB_DT_STRING << 8) + index, langid, buf, desc->bLength, 1000); ++ if (res < desc->bLength) { ++ if (usb_debug >= 1) { ++ if (res < 0) ++ fprintf(stderr, "Unable to get descriptor (%d)\n", res); ++ else ++ fprintf(stderr, "String descriptor too short (expected %d, got %d)\n", desc->bLength, res); ++ } ++ ++ return res; ++ } ++ ++ return res; + } + + int usb_get_string_simple(usb_dev_handle *dev, int index, char *buf, size_t buflen) [obexftp.diff] diff -urN /usr/ports/comms/obexftp/Makefile comms/obexftp/Makefile --- /usr/ports/comms/obexftp/Makefile Sun Sep 16 03:37:09 2007 +++ comms/obexftp/Makefile Sun Jul 20 21:30:33 2008 @@ -1,11 +1,10 @@ # $OpenBSD: Makefile,v 1.9 2007/09/16 01:37:09 merdely Exp $ COMMENT= file copying over the OBEX protocol -DISTNAME= obexftp-0.10.4 -PKGNAME= ${DISTNAME}p1 -SHARED_LIBS += bfb 0.4 # .0.4 -SHARED_LIBS += cobexbfb 0.8 # .0.8 +DISTNAME= obexftp-0.22 +SHARED_LIBS += bfb 0.8 # .0.8 SHARED_LIBS += obexftp 0.11 # .0.11 +SHARED_LIBS += multicobex 1.1 CATEGORIES= comms HOMEPAGE= http://triq.net/obex/ @@ -15,13 +14,20 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c +WANTLIB= c m usb MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openobex/} -LIB_DEPENDS= openobex.>=1::comms/openobex +LIB_DEPENDS= openobex.>=1::comms/openobex \ + ruby.>=1::lang/ruby \ + iconv.>=5::converters/libiconv CONFIGURE_STYLE= gnu USE_LIBTOOL= Yes +USE_GMAKE= Yes + +MODULES= lang/ruby + +EXTRACT_SUFX= .tar.bz2 .include <bsd.port.mk> diff -urN /usr/ports/comms/obexftp/distinfo comms/obexftp/distinfo --- /usr/ports/comms/obexftp/distinfo Thu Apr 5 17:37:47 2007 +++ comms/obexftp/distinfo Fri Jul 4 20:54:22 2008 @@ -1,5 +1,5 @@ -MD5 (obexftp-0.10.4.tar.gz) = oBuYPmQISBImBdkCK1E9tw== -RMD160 (obexftp-0.10.4.tar.gz) = 6vXGjvo++0a9TC4AphKMsXXEutU= -SHA1 (obexftp-0.10.4.tar.gz) = YYVBpjkCXxL99tkuCNPSYnIyKxQ= -SHA256 (obexftp-0.10.4.tar.gz) = gUAkvGYHGFZF0sA43yVJLTQLIokC9GhFTTtoFd5fdNM= -SIZE (obexftp-0.10.4.tar.gz) = 374317 +MD5 (obexftp-0.22.tar.bz2) = 0WfP3qJE46X5c6exaGRBnA== +RMD160 (obexftp-0.22.tar.bz2) = o5YP0VzXXPtwZsVl7p+pDcenwR8= +SHA1 (obexftp-0.22.tar.bz2) = h1OuEFNlOwHrDe7jt9McAqykl00= +SHA256 (obexftp-0.22.tar.bz2) = CWhwEtXgFid/pjjyK4x4SupoAwVscNFGFOO3UViq6Hc= +SIZE (obexftp-0.22.tar.bz2) = 402570 diff -urN /usr/ports/comms/obexftp/patches/patch-configure comms/obexftp/patches/patch-configure --- /usr/ports/comms/obexftp/patches/patch-configure Thu Jan 1 01:00:00 1970 +++ comms/obexftp/patches/patch-configure Fri Jul 4 21:59:29 2008 @@ -0,0 +1,11 @@ +$OpenBSD$ +--- configure.orig Fri Jul 4 21:56:31 2008 ++++ configure Fri Jul 4 21:59:19 2008 +@@ -22915,6 +22915,7 @@ cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + ++ #include <sys/types.h> + #include <openobex/obex.h> + #include <openobex/obex_const.h> + diff -urN /usr/ports/comms/obexftp/patches/patch-obexftp_client_c comms/obexftp/patches/patch-obexftp_client_c --- /usr/ports/comms/obexftp/patches/patch-obexftp_client_c Fri Nov 12 09:06:54 2004 +++ comms/obexftp/patches/patch-obexftp_client_c Thu Jan 1 01:00:00 1970 @@ -1,45 +0,0 @@ -$OpenBSD: patch-obexftp_client_c,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ ---- obexftp/client.c.orig Thu Apr 29 23:44:07 2004 -+++ obexftp/client.c Mon Nov 8 23:13:21 2004 -@@ -78,6 +78,7 @@ - #endif - #endif - -+#include <limits.h> - - typedef struct { /* fixed to 6 bytes for now */ - uint8_t code; -@@ -427,10 +428,10 @@ int obexftp_cli_connect(obexftp_client_t - - } - #endif -- if (ret == -1 /* -ESOCKTNOSUPPORT */) -+ if (ret < 0 /* -ESOCKTNOSUPPORT */) - ret = IrOBEX_TransportConnect(cli->obexhandle, "OBEX"); - DEBUG(3, "%s() IR %d\n", __func__, ret); -- if (ret == -1 /* -ESOCKTNOSUPPORT */) -+ if (ret < 0 /* -ESOCKTNOSUPPORT */) - ret = OBEX_TransportConnect(cli->obexhandle, NULL, 0); - DEBUG(3, "%s() TC %d\n", __func__, ret); - #endif -@@ -899,6 +900,9 @@ static time_t atotime (const char *date) - - DIR *obexftp_opendir(obexftp_client_t *cli, const char *name) - { -+ struct dirstream *stream; -+ int res; -+ - /* purge stat buffer */ - while (statbuf != NULL) { - STATENTRY *p = statbuf->next; -@@ -908,8 +912,8 @@ DIR *obexftp_opendir(obexftp_client_t *c - statbuf = NULL; - - /* read dir */ -- struct dirstream *stream = malloc(sizeof(struct dirstream)); -- int res = 0; -+ stream = malloc(sizeof(struct dirstream)); -+ res = 0; - - /* List folder */ - res = obexftp_list(cli, NULL, name); diff -urN /usr/ports/comms/obexftp/patches/patch-obexftp_dirtraverse_c comms/obexftp/patches/patch-obexftp_dirtraverse_c --- /usr/ports/comms/obexftp/patches/patch-obexftp_dirtraverse_c Fri Nov 12 09:06:54 2004 +++ comms/obexftp/patches/patch-obexftp_dirtraverse_c Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ -$OpenBSD: patch-obexftp_dirtraverse_c,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ ---- obexftp/dirtraverse.c.orig Wed Oct 20 22:11:21 2004 -+++ obexftp/dirtraverse.c Wed Oct 20 22:11:36 2004 -@@ -29,6 +29,7 @@ - #define _POSIX_PATH_MAX MAX_PATH - #endif /* _WIN32 */ - #include <dirent.h> -+#include <limits.h> - - #include "dirtraverse.h" - #include <common.h> diff -urN /usr/ports/comms/obexftp/patches/patch-obexftp_obexftp_io_c comms/obexftp/patches/patch-obexftp_obexftp_io_c --- /usr/ports/comms/obexftp/patches/patch-obexftp_obexftp_io_c Fri Nov 12 09:06:54 2004 +++ comms/obexftp/patches/patch-obexftp_obexftp_io_c Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ -$OpenBSD: patch-obexftp_obexftp_io_c,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ ---- obexftp/obexftp_io.c.orig Wed Oct 20 22:10:20 2004 -+++ obexftp/obexftp_io.c Wed Oct 20 22:10:53 2004 -@@ -26,6 +26,7 @@ - #include <sys/stat.h> - - #include <fcntl.h> -+#include <limits.h> - #include <string.h> - #include <time.h> - diff -urN /usr/ports/comms/obexftp/pkg/PFRAG.shared comms/obexftp/pkg/PFRAG.shared --- /usr/ports/comms/obexftp/pkg/PFRAG.shared Fri Dec 23 15:16:01 2005 +++ comms/obexftp/pkg/PFRAG.shared Sat Jul 19 16:05:23 2008 @@ -1,4 +1,6 @@ -@comment $OpenBSD: PFRAG.shared,v 1.2 2005/12/23 14:16:01 bernd Exp $ +@comment $OpenBSD$ @lib lib/libbfb.so.${LIBbfb_VERSION} -@lib lib/libcobexbfb.so.${LIBcobexbfb_VERSION} +@lib lib/libmulticobex.so.${LIBmulticobex_VERSION} @lib lib/libobexftp.so.${LIBobexftp_VERSION} +lib/ruby/site_ruby/${MODRUBY_REV}/${MODRUBY_ARCH}/obexftp.so +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/OBEXFTP.so diff -urN /usr/ports/comms/obexftp/pkg/PLIST comms/obexftp/pkg/PLIST --- /usr/ports/comms/obexftp/pkg/PLIST Fri Nov 12 09:06:54 2004 +++ comms/obexftp/pkg/PLIST Sat Jul 19 15:59:17 2008 @@ -1,20 +1,32 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:06:54 grange Exp $ +@comment $OpenBSD$ %%SHARED%% -bin/obexftp -bin/obexftpd +@bin bin/obexftp +@bin bin/obexftpd include/bfb/ include/bfb/bfb.h include/bfb/bfb_io.h -include/cobexbfb/ -include/cobexbfb/cobex_bfb.h +include/multicobex/ +include/multicobex/multi_cobex.h include/obexftp/ include/obexftp/client.h include/obexftp/obexftp.h include/obexftp/object.h +include/obexftp/uuid.h lib/libbfb.a lib/libbfb.la -lib/libcobexbfb.a -lib/libcobexbfb.la +lib/libmulticobex.a +lib/libmulticobex.la lib/libobexftp.a lib/libobexftp.la +lib/pkgconfig/ +lib/pkgconfig/obexftp.pc +libdata/perl5/${MACHINE_ARCH}-openbsd/ +libdata/perl5/${MACHINE_ARCH}-openbsd/5.8.8/ +libdata/perl5/${MACHINE_ARCH}-openbsd/5.8.8/perllocal.pod +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/OBEXFTP.pm +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/ +libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/OBEXFTP/OBEXFTP.bs @man man/man1/obexftp.1 +@man man/man1/obexftpd.1 [openobex.diff] diff -urN /usr/ports/comms/openobex/Makefile comms/openobex/Makefile --- /usr/ports/comms/openobex/Makefile Sun Sep 16 03:37:10 2007 +++ comms/openobex/Makefile Sun Jul 20 21:29:53 2008 @@ -1,9 +1,8 @@ # $OpenBSD: Makefile,v 1.10 2007/09/16 01:37:10 merdely Exp $ COMMENT= OBEX protocol implementation -DISTNAME= openobex-1.0.1 -PKGNAME= ${DISTNAME}p3 -SHARED_LIBS += openobex 1.0 # .1.0 +DISTNAME= openobex-1.3 +SHARED_LIBS+= openobex 1.0 # .1.0 CATEGORIES= comms HOMEPAGE= http://openobex.triq.net/ @@ -19,5 +18,10 @@ USE_GMAKE= Yes USE_LIBTOOL= Yes CONFIGURE_STYLE= gnu +CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" + +LIB_DEPENDS= usb.>=9::devel/libusb +WRKSRC= ${WRKDIR}/${PKGNAME}/ +WRKDIST= ${WRKDIR}/${PKGNAME}/ .include <bsd.port.mk> diff -urN /usr/ports/comms/openobex/distinfo comms/openobex/distinfo --- /usr/ports/comms/openobex/distinfo Thu Apr 5 17:37:47 2007 +++ comms/openobex/distinfo Wed Jul 9 19:00:51 2008 @@ -1,5 +1,5 @@ -MD5 (openobex-1.0.1.tar.gz) = N0Jma7mCWfrOdr5Jtz6onQ== -RMD160 (openobex-1.0.1.tar.gz) = cNx9Lji4Ga8MNcyyb4BreqdoKw4= -SHA1 (openobex-1.0.1.tar.gz) = qnOz+eNFCI6PHAcODnJ/WGgg0g4= -SHA256 (openobex-1.0.1.tar.gz) = BmHBXotXhsmiINAlfKM5sU+94XTp60WWLuYFvfpNntg= -SIZE (openobex-1.0.1.tar.gz) = 211696 +MD5 (openobex-1.3.tar.gz) = /qpd/lFRwOcOj4aPpGSKQw== +RMD160 (openobex-1.3.tar.gz) = 84R04Xqv8Xmey19F3mqyPDvcjeA= +SHA1 (openobex-1.3.tar.gz) = pvu1mRvBS5C6bEL68Ca/a/oyXX8= +SHA256 (openobex-1.3.tar.gz) = OoC6JSTGakbbOsF6eIp1kBWh953mpJX83zoxbhn+fCM= +SIZE (openobex-1.3.tar.gz) = 337614 diff -urN /usr/ports/comms/openobex/patches/patch-configure comms/openobex/patches/patch-configure --- /usr/ports/comms/openobex/patches/patch-configure Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-configure Wed Jul 9 19:14:57 2008 @@ -0,0 +1,21 @@ +$OpenBSD$ +--- configure.orig Wed Jul 9 19:13:40 2008 ++++ configure Wed Jul 9 19:14:52 2008 +@@ -9352,7 +9352,7 @@ if test "${ac_cv_lib_usb_usb_get_busses+set}" = set; t + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lusb $LIBS" ++LIBS="-L${prefix}/lib -lusb $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -9425,7 +9425,7 @@ if test "${ac_cv_lib_usb_usb_interrupt_read+set}" = se + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lusb $LIBS" ++LIBS="-L${prefix}/lib -lusb $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF diff -urN /usr/ports/comms/openobex/patches/patch-lib_obex_main_c comms/openobex/patches/patch-lib_obex_main_c --- /usr/ports/comms/openobex/patches/patch-lib_obex_main_c Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-lib_obex_main_c Wed Jul 9 19:35:09 2008 @@ -0,0 +1,21 @@ +$OpenBSD$ +--- lib/obex_main.c.orig Thu May 4 13:24:21 2006 ++++ lib/obex_main.c Wed Jul 9 19:35:05 2008 +@@ -250,7 +250,7 @@ int obex_data_indication(obex_t *self, uint8_t *buf, i + DEBUG(4, "Got %d bytes\n", actual); + + /* Check if we are still connected */ +- if (actual <= 0) { ++ if (buf == NULL && buflen == 0 && actual <= 0) { + obex_deliver_event(self, OBEX_EV_LINKERR, 0, 0, TRUE); + return actual; + } +@@ -270,7 +270,7 @@ int obex_data_indication(obex_t *self, uint8_t *buf, i + buflen); + + /* Check if we are still connected */ +- if (actual <= 0) { ++ if (buf == NULL && buflen == 0 && actual <= 0) { + obex_deliver_event(self, OBEX_EV_LINKERR, 0, 0, TRUE); + return actual; + } diff -urN /usr/ports/comms/openobex/patches/patch-lib_obex_transport_c comms/openobex/patches/patch-lib_obex_transport_c --- /usr/ports/comms/openobex/patches/patch-lib_obex_transport_c Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-lib_obex_transport_c Sat Jul 19 22:26:49 2008 @@ -0,0 +1,24 @@ +$OpenBSD$ +--- lib/obex_transport.c.orig Thu May 4 13:24:21 2006 ++++ lib/obex_transport.c Sat Jul 19 22:26:47 2008 +@@ -411,9 +411,8 @@ int obex_transport_write(obex_t *self, buf_t *msg) + if (self->trans.connected != TRUE) + break; + DEBUG(4, "Endpoint %d\n", self->trans.self.usb.data_endpoint_write); +- actual = usb_bulk_write(self->trans.self.usb.dev_data, +- self->trans.self.usb.data_endpoint_write, +- (char *) msg->data, msg->data_size, USB_OBEX_TIMEOUT); ++ actual = usb_bulk_write(self->trans.self.usb.dev, ++ self->trans.self.usb.data_endpoint_write, (char *) msg->data, msg->data_size, USB_OBEX_TIMEOUT); + break; + #endif /*HAVE_USB*/ + case OBEX_TRANS_CUSTOM: +@@ -460,7 +459,7 @@ int obex_transport_read(obex_t *self, int max, uint8_t + if (self->trans.connected != TRUE) + break; + DEBUG(4, "Endpoint %d\n", self->trans.self.usb.data_endpoint_read); +- actual = usb_bulk_read(self->trans.self.usb.dev_data, ++ actual = usb_bulk_read(self->trans.self.usb.dev, + self->trans.self.usb.data_endpoint_read, + buf_reserve_end(msg, self->mtu_rx), self->mtu_rx, + USB_OBEX_TIMEOUT); diff -urN /usr/ports/comms/openobex/patches/patch-lib_usbobex_c comms/openobex/patches/patch-lib_usbobex_c --- /usr/ports/comms/openobex/patches/patch-lib_usbobex_c Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-lib_usbobex_c Sun Jul 20 21:00:53 2008 @@ -0,0 +1,187 @@ +$OpenBSD$ +--- lib/usbobex.c.orig Wed Jan 18 13:59:15 2006 ++++ lib/usbobex.c Sun Jul 20 21:00:49 2008 +@@ -66,28 +66,30 @@ static void find_eps(struct obex_usb_intf_transport_t + struct usb_endpoint_descriptor *ep0, *ep1; + + if (data_intf.bNumEndpoints == 2) { +- ep0 = data_intf.endpoint; +- ep1 = data_intf.endpoint + 1; +- if ((ep0->bEndpointAddress & USB_ENDPOINT_IN) && +- ((ep0->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK) && +- !(ep1->bEndpointAddress & USB_ENDPOINT_IN) && +- ((ep1->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK)) { +- *found_active = 1; +- intf->data_active_setting = data_intf.bAlternateSetting; +- intf->data_interface_active_description = data_intf.iInterface; +- intf->data_endpoint_read = ep0->bEndpointAddress; +- intf->data_endpoint_write = ep1->bEndpointAddress; +- } +- if (!(ep0->bEndpointAddress & USB_ENDPOINT_IN) && +- ((ep0->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK) && +- (ep1->bEndpointAddress & USB_ENDPOINT_IN) && +- ((ep1->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK)) { +- *found_active = 1; +- intf->data_active_setting = data_intf.bAlternateSetting; +- intf->data_interface_active_description = data_intf.iInterface; +- intf->data_endpoint_read = ep1->bEndpointAddress; +- intf->data_endpoint_write = ep0->bEndpointAddress; +- } ++ ep0 = data_intf.endpoint + 1; ++ ep1 = data_intf.endpoint; ++ if ((ep0->bEndpointAddress & USB_ENDPOINT_IN) && ++ ((ep0->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK) && ++ !(ep1->bEndpointAddress & USB_ENDPOINT_IN) && ++ ((ep1->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK)) { ++ *found_active = 1; ++ intf->data_active_setting = data_intf.bAlternateSetting; ++ intf->data_interface_active_description = data_intf.iInterface; ++ intf->data_endpoint_read = ep0->bEndpointAddress; ++ intf->data_endpoint_write = ep1->bEndpointAddress; ++ } ++ ++ if (!(ep0->bEndpointAddress & USB_ENDPOINT_IN) && ++ ((ep0->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK) && ++ (ep1->bEndpointAddress & USB_ENDPOINT_IN) && ++ ((ep1->bmAttributes & USB_ENDPOINT_TYPE_MASK) == USB_ENDPOINT_TYPE_BULK)) { ++ *found_active = 1; ++ intf->data_active_setting = data_intf.bAlternateSetting; ++ intf->data_interface_active_description = data_intf.iInterface; ++ intf->data_endpoint_read = ep1->bEndpointAddress; ++ intf->data_endpoint_write = ep0->bEndpointAddress; ++ } ++ + } + if (data_intf.bNumEndpoints == 0) { + *found_idle = 1; +@@ -266,20 +268,35 @@ int usbobex_find_interfaces(obex_interface_t **interfa + while (current) { + intf_array[num].usb.interface = current; + usb_handle = usb_open(current->device); +- get_intf_string(usb_handle, &intf_array[num].usb.manufacturer, +- current->device->descriptor.iManufacturer); +- get_intf_string(usb_handle, &intf_array[num].usb.product, +- current->device->descriptor.iProduct); +- get_intf_string(usb_handle, &intf_array[num].usb.serial, +- current->device->descriptor.iSerialNumber); +- get_intf_string(usb_handle, &intf_array[num].usb.configuration, +- current->configuration_description); +- get_intf_string(usb_handle, &intf_array[num].usb.control_interface, +- current->control_interface_description); +- get_intf_string(usb_handle, &intf_array[num].usb.data_interface_idle, +- current->data_interface_idle_description); +- get_intf_string(usb_handle, &intf_array[num].usb.data_interface_active, +- current->data_interface_active_description); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.manufacturer, ++ current->device->descriptor.iManufacturer) < 0) ++ DEBUG(1, "Unable to fetch manufacturer string\n"); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.product, ++ current->device->descriptor.iProduct) < 0) ++ DEBUG(1, "Unable to fetch product string\n"); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.serial, ++ current->device->descriptor.iSerialNumber) < 0) ++ DEBUG(1, "Unable to fetch serial number string\n"); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.configuration, ++ current->configuration_description) < 0) ++ DEBUG(1, "Unable to fetch configuration string\n"); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.control_interface, ++ current->control_interface_description) < 0) ++ DEBUG(1, "Unable to fetch control interface string\n"); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.data_interface_idle, ++ current->data_interface_idle_description) < 0) ++ DEBUG(1, "Unable to fetch date interface idle string\n"); ++ ++ if (get_intf_string(usb_handle, &intf_array[num].usb.data_interface_active, ++ current->data_interface_active_description) < 0) ++ DEBUG(1, "Unable to fetch date interface active string\n"); ++ + usb_close(usb_handle); + current = current->next; num++; + } +@@ -331,48 +348,35 @@ int usbobex_connect_request(obex_t *self) + + DEBUG(4, "\n"); + +- self->trans.self.usb.dev_control = usb_open(self->trans.self.usb.device); +- self->trans.self.usb.dev_data = usb_open(self->trans.self.usb.device); ++ self->trans.self.usb.dev = usb_open(self->trans.self.usb.device); + +- ret = usb_set_configuration(self->trans.self.usb.dev_control, self->trans.self.usb.configuration); ++ ret = usb_set_configuration(self->trans.self.usb.dev, self->trans.self.usb.configuration); + if (ret < 0) { +- DEBUG(4, "Can't set configuration %d", ret); ++ DEBUG(4, "Can't set configuration %d", ret); + } + +- ret = usb_claim_interface(self->trans.self.usb.dev_control, self->trans.self.usb.control_interface); ++ ret = usb_claim_interface(self->trans.self.usb.dev, self->trans.self.usb.data_interface); + if (ret < 0) { + DEBUG(4, "Can't claim control interface %d", ret); + goto err1; + } + +- ret = usb_set_altinterface(self->trans.self.usb.dev_control, self->trans.self.usb.control_setting); ++ ret = usb_set_altinterface(self->trans.self.usb.dev, self->trans.self.usb.data_active_setting); + if (ret < 0) { + DEBUG(4, "Can't set control setting %d", ret); + goto err2; + } + +- ret = usb_claim_interface(self->trans.self.usb.dev_data, self->trans.self.usb.data_interface); +- if (ret < 0) { +- DEBUG(4, "Can't claim data interface %d", ret); +- goto err2; +- } +- +- ret = usb_set_altinterface(self->trans.self.usb.dev_data, self->trans.self.usb.data_active_setting); +- if (ret < 0) { +- DEBUG(4, "Can't set data active setting %d", ret); +- goto err3; +- } + self->trans.mtu = OBEX_MAXIMUM_MTU; + DEBUG(2, "transport mtu=%d\n", self->trans.mtu); + return 1; + + err3: +- usb_release_interface(self->trans.self.usb.dev_data, self->trans.self.usb.data_interface); ++ usb_release_interface(self->trans.self.usb.dev, self->trans.self.usb.data_interface); + err2: +- usb_release_interface(self->trans.self.usb.dev_control, self->trans.self.usb.control_interface); ++ usb_release_interface(self->trans.self.usb.dev, self->trans.self.usb.control_interface); + err1: +- usb_close(self->trans.self.usb.dev_data); +- usb_close(self->trans.self.usb.dev_control); ++ usb_close(self->trans.self.usb.dev); + return ret; + + #endif /* _WIN32 */ +@@ -391,21 +395,12 @@ int usbobex_disconnect_request(obex_t *self) + return 0; + #ifndef _WIN32 + DEBUG(4, "\n"); +- ret = usb_set_altinterface(self->trans.self.usb.dev_data, self->trans.self.usb.data_idle_setting); +- if (ret < 0) +- DEBUG(4, "Can't set data idle setting %d", ret); +- ret = usb_release_interface(self->trans.self.usb.dev_data, self->trans.self.usb.data_interface); ++ ret = usb_release_interface(self->trans.self.usb.dev, self->trans.self.usb.data_interface); + if (ret < 0) + DEBUG(4, "Can't release data interface %d", ret); +- ret = usb_release_interface(self->trans.self.usb.dev_control, self->trans.self.usb.control_interface); +- if (ret < 0) +- DEBUG(4, "Can't release control interface %d", ret); +- ret = usb_close(self->trans.self.usb.dev_data); ++ ret = usb_close(self->trans.self.usb.dev); + if (ret < 0) + DEBUG(4, "Can't close data interface %d", ret); +- ret = usb_close(self->trans.self.usb.dev_control); +- if (ret < 0) +- DEBUG(4, "Can't close control interface %d", ret); + #endif /* _WIN32 */ + return ret; + } diff -urN /usr/ports/comms/openobex/patches/patch-lib_usbobex_h comms/openobex/patches/patch-lib_usbobex_h --- /usr/ports/comms/openobex/patches/patch-lib_usbobex_h Thu Jan 1 01:00:00 1970 +++ comms/openobex/patches/patch-lib_usbobex_h Fri Jul 11 21:55:57 2008 @@ -0,0 +1,22 @@ +$OpenBSD$ +--- lib/usbobex.h.orig Tue Jan 3 19:36:15 2006 ++++ lib/usbobex.h Fri Jul 11 21:55:54 2008 +@@ -52,8 +52,7 @@ struct obex_usb_intf_transport_t { + * in active setting */ + int data_endpoint_read; /* OBEX data/slave interface read endpoint */ + int data_endpoint_write; /* OBEX data/slave interface write endpoint */ +- usb_dev_handle *dev_control; /* libusb handler for control interace */ +- usb_dev_handle *dev_data; /* libusb handler for data interface */ ++ usb_dev_handle *dev; /* libusb handler for control & data interface */ + }; + + /* "Union Functional Descriptor" from CDC spec 5.2.3.X +@@ -83,7 +82,7 @@ struct cdc_union_desc { + #define USB_DT_CS_INTERFACE 0x24 + #define CDC_DATA_INTERFACE_TYPE 0x0a + +-#define USB_MAX_STRING_SIZE 256 ++#define USB_MAX_STRING_SIZE 127 + #define USB_OBEX_TIMEOUT 10000 /* 10 seconds */ + + void usbobex_prepare_connect(obex_t *self, struct obex_usb_intf_transport_t *intf); diff -urN /usr/ports/comms/openobex/patches/patch-openobex-config_in comms/openobex/patches/patch-openobex-config_in --- /usr/ports/comms/openobex/patches/patch-openobex-config_in Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-openobex-config_in Thu Jan 1 01:00:00 1970 @@ -1,20 +0,0 @@ -$OpenBSD: patch-openobex-config_in,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- openobex-config.in.orig Wed Oct 20 22:18:55 2004 -+++ openobex-config.in Wed Oct 20 22:19:30 2004 -@@ -4,6 +4,7 @@ prefix=@prefix@ - exec_prefix=@exec_prefix@ - exec_prefix_set=no - includedir=@includedir@ -+libdir=@libdir@ - - usage() - { -@@ -87,7 +88,7 @@ if $cflags; then - fi - - if $libs; then -- all_flags="$all_flags $services $the_libs -lopenobex" -+ all_flags="$all_flags $services $the_libs -L$libdir -lopenobex" - fi - - if test -z "$all_flags" || test "x$all_flags" = "x "; then diff -urN /usr/ports/comms/openobex/patches/patch-src_Makefile_in comms/openobex/patches/patch-src_Makefile_in --- /usr/ports/comms/openobex/patches/patch-src_Makefile_in Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_Makefile_in Thu Jan 1 01:00:00 1970 @@ -1,12 +0,0 @@ -$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/Makefile.in.orig Fri Nov 12 10:51:50 2004 -+++ src/Makefile.in Fri Nov 12 10:52:19 2004 -@@ -95,7 +95,7 @@ lib_LTLIBRARIES = libopenobex.la - libopenobex_la_SOURCES = obex.c obex_main.c obex_main.h obex_connect.c obex_connect.h obex_header.c obex_header.h obex_object.c obex_object.h obex_transport.c obex_transport.h obex_server.c obex_server.h obex_client.c obex_client.h irobex.c irobex.h inobex.c inobex.h btobex.c btobex.h netbuf.c netbuf.h irda.h irda_wrap.h - - --libopenobex_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-symbols $(top_srcdir)/src/obex.sym -+libopenobex_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -export-symbols $(top_srcdir)/src/obex.sym - - - INCLUDES = -I$(top_srcdir)/src diff -urN /usr/ports/comms/openobex/patches/patch-src_irda_h comms/openobex/patches/patch-src_irda_h --- /usr/ports/comms/openobex/patches/patch-src_irda_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_irda_h Thu Jan 1 01:00:00 1970 @@ -1,13 +0,0 @@ -$OpenBSD: patch-src_irda_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/irda.h.orig Wed Oct 20 21:47:28 2004 -+++ src/irda.h Wed Oct 20 21:47:46 2004 -@@ -26,7 +26,9 @@ - #define IRDA_H - - #include <sys/types.h> -+#ifndef __OpenBSD__ - #include <stdint.h> -+#endif - - /* Hint bit positions for first hint byte */ - #define HINT_PNP 0x01 diff -urN /usr/ports/comms/openobex/patches/patch-src_netbuf_h comms/openobex/patches/patch-src_netbuf_h --- /usr/ports/comms/openobex/patches/patch-src_netbuf_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_netbuf_h Thu Jan 1 01:00:00 1970 @@ -1,15 +0,0 @@ -$OpenBSD: patch-src_netbuf_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/netbuf.h.orig Wed Oct 20 21:48:32 2004 -+++ src/netbuf.h Wed Oct 20 21:48:55 2004 -@@ -37,7 +37,11 @@ - #ifndef G_NETBUF_H - #define G_NETBUF_H - -+#ifndef __OpenBSD__ - #include <stdint.h> -+#else -+#include <sys/types.h> -+#endif - - typedef struct _slist_t{ - void *data; diff -urN /usr/ports/comms/openobex/patches/patch-src_obex_const_h comms/openobex/patches/patch-src_obex_const_h --- /usr/ports/comms/openobex/patches/patch-src_obex_const_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_obex_const_h Thu Jan 1 01:00:00 1970 @@ -1,15 +0,0 @@ -$OpenBSD: patch-src_obex_const_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/obex_const.h.orig Wed Oct 20 21:46:41 2004 -+++ src/obex_const.h Wed Oct 20 21:47:01 2004 -@@ -30,7 +30,11 @@ - #ifndef OBEX_CONST_H - #define OBEX_CONST_H - -+#ifndef __OpenBSD__ - #include <stdint.h> -+#else -+#include <sys/types.h> -+#endif - - typedef union { - uint32_t bq4; diff -urN /usr/ports/comms/openobex/patches/patch-src_obex_h comms/openobex/patches/patch-src_obex_h --- /usr/ports/comms/openobex/patches/patch-src_obex_h Fri Nov 12 09:04:22 2004 +++ comms/openobex/patches/patch-src_obex_h Thu Jan 1 01:00:00 1970 @@ -1,15 +0,0 @@ -$OpenBSD: patch-src_obex_h,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ ---- src/obex.h.orig Wed Oct 20 21:47:57 2004 -+++ src/obex.h Wed Oct 20 21:48:22 2004 -@@ -30,7 +30,11 @@ - #ifndef OBEX_H - #define OBEX_H - -+#ifndef __OpenBSD__ - #include <stdint.h> -+#else -+#include <sys/types.h> -+#endif - - #ifdef _WIN32 - #include <winsock.h> diff -urN /usr/ports/comms/openobex/pkg/PLIST comms/openobex/pkg/PLIST --- /usr/ports/comms/openobex/pkg/PLIST Fri Nov 12 09:04:22 2004 +++ comms/openobex/pkg/PLIST Fri Jul 11 17:13:42 2008 @@ -1,10 +1,11 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/12 08:04:22 grange Exp $ %%SHARED%% -bin/openobex-config include/openobex/ include/openobex/obex.h include/openobex/obex_const.h lib/libopenobex.a lib/libopenobex.la +lib/pkgconfig/ +lib/pkgconfig/openobex.pc share/aclocal/ share/aclocal/openobex.m4 |
|
|
Re: openobex and ftpobexOn Sun, Jul 20, 2008 at 09:45:04PM +0200, OUSADOU Azwaw wrote:
> Now it's work with my Nokia N72 I can sending, receiving and deleting file and > list files in a folder. > > I have only tested USB connection. > > Please test it. I will take a look at your libusb diff, but mind to explain the reason behind your diffs? usb_get_string is right, but i want to know the need for the others. f.- |
| Free embeddable forum powered by Nabble | Forum Help |