Beaglebone black Troubleshoot

Nov 20 2013 Published under beagleboard

Image:
======
BBB-eMMC-flasher-debian-7.2-2013-11-15.img.xz

$ unxz BBB-eMMC-flasher-debian-7.2-2013-11-15.img.xz 
# sudo dd if=./BBB-eMMC-flasher-debian-7.2-2013-11-15.img of=/dev/sdX

ref: http://blogs.bu.edu/mhirsch/2013/11/install-debian-7-to-emmc-internal-flash-drive-of-beaglebone-black/

Internet over USB:
==================
On BBB:

$ ifconfig usb0 192.168.7.2
$ route add default gw 192.168.7.1

On linux PC:

# eth1: PC-BBB interface
# wlan0: PC-Internet interface
$ sudo su
$ ifconfig eth1 192.168.7.1 #
$ iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
$ iptables --append FORWARD --in-interface eth1 -j ACCEPT
$ echo 1 > /proc/sys/net/ipv4/ip_forward

ref: http://robotic-controls.com/learn/beaglebone/beaglebone-internet-over-usb-only

Problem with apt-get update:
============================
Error:
E:Encountered a section with no Package: header, E:Problem with MergeList

Solution:

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

WPA Wifi:
=========
Change /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
#allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf 

/etc/wpa_supplicant/wpa_supplicant.conf:

update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

network={
  ssid="SSID name"
  proto=RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP
  psk="password"
}

also, add current user to netdev group & reboot:

$ sudo adduser username netdev
$ sudo reboot

Comments Off

Comments are closed at this time.

Login