Page 1 of 3

BeagleBone Black

Posted: Tue 23 Sep 23 2014 7:55 pm
by Daniel Wee
Edit /etc/profile


export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export TZ="Asia/Singapore"


Above seems to be more complex than the following:

dpkg-reconfigure tzdata

Updating kernel

Posted: Wed 24 Sep 24 2014 11:04 am
by Daniel Wee
To flash BBB from microSD to eMMC

1. Go to repository at:- ... 2014-07-22

2. Get image under BBB Rev C (4GB eMMC) for Rev C board. For 2GB boards, get image under BBW/BBB (All Revs)

3. On PC, use 7-Zip to unpack image into a directory.

4. On PC, use Win32ImageWrite to write image onto microSD card.

5. Insert card into BBB. Hold "boot" button (on USB port side) while powering up until LEDs start running. ... nstruction

Alternatively, if using Ubuntu, just download the image and click it inside the file explorer. It will automatically prompt to write to a disk.

Re: BeagleBone Black

Posted: Wed 24 Sep 24 2014 11:07 am
by Daniel Wee
To access from Mac:-

1. Open terminal window

2. ssh -l root

If necessary, you may need to update the ssh keys.

pico .ssh/known_hosts

and delete the line with old outdated host keys (same IP)

Re: BeagleBone Black

Posted: Wed 24 Sep 24 2014 11:07 am
by Daniel Wee
As always

apt-get update -y
apt-get upgrade -y

Re: BeagleBone Black

Posted: Wed 24 Sep 24 2014 11:45 am
by Daniel Wee

Setting up bootable microSD

Posted: Sun 12 Oct 12 2014 9:27 pm
by Daniel Wee
Download suitable Debian-Wheezy image for Beaglebone Black:-
under raw uSD image for BeagleBone/Black

Install Unarchiver if not already installed.
Unpack downloaded tz file to img file in Download directory

1. Insert microSD into MacPro Retina mmc-slot
2. use Disk Utility on Mac to Initialize/Erase the microSD. Format as MS-DOS, name is irrelevant
3. use Disk Utility to unmount just the UNTITLED partition
4. go to Terminal in Mac
5. you can optionally unmount the disk by doing:-

diskutil unmount /dev/disk1s1

6. issue:-

sudo dd bs=1m if=<img file name here> of=/dev/disk1

7. use ctrl-T to check status while writing out to microSD
8. use FileManager to Eject the card "BOOT" when done

9. Insert newly built card into BBB and boot with Ethernet or USB connected
10. ssh into the BBB (default user/password is debian:temppwd)
11. sudo passwd root
12. exit and log in as root
13. fdisk /dev/mmcblk0
14. d 2 n p 2 default default w
15. reboot
16. ssh back into BBB as root

You could do:-
17. cd /opt/scripts/tools/ && ./
17. resize2fs /dev/mmcblk0p2

18. reboot

19. ssh in as root
20. apt-get update
21. apt-get upgrade
22. nano /etc/profile (add exports for languages)
23. apt-get install locales
24. locale-gen
25. dpkg-reconfigure locales
26. reboot
27. apt-get install usbutils

An easier way than the above is to use "gparted" in Ubuntu (may need to install), and simply dragging the partition boundary to resize.

Re: BeagleBone Black

Posted: Sun 12 Oct 12 2014 10:08 pm
by Daniel Wee
If time is inaccurate, you may need to install the ntp service

1. apt-get install ntp
2. rm /etc/localtime
3. ln -s /usr/share/zoneinfo/Singapore /etc/localtime
4. reboot

Re: BeagleBone Black

Posted: Sun 12 Oct 12 2014 10:29 pm
by Daniel Wee
apt-get update
apt-get upgrade
apt-get update --fix-missing
apt-get upgrade --fix-missing

apt-get install wicd
apt-get install libi2c-dev
apt-get install git

Re: BeagleBone Black

Posted: Sun 12 Oct 12 2014 11:31 pm
by Daniel Wee
edit /etc/wpa_supplicant/wpa_supplicant.conf

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

ssid="Your SSID Here"
pairwise=CCMP TKIP

edit /etc/network/interfaces

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Go here to install wifi-reset:- ... -black.pdf

apt-get install git
git clone
cd wifi-reset
chmod +x

Possibly try:-

nano /etc/modprobe.d/8192cu.conf

and add the following (Disable wi-fi power saving):-

options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1

then reboot

Another approach is to use the LXQT GUI and set up the connection there. Once connected, go to the terminal:-

connmanctl services

Observe the connection id, such as:


Then make it connect at reboot:-

crontab -e

Add the line:-

@reboot connmanctl connect wifi_9cd6433191d9_415355532d4457_managed_psk

For instructions on how to connect using connmanctl alone without the GUI:-

Upgrade kernel

Posted: Mon 13 Oct 13 2014 1:06 am
by Daniel Wee
cd /opt/scripts/tools/
git pull