Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > compile SMC EthernetCard Driver

compile SMC EthernetCard Driver
Thread Tools
Dedicated MacNNer
Join Date: Apr 2001
Location: The Moon
Status: Offline
Reply With Quote
Jul 6, 2002, 11:49 AM
 
Heeeellp - coz i dunno anythin about compilin a Kernel,

I just bought a PCI Ethernet Card from SMC Networks. On their CD they have drivers for all kinda Systems but not Mac OS X. Anyway, they have a FreeBSD 3.0 Driver on the CD. As X is based on FreeBSD 3.0, is it possible to compile the Driver only or do i have to compile the hole Darwin Kernel !? And how do I do it !? Can any1 guide a newbee. Thanx

The FreeBSD_readMe.txt on the CD is :

************************************************** ***************************
* *
* SMC1233TX 10/100 PCI Network Card *
* *
* Driver Installation for FreeBSD *
* *
************************************************** ***************************

The newest version FreeBSD drivers' source code can be downloaded from URL
<a href="http://www.freebsd.org/~wpaul/RealTek" target="_blank">http://www.freebsd.org/~wpaul/RealTek</a>

Files Description:
==================
\2.2\if_rl.c The source code for FreeBSD v2.2.x.
if_rlreg.h
\3.0\if_rl.c The source code for FreeBSD v3.x.
if_rlreg.h
freebsd.txt This file.

Installation:
=============
1. Plug SMC1233TX 10/100 PCI Network Card into PC's PCI-bus slot.

2. Boot into FreeBSD and login as root user. Insert driver diskette to the
floppy drive A and mount drive A to /mnt directory.

mount -t msdos /dev/fd0 /mnt

3. Copy the correct version of if_rl.c and if_rlreg.h for the system to
the /sys/pci directory.

cd /sys/pci
cp /mnt/freebsd/2.2/if_rl.c ./if_rl.c
( or cp /mnt/freebsd/3.0/if_rl.c ./if_rl.c )
cp /mnt/freebsd/2.2/if_rlreg.h ./if_rlreg.h
( or cp /mnt/freebsd/3.0/if_rlreg.h ./if_rlreg.h )

4. Edit /sys/conf/files and add a line about if_rl.c file.

cd /sys/conf
vi files

Add the following line:
pci/if_rl.c optional rl device-driver

5. Edit your kernel config file (e.g. /sys/i386/conf/GENERIC) and add a line
about device rl0.

cd /sys/i386/conf
vi GENERIC

Add the following line:
device rl0

6. Config, compile a new kernel and reboot it.

cd /sys/i386/conf
config GENERIC

You will see the following:
Kernel build directory is ../../compile/GENERIC

Compile kernel and reboot it.
cd /sys/compile/GENERIC
make depend all install
shutdown -r now

7. When system boots, the driver will be loaded. You can run 'dmesg' to
see the boot message or run 'ifconfig -a' to see if rl0 is up.

8. Run ifconfig to assign your IP address to the rl0 interface.

ifconfig rl0 inet 192.72.24.10 netmask 255.255.255.0 alias

Otherwise, you can use editor vi to modify /etc/rc.conf and config the
above action. The /etc/rc.conf file is created by /stand/sysinstall
and will be run at boot time.

cd /etc
vi rc.conf

Add and modify the following lines:

network_interfaces="rl0 lo0" # List of network interfaces.
# (lo0 is loopback).
ifconfig_rl0="inet 192.72.24.10" # Config your IP.
defaultrouter="192.72.24.254" # Set to default gateway (or NO).

----
All trademarks or brand names mentioned are properties
of their respective companies.
.- OS X aDDICTED -.
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2