Hi Swami, I have booted the 'default' kernel (built with the arch/arm/configs/davinci_dm644x_defconfig file). This has the USB host controller + USB mass storage capability built in (so no kernel modules). I then set J7 to 2-3 (host mode) - I had the jumper the other way. The wording in the technical reference manual really needs clarifying. Paragraph 3.2.7 is entitled J7, USB Host/Client Termination and then the description talks about 3.3V & 0V without stating which is which. A simple 1-2 = client 2-3 = host would help a lot - as a user I don't care what the voltage is I want to know what the link does ;-) Anyway it recognised a USB key without issue (with J7 set 2-3). I then switched J7 to 1-2 and booted the 'gadget' kernel - and nothing happens when plugging in the host as per yesterday. Incidentally the DM6446 is not the same board as yesterday as I had to give that one back. Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/>
________________________________ From: Subbrathnam, Swaminathan [mailto:[EMAIL PROTECTED] Sent: 01 July 2008 08:01 To: Phil Quiney; [email protected] Subject: RE: DM6446 in USB Gadget mode Phil, Can you confirm that your USB port on your DM6446 is functioning ? Can you put the same in Host mode and work with the devices ? It seems from the symptom that there seems to be some EVM issue on your DM6446 EVM. Regards Swami PSP downloads at : http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php <http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php> Office : +91-80-25048629 ________________________________ From: Phil Quiney [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 8:59 PM To: Subbrathnam, Swaminathan; [email protected] Subject: RE: DM6446 in USB Gadget mode Hi Swami, I have buzzed the cable and pin 1 connects to pin 1 at the other end....which is what I expected (or rather hoped for). When I say I do not see the connection, I refer to the kernel output on the DM6446. On the DM355 as soon as I plug in the USB - it prints some output on the console. (This is some diagnostic printout I added to the gadget driver - although the 'full speed config #1' bit isn't my code so the 'stock' driver should also print this message.) g_file_storage gadget: USB Add g_file_storage gadget: full speed config #1 The DM6446 outputs nothing. Also the host end (a linux box) does not see the connection either. This PC works fine with other peripherals (including the DM355). For reference 'dmesg' on the host end for the DM355 'gadget'.... usb 1-1: new full speed USB device using uhci_hcd and address 6 usb 1-1: configuration #1 chosen from 1 choice scsi3 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning Vendor: Trinity Model: DID Rev: 1234 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sda: 512000 512-byte hdwr sectors (262 MB) sda: Write Protect is off sda: Mode Sense: 00 00 00 00 sda: assuming drive cache: write through SCSI device sda: 512000 512-byte hdwr sectors (262 MB) sda: Write Protect is off sda: Mode Sense: 00 00 00 00 sda: assuming drive cache: write through sda: sda1 sd 3:0:0:0: Attached scsi removable disk sda usb-storage: device scan complete ..again nothing for the DM6446. Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/> ________________________________ From: Subbrathnam, Swaminathan [mailto:[EMAIL PROTECTED] Sent: 30 June 2008 15:25 To: Phil Quiney; [email protected] Subject: RE: DM6446 in USB Gadget mode Phil. When you say PC did not see the connection do you mean to say that you did not see a HDD in your explorer window on the PC ? You require only the g_file_storage module for File storage gadget. Regards Swami PSP downloads at : http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php <http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php> Office : +91-80-25048629 ________________________________ From: Phil Quiney [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 7:44 PM To: Subbrathnam, Swaminathan; [email protected] Subject: RE: DM6446 in USB Gadget mode Hi Swami, You were right, the J7 setting was 1-2 (Host). I switched J7 to 2-3 and the 5V was no longer present on the connector, however when I plugged the board in to a PC it did not see the connection. Do I need any other modules for the gadget mode to work other than the 'g_file_storage' one? Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/> ________________________________ From: Subbrathnam, Swaminathan [mailto:[EMAIL PROTECTED] Sent: 30 June 2008 14:52 To: Phil Quiney; [email protected] Subject: RE: DM6446 in USB Gadget mode Phil, What is your configuration of the J7 jumper on DM6446 EVM ? If it is set to the Host mode then your observation on the TP60 at 5V is probably correct. If so you need to move the J7 jumper to the Device mode and then DM6446 will work as Gadget without issues. Regards Swami PSP downloads at : http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php <http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php> Office : +91-80-25048629 ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Quiney Sent: Monday, June 30, 2008 7:13 PM To: [email protected] Subject: DM6446 in USB Gadget mode Hi, We have a requirement for using a DM6446 in USB gadget mode to connect to a PC. Ignoring the 'incorrect' connector problem I have built the kernel with the USB stack built in gadget mode - here is the snippet from the kernel config (full config attached). The kernel is the 2.6.10 'unified' kernel (from mvl_4_0_1_demo_lsp_setuplinux_01_20_00_014.bin) # # DaVinci 644x USB support # # CONFIG_USB_MUSB_HOST is not set CONFIG_USB_MUSB_PERIPHERAL=y # CONFIG_USB_MUSB_OTG is not set CONFIG_USB_GADGET_MUSB_HDRC=y # CONFIG_USB_INVENTRA_FIFO is not set # CONFIG_USB_INVENTRA_DMA is not set CONFIG_USB_TI_CPPI_DMA=y CONFIG_USB_INVENTRA_STATIC_CONFIG=y CONFIG_USB_INVENTRA_HCD_LOGGING=0 Before connecting to the PC but with the file backed storeage gadget module loaded, I checked the voltage (on TP 60) expecting 0V but got 5V which is the 5V supplied to the USB connector. Can somebody please confirm that this is correct as my (somewhat limited) understanding of USB is that the host end will supply the 5V which if true, suggests that the gadget mode is not working correctly. I compared outputs with a DM355 with the kernel built the same and this does not have 5V on the connector at all. The DM355 works as a gadget with no problems incidentally. I have studied the circuit diagram for the DM6446 and can see that there is a i2c device that controls whether or not the 5V is turned on - what I do not know is where/how this piece of hardware is driven. Any pointers would be welcome.... Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/>
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
