View Full Version : [F1] write usb modem driver
raixun
07-15-2008, 07:22 PM
hi all
im a slackware linux user i cannot use freebsd on my pc. Freebsd dont work with my usb modem threfore i cannot enable enter to internet. i know some c programmng i want write my own usb adsl modem driver for FreeBSD What i do for that ?
TerryP
07-15-2008, 11:44 PM
install source code, go to /usr/src/sys/ and start reading ;-)
There is also a very simple tutorial online that demostrates the basics of writing a loadable kernel module (lkm)
BSDfan666
07-16-2008, 12:39 AM
I honestly don't know the extent of your programming skills, but my recommendations are as follows:
1) Listen to TerryJ.
2) Find as much information about the specific card/chipset you're interested in writing a driver for, datasheets, other open source drivers.
3) Use existing drivers in the FreeBSD source tree, as a template.. they may give you information on API's useful for the task, you will need to dig deep into the kernel source to find what you'll need. (None may exist, look at the other BSD derivatives, ueagle).
4) Patience, read books... and perhaps a friendly developer willing to hold your hand.
That's all.
Which usb modem do you have? vendor, model type etc.
raixun
07-16-2008, 03:44 PM
[QOUTE]
install source code, go to /usr/src/sys/ and start reading ;-)
[/QUOTE]
Which source code ?
4) Patience, read books... and perhaps a friendly developer willing to hold your hand.
Are There a recommontion for write driver book ?
i use Pikatel usb adsl modem with globespan 7470 chipset that such as => http://img385.imageshack.us/img385/84/cimg5930lh4.jpg
There are driver of the my modem for linux version . http://eciadsl.flashtux.org also have a BSD driver for my usb modem but it is under development look => http://eciadsl.flashtux.org/faq.php?faq_lang=en#q5.9
thanx for posts
TerryP
07-16-2008, 09:41 PM
/usr/src/ is sub divided into several sub directories, the 'sys' one (/usr/src/sys) contains the kernel sources.
robbak
07-17-2008, 08:23 AM
I don't think that there is anyone on this board who actually does kernel hacking.
Therefore, all we can give you is general advice: Use the source, Luke.
You might get somewhere by subscribing and posting a message to the freebsd-hardware@freebsd.org mailing list.
As a suggestion, it might simply be a matter of adding an id to a usb ethernet driver. A lot of those USB modems use a usb ethernet device as their interface. Examining the usbdevs -v output might be the place to start.
raixun
07-17-2008, 12:06 PM
I don't think that there is anyone on this board who actually does kernel hacking.
Therefore, all we can give you is general advice: Use the source, Luke.
You might get somewhere by subscribing and posting a message to the freebsd-hardware@freebsd.org mailing list.
As a suggestion, it might simply be a matter of adding an id to a usb ethernet driver. A lot of those USB modems use a usb ethernet device as their interface. Examining the usbdevs -v output might be the place to start.
i posted my problem to freebsd-hardware@freebsd,org adress
i waiting now : )
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.