LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   USB Driver Read and Write for PC (https://www.linuxquestions.org/questions/linux-kernel-70/usb-driver-read-and-write-for-pc-937080/)

biswajit.2k3 03-29-2012 08:46 AM

USB Driver Read and Write for PC
 
Hi ,
I am a linux kernel Prorammer.I want to write own usb driver for pc which can read and write to pen drive once inserted.My problem lies how to access the Flash Present in the flash drive.

Regards,
Biswajit

fatmac 03-30-2012 01:54 PM

Quote:

Originally Posted by biswajit.2k3 (Post 4639687)
Hi ,
I am a linux kernel Prorammer.I want to write own usb driver for pc which can read and write to pen drive once inserted.My problem lies how to access the Flash Present in the flash drive.

Regards,
Biswajit

If you're a kernel programmer, you'd know!

rigor 03-30-2012 03:31 PM

Quote:

Originally Posted by fatmac (Post 4640888)
If you're a kernel programmer, you'd know!

Aw, come on! That's like saying that because a person knows something about a subject, they must know everything about the subject. In the days before there was much open source, I worked on ports of some Bell as well as some Berkeley Unix kernels, and I didn't necessarily see every piece of source code for each kernel. I had specific tasks to accomplish and dealt with whatever source was needed to do so.

fatmac 03-31-2012 03:54 AM

@Kakaka
Seemed like a troll question to me; but if biswajit.2k3 is a kernel developer, then s/he would know how to get in contact with the kernel usb dev team.

rigor 04-01-2012 10:05 PM

Quote:

Originally Posted by fatmac (Post 4641254)
@Kakaka
Seemed like a troll question to me; but if biswajit.2k3 is a kernel developer, then s/he would know how to get in contact with the kernel usb dev team.

In the time frame I mentioned previously, my job title was "Unix Kernel Engineer". Some people might say that was when the pure Bell Labs and Berkeley Unix kernels were thriving. But I was not working for either Bell or Berkeley. I was not one of the people who originally created the kernels. Instead I was working for one of the companies that paid big bucks to license the kernel source code to port it to specific hardware. Despite my title, I didn't know how to contact anyone at Bell or Berkeley for assistance working with their kernels.

The OP might have simply meant that they downloaded Linux kernel source code and have worked with it to some extent.

I've done Software Systems and Applications Development on a very wide of platforms, from old IBM mainframes to much more recent microprocessors, and had to deal with all the associated documentation. I greatly appreciate Linux and use it probably about 99.99...% of the time when using a computer. But I feel there's plenty of Linux documentation which could benefit from a fair amount of improvement. I wouldn't be surprised that someone didn't know something.

These forums are meant to be here to help people.

Strider22 04-02-2012 05:16 PM

I thought it inappropriate to bother the USB development team by asking them to teach anyone who wants to learn how to write USB drivers... otherwise I would have asked them too..(even though I don't know how to reach them)

I'm trying figure it out too. I'm off to a meeting right now but I can post some links when I get back.
It isn't easy even figuring out what the history of usb on linux is.

rigor 04-02-2012 08:44 PM

Well if you want something of the history, here's a starting point, and there are a variety of other related links on this page as well:

http://www.linux-usb.org/

fatmac 04-03-2012 03:17 AM

Quote:

I thought it inappropriate to bother the USB development team by asking them to teach anyone who wants to learn how to write USB drivers... otherwise I would have asked them too..(even though I don't know how to reach them)
In that case, I apologize for thinking you a troll....

biswajit.2k3 04-04-2012 08:29 AM

usb flash accessing problem
 
Hi,
I have done some work around before posting the mail.For the 1st time I am working on usb .
So I am facing problem .I am able to register the usb mass storage driver with the correspoing
vendor ID and product ID.Before writing data I should be in a position to access the Flash present in the Usb,which is a 1st hurdle
for me.I dont know how to access that.Once this problem solved Only thing remains is
maping a block driver and partioning .Then after file system part will come into picture.
So if any one knows how to access the flash,please help me in solving my problem.
If any one knows how to contact the usb team pleas let me know.

Regards
Biswajit


All times are GMT -5. The time now is 11:38 AM.