LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 06-06-2004, 08:18 AM   #1
maqelgav
LQ Newbie
 
Registered: Jun 2004
Distribution: slackware91
Posts: 6

Rep: Reputation: 0
Question where are located the ethernet-card driver sources code in OpenBSD /usr/src/...?


hello,

i 'm trying *BSD's OS and the only who accepts my realtek8139 ethernet card is openBSD.

So I'm trying to locate the rl driver in the source-files in order to copy it into freeBSD files.

my problem is that i dont know what file to check.

thanks for your suggestions.
 
Old 06-06-2004, 01:12 PM   #2
Alex Cavnar
Member
 
Registered: Jun 2003
Location: Nashville, TN
Distribution: FreeBSD, Slack, and DebianPPC
Posts: 60

Rep: Reputation: 15
What version of FreeBSD are you running? I've used 3 or 4 realtek8139 cards, and they've all worked just fine. Matter of fact, my Gigabyte motherboard on my desktop system is running that chipset integrated on the motherboard, and it uses the rl driver just fine. I've successfully run it under FreeBSD 5.1, 5.2, 5.2.1, and 5-CURRENT, last updated June 2.

Even if you did find the driver for that card in OpenBSD, it probably wouldn't compile or work under FreeBSD. The codebases are just different enough between Free/Open/Net/BSD flavors that you can't intermingle kernel or system-level components.
 
Old 06-07-2004, 01:16 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Have a look at /usr/src/sys/dev/pci/if_rl_pci.c, but like Alex said a) rl cards should work fine in FreeBSD, so perhaps you have a different problem and b) simply ripping the code from OpenBSD is highly unlikely to work without major modification. That card is popular enough that I simply refuse to believe that it's unsupported by FreeBSD.
 
Old 06-07-2004, 01:51 AM   #4
maqelgav
LQ Newbie
 
Registered: Jun 2004
Distribution: slackware91
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for your answers guys,

my problem is a :"rl couldnt map ports/memory" and i tried to put the card at different places on my motherboard.

so, i'm going to try to copy/compile the openBSD driver, maybe it will work.
 
Old 06-07-2004, 07:35 PM   #5
Alex Cavnar
Member
 
Registered: Jun 2003
Location: Nashville, TN
Distribution: FreeBSD, Slack, and DebianPPC
Posts: 60

Rep: Reputation: 15
Try turning off "Plug and Play OS" in your BIOS. Sometimes, this allows the card to be recognized.

What kind of motherboard/system do you have? Also, what other cards do you have in your system? All I know is that my rl card works just fine, so it's probably some kind of conflict with some other hardware. If all else fails, remove all other PCI cards, disable all of your integrated devices in the BIOS. Then, reboot, and see if it still says that it cannot map ports/memory.
 
Old 06-09-2004, 03:02 AM   #6
maqelgav
LQ Newbie
 
Registered: Jun 2004
Distribution: slackware91
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up it works when shooting "plug & Play OS". thanks Alex.

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmbuild doesn't produce the source code in /usr/src/redhat/BUILD Niceman2005 Linux - Software 2 11-29-2004 05:58 PM
/usr/src/??? iain.ross Linux - Software 5 08-24-2004 02:18 PM
No sources in /usr/src after Installation opa_munster Linux - Newbie 3 07-31-2003 01:07 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM
compile source code ethernet card [lindows] lexy Linux - Newbie 5 10-11-2002 03:04 PM


All times are GMT -5. The time now is 10:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration