DaemonForums  

Go Back   DaemonForums > Miscellaneous > General Hardware

General Hardware General hardware related questions.

Reply
 
Thread Tools Display Modes
Old 4th June 2015
mbzadegan mbzadegan is offline
Port Guard
 
Join Date: Feb 2014
Posts: 25
Question

Quote:
Originally Posted by jggimi View Post
If you don't know which OS supports that particular hardware, you must test them.
Yes, Ofcourse, I must test it and I'm in this state.
But If you will be in this state, You will be select which of the BSDs at first selection?
Reply With Quote
Old 4th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Start with your preferred OS. If none of the BSDs support the device, consider other operating systems.
Reply With Quote
Old 6th June 2015
mbzadegan mbzadegan is offline
Port Guard
 
Join Date: Feb 2014
Posts: 25
Default

Quote:
Originally Posted by jggimi View Post
  • Recognition of vendor/device codes transmitted by a device in response to probe actions by the OS.
  • Development, testing, and deployment of an operational device driver.
For the Recognition phase by OS I did not get a usefull answer yet.
And for the phase of Driver Development, What Is the usefull book to develop device drivers manually by myself?
For Example I want to develop my Notebook (ASUS S200E) NIC ethernet driver on the OpenBSD, How can I start step by step?

Last edited by mbzadegan; 6th June 2015 at 08:25 AM.
Reply With Quote
Old 6th June 2015
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 283
Default

Quote:
Originally Posted by mbzadegan
For the Recognition phase by OS I did not get a usefull answer yet.
Yes, you have been given useful answers, but they are not the answers you want.

Quote:
Originally Posted by ibara
These devices are not yet supported in OpenBSD. You would have to write drivers for them.
Quote:
Originally Posted by LeFrettchen
Even Windows has a really bad driver for this LAN adapter...
The knowledgeable people on the board have informed you that your particular piece of hardware has little to no support on BSDs. And they also offered two solutions.
Quote:
Originally Posted by ibara
Alternatively, purchase a supported USB Ethernet and/or USB WiFi module.
Quote:
Originally Posted by jggimi
If you require the use of a particular hardware component at a particular point in time, you must choose an OS which can exploit that hardware at that point in time. Whether that OS is one of the BSDs or not.
Complaining that you do not like the answers will not change reality.

Quote:
Originally Posted by mbzadegan
What Is the usefull book to develop device drivers manually by myself?
If you can do it that is great, both for you and other people who have that hardware, but I think ibrara's suggestion would be easier. (Unless your NoteBook does not have USB ports.)
Reply With Quote
Old 6th June 2015
mbzadegan mbzadegan is offline
Port Guard
 
Join Date: Feb 2014
Posts: 25
Default

Thanks sacerdos_daemonis but I'm going to start BSD unknown network driver programming, in other words I want to eat that frog!
Reply With Quote
Old 6th June 2015
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mbzadegan View Post
What Is the usefull book to develop device drivers manually by myself?
The following title is very old, but it has been mentioned on a few lists as being helpful:

http://www.amazon.com/Writing-UNIX-D...device+drivers

...but the best answer is to download the source code of whatever operating system you choose, and study the source code of similar network drivers.
Reply With Quote
Old 6th June 2015
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 283
Default

Quote:
Originally Posted by mbzadegan View Post
... in other words I want to eat that frog!
Good luck and I hope you have both joy and success.
Reply With Quote
Old 6th June 2015
mbzadegan mbzadegan is offline
Port Guard
 
Join Date: Feb 2014
Posts: 25
Default

I found my NIC add-in module to load ethernet card on FreeBSD.
Is that possible to port other UNIX Drivers (Such as FreeBSD or Linux) to OpenBSD?
Reply With Quote
Old 6th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Here is a conversation on the OpenBSD misc@ mailing list discussing this specific issue, with this specific hardware.

Please read the posts from Stefan Sperling, an OpenBSD developer who previously attempted this exact task.

I perceive you have five choices. The first four require neither OS driver development skills nor engineering documentation from the hardware manufacturer.
  1. Use FreeBSD.
  2. Use Linux.
  3. Use Windows.
  4. Use other hardware.
  5. Develop a driver for your preferred BSD.

Last edited by jggimi; 6th June 2015 at 01:08 PM. Reason: added H/W doc requirement, clarity
Reply With Quote
Old 6th June 2015
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Quote:
Originally Posted by mbzadegan View Post
Thanks sacerdos_daemonis but I'm going to start BSD unknown network driver programming
Quote:
Originally Posted by jggimi View Post
Here is a conversation on the OpenBSD misc@ mailing list discussing this specific issue, with this specific hardware.

Please read the posts from Stefan Sperling, an OpenBSD developer who previously attempted this exact task.
Yep, Stefan's result was predictable : with no access to the manufacturer's source code, hard to create any driver, this is a blind and aleatory dev...

Sounds like a full time job !

Quote:
Originally Posted by sacerdos_daemonis View Post
Good luck and I hope you have both joy and success.
Good luck and I hope you've got enough time for that.
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD
Reply With Quote
Old 6th June 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by LeFrettchen View Post
...with no access to the manufacturer's source code...
I believe you meant hardware interface specifications.

Specifications are normally required to implement a driver. Some manufacturers release this information publicly. Some manufacturers hold specifications as trade secret, devising their own drivers for their markets. Some manufacturers are willing to provide access to specifications only under non-disclosure agreements ("NDAs"). NDAs executed with members of open source projects will include terms and conditions that either permit or disallow open source drivers to be developed.

Without interface specifications from hardware manufacturers, integration of device hardware can take place, but as we can see from the short discussion I referred to above, driver design becomes much more difficult. If there are open source drivers already available, they can be reviewed for adaptability to the OS. Often, reverse engineering must be performed. Mr. Sperling reviewed FreeBSD and Linux drivers, and conducted some reverse engineering, but was not successful integrating this particular chipset into an existing driver.
Reply With Quote
Old 6th June 2015
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

Quote:
Originally Posted by jggimi View Post
I believe you meant hardware interface specifications.
Yes, but you understood what I meant...

Quote:
Originally Posted by jggimi View Post
Often, reverse engineering must be performed.
This, I won't be able to do, I'm not so skilled.
So, for me, it would be a blind and hazardous dev

Thanks jggimi for clarifying my comments
__________________
ThinkPad W500 P8700 6GB HD3650 - faultry
ThinkStation P700 2x2620v3 32GB 1050ti 3xSSD 1xHDD

Last edited by LeFrettchen; 6th June 2015 at 04:08 PM. Reason: Clarification
Reply With Quote
Old 13th June 2015
mbzadegan mbzadegan is offline
Port Guard
 
Join Date: Feb 2014
Posts: 25
Default

Unfortunately There is no any update instruction or first step tutorial about OpenBSD unknown hardware programming yet.
Is that possible to translate hardware windows drivers (*.inf, ...) to work and execute in BSD? (such as OpenBSD)

Last edited by mbzadegan; 13th June 2015 at 07:49 AM.
Reply With Quote
Old 13th June 2015
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mbzadegan View Post
Is that possible to translate hardware windows drivers (*.inf, ...) to work and execute in BSD? (such as OpenBSD)
No.
Reply With Quote
Old 19th July 2016
aht0 aht0 is offline
Port Guard
 
Join Date: Nov 2014
Posts: 18
Default

Quote:
Originally Posted by LeFrettchen View Post
Well, poorly supported, for sure !
Even Windows has a really bad driver for this LAN adapter...

The best thing to do is to forget this crap, and find an alternative solution.
Im using AR9485 in hostap mode without problems. pfSense 2.3.1 (based on FreeBSD 10.3-RELEASE). Seems that FreeBSD had it's wlan drivers updated meanwhile.

It's definitely not supported in OpenBSD at all (tried few weeks a go)
Reply With Quote
Old 19th July 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

FreeBSD's driver is a copyrighted contribution from Qualcomm Atheros, Inc.

The license to use the source code is generally open, but adaptation to OpenBSD was not previously successful, and the last patch addressing the AR9485 I have seen in commit logs occurred in 2013.

My recommended choices in post 29 above remain unchanged.
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
Hot pluggable hardware detection. telkis OpenBSD General 2 5th August 2014 03:47 PM
Calibre device detection on 5.3-beta fails with python error sysfu OpenBSD Packages and Ports 0 12th March 2013 05:42 AM
OpenBSD nginx is going into base ocicat News 1 23rd September 2011 08:23 AM
Hardware recommendation: what hardware to buy for my new FreeBSD desktop? Broodjegehaktmetmayo General Hardware 92 11th February 2009 10:43 PM
DVD Writer detection mururoa FreeBSD Installation and Upgrading 6 2nd January 2009 08:32 AM


All times are GMT. The time now is 08:36 AM.


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