BeagleBone Black
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
BeagleBone Black
Edit /etc/profile
add
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export TZ="Asia/Singapore"
See:-
https://wiki.debian.org/TimeZoneChanges
Above seems to be more complex than the following:
dpkg-reconfigure tzdata
add
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export TZ="Asia/Singapore"
See:-
https://wiki.debian.org/TimeZoneChanges
Above seems to be more complex than the following:
dpkg-reconfigure tzdata
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Updating kernel
To flash BBB from microSD to eMMC
1. Go to repository at:-
http://elinux.org/Beagleboard:BeagleBon ... 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.
http://www.element14.com/community/docs ... 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.
1. Go to repository at:-
http://elinux.org/Beagleboard:BeagleBon ... 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.
http://www.element14.com/community/docs ... 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.
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: BeagleBone Black
To access from Mac:-
1. Open terminal window
2. ssh 192.168.1.xxx -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)
1. Open terminal window
2. ssh 192.168.1.xxx -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)
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: BeagleBone Black
As always
apt-get update -y
apt-get upgrade -y
apt-get update -y
apt-get upgrade -y
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Setting up bootable microSD
Download suitable Debian-Wheezy image for Beaglebone Black:-
http://elinux.org/BeagleBoardDebian
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/ && ./grow_partition.sh
or
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.
http://elinux.org/BeagleBoardDebian
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/ && ./grow_partition.sh
or
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.
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: BeagleBone Black
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
1. apt-get install ntp
2. rm /etc/localtime
3. ln -s /usr/share/zoneinfo/Singapore /etc/localtime
4. reboot
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: BeagleBone Black
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
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
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Re: BeagleBone Black
edit /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Your SSID Here"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="YourPresharedKeyHere"
}
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:-
https://learn.adafruit.com/downloads/pd ... -black.pdf
apt-get install git
git clone https://github.com/adafruit/wifi-reset.git
cd wifi-reset
chmod +x install.sh
./install.sh
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:
wifi_9cd6433191d9_415355532d4457_managed_psk
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:-
https://gist.github.com/kylemanna/6930087
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Your SSID Here"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="YourPresharedKeyHere"
}
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:-
https://learn.adafruit.com/downloads/pd ... -black.pdf
apt-get install git
git clone https://github.com/adafruit/wifi-reset.git
cd wifi-reset
chmod +x install.sh
./install.sh
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:
wifi_9cd6433191d9_415355532d4457_managed_psk
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:-
https://gist.github.com/kylemanna/6930087
-
- Site Admin
- Posts: 2449
- Joined: Wed 25 Feb 25 2009 8:00 pm
Upgrade kernel
cd /opt/scripts/tools/
git pull
./update_kernel.sh
git pull
./update_kernel.sh