Christophe,
Linux source is usually in
/usr/src/linux
which is usally symbolically linked to the present kernel tree
It is important that you are running the same kernel as the source that
you are editing.
"uname -r" should = linux-2.4.19-rc1 for example in my case.
cd /usr/src
ls -l will include one listing of
"linux -> linux-2.4.19-rc1" which is a symbolic link of linux to
linux-2.4.19-rc1
cd linux
find . -name unusual_devs.h
returns
./drivers/usb/storage/unusual_devs.h
I use vi as an editor :)
vi drivers/usb/storage/unusual_devs.h
Add in the bits you need something like what I sent you:
UNUSUAL_DEV( 0x05e3, 0x0700, 0x0001, 0xffff,
"DViCO",
"MOMOBAY CX-1",
US_SC_SCSI, US_PR_BULK, NULL,
US_FL_FIX_INQUIRY | US_FL_START_STOP | US_FL_MODE_XLATE ),
"cd /usr/src/linux", Look for the current module "find . -name
usb-storage\* ".
returns "./drivers/usb/storage/usb-storage.o"
"rm ./drivers/usb/storage/usb-storage.o" Just to prove that you new
module is built
make modules
rmmod usb-storage just incase it is loaded
make modules_install or just copy the singular module to
/lib/modules/"YourRunningKernel"/kernel/drivers/usb/storage/
If it works I post the bits you added to linux-usb-devel and hope they
include it in the source
In /etc/modules.conf I have a line "alias usb-controller usb-uhci"
I have to play around and see how I can get hotplug to work but until
then I will use "insmod usb-storage"
Test with "fdisk -l" and there should be some /dev/sda entries.
Hope this helps
Grahame Jordan
Christophe Th�ron wrote:
>Do you mean I helped you to solve your problem?
>
>Well that's quite an achievement for somebody who has started learning
>Linux 2 weeks ago! :)
>
>Now can you help me to solve mine?
>
>I'm a C programmer and come from DOS/Windows. I was using the GCC compiler
>under DOS (DJGPP) so I think I can compile a module.
>
>However, being new to Linux, I do not know where to find the source for
>usb-storage.
>
>There are several ways you can help me:
>1) tell me where to download the sources for usb-storage
>2) send me your usb-storage.o. I'm also running the 2.4.19 kernel.
>
>I guess that solution #2 would be quick and easy for me, but I definitely
>need to learn how to compile modules, so I should go thru #1 as well.
>
>Thanks in advance for your help. There are 13Gb of data waiting for me on
>my cute Momobay CX-1, I guess with your help I will be able to grab them.
>
>
> Christophe Th�ron
>
>
>
>
>
>On Saturday 06 July 2002 11:54, Grahame Jordan wrote:
>
>>Christophe,
>>
>>Thank you.
>>
>> This works against 2.4.19-rc1
>>
>>UNUSUAL_DEV( 0x05e3, 0x0700, 0x0001, 0xffff,
>> "DViCO",
>> "MOMOBAY CX-1",
>> US_SC_SCSI, US_PR_BULK, NULL,
>> US_FL_FIX_INQUIRY | US_FL_START_STOP | US_FL_MODE_XLATE ),
>>
>>Godd luck with your one
>>
>>Grahame Jordan
>>
>>Christophe Th�ron wrote:
>>
>>>I have exactly the same problem and I am eagerly waiting for some
>>>solution...
>>>
>>>The symptom on my computer is exactly what you have described. I'm
>>>running Peanut Linux 9.3 on a Toshiba Satellite 1900-101.
>>>
>>>Here is some info I have gathered since I'm working on this:
>>>
>>>* The external USB drive Momobay CX-1 uses a Genesys Logic USB chip.
>>>* There is a similar device also using a Genesys Logic USB chip. It is
>>>called "Bason Computer 60GB HD". Its ID is 05E3:0702 (the CX-1 is
>>>05E3:0700). To be recognized by Linux it needs a change in
>>>usb-storage.o: an UNUSUAL_DEV line must be added to unusual_devs.h.
>>>Here is a link that tells a little bit more:
>>>http://www.qbik.ch/usb/devices/showdev.php?id=1040
>>>
>>>I strongly suspect that the CX-1 also needs an UNUSUAL_DEV line, but I
>>>have no idea what the parameters should be.
>>>
>>>I really need some help on this. If needed, I can open the case and
>>>have a look at the chip exact reference. I can also provide additional
>>>information if you tell me what you need to know...
>>>
>>>
>>>Thanks in advance for your help.
>>>
>>>
>>> Christophe Th�ron
>>>
>>>
>>>-------------------------------------------------------
>>>This sf.net email is sponsored by:ThinkGeek
>>>Got root? We do.
>>>http://thinkgeek.com/sf
>>>_______________________________________________
>>>[EMAIL PROTECTED]
>>>To unsubscribe, use the last form field at:
>>>https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>>>
>>-------------------------------------------------------
>>This sf.net email is sponsored by:ThinkGeek
>>Got root? We do.
>>http://thinkgeek.com/sf
>>_______________________________________________
>>[EMAIL PROTECTED]
>>To unsubscribe, use the last form field at:
>>https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Got root? We do.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users