Getting IP address of BBB on ubuntu terminal

77 views
Skip to first unread message

Megha Bhirade

unread,
Jul 11, 2019, 3:09:25 AM7/11/19
to BeagleBoard
Hi,

i am new to beagle bone black board. just after getting new board i connected that board to my PC using USB cable and checked it is showing BEAGLE BONE like mass storage drive on system(linux ubuntu), i clicked and entered in to drive and got one START.HMT file clicked on it, it went to website and showed next step install drivers..

i downloaded the mkudevrule.sh file and run it by using chmod + x(for permission) , sudo command  , it completed...

i got 73-beagle bone.rules  file is created in /etc/udev/rules.d/... after this i concluded drivers are installed properly..

i am trying to get ip address of BBB , but not able to get?? please suggest me what is problem:


acufore@acufore-H110M-S2:~$ cd /etc/udev/rules.d/
acufore@acufore-H110M-S2:/etc/udev/rules.d$ ls
73-beaglebone.rules
acufore@acufore-H110M-S2:/etc/udev/rules.d$ cd
acufore@acufore-H110M-S2:~$ ifconfig
enp2s0    Link encap:Ethernet  HWaddr e0:d5:5e:11:5d:65 
          inet addr:192.168.4.59  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::4508:cbb4:d574:e0c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30922 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13579 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16593168 (16.5 MB)  TX bytes:1669767 (1.6 MB)

enx3403de92aa91 Link encap:Ethernet  HWaddr 34:03:de:92:aa:91 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41 errors:3 dropped:0 overruns:0 frame:3
          TX packets:2 errors:58 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10411 (10.4 KB)  TX bytes:520 (520.0 B)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3169 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3169 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:324659 (324.6 KB)  TX bytes:324659 (324.6 KB)

acufore@acufore-H110M-S2:~$ ^C
acufore@acufore-H110M-S2:~$
 
like this i am getting how can i proceed for next..?

Tarmo Kuuse

unread,
Jul 11, 2019, 7:09:34 AM7/11/19
to BeagleBoard
Hi Megha,
So you have a PC with Ubuntu? Which version? Are you running Ubuntu as a native operating system or from a virtual machine? 

Connect the BBB using USB, dump logs (e.g. using "tail -n 100 /var/log/syslog") and post here for further analysis. 

In the mean time - as a quick workaround I would connect the BBB to your local LAN using Ethernet. Then you'd find it from your PC using the name beaglebone.local. E.g. "ssh deb...@beaglebone.local".

--
Kind regards,
Tarmo

Megha Bhirade

unread,
Jul 11, 2019, 7:27:59 AM7/11/19
to BeagleBoard

Megha Bhirade

unread,
Jul 11, 2019, 7:34:48 AM7/11/19
to BeagleBoard


Hi tarmo,
       i am using a PC with Linux Ubuntu and version is 16.04LTS (64-bit) Ubuntu as a native operating system.

As u suggested  i used tail -n 100 /var/log/syslog in to command line(terminal). i got much data not able to understand and i stored the data in to one file please check it i am attaching the same data..

one more thing u told about the local LAN can u explain it once??
 
abc.txt

Tarmo Kuuse

unread,
Jul 11, 2019, 7:54:58 AM7/11/19
to BeagleBoard
OK. I have no experience using Ubuntu 16.04LTS, but I'd assume it contains all necessary drivers for BBB out of the box.

The 2 minute log snippet does not contain anything which I would recognize as a BBB being plugged into USB. Perhaps you did it earlier?

Anyway, your computer appears to try getting an IP from the BBB-s DHCP server, but there's no response. No idea why. Usually my computer gets a 192.168.6.1 or 192.168.7.1 (actually both, on two separate virtual interfaces) address from the BBB (as described in https://beagleboard.org/static/beaglebone/latest/README.htm).

The BBB has an Ethernet port. Connect it to your LAN (a router with a DHCP server and other standard services is required, obviously). Then you can connect to it from the same LAN. It should respond to name "beaglebone.local" by default. If this name doesn't resolve then install avahi packages in Ubuntu. Then use your favourite ssh client to connect. Not much more to explain there.

--
Kind regards,
Tarmo

Megha Bhirade

unread,
Jul 11, 2019, 8:48:53 AM7/11/19
to BeagleBoard

Hii,

Thanks for reply. for second  option -connecting LAN cable to BBB .

i connected LAN cable from router with DHCP server, where i can see :beaglebone.local..

can u explain the basic connection :
i followed like ,
1.connected board(BBB) to PC using USB cable
2. router with DHCP server
3. one LAN cable from the router to board ethernet port

Tarmo Kuuse

unread,
Jul 11, 2019, 9:05:05 AM7/11/19
to beagl...@googlegroups.com
Well, there's nothing to "see" as such. Hopefully the BBB is now
reachable via your local network. Your next steps depend on what are you
planning to do with it, and this only you know. I assumed you wanted to
log into it via ssh and hack away.

You can perform some basic network diagnostics using your PC (it must be
connected to the same LAN, obviously).

To check if name resolution works (returns the IPv4 or IPv6 address of
the BBB):
$ avahi-resolve -n beaglebone.local

To check if the BBB is reachable from your computer
$ ping beaglebone.local

--
Kind regards
Tarmo

Megha Bhirade

unread,
Jul 12, 2019, 12:01:58 AM7/12/19
to BeagleBoard
Hii,
 yes , you are true i am going to login to the board using ssh command and trying with one simple hello world program.
once that is fine means i am  going to load new Debian image in to board.after that same steps as earlier

 

Megha Bhirade

unread,
Jul 12, 2019, 12:50:51 AM7/12/19
to BeagleBoard

Hi,

I tried by connecting LAN cable from router to board Ethernet port, but for ping command i am getting :

acufore@acufore-H110M-S2:~$ ping beaglebone.local
ping: unknown host beaglebone.local

acufore@acufore-H110M-S2:~$ avahi-resolve -n beaglebone.local
Failed to resolve host name 'beaglebone.local': Timeout reached

please help me resolve..

Megha Bhirade

unread,
Jul 12, 2019, 1:42:03 AM7/12/19
to BeagleBoard

I checked in to network settings, it is showing 2 connections..

one is system network connection-which is connected and providing ip address.
second connection for BBB - it is showing disconnected..

why it is showing disconnected?? anything i am missing here?

Tarmo Kuuse

unread,
Jul 12, 2019, 2:34:30 AM7/12/19
to beagl...@googlegroups.com
Your computer can't reach the beaglebone. I'm out of simple advice.
Assuming your LAN setup is OK, it's rather suspicious that neither USB
nor Ethernet gives you access to it.

The USB connection also creates a virtual serial port through which a
serial console is available (which is nearly is as good as an ssh
connection). On my machine it appears as device /dev/ttyACM0. I use it
by installing the package "screen" and running:

$ screen /dev/ttyACM0 115200

Pressing Enter causes a login prompt to appear, where you can log in
using the default credentials (debian/debian, IIRC). If this doesn't
work, I would try re-flashing the board. Follow the instructions here:
https://beagleboard.org/Support/BoneScript/updates/

Note that you're debugging it blindly which makes everything more
difficult. If you attach a USB-Serial adapter to the debug header,
you'll get the bootloader debug output and a serial console. If you
don't have one at hand, search aliexpress for "FTDI USB to TTL" and get
the first thing that pops up.

--
Kind regards
Tarmo

Megha Bhirade

unread,
Jul 17, 2019, 12:13:50 AM7/17/19
to BeagleBoard

Hi,

using LAN cable to Ethernet it is working fine... i am able to login to board.
with old image on board using ssh and ip address i logged in it is showing root@beaglebone..

I flashed the board with new Debian image, here i am using login user as Debian and password as temppwd, here i tried with LED blinking code

Reply all
Reply to author
Forward
0 new messages