network over usb on osx

i am not able to get me beagleboard network up and running.
i can connect to the board with screen /dev/tty.usbserial-*B 115200
but any attempt to get the network up ends with something like this.

root@beaglebone:~# /etc/init.d/networking restart
Reconfiguring network interfaces... [ 609.314268] PHY 0:00 not found
[ 609.317632] PHY 0:01 not found
udhcpc (v1.19.3) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.

Does anybody now how to fix this? Thanks a lot.

This sounds like a BeagleBone. You may have a bad reset switch. Check for a description here:

http://circuitco.com/support/index.php?title=BeagleBone#Known_Issues

You willalos need the R219 fix, but with it not finding the first PHY, I am leaning toward it having the reset button issue as well.

Gerald

Hi Gerald, thanks a lot for your help and yes i am using a beaglebone Rev. A4
so the link to circuitco.com was very helpful.

I read the section about the known issues with ethernet / rev. A4 boards but how
does the R219 or the reset switch problem affect a ethernet over usb connection via
the RNDIS/Ethernet Gadget?

Maybe i am missing some important information here. So any help is appreciated.

stiwi

It does not affect RNDIS but will affect Ethernet. If you never plan to connect the ethernet ever, then you could just ignore them. RNDIS works fine if setup roperly on the Host., Make sure you eject the board before you try RNDIS or it will not work.

Gerald

Ok. Cool. So it should be possible to update the beaglebone with opkg update and opkg install xxx via RNDIS?

Right now i can connect to the board with "screen /dev/tty.usbserial-*B 115200" and watch the boot sequence.
After a few seconds the beaglebone disk mounts and after unmount i can connect via ssh to the board.
Also the bonjour services and cloud9 IDE seem to work just fine. But networking (e.g. ping google.com) still does not work.

Where can i find information about proper RNDIS (DHCP / DNS) setup on OSX. Thanks a lot.

stiwi

Hello Stiwi - after the network connection over USB is set up you
basically have a point to point link between your Mac and the
beaglebone. If you want the board to 'see' the internet instead of
just your laptop, you need to set up your Mac to share it's internet
connection with the beaglebone. I'm not familiar with Macs so can't
really tell you how to do it, but this seems to be a reasonable
sounding howto:

http://www.cyberciti.biz/faq/howto-configure-macosx-as-nat-router/

On the beaglebone you will have to do two things:

1. Edit /etc/resolv.conf to make it see the same nameserver your
laptop sees, or an open one like at google:
nameserver 8.8.8.8

2. Set up your own laptop as the default gateway for the beaglebone,
e.g. by telling it
route add default gw 192.168.7.1

What makes this a bit weird from the typical case, is that it's the
beaglebone (192.168.7.2) serving your laptop a DHCP address
(192.168.7.1). That may change some of what the howto proposes.

If you get rid of the resistor, you could connect the ethernet port to
your router with a patch lead, and the whole laptop-as-a-router
complication goes away.

Good luck,
           -Bert.