[uClibc]usb on coldfire
li xi
lixi_2000 at yahoo.com
Tue Dec 3 01:30:16 UTC 2002
hi,
I have use the coldfire 5272 and uClinux
2.4(20020927).and use the motorola 's USB driver and
demo application on uClinux 2.0,you can find the
source code and the document in
http://e-www.motorola.com/webapp/sps/site/prod_summary.jsp?code=MCF5272&nodeId=01M9
as the usb driver is for uClinux 2.0, we change the
usb.c:
delete #include<linux/version.h>
add "#ifndef LINUX_VERSION_CODE #include
<linux/version.h> #endif
in demo application we change the
user/usb_client/cbi.c
change "act.sa_mask=0" to "sigemptyset(&act.sa_mask)";
change "sigset_t mask= (1 << SIGIO)" to "sigset_t
mask;sigemptyset(&mask);sigaddset(&mask, 1<<SIGIO);"
after compile the driver and application. we run the
test app on windows 2000 (need the usb driver and app
the motorola give ),first step, getting the usb
vendor ID product ID and connect description the test
is ok , second doing file transfer test, in this case
,our application cbi running on uClinux died after
send some date .
and the motorola 's image with the USB dirver and the
cbi application can use perfectly on our target .of
course the Motorola 's image is the uClinux 2.0.
Is there some more work to do for running usb
application in uClinux 2.4 ?
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the uClibc
mailing list