当前位置: 技术问答>linux和unix
usb gadget mass storage 驱动开发 问题求助?
来源: 互联网 发布时间:2016-05-04
本文导语: 各位高手: 最近,在做linux usb gadget,编译生成s3c2410_udc.ko 和 g_file_storage.ko后,insmod module 终端打印如下信息: [root@(none) /]# insmod s3c2410_udc.ko Using s3c2410_udc.ko Reading data from NAND FLASH without ECC is not recommend...
各位高手:
最近,在做linux usb gadget,编译生成s3c2410_udc.ko 和 g_file_storage.ko后,insmod module
终端打印如下信息:
[root@(none) /]# insmod s3c2410_udc.ko
Using s3c2410_udc.ko
Reading data from NAND FLASH without ECC is not recommended
USB:s3c2410_udc: version 14 Mar 2004
hello Mr. zhao I am in driver_register
bus platform: add driver s3c2410-udc
[root@(none) /]# insmod g_file_storage.ko file=/dev/mtdblock/3 stall=0 removable=1
Using g_file_storage.ko
Reading data from NAND FLASH without ECC is not recommended
g_file_storage gadget: controller 'dummy_udc' not recognized
g_file_storage gadget: File-backed Storage Gadget, version: 20 October 2004
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/mtdblock/3
hello Mr. zhao I am in driver_register
bus platform: add driver g_file_storage
usb 2-1: new full speed USB device using dummy_hcd and address 2
g_file_storage gadget: full speed config #1
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Linux Model: File-Stor Gadget Rev: 0399
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 32768 512-byte hdwr sectors (17 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 32768 512-byte hdwr sectors (17 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0:Reading data from NAND FLASH without ECC is not recommended
unknown partition table
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
但pc机端,抓不到任何数据,usb_probe 函数也没有被执行什么原因啊?
最近,在做linux usb gadget,编译生成s3c2410_udc.ko 和 g_file_storage.ko后,insmod module
终端打印如下信息:
[root@(none) /]# insmod s3c2410_udc.ko
Using s3c2410_udc.ko
Reading data from NAND FLASH without ECC is not recommended
USB:s3c2410_udc: version 14 Mar 2004
hello Mr. zhao I am in driver_register
bus platform: add driver s3c2410-udc
[root@(none) /]# insmod g_file_storage.ko file=/dev/mtdblock/3 stall=0 removable=1
Using g_file_storage.ko
Reading data from NAND FLASH without ECC is not recommended
g_file_storage gadget: controller 'dummy_udc' not recognized
g_file_storage gadget: File-backed Storage Gadget, version: 20 October 2004
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/mtdblock/3
hello Mr. zhao I am in driver_register
bus platform: add driver g_file_storage
usb 2-1: new full speed USB device using dummy_hcd and address 2
g_file_storage gadget: full speed config #1
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Linux Model: File-Stor Gadget Rev: 0399
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 32768 512-byte hdwr sectors (17 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
SCSI device sda: 32768 512-byte hdwr sectors (17 MB)
sda: Write Protect is off
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0:Reading data from NAND FLASH without ECC is not recommended
unknown partition table
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
但pc机端,抓不到任何数据,usb_probe 函数也没有被执行什么原因啊?
|
把usb的debug打开吧