LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 17013|回复: 47

USB移动硬盘的解决办法

[复制链接]
发表于 2002-12-22 16:03:24 | 显示全部楼层 |阅读模式
内核使用2.4.20,我的硬盘可以用了。

希望以下信息对你有帮助
USB storage (GL641 bridge + 2.5inch IDE HDD) on my machine (440BX chipset) works well, adding the following description to /usr/src/linux-2.4.18/drivers/usb/storage/unusual_devs.h . `UNUSUAL_DEV( 0x05e3, 0x0702, 0x0000, 0x9999, "Genesys","USB2IDE", US_SC_SCSI, US_PR_BULK, NULL, US_FL_FIX_INQUIRY | US_FL_MODE_XLATE | US_FL_START_STOP),`. This is the same as Richard Lumpkin"s comment in http://www.qbik.ch/usb/devices/showdev.php?id=1040 but slightly different from comments for GL641 + CF by Klotz, Leigh base on Andrew J Cosgriff"s patch in http://www.geocrawler.com/archives/3/4563/2002/1/100/7588288/ or by Julian Missig in http://www.qbik.ch/usb/devices/showdev.php?id=1160 .
发表于 2003-1-8 14:31:35 | 显示全部楼层
我也可以用了
我的USB芯片是GL641,在goole里找“linux usb gl641”,找到以下内容:

diff -urN linux-2.4.18-plain/drivers/usb/storage/unusual_devs.h linux-2.4.18-patch/drivers/usb/storage/unusual_devs.h
--- linux-2.4.18-plain/drivers/usb/storage/unusual_devs.h        Mon Feb 25 20:38:07 2002
+++ linux-2.4.18-patch/drivers/usb/storage/unusual_devs.h        Mon Apr 22 17:37:35 2002
@@ -292,6 +292,12 @@
                US_FL_MODE_XLATE | US_FL_START_STOP ),
#endif

+UNUSUAL_DEV(  0x05e3, 0x0702, 0x0000, 0x9999,
+                "S.Y.C.T.",
+                "GL641 USB drive",
+                US_SC_SCSI, US_PR_BULK, NULL,
+                US_FL_FIX_INQUIRY | US_FL_START_STOP),
+
UNUSUAL_DEV(  0x0644, 0x0000, 0x0100, 0x0100,
                "TEAC",
                "Floppy Drive",


然后修改unusual_devs.h,编译,将生成的3个模块插入内核,就能用了
发表于 2003-1-10 08:19:48 | 显示全部楼层
最初由 fox 发布
内核使用2.4.20,我的硬盘可以用了。

希望以下信息对你有帮助
USB storage (GL641 bridge + 2.5inch IDE HDD) on my machine (440BX chipset) works well, adding the following description to /usr/src/linux-2.4.18/drivers/usb/storage/unusual_devs.h . `UNUSUAL_DEV( 0x05e3, 0x0702, 0x0000, 0x9999, "Genesys","USB2IDE", US_SC_SCSI, US_PR_BULK, NULL, US_FL_FIX_INQUIRY | US_FL_MODE_XLATE | US_FL_START_STOP),`. This is the same as Richard Lumpkin"s comment in http://www.qbik.ch/usb/devices/showdev.php?id=1040 but slightly different from comments for GL641 + CF by Klotz, Leigh base on Andrew J Cosgriff"s patch in http://www.geocrawler.com/archives/3/4563/2002/1/100/7588288/ or by Julian Missig in http://www.qbik.ch/usb/devices/showdev.php?id=1160 .


谢谢啦! 我的移动硬盘(GL641USB)可以用了.我只把.unusual_devs.h中的下列句子改了一下:
UNUSUAL_DEV(  0x05e3, 0x0702, 0x0000, 0xffff,
                "EagleTec",
                "External Hard Disk",
                US_SC_SCSI, US_PR_BULK, NULL,
                US_FL_FIX_INQUIRY | US_FL_MODE_XLATE | US_FL_START_STOP),

然后重新编译内核模块:
cp /boot/config-2.4.18-14 /usr/src/linux-2.4/.config
make oldconfig
make dep
make modules

然后拷贝编译好的模块到系统:
cp /usr/src/linux-2.4/drivers/usb/storage/usb-storage.o /lib/modules/2.4.18-14/kernel/drivers/usb/storage/

modprobe -r usb-storage
modprobe usb-storage
就能用了
发表于 2003-1-11 15:35:52 | 显示全部楼层
按楼上的帖子,我也成功了
我用的是纽曼伟业的自由人usb1.1的移动硬盘盒
发表于 2003-1-11 19:37:31 | 显示全部楼层
最初由 windrose 发布
按楼上的帖子,我也成功了
我用的是纽曼伟业的自由人usb1.1的移动硬盘盒


当真~~,我要马上去试试~!!
发表于 2003-1-14 10:29:13 | 显示全部楼层
因为 2.4.18 对 USB2.0 支持有问题,如果你的 USB 硬盘和主板都支持 USB2.0,

    你需要把 kernel 对  USB2.0 的支持去掉,只用 USB1.1 协议

   make menuconfig

   去掉:USB support-->EHCI HCD(USB 2.0) support(EXPERIMENTAL)

2.4.20 可以正确支持 USB2.0
发表于 2003-1-19 04:25:18 | 显示全部楼层

好的。我一定要试试。谢谢了啊~新年快乐
发表于 2003-1-22 13:59:19 | 显示全部楼层
ok
发表于 2003-1-23 00:03:29 | 显示全部楼层

求救...编译出错..

求救...
我在我的A电脑上编译成功..(RH8 / 2.4.18.8)
但是在B电脑上编译失败.(RH8) 2.4.18/ 2.4.19内核都试过...(而且我还全部重安装过...)
make oldconfig
make dep
可以.但,在
make modules

出现以下信息...

paep.c:1139: invalid suffix on integer constant
paep.c:1139: called object is not a function
paep.c:1148: invalid suffix on integer constant
paep.c:1148: called object is not a function
paep.c:1153: invalid suffix on integer constant
paep.c:1153: called object is not a function
paep.c:1158: invalid suffix on integer constant
paep.c:1158: called object is not a function
make[3]: *** [paep.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18-19.8.0/drivers/addon/aep'
make[2]: *** [_modsubdir_aep] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-19.8.0/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-19.8.0/drivers'
make: *** [_mod_drivers] Error 2


请帮帮忙....

另外,我寻思,如果将A电脑上的内核COPY到B电脑上,,覆盖,,可否解决问题?

谢谢!
发表于 2003-1-23 23:53:46 | 显示全部楼层
还是内核的事,因为我没有这样的USB盘,所以只能给兄弟找点资料。。试一下。。如下。。
Have you installed the kernel-headers*.rpm and kernel-source*.rpm? Have
you tried building all the rpm binaries from a kernel*.src.rpm?


http://info.ccone.at/INFO/Mail-A ... -2002/msg00290.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表