My custom board with tm320dm8148 PG2.1
as the picture show below,this is a USB mini B receptacle.
My kernel config :(gadget only,disable host support)
--- USB support
<*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)
<*> TI81XX
TI81XX usb connector's ID pin control (from software settin
Driver Mode (USB Peripheral (gadget stack)) --->
<*> USB Gadget Support --->
--- USB Gadget Support
(2) Maximum VBUS Power usage (2-500 mA)
USB Peripheral Controller (Inventra HDRC USB Peripheral (TI)
<M> USB Gadget Drivers
<M> File-backed Storage Gadget
[*] File-backed Storage Gadget testing version
mount -t vfat /dev/mmcblk0p4 /mnt/mmc
insmod g_file_storage.ko file=/dev/mmcblk0p4 stall=0 removable=1
#:dmesg | grep g_file
g_file_storage gadget: No serial-number string provided!
g_file_storage gadget-lun0: open backing file: /dev/mmcblk0p4
g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/mmcblk0p4
g_file_storage gadget: transport=Bulk-only (x50)
g_file_storage gadget: protocol=Transparent SCSI (x06)
g_file_storage gadget: VendorID=x0525, ProductID=xa4a5, Release=x0316
g_file_storage gadget: removable=1, stall=0, cdrom=0, buflen=16384
g_file_storage gadget: I/O thread pid: 283
My host linux compiuter can not detect my board....i have tried command lsusb and dmesg on my host computer nothing useful info ........
1,does the USB_ID pin need to be pull up ?
2,does my PC need to be installed driver?
3,do I need a special usb plug to connect the board and my computer??
4,what's the difference between usb mini AB receptacle and USB mini B receptacle?
5,sorry about my English
anyone help me?thanks you so much!
ps:
when i config the kernel support host only,and use a otg cable connect a U disk,it can detect the U disk
my kernel is appro ipnc 3.5