Problem assigning a 2nd IP address to an adapter
- From: "Dan McCarty" <dmccarty@xxxxxxxxx>
- Date: 18 Jul 2006 07:21:57 -0700
We have a CE device that is connected to a modem/router via USB
using RNDIS. We have the ability to download either a VxWorks or Linux
image to the modem and boot it into either mode. The modem can be soft
booted independently of the CE side. This has worked fine so far under
VxWorks.
Because of some limitations in Linux, we've had to statically assign
a 2nd IP address to the USB8023 ethernet adapter so it can talk to the
modem (which in Linux mode has its own statically-assigned IP address).
When we reboot under Linux, the USB bus resets and when Linux comes
back up I believe the USB host driver should enumerate the devices,
find device #1, and bind the ethernet adapter. The Linux boot takes
about 30 seconds.
However, after adding the 2nd IP address we've noticed a phenomenon
that has stopped us cold. The adapter gets unbound but it then goes
into an indeterminate state. The adapter icon isn't visible from the
"Network Connections" window, but the adapter symbol is visible on the
shell's start bar. Tapping the symbol to bring up the adapter dialog
shows the standard dialog, but with no information. The CE side can't
be pinged and it appears that the CE network stack is hosed at that
point. Enumerating through the available adapters show that none is
present.
At the bus level using a protocol analyzer, we find that when this
happens, CE enumerates the USB bus and finds the adapter as device #2
when it should be device #1. (Our CE side has a limitation of 1 USB
device.) A reset of CE clears up the problem, but that's not an
acceptable solution.
We need to find out why
1) CE is finding device #2 on the USB bus
2) The USB8023 driver is dying
Some notes:
- I can also make this fail with a modified unit that brings out the
USB connection out on two cables that can be physically unplugged.
Unplugging and replugging this connection works fine until I add the
2nd IP address. After that, I get about 1 - 4 unplug/replugs before
the adapter goes into the indeterminate state.
- One hunch that we've had so far is that it's a timing issue, as
our Linux image is slower than the VxWorks one.
- Is there a way to reset the USB80231 driver (not DeactivateDevice)
without unloading and reloading it?
TIA,
Dan.
.
- Prev by Date: Rotating the touch (without rotating the display)
- Next by Date: Re: eboot
- Previous by thread: Rotating the touch (without rotating the display)
- Next by thread: Re: eboot
- Index(es):
Relevant Pages
|