* Problems with USB Gadget on the OMAP3EVM
@ 2008-08-05 11:17 kanagesh radhakrishnan
2008-08-05 11:21 ` Koen Kooi
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: kanagesh radhakrishnan @ 2008-08-05 11:17 UTC (permalink / raw)
To: linux-omap
Hello,
I am trying to get USB gadget (RNDIS) working with an OMAP3EVM and a
Linux Host system. I am looking for help since I have problems
setting up the USB network between the target and host systems.
Kernel Configuration
-----------------------------
The kernel I am using is Linux-2.6.22.18. Its the release version
that comes with SDK_0.9.8 for the OMAP3EVM. The default kernel
configuration (omap3evm_defconfig) does not enable USB gadget
functionality so I have made changes as suggested in the SDK_0.9.8
User Guide to the kernel configuration. A summary is as follows:
# USB devices
-CONFIG_SND_USB_AUDIO=y
# USB Input Devices
-CONFIG_USB_HID=y
# OMAP 343x high speed USB support
-CONFIG_USB_MUSB_HOST=y
+CONFIG_USB_MUSB_PERIPHERAL=y
-CONFIG_USB_MUSB_HDRC_HCD=y
+CONFIG_USB_GADGET_MUSB_HDRC=y
# USB Device Class drivers
-CONFIG_USB_ACM=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_MON=y
# USB port drivers
-CONFIG_USB_TEST=y
# USB Gadget Support
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_SELECTED=y
+CONFIG_USB_GADGET_DUALSPEED=y
+CONFIG_USB_ETH=y
+CONFIG_USB_ETH_RNDIS=y
Running the Test
-------------------------
On the OMAP3EVM Target
#######################
On successful boot with this kernel on the target board, after
plugging in the USB cable, the following messages appear on the
console:
musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
musb_stage0_irq 722: BUS RESET
musb_stage0_irq 722: BUS RESET
musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
I then setup an IP address for the usb0 interface with the following command:
[root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
On the Linux Host machine
#######################
On insertion of the USB cable, 'dmesg' shows the following messages:
usb 1-2: new high speed USB device using address 3
usb 1-2: configuration #1 chosen from 2 choices
usb 1-2: can't set config #1, error -71
The Problem
-------------------
On an attempt to setup an IP address for the usb0 interface, I get the
following error:
usb0: unknown interface: No such device
SIOCSIFADDR: No such device
usb0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCGIFADDR: No such device
SIOCSIFBROADCAST: No such device
The Test Setup
----------------------
Host
####
Linux machine running Fedora Core 5.
Manually loaded the module usbnet.ko.
Target
#####
OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and
kernel (linux-2.6.22.18)
Dip switches (SW4) set to boot from NAND flash (01010000)
Although my end objective is to test the USB functionality with
TWL4030 USB transceiver, I wanted to verify if USB functions as
expected through ISP1504 transceiver on my board with the SDK_0.9.8.
Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
Thanks in advance,
Kanagesh.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Problems with USB Gadget on the OMAP3EVM
2008-08-05 11:17 Problems with USB Gadget on the OMAP3EVM kanagesh radhakrishnan
@ 2008-08-05 11:21 ` Koen Kooi
2008-08-06 4:55 ` kanagesh radhakrishnan
2008-08-05 11:27 ` Felipe Balbi
2008-08-05 11:37 ` Premi, Sanjeev
2 siblings, 1 reply; 12+ messages in thread
From: Koen Kooi @ 2008-08-05 11:21 UTC (permalink / raw)
To: kanagesh radhakrishnan; +Cc: linux-omap
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
Op 5 aug 2008, om 13:17 heeft kanagesh radhakrishnan het volgende
geschreven:
> Hello,
>
> I am trying to get USB gadget (RNDIS) working with an OMAP3EVM and a
> Linux Host system. I am looking for help since I have problems
> setting up the USB network between the target and host systems.
>
> Kernel Configuration
> -----------------------------
> The kernel I am using is Linux-2.6.22.18. Its the release version
> that comes with SDK_0.9.8 for the OMAP3EVM.
Have you tried the 1.0.0 sdk with 2.6.24 or linux-omap git?
regards,
Koen
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Problems with USB Gadget on the OMAP3EVM
2008-08-05 11:17 Problems with USB Gadget on the OMAP3EVM kanagesh radhakrishnan
2008-08-05 11:21 ` Koen Kooi
@ 2008-08-05 11:27 ` Felipe Balbi
2008-08-06 5:12 ` kanagesh radhakrishnan
2008-08-05 11:37 ` Premi, Sanjeev
2 siblings, 1 reply; 12+ messages in thread
From: Felipe Balbi @ 2008-08-05 11:27 UTC (permalink / raw)
To: ext kanagesh radhakrishnan; +Cc: linux-omap
Hi,
On Tue, Aug 05, 2008 at 04:47:02PM +0530, ext kanagesh radhakrishnan wrote:
> Running the Test
> -------------------------
> On the OMAP3EVM Target
> #######################
> On successful boot with this kernel on the target board, after
> plugging in the USB cable, the following messages appear on the
> console:
>
> musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
> musb_stage0_irq 722: BUS RESET
> musb_stage0_irq 722: BUS RESET
> musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
>
> I then setup an IP address for the usb0 interface with the following command:
>
> [root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
>
> On the Linux Host machine
> #######################
>
> On insertion of the USB cable, 'dmesg' shows the following messages:
>
> usb 1-2: new high speed USB device using address 3
> usb 1-2: configuration #1 chosen from 2 choices
> usb 1-2: can't set config #1, error -71
That's weird since gadget api set config 2 as your dmesg states.
usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
> The Problem
> -------------------
> On an attempt to setup an IP address for the usb0 interface, I get the
> following error:
>
> usb0: unknown interface: No such device
> SIOCSIFADDR: No such device
> usb0: unknown interface: No such device
> SIOCSIFNETMASK: No such device
> SIOCGIFADDR: No such device
> SIOCSIFBROADCAST: No such device
Looks like the problem is in the host side usbnet.ko. What kernel
version is in your host machine ?
> The Test Setup
> ----------------------
>
> Host
> ####
> Linux machine running Fedora Core 5.
> Manually loaded the module usbnet.ko.
Which kernel version is in this fedora core 5 ??
> Target
> #####
> OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and
> kernel (linux-2.6.22.18)
> Dip switches (SW4) set to boot from NAND flash (01010000)
>
>
> Although my end objective is to test the USB functionality with
> TWL4030 USB transceiver, I wanted to verify if USB functions as
> expected through ISP1504 transceiver on my board with the SDK_0.9.8.
> Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
I'd strongly suggest you to try out current linux-omap code [1] and check
if it works fine.
Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
2.6.22.18 kernel.
When you clone linux omap with:
$ git clone http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
You can make omap3_evm_defconfig and later make menuconfig to choose the
gadget driver you want.
[1] http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
--
balbi
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Problems with USB Gadget on the OMAP3EVM
2008-08-05 11:17 Problems with USB Gadget on the OMAP3EVM kanagesh radhakrishnan
2008-08-05 11:21 ` Koen Kooi
2008-08-05 11:27 ` Felipe Balbi
@ 2008-08-05 11:37 ` Premi, Sanjeev
2 siblings, 0 replies; 12+ messages in thread
From: Premi, Sanjeev @ 2008-08-05 11:37 UTC (permalink / raw)
To: kanagesh radhakrishnan, linux-omap@vger.kernel.org
Hi Kanagesh,
This list may not be aware of the SDK_0.9.8 releases you mention.
I will forward the request.
You can look at the section "Reporting Issues" in the release notes to get the mail-id for support on the SDK.
~sanjeev
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of kanagesh radhakrishnan
Sent: Tuesday, August 05, 2008 4:47 PM
To: linux-omap@vger.kernel.org
Subject: Problems with USB Gadget on the OMAP3EVM
Hello,
I am trying to get USB gadget (RNDIS) working with an OMAP3EVM and a Linux Host system. I am looking for help since I have problems setting up the USB network between the target and host systems.
Kernel Configuration
-----------------------------
The kernel I am using is Linux-2.6.22.18. Its the release version that comes with SDK_0.9.8 for the OMAP3EVM. The default kernel configuration (omap3evm_defconfig) does not enable USB gadget functionality so I have made changes as suggested in the SDK_0.9.8 User Guide to the kernel configuration. A summary is as follows:
# USB devices
-CONFIG_SND_USB_AUDIO=y
# USB Input Devices
-CONFIG_USB_HID=y
# OMAP 343x high speed USB support
-CONFIG_USB_MUSB_HOST=y
+CONFIG_USB_MUSB_PERIPHERAL=y
-CONFIG_USB_MUSB_HDRC_HCD=y
+CONFIG_USB_GADGET_MUSB_HDRC=y
# USB Device Class drivers
-CONFIG_USB_ACM=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_MON=y
# USB port drivers
-CONFIG_USB_TEST=y
# USB Gadget Support
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_SELECTED=y
+CONFIG_USB_GADGET_DUALSPEED=y
+CONFIG_USB_ETH=y
+CONFIG_USB_ETH_RNDIS=y
Running the Test
-------------------------
On the OMAP3EVM Target
#######################
On successful boot with this kernel on the target board, after plugging in the USB cable, the following messages appear on the
console:
musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0 musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET
usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS musb_stage0_irq 722: BUS RESET musb_stage0_irq 722: BUS RESET musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
I then setup an IP address for the usb0 interface with the following command:
[root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
On the Linux Host machine
#######################
On insertion of the USB cable, 'dmesg' shows the following messages:
usb 1-2: new high speed USB device using address 3 usb 1-2: configuration #1 chosen from 2 choices usb 1-2: can't set config #1, error -71
The Problem
-------------------
On an attempt to setup an IP address for the usb0 interface, I get the following error:
usb0: unknown interface: No such device
SIOCSIFADDR: No such device
usb0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCGIFADDR: No such device
SIOCSIFBROADCAST: No such device
The Test Setup
----------------------
Host
####
Linux machine running Fedora Core 5.
Manually loaded the module usbnet.ko.
Target
#####
OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and kernel (linux-2.6.22.18)
Dip switches (SW4) set to boot from NAND flash (01010000)
Although my end objective is to test the USB functionality with TWL4030 USB transceiver, I wanted to verify if USB functions as expected through ISP1504 transceiver on my board with the SDK_0.9.8.
Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
Thanks in advance,
Kanagesh.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Problems with USB Gadget on the OMAP3EVM
2008-08-05 11:21 ` Koen Kooi
@ 2008-08-06 4:55 ` kanagesh radhakrishnan
0 siblings, 0 replies; 12+ messages in thread
From: kanagesh radhakrishnan @ 2008-08-06 4:55 UTC (permalink / raw)
To: Koen Kooi; +Cc: linux-omap
On 8/5/08, Koen Kooi <k.kooi@student.utwente.nl> wrote:
>
> Op 5 aug 2008, om 13:17 heeft kanagesh radhakrishnan het volgende
> geschreven:
>
>
> > Hello,
> >
> > I am trying to get USB gadget (RNDIS) working with an OMAP3EVM and a
> > Linux Host system. I am looking for help since I have problems
> > setting up the USB network between the target and host systems.
> >
> > Kernel Configuration
> > -----------------------------
> > The kernel I am using is Linux-2.6.22.18. Its the release version
> > that comes with SDK_0.9.8 for the OMAP3EVM.
> >
>
> Have you tried the 1.0.0 sdk with 2.6.24 or linux-omap git?
>
> regards,
>
> Koen
Hello Koen,
I have just received the 1.0.0 SDK but the version of the Linux kernel
is Linux-2.6.22.18 and not Linux-2.6.24.
Thank you,
Regards,
Kanagesh
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Problems with USB Gadget on the OMAP3EVM
2008-08-05 11:27 ` Felipe Balbi
@ 2008-08-06 5:12 ` kanagesh radhakrishnan
2008-08-06 7:31 ` Felipe Balbi
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: kanagesh radhakrishnan @ 2008-08-06 5:12 UTC (permalink / raw)
To: felipe.balbi; +Cc: linux-omap
On 8/5/08, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> Hi,
>
>
> On Tue, Aug 05, 2008 at 04:47:02PM +0530, ext kanagesh radhakrishnan wrote:
> > Running the Test
> > -------------------------
> > On the OMAP3EVM Target
> > #######################
> > On successful boot with this kernel on the target board, after
> > plugging in the USB cable, the following messages appear on the
> > console:
> >
> > musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
> >
> > I then setup an IP address for the usb0 interface with the following command:
> >
> > [root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
> >
> > On the Linux Host machine
> > #######################
> >
> > On insertion of the USB cable, 'dmesg' shows the following messages:
> >
> > usb 1-2: new high speed USB device using address 3
> > usb 1-2: configuration #1 chosen from 2 choices
> > usb 1-2: can't set config #1, error -71
>
>
> That's weird since gadget api set config 2 as your dmesg states.
>
> usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
>
>
> > The Problem
> > -------------------
> > On an attempt to setup an IP address for the usb0 interface, I get the
> > following error:
> >
> > usb0: unknown interface: No such device
> > SIOCSIFADDR: No such device
> > usb0: unknown interface: No such device
> > SIOCSIFNETMASK: No such device
> > SIOCGIFADDR: No such device
> > SIOCSIFBROADCAST: No such device
>
>
> Looks like the problem is in the host side usbnet.ko. What kernel
> version is in your host machine ?
>
>
> > The Test Setup
> > ----------------------
> >
> > Host
> > ####
> > Linux machine running Fedora Core 5.
> > Manually loaded the module usbnet.ko.
>
>
> Which kernel version is in this fedora core 5 ??
>
>
> > Target
> > #####
> > OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and
> > kernel (linux-2.6.22.18)
> > Dip switches (SW4) set to boot from NAND flash (01010000)
> >
> >
> > Although my end objective is to test the USB functionality with
> > TWL4030 USB transceiver, I wanted to verify if USB functions as
> > expected through ISP1504 transceiver on my board with the SDK_0.9.8.
> > Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
>
>
> I'd strongly suggest you to try out current linux-omap code [1] and check
> if it works fine.
>
> Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
> 2.6.22.18 kernel.
>
> When you clone linux omap with:
>
> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
>
> You can make omap3_evm_defconfig and later make menuconfig to choose the
> gadget driver you want.
>
> [1] http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
>
> --
>
> balbi
>
Hello everyone,
Thank you very much for the comments and suggestions.
The version of Linux kernel on the native host Fedora Core 5 machine
is the default 2.6.9-1.667 kernel that comes with the FC5 release.
Keeping in mind where we are, this does sound like an ancient kernel.
However, I have USB networking with Gadget drivers working on this
same machine with OMAP5912 OSK, OMAP2430 SDP and another custom
OMAP2430 based board.
Nevertheless, I decided to upgrade to a more recent version of the
Linux kernel on the host system. I will test the setup once again and
update the observation.
Meanwhile, I tested the setup with a Windows XP host machine and these
are the observations:
On insertion of the USB cable to the Win XP host machine, the OMAP3EVM
board gets detected as 'RNDIS/Ethernet' Device. I go through the
driver installation (driver used is file Documentation/usb/linux.inf
from the standard Linux kernel sources). After the installation is
complete, I get an error from the Windows XP system saying "An error
was encountered while installing the driver and the hardware might not
function as intended"
Thank you all,
Regards,
Kanagesh
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Problems with USB Gadget on the OMAP3EVM
2008-08-06 5:12 ` kanagesh radhakrishnan
@ 2008-08-06 7:31 ` Felipe Balbi
2008-08-06 7:57 ` Gadiyar, Anand
2008-08-06 12:42 ` Gupta, Ajay Kumar
2 siblings, 0 replies; 12+ messages in thread
From: Felipe Balbi @ 2008-08-06 7:31 UTC (permalink / raw)
To: kanagesh radhakrishnan; +Cc: felipe.balbi, linux-omap
On Wed, Aug 06, 2008 at 10:42:40AM +0530, kanagesh radhakrishnan wrote:
> The version of Linux kernel on the native host Fedora Core 5 machine
> is the default 2.6.9-1.667 kernel that comes with the FC5 release.
> Keeping in mind where we are, this does sound like an ancient kernel.
> However, I have USB networking with Gadget drivers working on this
> same machine with OMAP5912 OSK, OMAP2430 SDP and another custom
> OMAP2430 based board.
>
> Nevertheless, I decided to upgrade to a more recent version of the
> Linux kernel on the host system. I will test the setup once again and
> update the observation.
Cool, would be nice to try current linux-omap git tree as well for your
omap3emv board :-)
> Meanwhile, I tested the setup with a Windows XP host machine and these
> are the observations:
> On insertion of the USB cable to the Win XP host machine, the OMAP3EVM
> board gets detected as 'RNDIS/Ethernet' Device. I go through the
> driver installation (driver used is file Documentation/usb/linux.inf
> from the standard Linux kernel sources). After the installation is
> complete, I get an error from the Windows XP system saying "An error
> was encountered while installing the driver and the hardware might not
> function as intended"
Did you give usb0 an ip on the gadget side ?
--
balbi
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Problems with USB Gadget on the OMAP3EVM
2008-08-06 5:12 ` kanagesh radhakrishnan
2008-08-06 7:31 ` Felipe Balbi
@ 2008-08-06 7:57 ` Gadiyar, Anand
2008-08-06 9:21 ` Felipe Balbi
2008-08-06 12:42 ` Gupta, Ajay Kumar
2 siblings, 1 reply; 12+ messages in thread
From: Gadiyar, Anand @ 2008-08-06 7:57 UTC (permalink / raw)
To: kanagesh radhakrishnan, felipe.balbi@nokia.com; +Cc: linux-omap@vger.kernel.org
> > Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
> > 2.6.22.18 kernel.
> >
Don't bother re-building the kernel. You could just do an
"echo D3 > /proc/driver/musb_hdrc"
or even D5 for more detail. If low-level debug is not enabled, you can
"echo 8 > /proc/sys/kernel/printk"
and you should be able to see the debug prints.
Those might be useful. This should work on the linux-omap kernel as well.
By the way, does g_file_storage work on this board?
- Anand
> Hello everyone,
>
> Thank you very much for the comments and suggestions.
>
> The version of Linux kernel on the native host Fedora Core 5 machine
> is the default 2.6.9-1.667 kernel that comes with the FC5 release.
> Keeping in mind where we are, this does sound like an ancient kernel.
> However, I have USB networking with Gadget drivers working on this
> same machine with OMAP5912 OSK, OMAP2430 SDP and another custom
> OMAP2430 based board.
>
> Nevertheless, I decided to upgrade to a more recent version of the
> Linux kernel on the host system. I will test the setup once again and
> update the observation.
>
> Meanwhile, I tested the setup with a Windows XP host machine and these
> are the observations:
> On insertion of the USB cable to the Win XP host machine, the OMAP3EVM
> board gets detected as 'RNDIS/Ethernet' Device. I go through the
> driver installation (driver used is file Documentation/usb/linux.inf
> from the standard Linux kernel sources). After the installation is
> complete, I get an error from the Windows XP system saying "An error
> was encountered while installing the driver and the hardware might not
> function as intended"
>
> Thank you all,
> Regards,
> Kanagesh
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Problems with USB Gadget on the OMAP3EVM
2008-08-06 7:57 ` Gadiyar, Anand
@ 2008-08-06 9:21 ` Felipe Balbi
0 siblings, 0 replies; 12+ messages in thread
From: Felipe Balbi @ 2008-08-06 9:21 UTC (permalink / raw)
To: ext Gadiyar, Anand
Cc: kanagesh radhakrishnan, felipe.balbi@nokia.com,
linux-omap@vger.kernel.org
On Wed, Aug 06, 2008 at 01:27:40PM +0530, ext Gadiyar, Anand wrote:
> > > Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
> > > 2.6.22.18 kernel.
> > >
>
> Don't bother re-building the kernel. You could just do an
> "echo D3 > /proc/driver/musb_hdrc"
> or even D5 for more detail. If low-level debug is not enabled, you can
> "echo 8 > /proc/sys/kernel/printk"
> and you should be able to see the debug prints.
>
> Those might be useful. This should work on the linux-omap kernel as well.
>
> By the way, does g_file_storage work on this board?
Didn't know you guys had that on your tree as well. Good to know :-)
--
balbi
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Problems with USB Gadget on the OMAP3EVM
2008-08-06 5:12 ` kanagesh radhakrishnan
2008-08-06 7:31 ` Felipe Balbi
2008-08-06 7:57 ` Gadiyar, Anand
@ 2008-08-06 12:42 ` Gupta, Ajay Kumar
2008-08-06 13:00 ` TK, Pratheesh Gangadhar
2 siblings, 1 reply; 12+ messages in thread
From: Gupta, Ajay Kumar @ 2008-08-06 12:42 UTC (permalink / raw)
To: kanagesh radhakrishnan; +Cc: linux-omap@vger.kernel.org
Kanagesh,
I tested it with Windows XP machine and it works all fine. I had to use linux.inf file which is at
Documetation\usb\ folder.
linux.inf file should have same VID/PID as reported by gadget rndis driver to host.
Regards,
Ajay
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of kanagesh radhakrishnan
Sent: Wednesday, August 06, 2008 10:43 AM
To: felipe.balbi@nokia.com
Cc: linux-omap@vger.kernel.org
Subject: Re: Problems with USB Gadget on the OMAP3EVM
On 8/5/08, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> Hi,
>
>
> On Tue, Aug 05, 2008 at 04:47:02PM +0530, ext kanagesh radhakrishnan wrote:
> > Running the Test
> > -------------------------
> > On the OMAP3EVM Target
> > #######################
> > On successful boot with this kernel on the target board, after
> > plugging in the USB cable, the following messages appear on the
> > console:
> >
> > musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
> >
> > I then setup an IP address for the usb0 interface with the following command:
> >
> > [root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
> >
> > On the Linux Host machine
> > #######################
> >
> > On insertion of the USB cable, 'dmesg' shows the following messages:
> >
> > usb 1-2: new high speed USB device using address 3
> > usb 1-2: configuration #1 chosen from 2 choices
> > usb 1-2: can't set config #1, error -71
>
>
> That's weird since gadget api set config 2 as your dmesg states.
>
> usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
>
>
> > The Problem
> > -------------------
> > On an attempt to setup an IP address for the usb0 interface, I get the
> > following error:
> >
> > usb0: unknown interface: No such device
> > SIOCSIFADDR: No such device
> > usb0: unknown interface: No such device
> > SIOCSIFNETMASK: No such device
> > SIOCGIFADDR: No such device
> > SIOCSIFBROADCAST: No such device
>
>
> Looks like the problem is in the host side usbnet.ko. What kernel
> version is in your host machine ?
>
>
> > The Test Setup
> > ----------------------
> >
> > Host
> > ####
> > Linux machine running Fedora Core 5.
> > Manually loaded the module usbnet.ko.
>
>
> Which kernel version is in this fedora core 5 ??
>
>
> > Target
> > #####
> > OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and
> > kernel (linux-2.6.22.18)
> > Dip switches (SW4) set to boot from NAND flash (01010000)
> >
> >
> > Although my end objective is to test the USB functionality with
> > TWL4030 USB transceiver, I wanted to verify if USB functions as
> > expected through ISP1504 transceiver on my board with the SDK_0.9.8.
> > Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
>
>
> I'd strongly suggest you to try out current linux-omap code [1] and check
> if it works fine.
>
> Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
> 2.6.22.18 kernel.
>
> When you clone linux omap with:
>
> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
>
> You can make omap3_evm_defconfig and later make menuconfig to choose the
> gadget driver you want.
>
> [1] http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
>
> --
>
> balbi
>
Hello everyone,
Thank you very much for the comments and suggestions.
The version of Linux kernel on the native host Fedora Core 5 machine
is the default 2.6.9-1.667 kernel that comes with the FC5 release.
Keeping in mind where we are, this does sound like an ancient kernel.
However, I have USB networking with Gadget drivers working on this
same machine with OMAP5912 OSK, OMAP2430 SDP and another custom
OMAP2430 based board.
Nevertheless, I decided to upgrade to a more recent version of the
Linux kernel on the host system. I will test the setup once again and
update the observation.
Meanwhile, I tested the setup with a Windows XP host machine and these
are the observations:
On insertion of the USB cable to the Win XP host machine, the OMAP3EVM
board gets detected as 'RNDIS/Ethernet' Device. I go through the
driver installation (driver used is file Documentation/usb/linux.inf
from the standard Linux kernel sources). After the installation is
complete, I get an error from the Windows XP system saying "An error
was encountered while installing the driver and the hardware might not
function as intended"
Thank you all,
Regards,
Kanagesh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Problems with USB Gadget on the OMAP3EVM
2008-08-06 12:42 ` Gupta, Ajay Kumar
@ 2008-08-06 13:00 ` TK, Pratheesh Gangadhar
2008-08-07 3:51 ` Gupta, Ajay Kumar
0 siblings, 1 reply; 12+ messages in thread
From: TK, Pratheesh Gangadhar @ 2008-08-06 13:00 UTC (permalink / raw)
To: Gupta, Ajay Kumar, kanagesh radhakrishnan; +Cc: linux-omap@vger.kernel.org
Kanagesh,
You can give it a shot using a different cable - I have seen similar issues when using a faulty cable.
Regards,
Pratheesh
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Gupta, Ajay Kumar
Sent: Wednesday, August 06, 2008 6:12 PM
To: kanagesh radhakrishnan
Cc: linux-omap@vger.kernel.org
Subject: RE: Problems with USB Gadget on the OMAP3EVM
Kanagesh,
I tested it with Windows XP machine and it works all fine. I had to use linux.inf file which is at
Documetation\usb\ folder.
linux.inf file should have same VID/PID as reported by gadget rndis driver to host.
Regards,
Ajay
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of kanagesh radhakrishnan
Sent: Wednesday, August 06, 2008 10:43 AM
To: felipe.balbi@nokia.com
Cc: linux-omap@vger.kernel.org
Subject: Re: Problems with USB Gadget on the OMAP3EVM
On 8/5/08, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> Hi,
>
>
> On Tue, Aug 05, 2008 at 04:47:02PM +0530, ext kanagesh radhakrishnan wrote:
> > Running the Test
> > -------------------------
> > On the OMAP3EVM Target
> > #######################
> > On successful boot with this kernel on the target board, after
> > plugging in the USB cable, the following messages appear on the
> > console:
> >
> > musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
> >
> > I then setup an IP address for the usb0 interface with the following command:
> >
> > [root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
> >
> > On the Linux Host machine
> > #######################
> >
> > On insertion of the USB cable, 'dmesg' shows the following messages:
> >
> > usb 1-2: new high speed USB device using address 3
> > usb 1-2: configuration #1 chosen from 2 choices
> > usb 1-2: can't set config #1, error -71
>
>
> That's weird since gadget api set config 2 as your dmesg states.
>
> usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
>
>
> > The Problem
> > -------------------
> > On an attempt to setup an IP address for the usb0 interface, I get the
> > following error:
> >
> > usb0: unknown interface: No such device
> > SIOCSIFADDR: No such device
> > usb0: unknown interface: No such device
> > SIOCSIFNETMASK: No such device
> > SIOCGIFADDR: No such device
> > SIOCSIFBROADCAST: No such device
>
>
> Looks like the problem is in the host side usbnet.ko. What kernel
> version is in your host machine ?
>
>
> > The Test Setup
> > ----------------------
> >
> > Host
> > ####
> > Linux machine running Fedora Core 5.
> > Manually loaded the module usbnet.ko.
>
>
> Which kernel version is in this fedora core 5 ??
>
>
> > Target
> > #####
> > OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and
> > kernel (linux-2.6.22.18)
> > Dip switches (SW4) set to boot from NAND flash (01010000)
> >
> >
> > Although my end objective is to test the USB functionality with
> > TWL4030 USB transceiver, I wanted to verify if USB functions as
> > expected through ISP1504 transceiver on my board with the SDK_0.9.8.
> > Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
>
>
> I'd strongly suggest you to try out current linux-omap code [1] and check
> if it works fine.
>
> Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
> 2.6.22.18 kernel.
>
> When you clone linux omap with:
>
> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
>
> You can make omap3_evm_defconfig and later make menuconfig to choose the
> gadget driver you want.
>
> [1] http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
>
> --
>
> balbi
>
Hello everyone,
Thank you very much for the comments and suggestions.
The version of Linux kernel on the native host Fedora Core 5 machine
is the default 2.6.9-1.667 kernel that comes with the FC5 release.
Keeping in mind where we are, this does sound like an ancient kernel.
However, I have USB networking with Gadget drivers working on this
same machine with OMAP5912 OSK, OMAP2430 SDP and another custom
OMAP2430 based board.
Nevertheless, I decided to upgrade to a more recent version of the
Linux kernel on the host system. I will test the setup once again and
update the observation.
Meanwhile, I tested the setup with a Windows XP host machine and these
are the observations:
On insertion of the USB cable to the Win XP host machine, the OMAP3EVM
board gets detected as 'RNDIS/Ethernet' Device. I go through the
driver installation (driver used is file Documentation/usb/linux.inf
from the standard Linux kernel sources). After the installation is
complete, I get an error from the Windows XP system saying "An error
was encountered while installing the driver and the hardware might not
function as intended"
Thank you all,
Regards,
Kanagesh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Problems with USB Gadget on the OMAP3EVM
2008-08-06 13:00 ` TK, Pratheesh Gangadhar
@ 2008-08-07 3:51 ` Gupta, Ajay Kumar
0 siblings, 0 replies; 12+ messages in thread
From: Gupta, Ajay Kumar @ 2008-08-07 3:51 UTC (permalink / raw)
To: TK, Pratheesh Gangadhar, kanagesh radhakrishnan
Cc: linux-omap@vger.kernel.org
I used USB cable with Mini-B plug inserted to OMAP EVM and standard-A plug inserted to Host PC.
Regards,
Ajay
-----Original Message-----
From: TK, Pratheesh Gangadhar
Sent: Wednesday, August 06, 2008 6:31 PM
To: Gupta, Ajay Kumar; kanagesh radhakrishnan
Cc: linux-omap@vger.kernel.org
Subject: RE: Problems with USB Gadget on the OMAP3EVM
Kanagesh,
You can give it a shot using a different cable - I have seen similar issues when using a faulty cable.
Regards,
Pratheesh
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Gupta, Ajay Kumar
Sent: Wednesday, August 06, 2008 6:12 PM
To: kanagesh radhakrishnan
Cc: linux-omap@vger.kernel.org
Subject: RE: Problems with USB Gadget on the OMAP3EVM
Kanagesh,
I tested it with Windows XP machine and it works all fine. I had to use linux.inf file which is at
Documetation\usb\ folder.
linux.inf file should have same VID/PID as reported by gadget rndis driver to host.
Regards,
Ajay
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of kanagesh radhakrishnan
Sent: Wednesday, August 06, 2008 10:43 AM
To: felipe.balbi@nokia.com
Cc: linux-omap@vger.kernel.org
Subject: Re: Problems with USB Gadget on the OMAP3EVM
On 8/5/08, Felipe Balbi <felipe.balbi@nokia.com> wrote:
> Hi,
>
>
> On Tue, Aug 05, 2008 at 04:47:02PM +0530, ext kanagesh radhakrishnan wrote:
> > Running the Test
> > -------------------------
> > On the OMAP3EVM Target
> > #######################
> > On successful boot with this kernel on the target board, after
> > plugging in the USB cable, the following messages appear on the
> > console:
> >
> > musb_stage2_irq 863: SUSPEND (b_idle) devctl 99 power e0
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
> > musb_stage0_irq 722: BUS RESET
> > musb_stage0_irq 722: BUS RESET
> > musb_stage2_irq 863: SUSPEND (b_peripheral) devctl 99 power f0
> >
> > I then setup an IP address for the usb0 interface with the following command:
> >
> > [root@OMAP3EVM /]# /sbin/ifconfig usb0 192.168.1.1 up netmask 255.255.255.0
> >
> > On the Linux Host machine
> > #######################
> >
> > On insertion of the USB cable, 'dmesg' shows the following messages:
> >
> > usb 1-2: new high speed USB device using address 3
> > usb 1-2: configuration #1 chosen from 2 choices
> > usb 1-2: can't set config #1, error -71
>
>
> That's weird since gadget api set config 2 as your dmesg states.
>
> usb0: high speed config #2: 100 mA, Ethernet Gadget, using RNDIS
>
>
> > The Problem
> > -------------------
> > On an attempt to setup an IP address for the usb0 interface, I get the
> > following error:
> >
> > usb0: unknown interface: No such device
> > SIOCSIFADDR: No such device
> > usb0: unknown interface: No such device
> > SIOCSIFNETMASK: No such device
> > SIOCGIFADDR: No such device
> > SIOCSIFBROADCAST: No such device
>
>
> Looks like the problem is in the host side usbnet.ko. What kernel
> version is in your host machine ?
>
>
> > The Test Setup
> > ----------------------
> >
> > Host
> > ####
> > Linux machine running Fedora Core 5.
> > Manually loaded the module usbnet.ko.
>
>
> Which kernel version is in this fedora core 5 ??
>
>
> > Target
> > #####
> > OMAP3EVM running OMAP35x_SDK_0.9.8 firmware: x-load, u-boot and
> > kernel (linux-2.6.22.18)
> > Dip switches (SW4) set to boot from NAND flash (01010000)
> >
> >
> > Although my end objective is to test the USB functionality with
> > TWL4030 USB transceiver, I wanted to verify if USB functions as
> > expected through ISP1504 transceiver on my board with the SDK_0.9.8.
> > Has anyone tested the USB Gadget setup on the OMAP3EVM boards?
>
>
> I'd strongly suggest you to try out current linux-omap code [1] and check
> if it works fine.
>
> Also increase MUSB_LOGLEVEL to 3 in your .config file and reabuild that
> 2.6.22.18 kernel.
>
> When you clone linux omap with:
>
> $ git clone http://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
>
> You can make omap3_evm_defconfig and later make menuconfig to choose the
> gadget driver you want.
>
> [1] http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
>
> --
>
> balbi
>
Hello everyone,
Thank you very much for the comments and suggestions.
The version of Linux kernel on the native host Fedora Core 5 machine
is the default 2.6.9-1.667 kernel that comes with the FC5 release.
Keeping in mind where we are, this does sound like an ancient kernel.
However, I have USB networking with Gadget drivers working on this
same machine with OMAP5912 OSK, OMAP2430 SDP and another custom
OMAP2430 based board.
Nevertheless, I decided to upgrade to a more recent version of the
Linux kernel on the host system. I will test the setup once again and
update the observation.
Meanwhile, I tested the setup with a Windows XP host machine and these
are the observations:
On insertion of the USB cable to the Win XP host machine, the OMAP3EVM
board gets detected as 'RNDIS/Ethernet' Device. I go through the
driver installation (driver used is file Documentation/usb/linux.inf
from the standard Linux kernel sources). After the installation is
complete, I get an error from the Windows XP system saying "An error
was encountered while installing the driver and the hardware might not
function as intended"
Thank you all,
Regards,
Kanagesh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-08-07 3:51 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 11:17 Problems with USB Gadget on the OMAP3EVM kanagesh radhakrishnan
2008-08-05 11:21 ` Koen Kooi
2008-08-06 4:55 ` kanagesh radhakrishnan
2008-08-05 11:27 ` Felipe Balbi
2008-08-06 5:12 ` kanagesh radhakrishnan
2008-08-06 7:31 ` Felipe Balbi
2008-08-06 7:57 ` Gadiyar, Anand
2008-08-06 9:21 ` Felipe Balbi
2008-08-06 12:42 ` Gupta, Ajay Kumar
2008-08-06 13:00 ` TK, Pratheesh Gangadhar
2008-08-07 3:51 ` Gupta, Ajay Kumar
2008-08-05 11:37 ` Premi, Sanjeev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.