mrmike19597 said:
Trying to install RealTek network driver and run into an error.
Code:
cd /usr
cd ports
cd rtl_bsd_drv_v184
...
Back to square 1.
So, you downloaded the RealTek driver sources (version 2014) for FreeBSD 7.x and 8.x from their website as I suggested in the
other thread. As you found out the long way, this won't work out of the box because your FreeBSD 7.3 got the old (< 2010)
re-driver built-into the Kernel.
The least involved way to uses this 2014 driver is in your case to rename the device node in the 2014 driver sources let's say from "re" to "ree" (think of rev.
e of RTL8111). The procedure is:
- login as user root
- remove the v184 sources dir from /usr/ports, because it does not belong there:
rm -r /usr/ports/rtl_bsd_drv_v184
- create an installation directory at home of user root, move the downloaded driver archive rtl_bsd_drv_v184.tgz in there, and cd to ~/installation.
- unpack the dirver archive:
tar -oxzf rtl_bsd_drv_v184.tgz; cd rtl_bsd_drv_v184
- edit the Makefile on line 4 changing KMOD = if_re to KMOD = if_ree:
nano +4 Makfile
- edit if_re.c on line 75, replacing #include <dev/re/if_rereg.h> with #include "if_rereg.h"
: nano +75 if_re.c
- edit if_re.c on line 241, changing "re" to "ree":
nano +241 if_re.c
- make the driver (no install):
make
- manually load the driver for testing:
kldload ./if_ree.ko
- see if the interface ree0 is listed in the output of
ifconfig
-- if yes continue with steps 11 to 14
- copy if_ree.ko into the directory /boot/modules:
cp if_ree.ko /boot/modules/if_ree.ko
- add a respective load entry to /boot/loader.conf:
echo 'if_ree_load="YES"' >> /boot/loader.conf
- change the network settings in /etc/rc.conf from ifconfig_re0 to ifconfig_ree0
- restart.
I agree with everybody, that you want to upgrade your machine to a recent FreeBSD version, once you saved your data.