I recently switched from linux on my MSI Wind U100. As a lot of you already know, the RTL8187SE wlan mini pci card is not supported. Ndis comes to the rescue. The only problem is that the module built will kldload fine, but not at boot in /boot/loader.conf. Here is a little howto on getting it up and working with FreeBSD 8.1 and ndis.
For the module you'll need you're windows driver from Realtek and your FreeBSD kernel source tree in /usr/src/sys.
(DRIVER)
http://www.realtek.com.tw/downloads...n=4&DownTypeID=3&GetDown=false&Downloads=true
(HOWTO INSTALL KERNEL SOURCE TREE)
http://www.freebsd.org/doc/handbook/kernelconfig-building.html
^first box
(BUILDING AND INSTALLING THE MODULE)
Now unzip and cd into RTL8187SE/WinXP
1) First build your driver
Now you'll have a "rtl8187Se_sys.ko" which is your kernel module. You'll need to add it to /boot/modules for easy loading.
You are setup to kldload your module now which makes for rudimentary support. It's better to set it up for load on boot, but will cause the kernel to panic with this particular driver and ndis. To overcome this deficiency we will create a rc.d script that will load at boot time after the card is initialized and ready for the module.
(AUTO-LOADING THE MODULE AT BOOT)
First we will create the scripts needed for our rc.d script.
Last thing to do is creat the ndis rc.d script in /usr/local/etc/rc.d/
Now you are setup to use your RTL8187SE wlan device. I reccomend reading the wireless section of the handbook if you are uncertain. Remember any ath0 or similar snippets will be ndis0 instead since it is an ndis based module not atheros or the like. Hope you are as successful as I've been and feel free to ask questions.
For the module you'll need you're windows driver from Realtek and your FreeBSD kernel source tree in /usr/src/sys.
(DRIVER)
http://www.realtek.com.tw/downloads...n=4&DownTypeID=3&GetDown=false&Downloads=true
(HOWTO INSTALL KERNEL SOURCE TREE)
http://www.freebsd.org/doc/handbook/kernelconfig-building.html
^first box
(BUILDING AND INSTALLING THE MODULE)
Now unzip and cd into RTL8187SE/WinXP
1) First build your driver
Code:
%ndisgen net8187Se.inf rtl8187Se.sys
| ENTER THROUGH PROMPTS
Now you'll have a "rtl8187Se_sys.ko" which is your kernel module. You'll need to add it to /boot/modules for easy loading.
Code:
%su
| ENTER PASSWORD
#cp rtl8187SE_sys.ko /boot/modules
#exit
|^if not proceeding to next section
You are setup to kldload your module now which makes for rudimentary support. It's better to set it up for load on boot, but will cause the kernel to panic with this particular driver and ndis. To overcome this deficiency we will create a rc.d script that will load at boot time after the card is initialized and ready for the module.
(AUTO-LOADING THE MODULE AT BOOT)
First we will create the scripts needed for our rc.d script.
Code:
%su
| ENTER PASSWORD
| THE FOLLOWING IS ALL ONE COMMAND TO SECOND __EOF__
#cat > /usr/local/etc/ndis.load << __EOF__
#!/bin/sh
# load ndis modules
kldload rtl8187Se_sys
exit 0
__EOF__
#chmod +x /usr/local/etc/ndis.load
| THE FOLLOWING IS ALL ONE COMMAND TO SECOND __EOF__
#cat > /usr/local/etc/ndis.unload << __EOF__
#!/bin/sh
# unload ndis modules
kldunload rtl8187Se_sys
exit 0
__EOF__
#chmod +x /usr/local/etc/ndis.unload
Last thing to do is creat the ndis rc.d script in /usr/local/etc/rc.d/
Code:
| THE FOLLOWING IS ALL ONE COMMAND TO SECOND __EOF__
#cat > /usr/local/etc/rc.d/ndis << __EOF__
#!/bin/sh
#
#
# PROVIDE: ndis
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="ndis"
start_cmd="ndis_start"
stop_cmd="ndis_stop"
ndis_start()
{
if [ -f /usr/local/etc/ndis.load ]; then
echo -n 'Loading ndis modules:'
. /usr/local/etc/ndis.load
echo '.'
fi
}
ndis_stop()
{
if [ -f /usr/local/etc/ndis.unload ]; then
echo -n 'Unloading ndis modules:'
. /usr/local/etc/ndis.unload
echo '.'
fi
}
load_rc_config $name
run_rc_command "$1"
__EOF__
#chmod +x /usr/local/etc/rc.d/ndis
#exit
or
#reboot
^ if wanting to try out the autoloading
Now you are setup to use your RTL8187SE wlan device. I reccomend reading the wireless section of the handbook if you are uncertain. Remember any ath0 or similar snippets will be ndis0 instead since it is an ndis based module not atheros or the like. Hope you are as successful as I've been and feel free to ask questions.