Skip to contentSkip to conversation

Problems with USB Gadget on the OMAP3EVM

DISCUSSION kanagesh radhakrishnan 8 participants 12 messages Aug 5, 2008 – Aug 7, 2008

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

Op 5 aug 2008, om 13:17 heeft kanagesh radhakrishnan het volgende geschreven:

Quoted 10 lines

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

#3 lore raw
In reply to kanagesh radhakrishnan

Hi,

Quoted 26 lines · ext kanagesh radhakrishnan

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

Quoted 8 lines

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

Quoted 11 lines

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 ?

Quoted 7 lines

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 ??

Quoted 11 lines

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

Signature · 1 line
balbi
#11 lore raw
In reply to kanagesh radhakrishnan

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: [email protected] [mailto:[email protected]] On Behalf Of kanagesh radhakrishnan
Sent: Tuesday, August 05, 2008 4:47 PM
To: [email protected]
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Koen Kooi
Quoted 17 lines · Koen Kooi

Op 5 aug 2008, om 13:17 heeft kanagesh radhakrishnan het volgende
geschreven:

Quoted 11 lines

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.

Quoted 5 lines

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

#4 lore raw
In reply to Felipe Balbi
Quoted 97 lines · Felipe Balbi

Hi,

Quoted 26 lines · ext kanagesh radhakrishnan

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

Quoted 8 lines

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

Quoted 11 lines

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 ?

Quoted 7 lines

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 ??

Quoted 11 lines

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
Quoted 9 lines

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

#5 lore raw
Quoted 10 lines · kanagesh radhakrishnan

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 :-)

Quoted 9 lines

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 ?

Signature · 1 line
balbi
#6 lore raw
In reply to kanagesh radhakrishnan
Quoted 3 lines
Quoted 3 lines

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

Quoted 28 lines

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

#7 lore raw
Quoted 10 lines · Anand
Quoted 3 lines
Quoted 3 lines

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.

Quoted 3 lines

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 :-)

Signature · 1 line
balbi
#8 lore raw
In reply to kanagesh radhakrishnan

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: [email protected] [mailto:[email protected]] On Behalf Of kanagesh radhakrishnan
Sent: Wednesday, August 06, 2008 10:43 AM
To: [email protected]
Cc: [email protected]
Subject: Re: Problems with USB Gadget on the OMAP3EVM

Quoted 97 lines · Felipe Balbi

Hi,

Quoted 26 lines · ext kanagesh radhakrishnan

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

Quoted 8 lines

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

Quoted 11 lines

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 ?

Quoted 7 lines

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 ??

Quoted 11 lines

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
Quoted 9 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw

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: [email protected] [mailto:[email protected]] On Behalf Of Gupta, Ajay Kumar
Sent: Wednesday, August 06, 2008 6:12 PM
To: kanagesh radhakrishnan
Cc: [email protected]
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: [email protected] [mailto:[email protected]] On Behalf Of kanagesh radhakrishnan
Sent: Wednesday, August 06, 2008 10:43 AM
To: [email protected]
Cc: [email protected]
Subject: Re: Problems with USB Gadget on the OMAP3EVM

Quoted 97 lines · Felipe Balbi

Hi,

Quoted 26 lines · ext kanagesh radhakrishnan

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

Quoted 8 lines

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

Quoted 11 lines

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 ?

Quoted 7 lines

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 ??

Quoted 11 lines

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
Quoted 9 lines

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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw

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: [email protected]
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: [email protected] [mailto:[email protected]] On Behalf Of Gupta, Ajay Kumar
Sent: Wednesday, August 06, 2008 6:12 PM
To: kanagesh radhakrishnan
Cc: [email protected]
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: [email protected] [mailto:[email protected]] On Behalf Of kanagesh radhakrishnan
Sent: Wednesday, August 06, 2008 10:43 AM
To: [email protected]
Cc: [email protected]
Subject: Re: Problems with USB Gadget on the OMAP3EVM

Quoted 97 lines · Felipe Balbi

Hi,

Quoted 26 lines · ext kanagesh radhakrishnan

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

Quoted 8 lines

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

Quoted 11 lines

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 ?

Quoted 7 lines

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 ??

Quoted 11 lines

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
Quoted 9 lines

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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html