BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 5th, 2003, 10:00 PM
kolatracks kolatracks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: UK
Posts: 311 kolatracks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
What NIC driver to compile in kernel

This'll be my first post in the *BSD forums.

Anyways my NIC is NE2000 (RealTek 8029) and I've been looking in the kernal conf file for the driver for it but haven't found one specifically for my NIC.
There are a few similair one's but none for mine.

The NIC works with the generic kernal but now that I want to compile my own I don't know which driver to compile in.
I assume I'm gonna have to use one of the similair drivers or a genric one but I'm wandering if anyone can give me a tip on which one to try first. It's 4am and definatly bed time but I'm hoping someone can give me a good starting point for tommorow.

If it matters I'm running 5.1-release and have just cvsup'ed the source to RELENG_5_1 and thought compiling the kernel was the first thing to do (according to some of freebsd's posts and I can see he gave good advice) before buildworld (I have no clue what that is but I'll deal with that later).

And yes I'm a noob to freebsd jumping in at the deep end but that's just my method of learning.

While I'm here, does anyone have a link to some kind of detailed documentation on setting up firewalls on freebsd. I'll google at a later time but once again I'd appreciate it if someone can save some time so I can jump right in tommorow.

TIA

PS I tried redhat for a week and now freebsd for the past week and so far I'm definatly picking up freebsd faster. It's generally easier and better. And the documentation rocks.
The freebsd handbook is my new bible, the php bible goes back on the bookshelf for now.
I know you guys already know that but I just had to say it.

Reply With Quote
  #2  
Old November 6th, 2003, 11:45 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,478 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 12 h 33 m 8 sec
Reputation Power: 852
>> The NIC works with the generic kernal but now that I want to compile my own I don't know which driver to compile in.
With the generic kernel, what driver did you use for ifconfig, when you configured the NIC. I'm guessing the 'ed' driver since you mentioned an NE2000 clone. You can find out for sure, if you type ifconfig, and see what the device name is. The letters from the name of the device indicates the driver. For example, my ifconfig output reads like this (pay special attention to the bold font):
Code:
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 192.168.136.16 netmask 0xffffff00 broadcast 192.168.136.255
        ether 00:01:02:48:78:a2
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

So, from the above output, I know that I need the xl driver for a custom kernel. Determine what driver your generic kernel is using and that's what you'll need to add in for your custom kernel.

You may also need to add some additional drivers depending on your card. For example, if you're using the ed driver, then you need to include these two lines in your custom kernel file.
Code:
     device miibus
     device ed0 at isa? disable port 0x280 irq 10 iomem 0xd8000

If you read the notes for the GENERIC file, you'll notice a comment right above the device ed0 line saying that it also requires device miibus, which is why you need to include it as well. Hope this helps

[edit]I forgot to mention that I took those two lines from the GENERIC file of a 4.9 Kernel. Since you're running 5.1, copy the corresponding lines from the GENERIC file for your kernel .[/edit]
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Last edited by Scorpions4ever : November 6th, 2003 at 11:55 AM.

Reply With Quote
  #3  
Old November 6th, 2003, 08:39 PM
kolatracks kolatracks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: UK
Posts: 311 kolatracks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Thanks, that's a better answer than I could have wished for.

Next time I know I can answer my own question by typing ifconfig.
thanks again.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > What NIC driver to compile in kernel


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway