installing a new device driver
Hi all Sorry I ask so much cause I'm a new user to freeBSD :) Hear's the deal. How can I install a new device driver on my OS ? Please explain in details because of the reason I mentioned earlier :) Thanks in advance ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: installing a new device driver
On Wed, 2013-01-09 at 02:09 -0800, Jack Mc Lauren wrote: > How can I install a new device driver on my OS ? I'm new to FreeBSD myself :). Manually as root run kldload driver_name this is something I already used myself. To load the module automagically at startup, edit /boot/loader.conf driver_name="YES" I never used this myself until now. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-modules.html Hth, Ralf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: installing a new device driver
This is the output of pciconf -lv : vendor = 'FarSite Communications Limited' device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)' class = simple comms So what is the next step ? From: Ralf Mardorf To: freebsd-questions@freebsd.org Sent: Wednesday, January 9, 2013 1:55 PM Subject: Re: installing a new device driver On Wed, 2013-01-09 at 02:09 -0800, Jack Mc Lauren wrote: > How can I install a new device driver on my OS ? I'm new to FreeBSD myself :). Manually as root run kldload driver_name this is something I already used myself. To load the module automagically at startup, edit /boot/loader.conf driver_name="YES" I never used this myself until now. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-modules.html Hth, Ralf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: installing a new device driver
On 09/01/2013 13:16, Jack Mc Lauren wrote: > This is the output of pciconf -lv : > > vendor = 'FarSite Communications Limited' > device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)' > class = simple comms > > So what is the next step ? > I would strongly advise connect to the modem via network cable and TCP/IP. Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: installing a new device driver
Jack Mc Lauren wrote: > Hi all > Sorry I ask so much cause I'm a new user to freeBSD :) > > Hear's the deal. How can I install a new device driver on my OS ? Please > explain in details because of the reason I mentioned earlier :) > First, please understand that FreeBSD is a mostly, self-contained operating system. Generally speaking the difference is in where the driver itself comes from. There are exceptions, as there are indeed some vendors who provide driver code to the project as third-party add ins, but much driver code is written by and contained within the project itself. This means that you will not go willy-nilly surfing all over the web downloading drivers to install. If you have the source code for the OS installed (it was an option during install) you might want to look at a kernel configuration file for a basic idea on how drivers 'relate' in FreeBSD. On an i386 system there will be a path /usr/src/sys/i386/conf/, and on a 64 bit install the kernel config file will be located under /usr/src/sys/amd64/conf. On a brand new machine with no custom kernel you will see a file under these location(s) called simply GENERIC. This is the kernel configuration file for the OS as distributed and until one generates and compiles their own custom kernel it will be what you are running. Notice lines within the file that begin with 'options' and 'device'. The lines you see that start with 'device' are device driver(s) that are built into the kernel itself. There is such a wide variety in the GERNERIC kernel because it ships as designed to be ready to operate on a plethora of differenet hardware. Many people will build a custom kernel that strips out all of these that they do not need. So what if you strip out something that you do need does that mean that you have to build a new kernel all over again? Quite possibly not, as FreeBSD also has something called 'kernel modules' as well. If you look in /boot/kernel you will notice a lot of files that end in a ".so" extension. These are kernel modules (think 'drivers' here - it is pretty much the same idea). You can load and unload these kernel modules while a system is running using kldload and kldunload commands. The command kldstat will inform you about ones that are loaded and active. The thing you need to know is you can't kldload a kernel module if that corresponding function is already built-in and present in the running kernel. Example: a kernel config file with 'device em' means the driver is already compiled into the kernel and you will receive an error should you attempt to kldload the if_em.ko kernel module. Just to expand a little for some quick grokage:-) -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: installing a new device driver
"Zyumbilev, Peter" writes: > On 09/01/2013 13:16, Jack Mc Lauren wrote: >> This is the output of pciconf -lv : >> >> vendor = 'FarSite Communications Limited' >> device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)' >> class = simple comms >> >> So what is the next step ? >> > > > I would strongly advise connect to the modem via network cable and TCP/IP. Since the "modem" is a PCI card, plugging it into the computer and connecting to it over the PCI bus is required. Talking to the device through the serial driver is correct. First it's necessary to know whether this card requires a firmware download. I would guess probably not, but I can't find any definitive information on it to be sure. Second it's necessary to know what kind of connection the ISP expects it to make, in order to configure it. Very likely either mpd or ppp will be able to work with it. The appropriate serial device may be the one at the start of the line preceding the pciconf output we were shown. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: installing a new device driver
On 09/01/2013 18:47, Lowell Gilbert wrote: > "Zyumbilev, Peter" writes: > >> On 09/01/2013 13:16, Jack Mc Lauren wrote: >>> This is the output of pciconf -lv : >>> >>> vendor = 'FarSite Communications Limited' >>> device = 'G.SHDSL Intelligent Sync Comms Card (FarSync DSL-S1)' >>> class = simple comms >>> >>> So what is the next step ? >>> >> >> >> I would strongly advise connect to the modem via network cable and TCP/IP. > > Since the "modem" is a PCI card, plugging it into the computer and > connecting to it over the PCI bus is required. Talking to the device > through the serial driver is correct. > > First it's necessary to know whether this card requires a firmware > download. I would guess probably not, but I can't find any definitive > information on it to be sure. > > Second it's necessary to know what kind of connection the ISP expects it > to make, in order to configure it. Very likely either mpd or ppp will be > able to work with it. The appropriate serial device may be the one at > the start of the line preceding the pciconf output we were shown. > > I doubt newbie can do all this. The only viable option I see is a DSL modem as a separate device. Peter ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"