Saturday, May 17, 2014

Mac fails to connect to BBB

The BeagleBone Black is running fine via USB on Mac.
I can see the mounted BEAGLEBONE disk... 

$ pwd
/Volumes/BEAGLEBONE
uki@ BEAGLEBONE $ ls -alt
total 1075
drwxrwxrwx  1 uki   staff     512 May 17 22:01 .fseventsd
drwxrwxrwt@ 8 root  admin     272 May 17 22:01 ..
drwxrwxrwx@ 1 uki   staff    1024 May 17 21:35 .
drwxrwxrwx  1 uki   staff     512 May 17 21:35 .Spotlight-V100
drwxrwxrwx@ 1 uki   staff     512 May 17 21:35 .Trashes
-rwxrwxrwx  1 uki   staff    4096 May 17 21:35 ._.Trashes
-rwxrwxrwx  1 uki   staff      30 Mar 18  2013 ID.txt
-rwxrwxrwx  1 uki   staff   41174 Mar 18  2013 LICENSE.txt
-rwxrwxrwx  1 uki   staff     292 Mar 18  2013 README.md
-rwxrwxrwx  1 uki   staff   16827 Mar 18  2013 START.htm
-rwxrwxrwx  1 uki   staff     223 Mar 18  2013 autorun.inf
drwxrwxrwx  1 uki   staff     512 Mar 18  2013 Drivers
drwxrwxrwx  1 uki   staff    2048 Mar 18  2013 Docs
drwxrwxrwx  1 uki   staff     512 Mar 18  2013 App
-rwxrwxrwx  1 uki   staff  379428 Mar 18  2013 u-boot.img
-rwxrwxrwx  1 uki   staff      26 Mar 18  2013 uEnv.txt
-rwxrwxrwx  1 uki   staff   99976 Mar 18  2013 MLO

Trying to connect to BeagleBone Black fails.

$ ping 192.168.7.2
PING 192.168.7.2 (192.168.7.2): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
SSH fails

$ ssh -vvv root@192.168.7.2
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/uki/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.7.2 [192.168.7.2] port 22.
debug1: connect to address 192.168.7.2 port 22: Operation timed out
ssh: connect to host 192.168.7.2 port 22: Operation timed out


I think it is related to me having some USB to Serial drivers installed, but not sure.


Uninstalling previous FTDIUSBSerialDriver


uki@ Extensions $ pwd
/System/Library/Extensions
uki@ Extensions $ ls -alt | grep FTDI

drwxr-xr-x    3 root  wheel   102 Apr 19  2013 FTDIUSBSerialDriver.kext
uki@ Extensions $ sudo rm -r FTDIUSBSerialDriver.kext
Password:
$ cd /Library/Receipts
$ sudo rm -r ftdi*


I searched for the NEWEST Mac OSX 64 bit drivers here (2.2.18):
http://www.ftdichip.com/Drivers/VCP.htm
http://www.ftdichip.com/Drivers/D2XX.htm


$ cd /usr/local/lib
uki@ lib $ sudo cp /Volumes/release/D2XX/bin/10.5-10.7/libftd2xx.1.2.2.dylib .

Password:
$

Make symbolic link
uki@ lib $ sudo ln -sf /usr/local/lib/libftd2xx.1.2.2.dylib /usr/local/lib/libftd2xx.dylib
uki@ lib $ 

uki@ lib $ sudo cp /Volumes/release/D2XX/bin/ftd2xx.h /usr/local/include/ftd2xx.h

uki@ lib $ sudo cp /Volumes/release/D2XX/bin/WinTypes.h /usr/local/include/WinTypes.h
uki@ lib $ 

I tried to follow steps outlined here, but I got lost:
https://groups.google.com/forum/#!topic/beagleboard/gKQtFpdpB6k

in the end... Works Fine WTF!