DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th July 2008
raixun raixun is offline
New User
 
Join Date: Jul 2008
Posts: 3
Default [F1] write usb modem driver

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 ?
Reply With Quote
  #2   (View Single Post)  
Old 15th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

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)
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 15th July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

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)).
4) Patience, read books... and perhaps a friendly developer willing to hold your hand.

That's all.
Reply With Quote
  #4   (View Single Post)  
Old 16th July 2008
tuck's Avatar
tuck tuck is offline
Shell Scout
 
Join Date: May 2008
Posts: 99
Default

Which usb modem do you have? vendor, model type etc.
Reply With Quote
  #5   (View Single Post)  
Old 16th July 2008
raixun raixun is offline
New User
 
Join Date: Jul 2008
Posts: 3
Default

[QOUTE]
install source code, go to /usr/src/sys/ and start reading ;-)
[/QUOTE]
Which source code ?
Quote:
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
Reply With Quote
  #6   (View Single Post)  
Old 16th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

/usr/src/ is sub divided into several sub directories, the 'sys' one (/usr/src/sys) contains the kernel sources.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 17th July 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

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.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #8   (View Single Post)  
Old 17th July 2008
raixun raixun is offline
New User
 
Join Date: Jul 2008
Posts: 3
Default

Quote:
Originally Posted by robbak View Post
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 : )
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/tmp on ram write denied gosha OpenBSD General 8 29th March 2009 04:46 PM
Why you should write a guide/howto in XML J65nko Guides 4 19th October 2008 07:46 PM
proftpd and ppp modem mtx General software and network 3 11th June 2008 11:33 AM
USB EV-DO modem support Bruco FreeBSD General 1 6th June 2008 09:50 PM
[VSFTPD] Can't write in directory Sunsawe General software and network 7 1st June 2008 11:29 PM


All times are GMT. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick