BBB Developer
This page contains information about flashing the BBB with a Linux Distro and changing kernels.
Checking current OS/kernel version in BBB
Use one of the following in terminal. They give different level of details.
cat /etc/os-release
lsb_release -a
hostnamectl
uname -r
to get just kernel
Getting and flashing BBB images
The instructions below are specifically for the official images (containing Debian Stretch) from the BBB website. But you can follow similar steps for any compatible images.
- Get latest image from https://beagleboard.org/latest-images. The regular version has a GUI while the IOT version does not.
- Use etcher to install the image onto an SD card (4GB or greater). If using an alternate tool like UNetbootin, you may have to first extract the image.
- You can now either live boot of the SD card or flash the image onto the beagle bone.
Live booting from SD card
- Power off the BBB and insert the SD card with OS image.
- While pressing the boot button on the BBB (near the SD card), power it up. Pressing the boot button may not be required with the BBB we are using.
- The BBB will start up and boot the OS off the SD card. You can verify this by running
lsblk
. This shows all the partitions (internal and external). It shows a forward slash next to the boot partition. The SD card should bemmcblk0
and internal emmc should bemmcblk1
. Livebooting will show a/
next to the SD card partition and regular booting will show it next to the internal emmc partition.
Flashing the image
- In order to make the SD card image flashable, we need to modify the
uEnv.txt
file. This can be done either on the BBB or the host PC. Below instructions are for the BBB. - First, live boot using the SD card.
- Open
/boot/uEnv.txt
, you may need sudo to edit the file. - At the bottom of the file, uncomment the line (remove #):
cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
- Save file and reboot BBB. You may need to press the boot button. The beagle bone will flash the image on the SD card. This can seen by the LED light cylon pattern.
- NOTE: Anytime this SD card is inserted while starting up BBB, it will flash the BBB. So remember to remove the SD card once done.
Additional information
- Editing the
uEnv.txt
file (to make it flashable) does not need to done from the BBB. You can just access the SD card on the host computer and edit it there as well. - The newer BBB images do not come with root password disabled. The default sudo password is
temppwd
and root password isroot
. Default username isdebian
. - Is using linux, the SSH may throw an authentication error after flashing new images/livebooting. To fix this, you have to clear the currently authorised key:
ssh-keygen -R 192.168.7.2