Hello David Brownell, ======= 2005-08-25 04:30:11 =======
>> >> Hello >> I meet across some problems, when I port USB Gadget from 2.6 to 2.4 >> kernel. >> I move these files to 2.4 kernel in gadget directory: usbstring.c, config.c, >> epautoconf.c ,omap_udc.c and ether.c. There are codes to register omap_udc >> driver and ether driver , but there are no codes to register a bus driver >> and register device . So I failed to run gadget. > >Right, the 2.4 kernels don't include driver model support. It turns out >you can basically just remove that stuff in a backport. Yes,I have read all the doc on linux-2.6.12\Documentation\driver-model to find what is driver model, but I can't understand it yet,and can't know how to remove the driver model for the backport. Could you tell me what documents I should read more ? > >> I know these work have been done in usbd_bus.c , usbd.c,ep0.c >> and usbd_func.c on 2.4 kernel. > >No, that's the old Belcarra stuff; don't use it. It doesn't even >handle DMA. That means you'd be burning a lot of battery power to >make the CPU transfer every byte by itself, smashing that poor >little dcache into fragments along the way. :( yes,I must not use the old stuff. I analyse the Makefile about gadget, the Makefile tells me the valuable files are usbstring.c, config.c, epautoconf.c ,omap_udc.c and ether.c . Could you tell me other files or directory should be included for my backport ? > >- Dave = = = = = = = = = = = = = = = = = = = = zhouyf [EMAIL PROTECTED] 2005-08-25