|
Lines 1135-1152
Link Here
|
| 1135 |
</listitem> |
1135 |
</listitem> |
| 1136 |
</orderedlist> |
1136 |
</orderedlist> |
| 1137 |
|
1137 |
|
| 1138 |
<para>You may need to compile the &man.ndis.4; mini port driver |
|
|
| 1139 |
wrapper module. As <username>root</username>:</para> |
| 1140 |
|
| 1141 |
<screen>&prompt.root; <userinput>cd /usr/src/sys/modules/ndis</userinput> |
| 1142 |
&prompt.root; <userinput>make && make install</userinput></screen> |
| 1143 |
|
| 1144 |
<para>Locate the files for your specific card. Generally, they can |
1138 |
<para>Locate the files for your specific card. Generally, they can |
| 1145 |
be found on the included CDs or at the vendors' websites. In the |
1139 |
be found on the included CDs or at the vendors' websites. In the |
| 1146 |
following examples, we will use |
1140 |
following examples, we will use |
| 1147 |
<filename>W32DRIVER.SYS</filename> and |
1141 |
<filename>W32DRIVER.SYS</filename> and |
| 1148 |
<filename>W32DRIVER.INF</filename>.</para> |
1142 |
<filename>W32DRIVER.INF</filename>.</para> |
| 1149 |
|
1143 |
|
|
|
1144 |
<para>In &os; 5.5, &os; 6.0 and later, a kernel module is created |
| 1145 |
with &man.ndisgen.8; as <username>root</username>:</para> |
| 1146 |
|
| 1147 |
<screen>&prompt.root; <userinput>ndisgen <replaceable>/path/to/W32DRIVER.INF</replaceable> <replaceable>/path/to/W32DRIVER.SYS</replaceable></userinput></screen> |
| 1148 |
|
| 1149 |
<para>The &man.ndisgen.8; utility is interactive and will prompt |
| 1150 |
for any extra information it requires; it will produce a kernel |
| 1151 |
module in the current directory which can be loaded as follows:</para> |
| 1152 |
<screen>&prompt.root; <userinput>kldload <replaceable>./W32DRIVER.ko</replaceable></userinput> |
| 1153 |
|
| 1154 |
<para>Under &os; 5.4 and before, the process of creating the kernel |
| 1155 |
module is more involved, and is detailed next.</para> |
| 1156 |
|
| 1157 |
<para>You may need to compile the &man.ndis.4; mini port driver |
| 1158 |
wrapper module. As <username>root</username>:</para> |
| 1159 |
|
| 1160 |
<screen>&prompt.root; <userinput>cd /usr/src/sys/modules/ndis</userinput> |
| 1161 |
&prompt.root; <userinput>make && make install</userinput></screen> |
| 1162 |
|
| 1150 |
<para>The next step is to compile the driver binary into a |
1163 |
<para>The next step is to compile the driver binary into a |
| 1151 |
loadable kernel module. To accomplish this, as |
1164 |
loadable kernel module. To accomplish this, as |
| 1152 |
<username>root</username>, go into the |
1165 |
<username>root</username>, go into the |