Beaglebone not connecting to router or getting IP address


#1

Hi,

Cant get beaglebone to connect to network (via jumper directly to router).

I have connected the beaglebone from v 2.4 kit with camera attatched to computer via USB and directly to the router. When trying to find out the IP address the beaglebone is using, it was not on the routers connected list.

I logged in to the beaglebone via Putty on com4 port (115200 baud) and was able to connect with login: rov and password: OpenROV.


Ubuntu 12.04.1 LTS OpenROV ttyO0

OpenROV login: rov
Password:
Last login: Tue Apr 2 00:02:27 CEST 2013 on ttyO0
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.33-psp26 armv7l)

* Documentation: https://help.ubuntu.com/
rov@OpenROV:~$ ifconfig -a
eth1 Link encap:Ethernet HWaddr bc:6a:29:e0:98:4b
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.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:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr 8a:ca:9c:23:5d:63
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


*****

Looking at the results above, notice eth1 has no inet addr assigned to it (yes, I have it plugged directly in to the router, to be sure, I got out a fresh router too and tried plugging it in to it)

I am not able to reach the beaglebone via any ethernet method (like the usb to ethernet or connected via the same router)

I have not updated any software from how it came with the v 2.4 kit.

I have no clue how to fix this...

(PS, getting the beaglebone drivers installed for Windows 8 requires turning off device driver signatures)

Any help would be most appreciated!

Jason

When looking at the openrovlog is below

rov@OpenROV:~$ cd /var/log/
rov@OpenROV:/var/log$ less openrov.log
config { debug: true,
debug_commands: false,
production: true,
sample_freq: 20,
dead_zone: 10,
video_frame_rate: 15,
video_resolution: '1920x1080',
video_device: '/dev/video0',
video_port: 8090,
port: 8080,
serial: '/dev/ttyO1',
serial_baud: 115200,
preferences:
{ stores: { file: [Object], defaults: [Object] },
sources: [],
version: '0.6.7',
File: [Getter],
Literal: [Getter],
Env: [Getter],
Argv: [Getter],
Memory: [Getter],
key: [Function],
path: [Function],
loadFiles: [Function],
loadFilesSync: [Function],
formats: { json: [Object], ini: [Object] },
Provider: [Function] },
OpenROVCamera: './lib/OpenROVCamera',
OpenROVController: './lib/OpenROVController',
FirmwareInstaller: './lib/FirmwareInstaller' }
info: socket.io started
Starting the script from /opt/openrov/src/linux to setup UART1...
initiating camera on
Started listening on port: 8080
/dev/video0
spawning capture process...
emitted 'videoStated'
camera started
stderr: MJPG Streamer Version: svn rev:

stderr: i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 1920 x 1080
i: Frames Per Second.: 15
i: Format............: MJPEG

stderr: Adding control for Pan (relative)

stderr: UVCIOC_CTRL_ADD - Error: Invalid argument

stderr: Adding control for Tilt (relative)

stderr: UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Pan Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Tilt Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Pan/tilt Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Focus (absolute)
UVCIOC_CTRL_ADD - Error: Invalid argument
mapping control for Pan (relative)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Tilt (relative)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Pan Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Tilt Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Pan/tilt Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Focus (absolute)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for LED1 Mode

stderr: UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for LED1 Frequency
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Disable video processing
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Raw bits per pixel
UVCIOC_CTRL_MAP - Error: Invalid argument

stderr: o:
stderr: www-folder-path...: disabled

stderr: o:
stderr: HTTP TCP port.....: 8090

stderr: o:
stderr: username:password.: disabled

stderr: o: commands..........: enabled

stderr: Unable to dequeue buffer: Input/output error

stderr: i:
stderr: Error grabbing frames

child process exited with code 1
(END)


#2

Using the image which came with my 2.4 kit, Linux had been configured for eth0 as the network interface, however the kernel had identified the nic as eth1.
From your serial console simply edit /etc/network/interfaces and replace every occurence of eth0 with eth1. That should do the Trick.


#3

I suspect you are running in to this issue. The fix is in the discussion but not applied to the image yet.