|
我在UNusual_devs.h中修改和添加的东东!现在我的usb移动硬盘可以用了!
(magiclinux1.2preview4, kernel 2.4.22-1下:)
修改的:
UNUSUAL_DEV( 0x05e3, 0x0702, 0x0000, 0x0001,
"EagleTec",
"External Hard Disk",
US_SC_DEVICE, US_PR_DEVICE, NULL,
US_FL_FIX_INQUIRY | US_FL_START_CHECK | US_FL_MODE_XLATE ),
添加的:
UNUSUAL_DEV( 0x05e3, 0x0702, 0x0001, 0xffff,
"Genesys Logic",
"USBDisk",
US_SC_SCSI, US_PR_BULK, NULL, US_FL_FIX_INQUIRY |
US_FL_START_CHECK | US_FL_MODE_XLATE ),
注意以下在usb.h中的参数据设定,原来我没看它,所以老是不行,现在可以了。
/* Flag definitions */
#define US_FL_SINGLE_LUN 0x00000001 /* allow access to only LUN 0 */
#define US_FL_MODE_XLATE 0x00000002 /* translate _6 to _10 commands for
Win/MacOS compatibility */
#define US_FL_START_CHECK 0x00000008 /* START_STOP => TEST UNIT READY */
#define US_FL_IGNORE_SER 0x00000010 /* Ignore the serial number given */
#define US_FL_SCM_MULT_TARG 0x00000020 /* supports multiple targets */
#define US_FL_FIX_INQUIRY 0x00000040 /* INQUIRY response needs fixing */
#define US_FL_FIX_CAPACITY 0x00000080 /* READ_CAPACITY response too big */
#define US_FL_INIT_RESET 0x00000100 /* reset process when initialize */
#define USB_STOR_STRING_LEN 32
|
|