Topic: how can I build a module for an unrecognized device
Hello
I have a MSR HCR331 which communicates through a onboard ( as in on device's board ) PL2303X serial to USB chip adapter
It should be supported by pl2303.ko module , but , as you can see here - http://kerneltrap.org/mailarchive/git-c … 4/30/32388 - it isn't , because it presents itself ( by a lsusb ) as 067b:331a and not 067b:2303 .
I can use it on a Redhat9 vmware machine by building its .o module from source ( found here : http://www.prolific.com.tw/eng/downloads.asp?ID=31 ) - the result is a hcr331.o which is practically a pl2303.o modified to know this device's PID ; after insmod hcr331 i can stty -F /dev/ttyUSB0 9600 raw cs8 and I can communicate ( r/w ) with the magnetic card reader
I can't use something like modprobe pl2303 vendor=0x067b product=0x331a because the command throws an error complains about vendor unrecognized argument ( probably the pl2303 module doesn't support arguments )
I tried to :
cross_compile - I did not succeeded
scratchbox - I did not succeeded
So , basically , i have a Chumby hacker board and a ( very smart ) Magnetic Card Reader - I can't make the two to communicate.
The H in HCR331 came from hybrid , cause this reader can also read smart cards , IC and so on - I just need to read magnetic card - this can be accomplished by setting it to MODE 2 - by sending an ESC M2 to it ( done it in Windows/Redhat9 )
I am a n00b , please help me .