hi all. i'm a newbie. and i wanna write a usb driver.
my OS is RH9.0
kernal version is 2.4.20
i complied the usb-skeleton.c and rename it myusb.o
then i guessed i should register myusb.o module in the kernel but failed
what i did is in the following:
1. insmode myusb.o
2. cp myusb.o /lib/modules/`uname -r`/kernel/drivers/usb
then i saw a nod created in /dev/usb called myusb
ok.that's all i've done.
then i wrote a test.c to access the node
int fd=open(" /dev/usb/myusb ");
cout<<fd << endl;
run it, return -1. it means the node cannnot be accessed.
i guess there is something wrong when i install myusb.o in the kernel.
but i donot konw what is wrong.
anyone who can help me that how can i install my driver in RH and run it