public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] No more bluez.o in 2.6?
@ 2004-04-07 17:23 Gregoire Favre
  2004-04-07 21:43 ` Gregoire Favre
  0 siblings, 1 reply; 12+ messages in thread
From: Gregoire Favre @ 2004-04-07 17:23 UTC (permalink / raw)
  To: bluez-users

Hello,

I have an MSI-Max2-BLR with onboard bluetooth, lsmod shows that:
rfcomm                 22680  0=20
l2cap                  20228  5 rfcomm
ohci_hcd               16260  0=20
hci_usb                 9600  0=20
bluetooth              41060  5 rfcomm,l2cap,hci_usb

But hciconfig don't show anything... I am using kernel 2.6.5.
cat /proc/bus/usb/devices=20

T:  Bus=3D04 Lev=3D00 Prnt=3D00 Port=3D00 Cnt=3D00 Dev#=3D  1 Spd=3D12  M=
xCh=3D 2
B:  Alloc=3D  0/900 us ( 0%), #Int=3D  0, #Iso=3D  0
D:  Ver=3D 1.10 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 MxPS=3D 8 #Cfgs=3D  1
P:  Vendor=3D0000 ProdID=3D0000 Rev=3D 2.06
S:  Manufacturer=3DLinux 2.6.5 uhci_hcd
S:  Product=3DIntel Corp. 82801DB USB (Hub #3)
S:  SerialNumber=3D0000:00:1d.2
C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D40 MxPwr=3D  0mA
I:  If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 Driver=
=3Dhub
E:  Ad=3D81(I) Atr=3D03(Int.) MxPS=3D   2 Ivl=3D255ms

T:  Bus=3D03 Lev=3D00 Prnt=3D00 Port=3D00 Cnt=3D00 Dev#=3D  1 Spd=3D12  M=
xCh=3D 2
B:  Alloc=3D  0/900 us ( 0%), #Int=3D  0, #Iso=3D  0
D:  Ver=3D 1.10 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 MxPS=3D 8 #Cfgs=3D  1
P:  Vendor=3D0000 ProdID=3D0000 Rev=3D 2.06
S:  Manufacturer=3DLinux 2.6.5 uhci_hcd
S:  Product=3DIntel Corp. 82801DB USB (Hub #2)
S:  SerialNumber=3D0000:00:1d.1
C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D40 MxPwr=3D  0mA
I:  If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 Driver=
=3Dhub
E:  Ad=3D81(I) Atr=3D03(Int.) MxPS=3D   2 Ivl=3D255ms

T:  Bus=3D02 Lev=3D00 Prnt=3D00 Port=3D00 Cnt=3D00 Dev#=3D  1 Spd=3D12  M=
xCh=3D 2
B:  Alloc=3D  0/900 us ( 0%), #Int=3D  0, #Iso=3D  0
D:  Ver=3D 1.10 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 MxPS=3D 8 #Cfgs=3D  1
P:  Vendor=3D0000 ProdID=3D0000 Rev=3D 2.06
S:  Manufacturer=3DLinux 2.6.5 uhci_hcd
S:  Product=3DIntel Corp. 82801DB USB (Hub #1)
S:  SerialNumber=3D0000:00:1d.0
C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D40 MxPwr=3D  0mA
I:  If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 Driver=
=3Dhub
E:  Ad=3D81(I) Atr=3D03(Int.) MxPS=3D   2 Ivl=3D255ms

T:  Bus=3D01 Lev=3D00 Prnt=3D00 Port=3D00 Cnt=3D00 Dev#=3D  1 Spd=3D480 M=
xCh=3D 6
B:  Alloc=3D  0/800 us ( 0%), #Int=3D  0, #Iso=3D  0
D:  Ver=3D 2.00 Cls=3D09(hub  ) Sub=3D00 Prot=3D01 MxPS=3D 8 #Cfgs=3D  1
P:  Vendor=3D0000 ProdID=3D0000 Rev=3D 2.06
S:  Manufacturer=3DLinux 2.6.5 ehci_hcd
S:  Product=3DIntel Corp. 82801DB USB2
S:  SerialNumber=3D0000:00:1d.7
C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D40 MxPwr=3D  0mA
I:  If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=3D09(hub  ) Sub=3D00 Prot=3D00 Driver=
=3Dhub
E:  Ad=3D81(I) Atr=3D03(Int.) MxPS=3D   2 Ivl=3D256ms

T:  Bus=3D01 Lev=3D01 Prnt=3D01 Port=3D02 Cnt=3D01 Dev#=3D  3 Spd=3D480 M=
xCh=3D 0
D:  Ver=3D 2.00 Cls=3D00(>ifc ) Sub=3D00 Prot=3D00 MxPS=3D64 #Cfgs=3D  1
P:  Vendor=3D1005 ProdID=3Db113 Rev=3D 1.00
S:  Product=3DUSB Flash Drive
S:  SerialNumber=3D070B00090F811B0
C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D80 MxPwr=3D500mA
I:  If#=3D 0 Alt=3D 0 #EPs=3D 2 Cls=3D08(stor.) Sub=3D06 Prot=3D50
Driver=3Dusb-storage
E:  Ad=3D81(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms
E:  Ad=3D02(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms

T:  Bus=3D01 Lev=3D01 Prnt=3D01 Port=3D03 Cnt=3D02 Dev#=3D  2 Spd=3D480 M=
xCh=3D 0
D:  Ver=3D 2.00 Cls=3D00(>ifc ) Sub=3D00 Prot=3D00 MxPS=3D64 #Cfgs=3D  1
P:  Vendor=3D0424 ProdID=3D20fc Rev=3D 1.97
S:  Manufacturer=3DSMSC
S:  Product=3DUSB 2 Flash Media Device
S:  SerialNumber=3D7777777777A6
C:* #Ifs=3D 1 Cfg#=3D 1 Atr=3D80 MxPwr=3D 96mA
I:  If#=3D 0 Alt=3D 0 #EPs=3D 2 Cls=3D08(stor.) Sub=3D06 Prot=3D50
Driver=3Dusb-storage
E:  Ad=3D02(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D125us
E:  Ad=3D82(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms

I use the bluez included in Mandrake 10:
bluez-hcidump-1.5-2mdk
libbluez1-2.5-1mdk
bluez-bluefw-0.9-2mdk
libbluez1-devel-2.5-1mdk
bluez-sdp-1.5-1mdk
bluez-pan-1.1-2mdk
libbluez-sdp2-1.5-1mdk
libbluez-sdp2-devel-1.5-1mdk
bluez-utils-2.4-4mdk
bluez-hciemu-1.0-2mdk

Is my bluetooth dongle not recognized or should I do something else?

Thank you very much,

	Gr=E9goire
_________________________________________________________________________=
_
http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.c=
h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-07 17:23 [Bluez-users] No more bluez.o in 2.6? Gregoire Favre
@ 2004-04-07 21:43 ` Gregoire Favre
  2004-04-08  7:48   ` Aben Siatris
  2004-04-08  9:47   ` Marcel Holtmann
  0 siblings, 2 replies; 12+ messages in thread
From: Gregoire Favre @ 2004-04-07 21:43 UTC (permalink / raw)
  To: bluez-users

Hello again,

I compiled 2.6.5-mm2 again, with all blutooth in, and now I can see my
bluetooth device ;-) I can also scan my Palm device.
I try http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
and after dund --listen --persist --msdun call dun
I got the following error when I try to connect:
dund[3647]: RFCOMM TTY creation failed. Operation not supported(95)

If I lauch pppd before trying to connect:

pppd[3693]: pppd 2.4.1 started by root, uid 0
pppd[3693]: Using interface ppp0
pppd[3693]: Connect: ppp0 <--> /dev/pts/1
dund[3704]: RFCOMM TTY creation failed. Operation

pppd[3693]: LCP: timeout sending Config-Requests=20
pppd[3693]: Connection terminated.
pppd[3693]: Exit.

Any idea why? And how I could solve this issue?

Thank you very much,

	Gr=E9goire
_________________________________________________________________________=
_
http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.c=
h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-07 21:43 ` Gregoire Favre
@ 2004-04-08  7:48   ` Aben Siatris
  2004-04-08 15:09     ` Gregoire Favre
  2004-04-08  9:47   ` Marcel Holtmann
  1 sibling, 1 reply; 12+ messages in thread
From: Aben Siatris @ 2004-04-08  7:48 UTC (permalink / raw)
  To: bluez-users

D=C5=88a Wednesday 07 April 2004 23:43 Gregoire Favre nap=C3=ADsal:
> Hello again,
>=20
> I compiled 2.6.5-mm2 again, with all blutooth in, and now I can see my
> bluetooth device ;-) I can also scan my Palm device.
> I try http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
> and after dund --listen --persist --msdun call dun
> I got the following error when I try to connect:
> dund[3647]: RFCOMM TTY creation failed. Operation not supported(95)
>=20
> If I lauch pppd before trying to connect:
>=20
> pppd[3693]: pppd 2.4.1 started by root, uid 0
> pppd[3693]: Using interface ppp0
> pppd[3693]: Connect: ppp0 <--> /dev/pts/1
> dund[3704]: RFCOMM TTY creation failed. Operation
>=20
> pppd[3693]: LCP: timeout sending Config-Requests=20
  ^---- same error with mi ipaq :))
now i use connect to PAN and all working rights.

# /usr/bin/pand --listen --role NAP
=2D disabled DHCP in iPAQ, using 192.168.20.2 gateway 192.168.20.1
=2D connect (all ok)
=2D on server - ifconfig bnep0 192.168.20.1 netmask 255.255.255.0
=2D now routing and iptables nat :)

all working fine :)


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-07 21:43 ` Gregoire Favre
  2004-04-08  7:48   ` Aben Siatris
@ 2004-04-08  9:47   ` Marcel Holtmann
  2004-04-08 15:00     ` Gregoire Favre
  1 sibling, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-04-08  9:47 UTC (permalink / raw)
  To: Gregoire Favre; +Cc: BlueZ Mailing List

Hi Gregoire,

> I compiled 2.6.5-mm2 again, with all blutooth in, and now I can see my
> bluetooth device ;-) I can also scan my Palm device.
> I try http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
> and after dund --listen --persist --msdun call dun
> I got the following error when I try to connect:
> dund[3647]: RFCOMM TTY creation failed. Operation not supported(95)

this error is because you didn't set CONFIG_BT_RFCOMM_TTY in your kernel
config.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-08  9:47   ` Marcel Holtmann
@ 2004-04-08 15:00     ` Gregoire Favre
  2004-04-08 16:02       ` Michal Semler (volny.cz)
  2004-04-09 12:40       ` Gregoire Favre
  0 siblings, 2 replies; 12+ messages in thread
From: Gregoire Favre @ 2004-04-08 15:00 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

On Thu, Apr 08, 2004 at 11:47:12AM +0200, Marcel Holtmann wrote:

> Hi Gregoire,

Hello Marcel and others :-)

> > I compiled 2.6.5-mm2 again, with all blutooth in, and now I can see m=
y
> > bluetooth device ;-) I can also scan my Palm device.
> > I try http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
> > and after dund --listen --persist --msdun call dun
> > I got the following error when I try to connect:
> > dund[3647]: RFCOMM TTY creation failed. Operation not supported(95)
>=20
> this error is because you didn't set CONFIG_BT_RFCOMM_TTY in your kerne=
l
> config.

You're totally right!!!

Now, some kernels recompilation later, I still have a problem which I
don't know how to solve:

dund[3539]: DUN daemon ver 1.1
dund[3554]: New connection from 00:...
pppd[3561]: pppd 2.4.1 started by root, uid 0
pppd[3561]: Using interface ppp0
pppd[3561]: Connect: ppp0 <--> /dev/rfcomm0
pppd[3561]: Cannot determine ethernet address for proxy ARP
pppd[3561]: local  IP address 192.168.1.2
pppd[3561]: remote IP address 172.31.130.67
pppd[3561]: IPCP terminated by peer
pppd[3561]: Hangup (SIGHUP)
pppd[3561]: Modem hangup
pppd[3561]: Connection terminated.
pppd[3561]: Connect time 0.8 minutes.
pppd[3561]: Sent 571 bytes, received 322 bytes.
pppd[3561]: Exit.

And after that, I cannot try to connect anymore...

What I am trying just now:
pilot-xfer -p net:any -i AESLib.prc TuSSH0.69.prc
always following
http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html

Thank you very much,

	Gr=E9goire
_________________________________________________________________________=
_
http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.c=
h

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-08  7:48   ` Aben Siatris
@ 2004-04-08 15:09     ` Gregoire Favre
  2004-04-08 16:29       ` Marcel Holtmann
  2004-04-10 15:43       ` Aben Siatris
  0 siblings, 2 replies; 12+ messages in thread
From: Gregoire Favre @ 2004-04-08 15:09 UTC (permalink / raw)
  To: Aben Siatris; +Cc: bluez-users

On Thu, Apr 08, 2004 at 09:48:44AM +0200, Aben Siatris wrote:

> D??a Wednesday 07 April 2004 23:43 Gregoire Favre nap=EDsal:
> > Hello again,
> >=20
> > I compiled 2.6.5-mm2 again, with all blutooth in, and now I can see m=
y
> > bluetooth device ;-) I can also scan my Palm device.
> > I try http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
> > and after dund --listen --persist --msdun call dun
> > I got the following error when I try to connect:
> > dund[3647]: RFCOMM TTY creation failed. Operation not supported(95)
> >=20
> > If I lauch pppd before trying to connect:
> >=20
> > pppd[3693]: pppd 2.4.1 started by root, uid 0
> > pppd[3693]: Using interface ppp0
> > pppd[3693]: Connect: ppp0 <--> /dev/pts/1
> > dund[3704]: RFCOMM TTY creation failed. Operation
> >=20
> > pppd[3693]: LCP: timeout sending Config-Requests=20
>   ^---- same error with mi ipaq :))
> now i use connect to PAN and all working rights.
>=20
> # /usr/bin/pand --listen --role NAP
> - disabled DHCP in iPAQ, using 192.168.20.2 gateway 192.168.20.1
> - connect (all ok)
> - on server - ifconfig bnep0 192.168.20.1 netmask 255.255.255.0
> - now routing and iptables nat :)
>=20
> all working fine :)

That's sound great, could you give some more details on what sould be
done?
pand --listen --role NAP
OK
ifconfig bnep0 192.168.20.1 netmask 255.255.255.0
SIOCSIFADDR: No such device
bnep0: unknown interface: No such device
SIOCSIFNETMASK: No such device

And I don't have anything in /udev/bnep, how to create it in dev?

Thank you very much,

	Gr=E9goire
_________________________________________________________________________=
_
http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.c=
h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-08 15:00     ` Gregoire Favre
@ 2004-04-08 16:02       ` Michal Semler (volny.cz)
  2004-04-09 12:40       ` Gregoire Favre
  1 sibling, 0 replies; 12+ messages in thread
From: Michal Semler (volny.cz) @ 2004-04-08 16:02 UTC (permalink / raw)
  To: bluez-users

Hi,

this is not BT problem, so ask in pppd mailing list.

Bye

Michal

Dne =E8t 8. dubna 2004 17:00 Gregoire Favre napsal(a):
> On Thu, Apr 08, 2004 at 11:47:12AM +0200, Marcel Holtmann wrote:
> > Hi Gregoire,
>
> Hello Marcel and others :-)
>
> > > I compiled 2.6.5-mm2 again, with all blutooth in, and now I can see my
> > > bluetooth device ;-) I can also scan my Palm device.
> > > I try http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
> > > and after dund --listen --persist --msdun call dun
> > > I got the following error when I try to connect:
> > > dund[3647]: RFCOMM TTY creation failed. Operation not supported(95)
> >
> > this error is because you didn't set CONFIG_BT_RFCOMM_TTY in your kernel
> > config.
>
> You're totally right!!!
>
> Now, some kernels recompilation later, I still have a problem which I
> don't know how to solve:
>
> dund[3539]: DUN daemon ver 1.1
> dund[3554]: New connection from 00:...
> pppd[3561]: pppd 2.4.1 started by root, uid 0
> pppd[3561]: Using interface ppp0
> pppd[3561]: Connect: ppp0 <--> /dev/rfcomm0
> pppd[3561]: Cannot determine ethernet address for proxy ARP
> pppd[3561]: local  IP address 192.168.1.2
> pppd[3561]: remote IP address 172.31.130.67
> pppd[3561]: IPCP terminated by peer
> pppd[3561]: Hangup (SIGHUP)
> pppd[3561]: Modem hangup
> pppd[3561]: Connection terminated.
> pppd[3561]: Connect time 0.8 minutes.
> pppd[3561]: Sent 571 bytes, received 322 bytes.
> pppd[3561]: Exit.
>
> And after that, I cannot try to connect anymore...
>
> What I am trying just now:
> pilot-xfer -p net:any -i AESLib.prc TuSSH0.69.prc
> always following
> http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html
>
> Thank you very much,
>
> 	Gr=E9goire
> __________________________________________________________________________
> http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.ch
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3DClick
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-08 15:09     ` Gregoire Favre
@ 2004-04-08 16:29       ` Marcel Holtmann
  2004-04-10 15:43       ` Aben Siatris
  1 sibling, 0 replies; 12+ messages in thread
From: Marcel Holtmann @ 2004-04-08 16:29 UTC (permalink / raw)
  To: Gregoire Favre; +Cc: Aben Siatris, BlueZ Mailing List

Hi Gregoire,

> That's sound great, could you give some more details on what sould be
> done?
> pand --listen --role NAP
> OK
> ifconfig bnep0 192.168.20.1 netmask 255.255.255.0
> SIOCSIFADDR: No such device
> bnep0: unknown interface: No such device
> SIOCSIFNETMASK: No such device
> 
> And I don't have anything in /udev/bnep, how to create it in dev?

network interface don't have a device node. The bnep0 is only available
if you've made a connection.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-08 15:00     ` Gregoire Favre
  2004-04-08 16:02       ` Michal Semler (volny.cz)
@ 2004-04-09 12:40       ` Gregoire Favre
  1 sibling, 0 replies; 12+ messages in thread
From: Gregoire Favre @ 2004-04-09 12:40 UTC (permalink / raw)
  To: bluez-users

On Thu, Apr 08, 2004 at 05:00:29PM +0200, Gregoire Favre wrote:
> Now, some kernels recompilation later, I still have a problem which I
> don't know how to solve:
>=20
> dund[3539]: DUN daemon ver 1.1
> dund[3554]: New connection from 00:...
> pppd[3561]: pppd 2.4.1 started by root, uid 0
> pppd[3561]: Using interface ppp0
> pppd[3561]: Connect: ppp0 <--> /dev/rfcomm0
> pppd[3561]: Cannot determine ethernet address for proxy ARP
> pppd[3561]: local  IP address 192.168.1.2
> pppd[3561]: remote IP address 172.31.130.67
> pppd[3561]: IPCP terminated by peer
> pppd[3561]: Hangup (SIGHUP)
> pppd[3561]: Modem hangup
> pppd[3561]: Connection terminated.
> pppd[3561]: Connect time 0.8 minutes.
> pppd[3561]: Sent 571 bytes, received 322 bytes.
> pppd[3561]: Exit.

> ...

> http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html

Just beacuse someone could have the same problem I did have: I just
commented out the proxyarp option in peers/dun and my palm was able to
try to connect to my linux box over ssh (without success due to my ssh2
or??? but I can see the try to connect on my logs in the linux box) :-)

Sorry for all my emails and thank for all who contributed in BlueZ !!!

	Gr=E9goire
_________________________________________________________________________=
_
http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.c=
h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-08 15:09     ` Gregoire Favre
  2004-04-08 16:29       ` Marcel Holtmann
@ 2004-04-10 15:43       ` Aben Siatris
       [not found]         ` <20040410160451.GB26618@magma.epfl.ch>
  1 sibling, 1 reply; 12+ messages in thread
From: Aben Siatris @ 2004-04-10 15:43 UTC (permalink / raw)
  To: bluez-users

> > > pppd[3693]: pppd 2.4.1 started by root, uid 0
> > > pppd[3693]: Using interface ppp0
> > > pppd[3693]: Connect: ppp0 <--> /dev/pts/1
> > > dund[3704]: RFCOMM TTY creation failed. Operation
> > > 
> > > pppd[3693]: LCP: timeout sending Config-Requests 
> >   ^---- same error with mi ipaq :))
> > now i use connect to PAN and all working rights.
> > 
> > # /usr/bin/pand --listen --role NAP
> > - disabled DHCP in iPAQ, using 192.168.20.2 gateway 192.168.20.1
> > - connect (all ok)
> > - on server - ifconfig bnep0 192.168.20.1 netmask 255.255.255.0
> > - now routing and iptables nat :)
> > 
> > all working fine :)
> 
> That's sound great, could you give some more details on what sould be
> done?
> pand --listen --role NAP
> OK
> ifconfig bnep0 192.168.20.1 netmask 255.255.255.0
> SIOCSIFADDR: No such device
> bnep0: unknown interface: No such device
> SIOCSIFNETMASK: No such device
> 
> And I don't have anything in /udev/bnep, how to create it in dev?
> 
> Thank you very much,

ad first, you must make connection.
tip - add ifconfig and iptables to hotplug and
to /etc/init.d/net.bnep0.

tail from /var/messages

Apr 10 17:23:04 gentoo_aben pand[15975]: New connection from 08:00:28:84:C2:E4 bnep0
Apr 10 17:23:04 gentoo_aben default.hotplug[15977]: arguments (net) env (OLDPWD=/ DEVPATH=/class/net/bnep0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 INTERFACE=bnep0 DEBUG=yes SEQNUM=647 _=/bin/env)
Apr 10 17:23:04 gentoo_aben default.hotplug[15977]: invoke /etc/hotplug/net.agent ()
Apr 10 17:23:04 gentoo_aben net.agent[15977]: script=/etc/init.d/net.bnep0 in action add
Apr 10 17:23:04 gentoo_aben net.agent[15977]: adding bnep0

and now i am in lan and internet with mi ipaq

(sorry for my english :)



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
       [not found]         ` <20040410160451.GB26618@magma.epfl.ch>
@ 2004-04-10 16:45           ` Aben Siatris
  2004-04-10 17:37             ` Gregoire Favre
  0 siblings, 1 reply; 12+ messages in thread
From: Aben Siatris @ 2004-04-10 16:45 UTC (permalink / raw)
  To: bluez-users

D=C5=88a Saturday 10 April 2004 18:04 ste nap=C3=ADsali:
> On Sat, Apr 10, 2004 at 05:43:00PM +0200, Aben Siatris wrote:
>=20
> Hello Aben :-)
>=20
> > ad first, you must make connection.
> > tip - add ifconfig and iptables to hotplug and
> > to /etc/init.d/net.bnep0.
> >=20
> > tail from /var/messages
> >=20
> > Apr 10 17:23:04 gentoo_aben pand[15975]: New connection from 08:00:28:8=
4:C2:E4 bnep0
> > Apr 10 17:23:04 gentoo_aben default.hotplug[15977]: arguments (net) env=
 (OLDPWD=3D/ DEVPATH=3D/class/net/bnep0 PATH=3D/bin:/sbin:/usr/sbin:/usr/bi=
n ACTION=3Dadd PWD=3D/etc/hotplug HOME=3D/ SHLVL=3D2 INTERFACE=3Dbnep0 DEBU=
G=3Dyes SEQNUM=3D647 _=3D/bin/env)
> > Apr 10 17:23:04 gentoo_aben default.hotplug[15977]: invoke /etc/hotplug=
/net.agent ()
> > Apr 10 17:23:04 gentoo_aben net.agent[15977]: script=3D/etc/init.d/net.=
bnep0 in action add
> > Apr 10 17:23:04 gentoo_aben net.agent[15977]: adding bnep0
> >=20
> > and now i am in lan and internet with mi ipaq
> >=20
> > (sorry for my english :)
>=20
> If your prefer French or German (only language I know).
>=20
> Would it be possible to have a complete example (I mean just the script
> you use)?

yes, no problem :)

bash-2.05b# more /etc/init.d/bluetooth
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-wireless/bluez-utils/files/bluetoot=
h.rc,v 1.3 2004/03/06 03:52:52 vapie
r Exp $

UART_CONF=3D"/etc/bluetooth/uart"

depend() {
        after hotplug
}

start_uarts() {
        [ -f /usr/sbin/hciattach -a -f ${UART_CONF} ] || return
        grep -v '^#' $UART_CONF | while read i; do
                /usr/sbin/hciattach $i
        done
}

stop_uarts() {
        killall hciattach > /dev/null 2>&1
}

start() {
        local RETVAL
        ebegin "Starting Bluetooth"
        [ -x /usr/sbin/hcid ] && \
                start-stop-daemon --start --quiet --exec /usr/sbin/hcid
        RETVAL=3D$?
        [ $RETVAL -a -x /usr/sbin/sdpd ] && \
                start-stop-daemon --start --quiet --exec /usr/sbin/sdpd
        RETVAL=3D$?
        start_uarts
        eend ${RETVAL}
}

stop() {
        local RETVAL
        ebegin "Shutting down Bluetooth"
        [ -x /usr/sbin/hcid ] && \
          start-stop-daemon --stop --quiet --exec /usr/sbin/hcid
        RETVAL=3D$?
        [ -x /usr/sbin/sdpd ] && \
                start-stop-daemon --stop --quiet --exec /usr/sbin/sdpd
        RETVAL=3D$?
        stop_uarts
        eend ${RETVAL}
}


bash-2.05b# more /etc/init.d/bluetooth_pan
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License, v2 or later

depend() {
        need bluetooth
}

start() {
        local RETVAL
        ebegin "Starting Bluetooth PAN"
        [ -x /usr/bin/pand ] && \
                start-stop-daemon --start --quiet --exec /usr/bin/pand --\
                --listen --role NAP
        RETVAL=3D$?
        [ $RETVAL -a -x /usr/bin/dund ] && \
                start-stop-daemon --start --quiet --exec /usr/bin/dund --\
                --listen --msdun call dun
        RETVAL=3D$?
        eend ${RETVAL}
}

stop() {
        local RETVAL
        ebegin "Shutting down Bluetooth PAN"
        [ -x /usr/bin/pand ] && \
          start-stop-daemon --stop --quiet --exec /usr/bin/pand
        RETVAL=3D$?
        [ -x /usr/bin/dund ] && \
                start-stop-daemon --stop --quiet --exec /usr/bin/dund
        RETVAL=3D$?
        eend ${RETVAL}
}

bash-2.05b# more /etc/conf.d/net.bnep0
# /etc/conf.d/net:
iface_bnep0=3D"192.168.20.1 broadcast 192.168.20.255 netmask 255.255.255.0"
gateway=3D"eth0/192.168.0.1" # is this right?



bash-2.05b# more /etc/init.d/net.bnep0
#!/sbin/runscript

#NB: Config is in /etc/conf.d/net
depend() {
        use hotplug bluetooth
}

checkconfig() {
        if [ -z "${iface_IFACE}" ]
        then
                eerror "Please make sure that /etc/conf.d/net has \$iface_$=
IFACE set"
                return 1
        fi
        if [ -n "${vlans}" -a \! -x /sbin/vconfig ]
        then
                eerror "For VLAN (802.1q) support, emerge net-misc/vconfig"
                return 1
        fi
}

setup_env() {
        # No reason to check these multiple times in the file
        iface=3D"${1/\./_}"
        iface_IFACE=3D"$(eval echo \$\{iface_${iface}\})"
        dhcpcd_IFACE=3D"$(eval echo \$\{dhcpcd_${iface}\})"
        inet6_IFACE=3D"$(eval echo \$\{inet6_${iface}\})"
        alias_IFACE=3D"$(eval echo \$\{alias_${iface}\})"
        status_IFACE=3D"$(ifconfig | gawk -v IFACE=3D"${iface}" '$0 ~ /Link=
/ { if ($1 =3D=3D IFACE) print "up" }')"
        vlans=3D"$(eval echo \$\{iface_${IFACE}_vlans\})"
}

iface_start() {
        local retval=3D0

        setup_env ${1}
        checkconfig || return 1

        local IFACE=3D"${1}"
        ebegin "Bringing ${IFACE} up"
        if [ "${iface_IFACE}" !=3D "dhcp" ]
        then
                /sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {
                        retval=3D$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}
                }
                # ifconfig do not always return failure ..
                /sbin/ifconfig ${IFACE} &> /dev/null || {
                        retval=3D$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}
                }
        else
                # Check that eth0 was not brough up by the kernel ...
                if [ "${status_IFACE}" !=3D "up" ]
                then
                        /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null ||=
 {
                                retval=3D$?
                                eend ${retval} "Failed to bring ${IFACE} up"
                                return ${retval}
                        }
                fi
        fi
        eend 0

        if [ -n "${alias_IFACE}" ]
        then
                local x=3D""
                local num=3D0
                local aliasbcast=3D""
                local aliasnmask=3D""

                ebegin "  Adding aliases"
                for x in ${alias_IFACE}
                do
                        aliasbcast=3D"$(eval echo \$\{broadcast_${iface}\} =
\| awk \'\{ print \$$((num + 1)) \}\')
"
                        if [ -n "${aliasbcast}" ]
                        then
                                aliasbcast=3D"broadcast ${aliasbcast}"
                        fi

                        aliasnmask=3D"$(eval echo \$\{netmask_${iface}\} \|=
 awk \'\{ print \$$((num + 1)) \}\')"
                        if [ -n "${aliasnmask}" ]
                        then
                                aliasnmask=3D"netmask ${aliasnmask}"
                        fi

                        ebegin "    ${IFACE}:${num}"
                        /sbin/ifconfig ${IFACE}:${num} ${x} \
                                ${aliasbcast} ${aliasnmask} >/dev/null
                        num=3D$((num + 1))
                        eend 0
                done
                save_options "alias" "${alias_IFACE}"
        fi

        if [ -n "${inet6_IFACE}" ]
        then
                local x=3D""
                ebegin "  Adding inet6 addresses"
                for x in ${inet6_IFACE}
                do
                        ebegin "    ${IFACE} inet6 add ${x}"
                        /sbin/ifconfig ${IFACE} inet6 add ${x} >/dev/null
                        eend 0
                done
                save_options "inet6" "${inet6_IFACE}"
        fi

        if [ -n "${gateway}" ] && [ "${gateway%/*}" =3D "${IFACE}" ]
        then
                ebegin "  Setting default gateway"
                # First delete any existing routes if it was setup by kerne=
l ..
                /sbin/route del default dev ${gateway%/*} &>/dev/null
                /sbin/route add default gw ${gateway#*/} dev ${gateway%/*} \
                        netmask 0.0.0.0 metric 1 >/dev/null || {

                        local error=3D$?
                        ifconfig ${IFACE} down &>/dev/null
                        eend ${error} "Failed to bring ${IFACE} up"
                        stop
                        return ${error}
                }
                eend 0
        fi

        # Enabling rp_filter causes wacky packets to be auto-dropped by
        # the kernel.  Note that we only do this if it is not set via
        # /etc/sysctl.conf ...
        if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ] && \
           [ -z "$(egrep '^[^#]*rp_filter' /etc/sysctl.conf 2>/dev/null)" ]
        then
                echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter
        fi
}

iface_stop() {
        local myalias=3D"$(get_options alias)"
        local myinet6=3D"$(get_options inet6)"

        setup_env ${1}
        local IFACE=3D"${1}"

        ebegin "Bringing ${IFACE} down"

        # Also down the inet6 interfaces
        if [ -n "${myinet6}" ]
        then
                local x=3D""
                for x in ${myinet6}
                do
                        /sbin/ifconfig ${IFACE} inet6 del ${x} >/dev/null
                done
        fi

        # Do some cleanup in case the amount of aliases change
        if [ -n "${myalias}" ]
        then
                local x=3D""
                local num=3D0
                for x in ${myalias}
                do
                        /sbin/ifconfig ${IFACE}:${num} down >/dev/null
                        num=3D$((num + 1))
                done
        fi

        if [ "${iface_IFACE}" =3D "dhcp" ]
        then
                local count=3D0
                while /sbin/dhcpcd -z ${IFACE} &>/dev/null && [ "${count}" =
=2Dlt 9 ]
                do
                        # Give dhcpcd time to properly shutdown
                        sleep 1
                        count=3D$((count + 1))
                done
                if [ "${count}" -ge 9 ]
                then
                        eerror "Timed out trying to stop dhcpcd"
                fi
        else
                /sbin/ifconfig ${IFACE} down >/dev/null
        fi
        eend 0
}

start() {
        iface_start ${IFACE} || return 1
        for vlan in ${vlans}
        do
                /sbin/vconfig add ${IFACE} ${vlan} >/dev/null
                iface_start ${IFACE}.${vlan}
        done
}

stop () {
        setup_env ${IFACE}
        checkconfig || return 1
        for vlan in ${vlans}
        do
                iface_stop ${IFACE}.${vlan}
                /sbin/vconfig rem ${IFACE}.${vlan} >/dev/null
        done
        iface_stop ${IFACE}
}


bash-2.05b# more /etc/hotplug/net.agent
#!/bin/bash
#

cd /etc/hotplug
=2E hotplug.functions
DEBUG=3Dyes export DEBUG

if [ "$INTERFACE" =3D "" ]; then
    mesg Bad NET invocation: \$INTERFACE is not set
    exit 1
fi


script=3D/etc/init.d/net.$INTERFACE

debug_mesg "script=3D/etc/init.d/net.$INTERFACE in action $ACTION"

case $ACTION in
add|register)
    # Don't do anything if the network is stopped
#    if [ ! -f /var/lock/subsys/network ]; then
#       exit 0
#    fi

        debug_mesg "adding $INTERFACE"
    case $INTERFACE in
        # interfaces that are registered after being "up" (?)
        ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)
            debug_mesg assuming $INTERFACE is already up
            exit 0
            ;;
        # interfaces that are registered then brought up
        *)
            export IN_HOTPLUG=3D1
            if [ -x "$script" ]; then
                debug_mesg invoke "$script" --quiet start
                exec "$script" --quiet start
            fi
            exit 0
            ;;
    esac
    mesg $1 $ACTION event not handled
    ;;

unregister|remove)
    case $INTERFACE in
        # interfaces that are unregistered after being "down" (?)
        ppp*|ippp*|isdn*|plip*|lo*|irda*)
            debug_mesg assuming $INTERFACE is already down
            exit 0
            ;;
        *)
            if [ -x "$script" ]; then
                debug_mesg invoke "$script" --quiet stop
                exec "$script" --quiet stop
            fi
            exit 0
            ;;
    esac
    mesg $1 $ACTION event not handled
    ;;

*)
    debug_mesg NET $ACTION event for $INTERFACE not supported
    exit 1 ;;

esac



and that's all :))




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] No more bluez.o in 2.6?
  2004-04-10 16:45           ` Aben Siatris
@ 2004-04-10 17:37             ` Gregoire Favre
  0 siblings, 0 replies; 12+ messages in thread
From: Gregoire Favre @ 2004-04-10 17:37 UTC (permalink / raw)
  To: Aben Siatris; +Cc: bluez-users

Hello,

Thank you very much, as soon as I can have my bluetooth back, I'll try
them :-)

	Gr=E9goire
_________________________________________________________________________=
_
http://algebra.epfl.ch/greg ICQ:16624071 mailto:Gregoire.Favre@freesurf.c=
h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-04-10 17:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-07 17:23 [Bluez-users] No more bluez.o in 2.6? Gregoire Favre
2004-04-07 21:43 ` Gregoire Favre
2004-04-08  7:48   ` Aben Siatris
2004-04-08 15:09     ` Gregoire Favre
2004-04-08 16:29       ` Marcel Holtmann
2004-04-10 15:43       ` Aben Siatris
     [not found]         ` <20040410160451.GB26618@magma.epfl.ch>
2004-04-10 16:45           ` Aben Siatris
2004-04-10 17:37             ` Gregoire Favre
2004-04-08  9:47   ` Marcel Holtmann
2004-04-08 15:00     ` Gregoire Favre
2004-04-08 16:02       ` Michal Semler (volny.cz)
2004-04-09 12:40       ` Gregoire Favre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox