Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
blues
Old
#1  
Member - OP
Thanks Meter 1
Posts: 35
Join Date: Sep 2007
Default How to create a driver

I need to create a driver. Like those /dev/smd0 and /dev/smd27.
My driver will be very similar to those smd drivers, it will just talk to different smd channel.

My question is: do I have to rebuild the whole source tree, and flash the image to the G1 phone? Or can I just make a driver binary module, and adb push to the phone, and install it (like insmod driver.o)?

Please understand I am a newbie to linux...
 
JesusFreke
Old
#2  
JesusFreke's Avatar
Senior Member
Thanks Meter 36
Posts: 735
Join Date: Oct 2008
Location: Dallas
You should be able to build just the driver itself, and put it onto the G1 (assuming you have root access). You'll need to use a cross compiler to build the driver. You should be able to use the one included in the android source (in the prebuilt section).

Just out of curiosity, what kind of driver are you building? What's it for?
 
driz
Old
#3  
driz's Avatar
Member
Thanks Meter 0
Posts: 87
Join Date: Apr 2006
Location: Fort Bragg, NC
you could make dev entries with mknod... at least some ..
Kindle Fire
ROM: Energy ICS CM9 3.0
HTC Aria
ROM: CM7.2 Nightlies | CID/SIM Unlocked
HTC MyTouch 4G
ROM: CM9 Nightlies | S=OFF
Retired:
HTC Blueangel, Cingular 8125, Cingular 8525, AT&T Tilt, HTC Touch Pro2, HTC Dream, AT&T Fuze
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Go to top of page...