DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th December 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default Asus Bluetooth dongle WL-BTD201M

My friend give me this Bluetooth Dongle and it work good in windows XP and Vista

http://www.asus.com/products.aspx?l1...56&modelmenu=1

how I can use it in OpenBSD 4.4
Reply With Quote
  #2   (View Single Post)  
Old 6th December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

OpenBSD has initial support for Bluetooth.. but it's not enabled by default, and it may not even work.

You'll need to recompile your kernel, and then install the net/bluetooth-tools port/package.

I hope that helps.
Reply With Quote
  #3   (View Single Post)  
Old 6th December 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,903
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
OpenBSD has initial support for Bluetooth.. but it's not enabled by default...
If mfaridi really wants to follow through with configuration, perform the following steps:
  • Find the appropriate driver:

    $ man -k bluetooth

    Since your dongle appears to be a USB device, most likely ubt(4) is the driver you want.
  • Carefully study all of Section 5.3 of the FAQ before starting:

    http://openbsd.org/faq/faq5.html#Bld

    There, you will find how to install OpenBSD's source code to /usr/src.
  • Note that the manpage for ubt(4) specifies the following line at the beginning:
    Code:
    SYNOPSIS
         ubt* at uhub?
    This indicates what needs to be enabled in /usr/src/sys/arch/i386/conf/GENERIC. For OpenBSD 4.4-release, ubt(4) is commented out which can be verified by looking at the OPENBSD_4_4_BASE tagged version of GENERIC found in CVS:

    http://www.openbsd.org/cgi-bin/cvswe...ENBSD_4_4_BASE
  • Uncomment the driver.
  • Recompile the kernel according to Section 5.3. Be very sure you understand the process before starting. You can recover from mistakes made as long as the new kernel has not yet been installed, but watch & heed any messages seen as a result of all commands issued.
Don't think that you can blindly issue these commands without understanding them. This is Unix, not Windows. Unix allows you to whatever you want, but you get to live with the consequences of your (in)decisions. Recompiling the kernel is not meant for casual users, & you should be very clear on the points made in Section 5.6 of the FAQ before attempting to recompile the kernel:

http://openbsd.org/faq/faq5.html#Why

Be forewarned that nearly 2GB of space in will be consumed in /usr/src to complete the task.

Lastly, you should be beginning to see that lots can be done with any of the *BSD's & Unix, but it requires that one is willing to study & learn. You have had a history of issuing commands without understanding what they do, & you appear to have been very fortunate that nothing catastrophic has happened yet (as far as we know...), but as you venture into more sophisticated areas, you will be taking on greater responsibility to understand what it is that you are doing. So the decision is yours as to whether you simply use the system or take the opportunity to get more out of the equipment you already have.
Reply With Quote
  #4   (View Single Post)  
Old 6th December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by ocicat View Post
Be forewarned that nearly 2GB of space in will be consumed in /usr/src to complete the task.
That's not entirely correct, in this case.. there are no base bluetooth utilities, so he'll only need to recompile the kernel.
Reply With Quote
  #5   (View Single Post)  
Old 6th December 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,903
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
...so he'll only need to recompile the kernel.
That was my point. In downloading/installing the source & recompiling, roughly 1.5GB of disk space will be consumed. I know, I do it on a weekly basis.
Reply With Quote
  #6   (View Single Post)  
Old 6th December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

The FAQ explains building a kernel, but I'll help out a bit more..
  • Create a new kernel configuration file in /usr/src/sys/arch/i386/conf/.
    Code:
    # This is a comment, see? :-)
    #
    
    include "arch/i386/conf/GENERIC"
    
    # Bluetooth controllers
    ubt*	at uhub?		# USB Bluetooth
    
    # Bluetooth bus support
    bthub*	at ubt?
    
    # Bluetooth HID support
    # These are the included bluetooth drivers mfaridi, njoy.
    #bthidev* at bthub?		# misc human interface devices
    #btkbd*	at bthidev?		# keyboards
    #btms*	at bthidev?		# mice..
    #wskbd*	at btkbd? mux 1		# ..
    #wsmouse* at btms? mux 0	# .
  • Run config(8) as root, with the kernel file name as an argument.
  • Traverse into /usr/src/sys/arch/i386/compile/KERN/.
  • Type: sudo make depend; sudo make; sudo make out; sudo make install

Don't blindly copy & paste my instructions mfaridi. :-)
Reply With Quote
  #7   (View Single Post)  
Old 6th December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by ocicat View Post
That was my point. In downloading/installing the source & recompiling, roughly 1.5GB of disk space will be consumed. I know, I do it on a weekly basis.
I apply errata patches on a.. case by case basis.. the kernel source does not consume that much space.

You do not need to recompile the user land, no libraries.. or utilities.. need to be installed, programs do not link with the kernel ocicat.
Reply With Quote
  #8   (View Single Post)  
Old 6th December 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,903
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
Create a new kernel configuration file...
This is simply a matter of personal taste.
Quote:
bthub* at ubt?
This may be required.
Quote:
Type: sudo make depend; sudo make; sudo make out; sudo make install
Although this is correct, it is better to force mfaridi (or anyone else experimenting with building a kernel for the first time...) to stay with published & vetted instructions before improvising on a theme.

The point I have attempted to make for a very long time is that most information which most people need can be found in the FAQ. Unfortunately, most don't take the time to study it as they should, & then come complaining here when life goes very bad.
Reply With Quote
  #9   (View Single Post)  
Old 6th December 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by ocicat View Post
This may be required.
I didn't omit it..

Quote:
Originally Posted by ocicat View Post
Although this is correct
Hehe, I got you.. didn't see my hidden joke eh?
Reply With Quote
Old 7th December 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,797
Thanked 214 Times in 189 Posts
Default

I don't know if mfaridi will have much success with 4.4. The drivers may be available on an experimental basis, and some FreeBSD and NetBSD based tools may be available, but ... the applications and services he would want to use with bluetooth are not in place there.

Bluetooth development work is underway, right now:

Those of us who track CVS repository changes have noticed a significant amount of bluetooth changes to -current in the last week or two, starting around November 21.

Those who read the Following -current FAQ will have seen a recent mention of changes to support a new btd(8) daemon. The btd daemon is not yet in the -current tree, though by now the changes to support the daemon in /etc/passwd, /etc/group, /etc/rc and /etc/rc.conf have all been completed.

Drivers have been enabled in GENERIC.

Man pages for some of the bluetooth drivers refer to userland tools that do not yet exist. They will.

Last edited by jggimi; 7th December 2008 at 01:55 AM. Reason: clarification: drivers in 4.4 are experimental
Reply With Quote
Old 7th December 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

I always afraid and worry about kernel complie and I will try it latter and I am sick and I have have a cold , I must go to doctor and after that I will test it .
weather in here is very cold
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freeBSD on Asus EEE PC 1000H ccc FreeBSD Installation and Upgrading 20 24th June 2009 12:14 AM
FreeBSD 7 on ASUS P5K SE psantacr FreeBSD General 11 1st June 2009 02:33 PM
NetBSD with Asus P6T Mobo NetBSD NetBSD Installation and Upgrading 4 30th January 2009 03:55 PM
Asus P5Q support mururoa FreeBSD General 7 22nd January 2009 05:05 AM
Bluetooth () iwi OpenBSD General 4 16th December 2008 01:51 PM


All times are GMT. The time now is 01:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick