LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-25-2009, 12:24 PM   #1
pops13
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
Unhappy want help for writing device driver for printer on Redhat Linux 9


hello friends....

I'm writing device driver for dot matrix printer EPSON LP-300
The prob is, m not getting how drivers for printer works
I google for it bt m nt getting any information ...

Can anyone is in a position to let me know the theory abt the functionality of these printer drivers...
{like what happen when we gv print cmd & so on...???)


pls pls help me as early as possible ...

m kindly waiting for u...
 
Old 09-25-2009, 03:45 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,082

Rep: Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747
Quote:
I google for it bt m nt getting any information ...
google might not be mush help because RH 9 hit it's END OF LIFE in 2004 and is old and unsupported and VERY insecure .
 
Old 09-26-2009, 03:01 AM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by pops13 View Post
hello friends....

I'm writing device driver for dot matrix printer EPSON LP-300
The prob is, m not getting how drivers for printer works
I google for it bt m nt getting any information ...

Can anyone is in a position to let me know the theory abt the functionality of these printer drivers...
{like what happen when we gv print cmd & so on...???)


pls pls help me as early as possible ...

m kindly waiting for u...
You want to write a kernel driver by asking people how to proceed in an online discussion group? Don't you think it would be more productive to actually study the topic in depth, by for example browsing the Web and reading the many detailed articles on the topic?

There is a name for what you are doing ... it's called "programming by newsgroup." It doesn't work.

Quote:
Originally Posted by pops13 View Post
The prob is, m not getting how drivers for printer works I google for it bt m nt getting any information
Also, you need to pay attention to communication issues, or you will never succeed as a programmer. When you try to abbreviate everything and type as fast as humanly possible, you create a result that cannot be parsed -- by either a compiler or a human being.

This also explains how you managed not to find any of the numerous Web articles about kernel driver design. Chances are they were written in complete, comprehensible sentences, which bored you so much that you fell asleep at the keyboard.

Quote:
Originally Posted by pops13 View Post
m kindly waiting for u ...
u need 2 lrn hw to typ
 
1 members found this post helpful.
Old 09-26-2009, 08:36 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
lutusp has given you most of the advice I was thinking of---but much more eloquently........now I can be the "good cop".

Get yourself a copy of "Linux Device Drivers" from O'Reily. It will be a any large bookstore, Amazon, and maybe even free online at the O'Reilly site.

Last edited by pixellany; 09-26-2009 at 10:13 AM.
 
Old 09-26-2009, 10:10 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
So.....it turns out that you already have the book I recommended. I also note that you did not post any follow-up in your first thread on this topic. I would suggest that you tell us something specific in the LDD book that you do not understand.

Quote:
pls pls help me as early as possible ...
When you say something like this, and then don't respond to people's help, you will not have much credibility here.

Last edited by pixellany; 09-26-2009 at 10:15 AM.
 
Old 09-27-2009, 08:29 AM   #6
pops13
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hello pixellany, lutusp, John VV
Please don't miss understood me.
Actually I didn't expected this early replay from u friends.

I am actually new to this online discussion's.
Specially to lutusp, I will take care while asking questions & also towards my communication.

So here I will explain you till the date what I have done.
- I already have the copy of "Linux Device Drivers" from O'Reily.

- I'm using RHL-9.0(kernel 2.4.x)
- I downloaded Kernel source tree (kernel 2.6.17.11) & configured, Build & installed it.

- I registered my driver(/proc/devices & /dev entries are made with major & minor number)
- now I stuck up because I am not getting what to do next(I searched a lot nut I might be firing a wrong query that's why required some help).

As a fresher, I'm going step by step.
According to me before moving ahead, I should know that how these printer driver works exactly(that's why that post).

==> I only gone through some chapters of that book(still reading & it take times to understand each an everything till its implementation)
==> Do I need some more patience?
 
Old 09-27-2009, 04:11 PM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,082

Rep: Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747
But Why RH 9 ???
that is like learning how to wright a driver for " MS Windows 98 " in a vista and Windows 7 world .
 
Old 09-28-2009, 07:09 PM   #8
pops13
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Hello JohnVV,

As I have kernel source tree 2.6.17.11 configured & build, I thing that creates hardly a difference.

==> Do I need to switch over to another version?
==> Please tell me why?
 
Old 09-28-2009, 08:32 PM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 13,082

Rep: Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747Reputation: 1747
if you want to learn to build a driver for a printer from 1985 on a DEAD version of Red Hat ( RH9 has been UNSUPPORTED for 5 years )

that is YOUR choice
 
  


Reply

Tags
creative, driver, help, please, soundcard, ubuntu, will


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
best linux distribution to start device driver writing... vaishalicoep Linux - Newbie 4 02-06-2009 04:38 AM
help finding or writing a printer driver in linux DeepSeaNautilus Programming 4 08-06-2008 04:13 PM
Writing Simple Device Driver In Linux i_love_linux Linux - Kernel 6 09-04-2007 07:16 PM
writing printer device driver in linux sidbash Programming 3 07-04-2004 11:16 PM


All times are GMT -5. The time now is 07:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration