Hi Alan,
Thanks for your mail.
Ya Linux Kernel is already having a driver. But being a new bee to usb, I am
just trying to write a one.
Could you please answer to my following questionsÂ…..
1) I didn't find an answer regarding the minor number, could you please tell
me what is the minor base that i could issue while making a node for my
driver?
2) May I know from which memory location I could read the file which is
there on the memory stick?
3) Some where on the net I have observed that 454th address location will
contain the actual data address location. Depending upon that I have written
the following code. Is it correct?
UInt32 dataOffset = 0;
void readPartitionTable()
{
UInt8 buff[ 512 ];
UInt32 value;
read_10(0, 1, buff);
value = (UInt8) buff[ 0x1be + 8 ];
value |= (UInt8) (buff[0x1be + 9] << 8);
value |= (UInt8) (buff[0x1be + 10] << 16);
value |= (UInt8) (buff[0x1be + 11] << 24);
dataOffset = value;
}
4) Issuing Inquiry and test_unit_ready are really necessary before doing
read_10?
Thank you,
Regards,
Jeeva.
From: Alan Stern <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] questions on moto(E398) mass-storage linux
driver
Date: Mon, 10 Apr 2006 14:59:47 -0400 (EDT)
On Mon, 10 Apr 2006 [EMAIL PROTECTED] wrote:
> Hi,
>
> I am writing a driver for usb mass-storage device in Fedora2. I lost in
the
> following two areas. I request you to help me out.
Why are you writing a driver when the kernel already contains one?
> 1) I failed to find the minor base to mknod my driver
> 2) I am writing this driver for motorola(E398) phone, I think they
didn't
> implement the file system. So how can I test my driver?
A device driver has nothing to do with file systems. ATA disk drives
don't implement file systems either, but you have no trouble using them.
Alan Stern
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
_________________________________________________________________
All that you wanted to know about Ms Beautiful Lips
http://server1.msn.co.in/Profile/katrina.asp
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel