Skip to content

Instantly share code, notes, and snippets.

@brian-lc
Created May 31, 2013 19:13
Show Gist options
  • Select an option

  • Save brian-lc/5687240 to your computer and use it in GitHub Desktop.

Select an option

Save brian-lc/5687240 to your computer and use it in GitHub Desktop.
BeagleBone Command helper doc
To list the USB connections
ls /dev/ttyUSB*
To start a USB screen session with the BB
sudo screen /dev/ttyUSB0 115200
To Eject a mounted BB
sudo eject /dev/sdx - where ‘x’ is the id for the device to exject
On BB, run to see loaded modules change after host computer eject
lsmod - to see the loaded modules... like ethernet
On host, view the mounted devices (should show BEAGLE_BONE)
mount - to show the mounted devices on the host computer
ssh root@10.0.1.16
location of gpio pins
/sys/class/gpio
First Setup the pin
LED Pin
Pin 12 in P9 Header - GPIO1_28 change to Mode 7 to get it to GPIO60 (1_28)
gpmc_ben1
/sys/kernel/debug/omap_mux# cat gpmc_ben1
echo 7 > gpmc_ben1 to change the mode to mode_7 (if it is not set that way)
Then export the pin
cd /sys/class/gpio
echo 60 > export
to export the pin
cd /gpio60
echo out > direction
echo 0 > value (LED off)
echo 1 > value (LED on)
Button Pin
Pin 25 on Pin9 Header - GPIO3_21 change to Mode 7 to get it to GPIO117 (3_21) (3*32 + 21)
/sys/kernel/debug/omap_mux mcasp0_ahclkx
see gpio settings
cd /sys/kernel/debug
cat gpio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment