Re: [freebsd-questions] ndis setup
hernan [EMAIL PROTECTED] wrote: [Quoting adjusted, please don't top post.] On 4/9/06, Fabian Keil [EMAIL PROTECTED] wrote: hernan [EMAIL PROTECTED] wrote: Hey folks. I'm setting up FreeBSD 6.0-RELEASE and I'm having a little trouble getting my wireless NIC recognized. The card is a Linksys WMP64G and I'm trying to set things up to run with the FreeBSD NDISulator as described in the FreeBSD handbook (http://www.freebsd.org/doc/handbook/network-wireless.html). This chapter is outdated. Here's what I'm doing (as root): 1) Verifying with 'pciconf -lv' that the PCI card is there. Also, I know the card works, it was running fine on Windows. 2) Building ndis itself: 3) Building the if_ndis module: 4) Loading the ndis and if_ndis modules: kldload ndis I verify at this point using kldstat that both ndis and if_ndis are in fact loaded. I see nothing in dmesg or in my console during the kldload. Also, it doesn't appear that the driver found the card, there's no signs of life. I've tried using ndisgen, and have had the same results (with much less typing). In either case, I get nothing in dmesg and no usable enabled NIC. After you run ndisgen you should have a third kernel module with a name similar to the name of your sys file. If you load this module you should at least get an error message. Thanks Fabian, that helped me move forward. My next question is how to interpret the segfault I get when loading the new kernel module I created with ndisgen. The error happens when I do the 'kldload' on the new module, my machine dies and reboots. Does this mean I'm out of luck with using NDIsulator? Let me know if you have any hints. My hint is to post slightly more information. While I probably won't be able to help any further, there a lot of knowledgeable people on this list who could help if they had a better description of your problem. You could start with: - the relevant output of pciconf -lv - which .inf and .sys file you used - an exact description what you did to get to the reboot - why you are sure it was caused by a segfault Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
Re: [freebsd-questions] ndis setup
On 4/11/06, Fabian Keil [EMAIL PROTECTED] wrote: My hint is to post slightly more information. snip Fabian Thanks again. I figured this out, and am posting to help others who might want to use this card (Linksys WMP54G). Keep in mind that I'm new to FreeBSD (using 6 RELEASE): 1) I was initially trying to use NDIsulator the way the manual says, by manually running cvtndis. During that trial and error process, I ended up with a configuration that was missing if_config.ko. To get back to a good starting point I did decided to rebuild both ndis and if_ndis. cd /sys/modules/ndis; make; make install; cd /sys/modules/if_ndis; make; make install; At this point, I was able to simply load the ndis module. if_ndis was automatically loaded as I verified using kldload (lots of the examples I found show separate load commands for each). 2) I ran through the new way of building the module to wrap my Linksys driver, using ndisgen. I had only three files on my CD: Rt61.INF, rt61.sys, rt61.cat. I ignored the cat file, convinced after some googling that it was not a binary the driver needed at runtime. 3) During the load of this third kernel module, I kept getting an error: failed to load /compat/ndis/rt2561s.bin I searched my driver cd for this file and it was not there. Finally, I Googled it and after a while found myself looking at the ralink support page: http://www.ralinktech.com/supp-1.htm Under firmware, they have a link to a zip file with the magical rt2561s.bin file. I burned this onto a cd (the only way I had to get files onto my new BSD system), and placed it in /compat/ndis. One more kernel reload... and things now work fine. Hopefully these instructions will help others who wish to use the very popular Linksys WMP54G card on BSD 6. thanks again, hernan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] ndis setup
Thanks Fabian, that helped me move forward. My next question is how to interpret the segfault I get when loading the new kernel module I created with ndisgen. The error happens when I do the 'kldload' on the new module, my machine dies and reboots. Does this mean I'm out of luck with using NDIsulator? Let me know if you have any hints. thanks... hernan On 4/9/06, Fabian Keil [EMAIL PROTECTED] wrote: hernan [EMAIL PROTECTED] wrote: Hey folks. I'm setting up FreeBSD 6.0-RELEASE and I'm having a little trouble getting my wireless NIC recognized. The card is a Linksys WMP64G and I'm trying to set things up to run with the FreeBSD NDISulator as described in the FreeBSD handbook (http://www.freebsd.org/doc/handbook/network-wireless.html). This chapter is outdated. Here's what I'm doing (as root): 1) Verifying with 'pciconf -lv' that the PCI card is there. Also, I know the card works, it was running fine on Windows. 2) Building ndis itself: 3) Building the if_ndis module: 4) Loading the ndis and if_ndis modules: kldload ndis I verify at this point using kldstat that both ndis and if_ndis are in fact loaded. I see nothing in dmesg or in my console during the kldload. Also, it doesn't appear that the driver found the card, there's no signs of life. I've tried using ndisgen, and have had the same results (with much less typing). In either case, I get nothing in dmesg and no usable enabled NIC. After you run ndisgen you should have a third kernel module with a name similar to the name of your sys file. If you load this module you should at least get an error message. Fabian -- http://www.fabiankeil.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [freebsd-questions] ndis setup
hernan [EMAIL PROTECTED] wrote: Hey folks. I'm setting up FreeBSD 6.0-RELEASE and I'm having a little trouble getting my wireless NIC recognized. The card is a Linksys WMP64G and I'm trying to set things up to run with the FreeBSD NDISulator as described in the FreeBSD handbook (http://www.freebsd.org/doc/handbook/network-wireless.html). This chapter is outdated. Here's what I'm doing (as root): 1) Verifying with 'pciconf -lv' that the PCI card is there. Also, I know the card works, it was running fine on Windows. 2) Building ndis itself: 3) Building the if_ndis module: 4) Loading the ndis and if_ndis modules: kldload ndis I verify at this point using kldstat that both ndis and if_ndis are in fact loaded. I see nothing in dmesg or in my console during the kldload. Also, it doesn't appear that the driver found the card, there's no signs of life. I've tried using ndisgen, and have had the same results (with much less typing). In either case, I get nothing in dmesg and no usable enabled NIC. After you run ndisgen you should have a third kernel module with a name similar to the name of your sys file. If you load this module you should at least get an error message. Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature