Board swapping between usb0 and usb1?

21 views
Skip to first unread message

Stuart Longland

unread,
Dec 24, 2017, 5:41:14 PM12/24/17
to BeagleBoard
Hi all,

Is there a way to turn off one of the USB CDC-ether gadgets? My board
and laptop seem to switch between using usb0 and usb1… just before I was
connected via SSH to 192.168.7.2, with my laptop on .1… all fine.

Set up a default route via 192.168.7.1, and had my laptop routing to the
Internet, `apt-get update` was running, all was well. Then it froze. I
disconnect SSH (using the ~. exit sequence; thank-you UUCP) and try to
re-connect.

SSH wouldn't let me back in… I try 192.168.6.2, and lo and behold, it
works, but I then had to blow away my previous default route and set up
192.168.6.1 as my default route.

The address seems indeterminate, with my laptop (running Gentoo) seeing
both interfaces. It's a race condition as to which will initialise
first. From what I gather; one is meant for that legacy OS from Redmond
and the other is meant for "everyone else".

Is there a preferred interface I should be using?

Regards,
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

David Lechner

unread,
Dec 26, 2017, 12:13:00 PM12/26/17
to beagl...@googlegroups.com, Stuart Longland
On 12/24/2017 04:40 PM, Stuart Longland wrote:
> Hi all,
>
> Is there a way to turn off one of the USB CDC-ether gadgets? My board
> and laptop seem to switch between using usb0 and usb1… just before I was
> connected via SSH to 192.168.7.2, with my laptop on .1… all fine.
>
> Set up a default route via 192.168.7.1, and had my laptop routing to the
> Internet, `apt-get update` was running, all was well. Then it froze. I
> disconnect SSH (using the ~. exit sequence; thank-you UUCP) and try to
> re-connect.
>
> SSH wouldn't let me back in… I try 192.168.6.2, and lo and behold, it
> works, but I then had to blow away my previous default route and set up
> 192.168.6.1 as my default route.
>
> The address seems indeterminate, with my laptop (running Gentoo) seeing
> both interfaces. It's a race condition as to which will initialise
> first. From what I gather; one is meant for that legacy OS from Redmond
> and the other is meant for "everyone else".
>
> Is there a preferred interface I should be using?
>
> Regards,

There are some threads about this already that may have more details. On
Linux, the CDC should be preferred over RNDIS.

You can try commenting out the line

    ln -s functions/rndis.usb0 configs/c.1/

and probably also just below comment out

    usb1="enable"

in /opt/scripts/boot/am335x_evm.sh

Stuart Longland

unread,
Dec 26, 2017, 3:59:49 PM12/26/17
to David Lechner, beagl...@googlegroups.com
On 27/12/17 03:12, David Lechner wrote:
>>
>
> There are some threads about this already that may have more details. On
> Linux, the CDC should be preferred over RNDIS.
>
> You can try commenting out the line
>
>     ln -s functions/rndis.usb0 configs/c.1/
>
> and probably also just below comment out
>
>     usb1="enable"
>
> in /opt/scripts/boot/am335x_evm.sh

No problems, I'll give this a shot in a few days when I'm next home.
Reply all
Reply to author
Forward
0 new messages