Skip to content

A fixed and updated tool to flash a BeagleBone over USB

Notifications You must be signed in to change notification settings

Jerald/beaglebone_usb_flash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beaglebone_usb_flasher

A full system to flash a BeagleBone over usb.

This system is forked from the BBBlfs project. Without his work this likely wouldn't be here. Albeit a lot of it was broken and has to be re-engineered... But still his work is the core.

Build

You need to build the project to create a small executable used to put the BeagleBone into the correct mode to be flashed over USB.

It requires libusb and automake as dependencies. Download them with your favourite package manager. After that, run the below commands to make the executable:

./autogen.sh
./configure
make

Usage

Press the S2 button on the BeagleBone and apply power to the board. That's the small button on the opposite side as the ethernet port. The board should now start into USB boot mode.

Connect your BeagleBone to the host PC, the kernel will identify the board as an RNDIS interface. Which is to say, a bare-bones ethernet interface. No need to check this unless you're having issues.

Navigate to the repo's bin/ folder and execute flash_script.sh as root. The first argument should be the image you want to flash. Only .img.xz compressed images are supported, that's the same format as you'd get from the BeagleBone website.

For example: sudo ./flash_script.sh image.img.xz

Troubleshooting

If you have issues with flashing your board, the script provides some minimal error state information which may help. Otherwise, there is a full guide I've wrote for this process with a dedicated troubleshooting section. Check it out here.

About

A fixed and updated tool to flash a BeagleBone over USB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 78.2%
  • Shell 19.9%
  • M4 1.2%
  • Makefile 0.7%